title: How to add typescript to Vue 3 and Vite project
body: <p>My setup: I installed Vue and Vite via the <em>create-vite-app</em> module, and then updated all the packages that was generated by 'init vite-app' to the very latest RC versions for Vue and Vite.</p>
  <p>Now I want to use typescript for all my code. First I just played around a little bit, and added the <em>lang=&quot;ts&quot;</em> to the  tag in <em>HelloWorld.vue</em>. That seems to work, though I have no idea how typescript gets transpiled from the vue file though.</p>
  <p>Then I tried to rename the <em>main.js</em> to <em>main.ts</em>. Now nothing happen.</p>
  <p>I was thinking that I just need to install typescript, but then it hit me, why is it working in the <em>.vue</em> component then? Am I doing something wrong if I install typescript now?</p>
  <p>Why does typescript work in the vue module (HelloWorld), but no js is generated from the *.ts file?</p>