Deluze / electron-vue-template

Simple Vue3 + Electron starter template in TypeScript, including ViteJS and Electron Builder
MIT License
579 stars 108 forks source link

Adding vite/client to tsconfig.json #26

Closed TiagoSilvaPereira closed 2 years ago

TiagoSilvaPereira commented 2 years ago

Adding vite/client to tsconfig.json compiler options, as recommended on Vite docs: https://vitejs.dev/guide/features.html#client-types. It avoids the following errors when using tsc:

Property 'env' does not exist on type 'ImportMeta'

image

Deluze commented 2 years ago

Thanks for your pull request! Nice work 😄 I can't think of a reason why we shouldn't have this option enabled by default, so let's go!