feat: simple typescript support
This is great, but I think TS's transpilation itself is too slow for dev purposes, especially for a speed-focused dev. server like vite. There are a number of alternative (and much faster) TS -> ESnext compilers available (e.g. Surcrase, esbuild, swc) and I'm still researching what is the best compiler to use in vite.
Also, what's the expected result when TypeScript is being used? Should the server only strip types, and we leave the type checking to an IDE? Or should the server send back 500 errors (or something) to help the dev experience in catching type errors?
Closing since we are using esbuild
which is faster. It also aligns better with vite
's transpile-only scope.
@yyx990803 . I change my pr code with use esbuild
yesterday, Maybe you are not pay attention to this.and I find ts still not suppoted after I pull the master code just now.