Skip to content

Commit

Permalink
fix(webpack): Added ContextReplacementPlugin to remove ng test warning
Browse files Browse the repository at this point in the history
Close #2362
  • Loading branch information
delasteve authored and filipesilva committed Oct 5, 2016
1 parent d8fb444 commit c2f4b37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/angular-cli/models/webpack-build-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c2f4b37

Please sign in to comment.