From 50ce788946d3c416b7d05670d1d1982deb873e34 Mon Sep 17 00:00:00 2001 From: Art Lowel Date: Tue, 23 Jan 2018 16:00:39 +0100 Subject: [PATCH] fixed 'Critical dependency' warnings when running karma --- webpack/webpack.test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webpack/webpack.test.js b/webpack/webpack.test.js index 703da033a2..66a1454a08 100644 --- a/webpack/webpack.test.js +++ b/webpack/webpack.test.js @@ -227,6 +227,11 @@ module.exports = function (options) { /angular(\\|\/)core(\\|\/)@angular/, root('./src'), {} ), + // Workaround for https://github.com/angular/angular/issues/20357 + new ContextReplacementPlugin( + /\@angular(\\|\/)core(\\|\/)esm5/, + root('./src'), {} + ), /** * Plugin: DefinePlugin