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 {
44
44
getWatchOptions ,
45
45
normalizeExtraEntryPoints ,
46
46
} from '../utils/helpers' ;
47
- import { IGNORE_WARNINGS } from '../utils/stats' ;
48
47
49
48
// eslint-disable-next-line max-lines-per-function
50
49
export function getCommonConfig ( wco : WebpackConfigOptions ) : Configuration {
@@ -430,7 +429,15 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
430
429
performance : {
431
430
hints : false ,
432
431
} ,
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
+ ] ,
434
441
module : {
435
442
// Show an error for missing exports instead of a warning.
436
443
strictExportPresence : true ,
Original file line number Diff line number Diff line change @@ -240,14 +240,6 @@ function statsToString(
240
240
}
241
241
}
242
242
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
-
251
243
// eslint-disable-next-line @typescript-eslint/no-explicit-any
252
244
export function statsWarningsToString ( json : StatsCompilation , statsConfig : any ) : string {
253
245
const colors = statsConfig . colors ;
You can’t perform that action at this time.
0 commit comments