Vite: Vite can support deno runtime?

Created on 10 May 2020  路  3Comments  路  Source: vitejs/vite

Vite already write on Typescript. But it still need running with npm. How to Setup running vite with deno?

Thx

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.

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hyingreborn picture hyingreborn  路  3Comments

tbgse picture tbgse  路  4Comments

wobsoriano picture wobsoriano  路  4Comments

maxxcs picture maxxcs  路  3Comments

ashubham picture ashubham  路  3Comments