Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Commit

Permalink
fix(@angular-devkit/build-optimizer): remove side effects override
Browse files Browse the repository at this point in the history
Also prevent Build Optimizer from running twice on Angular packages.

Partially address angular/angular-cli#10322.
  • Loading branch information
filipesilva committed Apr 13, 2018
1 parent beedf54 commit 48a9d21
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
}
},
{
test: /[\/\\]@angular[\/\\].+\.js$/,
sideEffects: false,
// Mark files inside `@angular/core` as using SystemJS style dynamic imports.
// Removing this will cause deprecation warnings to appear.
test: /[\/\\]@angular[\/\\]core[\/\\].+\.js$/,
parser: { system: true },
...buildOptimizerUseRule,
},
{
test: /\.js$/,
Expand Down

0 comments on commit 48a9d21

Please sign in to comment.