Skip to content

Commit 1e9881b

Browse files
alan-agius4filipesilva
authored andcommitted
refactor(@angular-devkit/build-angular): replace lazy loading resources context path
1 parent 0d1826b commit 1e9881b

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
503503
plugins: [
504504
// Always replace the context for the System.import in angular/core to prevent warnings.
505505
// https://github.com/angular/angular/issues/11580
506-
new ContextReplacementPlugin(/\@angular(\\|\/)core(\\|\/)/, path.normalize(projectRoot), {}),
506+
new ContextReplacementPlugin(/\@angular(\\|\/)core(\\|\/)/, path.join(projectRoot, '$_lazy_route_resources'), {}),
507507
new DedupeModuleResolvePlugin({ verbose: buildOptions.verbose }),
508508
...extraPlugins,
509509
],

0 commit comments

Comments
 (0)