Skip to content

Commit 3267c57

Browse files
committed
fixup! perf(@angular/build): decouple diagnostic type checking from build start
1 parent aef5a98 commit 3267c57

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)