From 026953fc5c164eb4d4376a46979d181d0d66923e Mon Sep 17 00:00:00 2001 From: Serhii Solonko Date: Thu, 22 Sep 2016 13:16:34 +0200 Subject: [PATCH] fix(#1875): Support npm linked libraries --- 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,