Skip to content

Commit

Permalink
re-add context replacement plugin in order to fix CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kroeder committed Oct 9, 2019
1 parent e099c61 commit 81d78be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/angular/src/server/framework-preset-angular.ts
Original file line number Diff line number Diff line change
@@ -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(
Expand Down Expand Up @@ -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),
],
};
Expand Down

0 comments on commit 81d78be

Please sign in to comment.