From 81d78befaebc38a8ae8a7208ee1a93471a366d15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20R=C3=B6der?= Date: Wed, 9 Oct 2019 11:18:44 +0200 Subject: [PATCH] re-add context replacement plugin in order to fix CI tests --- app/angular/src/server/framework-preset-angular.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/angular/src/server/framework-preset-angular.ts b/app/angular/src/server/framework-preset-angular.ts index 7590a75acbdc..41c7574c6417 100644 --- a/app/angular/src/server/framework-preset-angular.ts +++ b/app/angular/src/server/framework-preset-angular.ts @@ -1,6 +1,6 @@ import autoprefixer from 'autoprefixer'; import path from 'path'; -import { Configuration } from 'webpack'; +import { Configuration, ContextReplacementPlugin } from 'webpack'; import getTsLoaderOptions from './ts_config'; export function webpack( @@ -55,10 +55,10 @@ export function webpack( plugins: [ ...config.plugins, // See https://github.com/angular/angular/issues/11580#issuecomment-401127742 - // new ContextReplacementPlugin( - // /@angular(\\|\/)core(\\|\/)(fesm5|bundles)/, - // path.resolve(__dirname, '..') - // ), + new ContextReplacementPlugin( + /@angular(\\|\/)core(\\|\/)(fesm5|bundles)/, + path.resolve(__dirname, '..') + ), // createForkTsCheckerInstance(tsLoaderOptions), ], };