Skip to content

Commit 1ab3b1d

Browse files
delasteveBrocco
authored andcommitted
fix(webpack): Added ContextReplacementPlugin to remove ng test warning
Close #2362
1 parent cc48878 commit 1ab3b1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/angular-cli/models/webpack-build-test.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ const getWebpackTestConfig = function (projectRoot, environment, appConfig) {
102102
resourcePath: `./${appConfig.root}`
103103
}
104104
}
105-
})
105+
}),
106+
new webpack.ContextReplacementPlugin(
107+
/angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
108+
appRoot
109+
)
106110
],
107111
node: {
108112
fs: 'empty',

0 commit comments

Comments
 (0)