Skip to content

Commit 427bd84

Browse files
committed
fix(@ngtools/webpack): 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 b951236 commit 427bd84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/ngtools/webpack/src/ivy/plugin.ts

+1
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ export class AngularWebpackPlugin {
410410
this.pluginOptions.tsconfig,
411411
this.pluginOptions.compilerOptions,
412412
);
413+
compilerOptions.composite = false;
413414
compilerOptions.noEmitOnError = false;
414415
compilerOptions.suppressOutputPathCheck = true;
415416
compilerOptions.outDir = undefined;

0 commit comments

Comments
 (0)