Skip to content

Commit abaa04c

Browse files
committed
fixup! fix(@angular/build): report TypeScript declaration emit diagnostics
1 parent eeb01ee commit abaa04c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎packages/angular/build/src/tools/angular/compilation/aot-compilation.ts‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -557,15 +557,16 @@ export class AotCompilation extends TypeScriptCompilation {
557557
// Emit is handled in write file callback when using TypeScript
558558
if (useTypeScriptTranspilation) {
559559
// TypeScript will loop until there are no more affected files in the program
560-
let affectedEmitResult: ts.AffectedFileResult<ts.EmitResult>;
561-
while (
562-
(affectedEmitResult = typeScriptProgram.emitNextAffectedFile(
560+
while (true) {
561+
const affectedEmitResult = typeScriptProgram.emitNextAffectedFile(
563562
writeFileCallback,
564563
undefined,
565564
undefined,
566565
transformers,
567-
))
568-
) {
566+
);
567+
if (!affectedEmitResult) {
568+
break;
569+
}
569570
if ('kind' in affectedEmitResult.affected) {
570571
if (affectedEmitResult.result.diagnostics.length > 0) {
571572
declarationDiagnostics.set(

0 commit comments

Comments
 (0)