Skip to content

Commit 8d7e5a5

Browse files
committed
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`.
1 parent a175d28 commit 8d7e5a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,7 @@ function createCompilerOptionsTransformer(
705705
return {
706706
...compilerOptions,
707707
noEmitOnError: false,
708+
composite: false,
708709
inlineSources: !!pluginOptions.sourcemap,
709710
inlineSourceMap: !!pluginOptions.sourcemap,
710711
sourceMap: undefined,

0 commit comments

Comments
 (0)