File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
packages/@ngtools/webpack/src Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -760,12 +760,12 @@ export class AngularCompilerPlugin implements Tapable {
760
760
. filter ( ( diag ) => diag . category === ts . DiagnosticCategory . Warning ) ;
761
761
762
762
if ( errors . length > 0 ) {
763
- const message = formatDiagnostics ( this . _angularCompilerOptions , errors ) ;
763
+ const message = formatDiagnostics ( errors ) ;
764
764
this . _compilation . errors . push ( message ) ;
765
765
}
766
766
767
767
if ( warnings . length > 0 ) {
768
- const message = formatDiagnostics ( this . _angularCompilerOptions , warnings ) ;
768
+ const message = formatDiagnostics ( warnings ) ;
769
769
this . _compilation . warnings . push ( message ) ;
770
770
}
771
771
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export interface CreateCompilerHostInterface {
102
102
} ) : CompilerHost ;
103
103
}
104
104
export interface FormatDiagnosticsInterface {
105
- ( options : CompilerOptions , diags : Diagnostics ) : string ;
105
+ ( diags : Diagnostics ) : string ;
106
106
}
107
107
108
108
// Manually check for Compiler CLI availability and supported version.
Original file line number Diff line number Diff line change @@ -145,12 +145,12 @@ class TypeChecker {
145
145
const warnings = allDiagnostics . filter ( ( d ) => d . category === ts . DiagnosticCategory . Warning ) ;
146
146
147
147
if ( errors . length > 0 ) {
148
- const message = formatDiagnostics ( this . _angularCompilerOptions , errors ) ;
148
+ const message = formatDiagnostics ( errors ) ;
149
149
console . error ( bold ( red ( 'ERROR in ' + message ) ) ) ;
150
150
}
151
151
152
152
if ( warnings . length > 0 ) {
153
- const message = formatDiagnostics ( this . _angularCompilerOptions , warnings ) ;
153
+ const message = formatDiagnostics ( warnings ) ;
154
154
console . log ( bold ( yellow ( 'WARNING in ' + message ) ) ) ;
155
155
}
156
156
}
You can’t perform that action at this time.
0 commit comments