Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import type * as ng from '@angular/compiler-cli';
import assert from 'node:assert';
import { relative } from 'node:path';
import ts from 'typescript';
import { useTypeChecking } from '../../../utils/environment-options';
import { profileAsync, profileSync } from '../../esbuild/profiling';
import {
AngularHostOptions,
Expand Down Expand Up @@ -176,19 +175,9 @@ export class AotCompilation extends AngularCompilation {
}
}

// The affected files walk runs a full semantic type-check as a side effect
// (via `getSemanticDiagnosticsOfNextAffectedFile`). Its result is only consumed to
// scope Angular template diagnostics and to force re-emit of TS-affected files in the
// slow TypeScript emit path. When type-checking is disabled, template/semantic
// diagnostics are already suppressed at the consumption layer (see the compiler-plugin
// `diagnoseFiles` mask), and in the isolatedModules fast path emit is per-file, so the
// set is never read. Skip the walk in that case to avoid a discarded semantic pass.
const affectedFiles =
useTypeChecking || useTypeScriptTranspilation
? profileSync('NG_FIND_AFFECTED', () =>
findAffectedFiles(typeScriptProgram, angularCompiler, usingBuildInfo),
)
: new Set<ts.SourceFile>();
const affectedFiles = profileSync('NG_FIND_AFFECTED', () =>
findAffectedFiles(typeScriptProgram, angularCompiler, usingBuildInfo),
);

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

Expand Down
96 changes: 0 additions & 96 deletions tests/e2e/tests/build/type-check-disabled-emit.ts

This file was deleted.

Loading