Skip to content

fix(@angular/build): disable TypeScript composite option with Angular compiler #30073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2025

Conversation

clydin
Copy link
Member

@clydin clydin commented Apr 9, 2025

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.

…ar 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`.
@clydin clydin added the target: major This PR is targeted for the next major release label Apr 9, 2025
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Apr 9, 2025
@clydin clydin merged commit 3e24a59 into angular:main Apr 9, 2025
33 checks passed
@clydin clydin deleted the application/ts-composite-flag branch April 9, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: @angular/build target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants