Skip to content

Commit c94a897

Browse files
crisbetoatscott
authored andcommitted
fix(compiler-cli): avoid emitting references to typecheck files in TS 5.4 (#56961)
In #56358 we removed most of the places that untag the references to typecheck files, because it was causing the compiler to throw error when it produces diagnostics. This appears to have caused a regression in TS 5.4 which now emits the synthetic references. These changes add tagging right before the program emits. Fixes #56945. PR Close #56961
1 parent b666d2c commit c94a897

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/compiler-cli/src/ngtsc/program.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,10 @@ export class NgtscProgram implements api.Program {
293293
}
294294
}
295295

296+
// Untag all the files, otherwise TS 5.4 may end up emitting
297+
// references to typecheck files (see #56945).
298+
untagAllTsFiles(this.tsProgram);
299+
296300
const forceEmit = opts?.forceEmit ?? false;
297301

298302
this.compiler.perfRecorder.memory(PerfCheckpoint.PreEmit);

0 commit comments

Comments
 (0)