Vite already write on Typescript. But it still need running with npm. How to Setup running vite with deno?
Thx
Deno has a completely different runtime semantics and none of the npm dependencies that Vite relies on. It's also too early stage at this time.
@yyx990803
But it's also a great chance to make Deno more popular if popular JS libraries like Vue/Vite could support Deno (or at least be compatible with Deno). One of the biggest pain I found in the Node.js ecosystem is that there are too many NPM packages depends on commonjs and use require('...') dynamically, therefore those packages can't work well with bundlers like Rollup (and now Vite either).
Since Vite is a brand new project and there is no historical baggage for Vite, Why not embrace a brand new ecosystem without the commonjs issues and more friendly for TypeScript? I think it could be meaningful for both Vite and Deno.
It actually works already (you just need to do little change locally)
https://github.com/vitejs/vite/issues/714
Most helpful comment
@yyx990803
But it's also a great chance to make Deno more popular if popular JS libraries like Vue/Vite could support Deno (or at least be compatible with Deno). One of the biggest pain I found in the Node.js ecosystem is that there are too many NPM packages depends on commonjs and use
require('...')dynamically, therefore those packages can't work well with bundlers like Rollup (and now Vite either).Since Vite is a brand new project and there is no historical baggage for Vite, Why not embrace a brand new ecosystem without the commonjs issues and more friendly for TypeScript? I think it could be meaningful for both Vite and Deno.