Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): filter unactionable System.import…
Browse files Browse the repository at this point in the history
… webpack warning

Webpack 5+ has no facility to disable this warning. `System.import` is used in `@angular/core` for deprecated string-form lazy routes.
  • Loading branch information
clydin authored and alan-agius4 committed Sep 8, 2020
1 parent 2586a0e commit 22ecb13
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -86,9 +86,12 @@ export function statsToString(json: any, statsConfig: any) {
}
}

// TODO(#16193): Don't emit this warning in the first place rather than just suppressing it.
const ERRONEOUS_WARNINGS_FILTER = (warning: string) => ![
// TODO(#16193): Don't emit this warning in the first place rather than just suppressing it.
/multiple assets emit different content.*3rdpartylicenses\.txt/i,
// Webpack 5+ has no facility to disable this warning.
// System.import is used in @angular/core for deprecated string-form lazy routes
/System.import\(\) is deprecated and will be removed soon/i,
].some(msg => msg.test(warning));

export function statsWarningsToString(json: any, statsConfig: any): string {
Expand Down

0 comments on commit 22ecb13

Please sign in to comment.