From 07d79f5369bc94633fdb189d8fd2e6ad853c223f Mon Sep 17 00:00:00 2001 From: Serhii Sol Date: Mon, 10 Oct 2016 19:16:27 +0200 Subject: [PATCH] fix(#1875): Support npm linked libraries (#2291) --- packages/angular-cli/models/webpack-build-common.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/angular-cli/models/webpack-build-common.ts b/packages/angular-cli/models/webpack-build-common.ts index 1b6d43b70455..0258c121d3ba 100644 --- a/packages/angular-cli/models/webpack-build-common.ts +++ b/packages/angular-cli/models/webpack-build-common.ts @@ -33,7 +33,8 @@ export function getWebpackCommonConfig( return { devtool: 'source-map', resolve: { - extensions: ['.ts', '.js'] + extensions: ['.ts', '.js'], + modules: [path.resolve(projectRoot, 'node_modules')] }, context: path.resolve(__dirname, './'), entry: entry,