File tree Expand file tree Collapse file tree
packages/angular/build/src/tools/esbuild/angular Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -402,23 +402,23 @@ export function createCompilerPlugin(
402402 ] ,
403403 } ) ;
404404 }
405- }
406405
407- const diagnosticModes = useTypeChecking
408- ? DiagnosticModes . All
409- : DiagnosticModes . All & ~ DiagnosticModes . Semantic ;
410- diagnosticsPromise = compilation . diagnoseFiles ( diagnosticModes ) . catch ( ( error ) => ( {
411- errors : [
412- {
413- text : 'Angular compilation diagnostics failed.' ,
414- notes : [
415- {
416- text : error instanceof Error ? ( error . stack ?? error . message ) : String ( error ) ,
417- } ,
418- ] ,
419- } ,
420- ] ,
421- } ) ) ;
406+ const diagnosticModes = useTypeChecking
407+ ? DiagnosticModes . All
408+ : DiagnosticModes . All & ~ DiagnosticModes . Semantic ;
409+ diagnosticsPromise = compilation . diagnoseFiles ( diagnosticModes ) . catch ( ( error ) => ( {
410+ errors : [
411+ {
412+ text : 'Angular compilation diagnostics failed.' ,
413+ notes : [
414+ {
415+ text : error instanceof Error ? ( error . stack ?? error . message ) : String ( error ) ,
416+ } ,
417+ ] ,
418+ } ,
419+ ] ,
420+ } ) ) ;
421+ }
422422
423423 // Add errors from failed additional results.
424424 // This must be done after emit to capture latest web worker results.
You can’t perform that action at this time.
0 commit comments