My setup: I installed Vue and Vite via the create-vite-app module, and then updated all the packages that was generated by 'init vite-app' to the very latest RC versions for Vue and Vite.
Now I want to use typescript for all my code. First I just played around a little bit, and added the lang="ts" to the tag in HelloWorld.vue. That seems to work, though I have no idea how typescript gets transpiled from the vue file though.
Then I tried to rename the main.js to main.ts. Now nothing happen.
I was thinking that I just need to install typescript, but then it hit me, why is it working in the .vue component then? Am I doing something wrong if I install typescript now?
Why does typescript work in the vue module (HelloWorld), but no js is generated from the *.ts file?
create-vite-app
, I would dogit clone https://github.com/ktsn/vite-typescript-starter.git
, which uses the latest version of Vue 3 and Vite.