fix(create-vite): avoid usage of composite in TS configs #17774
Merged
+80
−72
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #17638
After some investigation, composite is not required when the project by referenced an empty project. Which is why I'm #17732 in favor of this PR.
I've also done two things:
resolveJsonModule
which is the default in bundler mode.This keeps the issues about needing
-b
and having silent exit 0 ontsc
at the root, I've made a comment here to the TS team about this issue: microsoft/TypeScript#25600 (comment)Also in TS 5.6, we will need to add
tsbuildInfoFile
option: https://devblogs.microsoft.com/typescript/announcing-typescript-5-6-beta/#tsbuildinfo-is-always-written.For now this is an error without
incremental
orcomposite
.I'm in favor of adding it with incremental from now, but @dominikg felt like it was too much of an optimization for a starter