-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Add support for specified tsconfig
file
#10531
Comments
I think there's already |
Yes. But what if we prefer config file, especially using |
In that case, using tsconfck will work as a workaround. |
I made another workaround, a small Vite plugin that copies your other tsconfig to |
I'd like to specify the tsconfig.json file vite should use (and I also expect it to be watched for changes). We have 2 files:
I'm using this workaround right now. For example, changes to tsconfig.json will not trigger a rebuild (although to be fair, this is complicated further by
Even after reading the tsconfck README, I'm not sure how to do this?
This seems very dangerous, I'd imagine this could break in a number of scenarios. I feel it is the responsibility of vite to load (and watch) tsconfig from a specified path and passing it to esbuild in
|
Description
There is no way to specify a tsconfig file for vite now.
See related Discussions:
#8483
#4333
#3939
Suggested solution
Provide a field named
tsconfig
inesbuild
field of vite config.Basically, we can pass this field to here:
vite/packages/vite/src/node/plugins/esbuild.ts
Line 110 in 8d0a9c1
Alternative
No response
Additional context
I'm glad to implement this feature.
Validations
The text was updated successfully, but these errors were encountered: