Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 64eb845

Browse files
fiznooldanbucholtz
authored andcommitted
fix(webpack): resolve modules to rootDir (#365)
This patch fixes support for npm linked libraries. More information can be found at angular/angular-cli#2291
1 parent 316b1de commit 64eb845

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
@@ -62,7 +62,8 @@ module.exports = {
6262
devtool: getDevtool(),
6363

6464
resolve: {
65-
extensions: ['.js', '.ts', '.json']
65+
extensions: ['.js', '.ts', '.json'],
66+
modules: [path.resolve('{{ROOT}}', 'node_modules')]
6667
},
6768

6869
module: {
@@ -83,4 +84,4 @@ module.exports = {
8384
net: 'empty',
8485
tls: 'empty'
8586
}
86-
};
87+
};

0 commit comments

Comments
 (0)