Skip to content

Commit 3378991

Browse files
committed
refactor(@angular/build): remove undefined variable in aot-compilation on 22.0.x
Fixes a build failure on the 22.0.x branch caused by a reference to undefined variable useTypeScriptTranspilation in aot-compilation.ts.
1 parent ecc7aba commit 3378991

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,11 @@ export class AotCompilation extends AngularCompilation {
183183
// diagnostics are already suppressed at the consumption layer (see the compiler-plugin
184184
// `diagnoseFiles` mask), and in the isolatedModules fast path emit is per-file, so the
185185
// set is never read. Skip the walk in that case to avoid a discarded semantic pass.
186-
const affectedFiles =
187-
useTypeChecking || useTypeScriptTranspilation
188-
? profileSync('NG_FIND_AFFECTED', () =>
189-
findAffectedFiles(typeScriptProgram, angularCompiler, usingBuildInfo),
190-
)
191-
: new Set<ts.SourceFile>();
186+
const affectedFiles = useTypeChecking
187+
? profileSync('NG_FIND_AFFECTED', () =>
188+
findAffectedFiles(typeScriptProgram, angularCompiler, usingBuildInfo),
189+
)
190+
: new Set<ts.SourceFile>();
192191

193192
const componentResourcesDependencies = new Map<string, string[]>();
194193

0 commit comments

Comments
 (0)