antfu-collective / vitesse

🏕 Opinionated Vite + Vue Starter Template
https://vitesse.netlify.app/
MIT License
8.79k stars 932 forks source link

tsconfig.json configuration in Vue project #497

Closed kirklin closed 1 year ago

kirklin commented 1 year ago

Discussed in https://github.com/antfu/vitesse/discussions/496

Originally posted by **kirklin** May 16, 2023 https://vuejs.org/guide/typescript/overview.html#configuring-tsconfig-json I noticed that the Vue documentation mentions some details about configuring tsconfig.json, including various options and project references. In particular, there is an important configuration option mentioned: compilerOptions.isolatedModules, which is set to true because Vite uses esbuild for TypeScript transpilation and is subject to single-file transpile limitations. However, I noticed that this option is not configured in our project's tsconfig.json. I'm wondering if this is an omission or if this option is not necessary for our project. Could you provide some explanation or guidance to help us better understand and configure TypeScript options?