File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
packages/angular_devkit/build_angular/src/webpack Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ import {
4444 getWatchOptions ,
4545 normalizeExtraEntryPoints ,
4646} from '../utils/helpers' ;
47- import { IGNORE_WARNINGS } from '../utils/stats' ;
4847
4948// eslint-disable-next-line max-lines-per-function
5049export function getCommonConfig ( wco : WebpackConfigOptions ) : Configuration {
@@ -430,7 +429,15 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
430429 performance : {
431430 hints : false ,
432431 } ,
433- ignoreWarnings : IGNORE_WARNINGS ,
432+ ignoreWarnings : [
433+ // Webpack 5+ has no facility to disable this warning.
434+ // System.import is used in @angular /core for deprecated string-form lazy routes
435+ / S y s t e m .i m p o r t \( \) i s d e p r e c a t e d a n d w i l l b e r e m o v e d s o o n / i,
436+ // https://github.com/webpack-contrib/source-map-loader/blob/b2de4249c7431dd8432da607e08f0f65e9d64219/src/index.js#L83
437+ / F a i l e d t o p a r s e s o u r c e m a p f r o m / ,
438+ // https://github.com/webpack-contrib/postcss-loader/blob/bd261875fdf9c596af4ffb3a1a73fe3c549befda/src/index.js#L153-L158
439+ / A d d p o s t c s s a s p r o j e c t d e p e n d e n c y / ,
440+ ] ,
434441 module : {
435442 // Show an error for missing exports instead of a warning.
436443 strictExportPresence : true ,
Original file line number Diff line number Diff line change @@ -240,14 +240,6 @@ function statsToString(
240240 }
241241}
242242
243- export const IGNORE_WARNINGS = [
244- // Webpack 5+ has no facility to disable this warning.
245- // System.import is used in @angular /core for deprecated string-form lazy routes
246- / S y s t e m .i m p o r t \( \) i s d e p r e c a t e d a n d w i l l b e r e m o v e d s o o n / i,
247- // https://github.com/webpack-contrib/source-map-loader/blob/b2de4249c7431dd8432da607e08f0f65e9d64219/src/index.js#L83
248- / F a i l e d t o p a r s e s o u r c e m a p f r o m / ,
249- ] ;
250-
251243// eslint-disable-next-line @typescript-eslint/no-explicit-any
252244export function statsWarningsToString ( json : StatsCompilation , statsConfig : any ) : string {
253245 const colors = statsConfig . colors ;
You can’t perform that action at this time.
0 commit comments