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 {
760760 . filter ( ( diag ) => diag . category === ts . DiagnosticCategory . Warning ) ;
761761
762762 if ( errors . length > 0 ) {
763- const message = formatDiagnostics ( this . _angularCompilerOptions , errors ) ;
763+ const message = formatDiagnostics ( errors ) ;
764764 this . _compilation . errors . push ( message ) ;
765765 }
766766
767767 if ( warnings . length > 0 ) {
768- const message = formatDiagnostics ( this . _angularCompilerOptions , warnings ) ;
768+ const message = formatDiagnostics ( warnings ) ;
769769 this . _compilation . warnings . push ( message ) ;
770770 }
771771
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export interface CreateCompilerHostInterface {
102102 } ) : CompilerHost ;
103103}
104104export interface FormatDiagnosticsInterface {
105- ( options : CompilerOptions , diags : Diagnostics ) : string ;
105+ ( diags : Diagnostics ) : string ;
106106}
107107
108108// 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 {
145145 const warnings = allDiagnostics . filter ( ( d ) => d . category === ts . DiagnosticCategory . Warning ) ;
146146
147147 if ( errors . length > 0 ) {
148- const message = formatDiagnostics ( this . _angularCompilerOptions , errors ) ;
148+ const message = formatDiagnostics ( errors ) ;
149149 console . error ( bold ( red ( 'ERROR in ' + message ) ) ) ;
150150 }
151151
152152 if ( warnings . length > 0 ) {
153- const message = formatDiagnostics ( this . _angularCompilerOptions , warnings ) ;
153+ const message = formatDiagnostics ( warnings ) ;
154154 console . log ( bold ( yellow ( 'WARNING in ' + message ) ) ) ;
155155 }
156156 }
You can’t perform that action at this time.
0 commit comments