File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
packages/angular_devkit/build_angular/src/angular-cli-files/utilities Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -86,20 +86,12 @@ export function statsToString(json: any, statsConfig: any) {
86
86
}
87
87
}
88
88
89
- // TODO(#16193): Don't emit this warning in the first place rather than just suppressing it.
90
- const ERRONEOUS_WARNINGS = [
91
- / m u l t i p l e a s s e t s e m i t d i f f e r e n t c o n t e n t .* 3 r d p a r t y l i c e n s e s \. t x t / i,
92
- ] ;
93
89
export function statsWarningsToString ( json : any , statsConfig : any ) {
94
90
const colors = statsConfig . colors ;
95
91
const rs = ( x : string ) => colors ? reset ( x ) : x ;
96
92
const y = ( x : string ) => colors ? bold ( yellow ( x ) ) : x ;
97
93
98
- return rs ( '\n' + json . warnings
99
- . map ( ( warning : any ) => `${ warning } ` )
100
- . filter ( ( warning : string ) => ! ERRONEOUS_WARNINGS . some ( ( erroneous ) => erroneous . test ( warning ) ) )
101
- . map ( ( warning : string ) => y ( `WARNING in ${ warning } ` ) )
102
- . join ( '\n\n' ) ) ;
94
+ return rs ( '\n' + json . warnings . map ( ( warning : any ) => y ( `WARNING in ${ warning } ` ) ) . join ( '\n\n' ) ) ;
103
95
}
104
96
105
97
export function statsErrorsToString ( json : any , statsConfig : any ) {
You can’t perform that action at this time.
0 commit comments