From c2f4b372608debe15d2ebc022430631a09d4bad4 Mon Sep 17 00:00:00 2001 From: Stephen Cavaliere Date: Tue, 27 Sep 2016 00:49:14 -0400 Subject: [PATCH] fix(webpack): Added ContextReplacementPlugin to remove ng test warning Close #2362 --- packages/angular-cli/models/webpack-build-test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/angular-cli/models/webpack-build-test.js b/packages/angular-cli/models/webpack-build-test.js index e1d45510ec70..2aef8b397940 100644 --- a/packages/angular-cli/models/webpack-build-test.js +++ b/packages/angular-cli/models/webpack-build-test.js @@ -102,7 +102,11 @@ const getWebpackTestConfig = function (projectRoot, environment, appConfig) { resourcePath: `./${appConfig.root}` } } - }) + }), + new webpack.ContextReplacementPlugin( + /angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/, + appRoot + ) ], node: { fs: 'empty',