From 8d7e5a54e5d436c12a7e08c0a57d1ec4fa0c1ba3 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Wed, 9 Apr 2025 11:26:19 -0400 Subject: [PATCH] fix(@angular/build): disable TypeScript `composite` option with Angular compiler The Angular compiler does not directly support the `composite` option within a referenced `tsconfig` file. If this option is enabled, the Angular compiler will crash due to the Angular compiler not leveraging the TypeScript BuilderProgram infrastructure. Since the Angular compiler is not aware of composite projects nor project references, the `composite` option is disabled when options are passed to the Angular compiler. This has no effect on non- Angular related usages of the `tsconfig`. --- .../angular/build/src/tools/esbuild/angular/compiler-plugin.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts b/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts index 8f58d2cb5978..c30bc4eab0c3 100644 --- a/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts +++ b/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts @@ -705,6 +705,7 @@ function createCompilerOptionsTransformer( return { ...compilerOptions, noEmitOnError: false, + composite: false, inlineSources: !!pluginOptions.sourcemap, inlineSourceMap: !!pluginOptions.sourcemap, sourceMap: undefined,