You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made another workaround, a small Vite plugin that copies your other tsconfig to tsconfig.json before the build, and removes it after. It's vite-plugin-custom-tsconfig
Activity
sapphi-red commentedon Oct 20, 2022
I think there's already
tsconfigRawproperty.https://stackblitz.com/edit/vitejs-vite-in7pn4?file=vite.config.js&terminal=dev
ylc395 commentedon Oct 20, 2022
Yes. But what if we prefer config file, especially using
extends?sapphi-red commentedon Oct 20, 2022
In that case, using tsconfck will work as a workaround.
EdieLemoine commentedon Nov 17, 2022
I made another workaround, a small Vite plugin that copies your other tsconfig to
tsconfig.jsonbefore the build, and removes it after. It's vite-plugin-custom-tsconfig