Skip to content

Commit 0128059

Browse files
authored
fix(webpack): resolve modules to rootDir
This patch fixes support for npm linked libraries. More information can be found at angular/angular-cli#2291
1 parent 6f5d444 commit 0128059

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config/webpack.config.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ module.exports = {
6161
devtool: getDevtool(),
6262

6363
resolve: {
64-
extensions: ['.js', '.ts', '.json']
64+
extensions: ['.js', '.ts', '.json'],
65+
modules: [path.resolve('{{ROOT}}', 'node_modules')]
6566
},
6667

6768
module: {
@@ -82,4 +83,4 @@ module.exports = {
8283
net: 'empty',
8384
tls: 'empty'
8485
}
85-
};
86+
};

0 commit comments

Comments
 (0)