-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vite can support deno runtime? #109
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 |
It actually works already (you just need to do little change locally) |
@cztomsik I think that's an entirely different use of deno and vite together than what this issue is about. Both are valuable. I am pretty sure this issue is about running a vite server with Deno. Yours is about importing the output of the Vite server into Deno. I think maybe your particular issue should be fixed by Deno rather than Vite. If you can't convince them because their idea of zero-config means importing something without an extension will always assume it's TypeScript, well that's too bad for the Deno project. |
@cztomsik not all is lost if Deno won't make that change, though - I think a vite plugin might be able to make it work, and if not, perhaps a separate PR that would make the plugin system powerful enough to allow this would get merged in. |
vite distingue two thing deps and src code |
I think perhaps that generating code to be run by Deno is just as outside of scope for Vite as getting it to run on Deno. It probably would be useful for Deno to have something like Vite to bundle modules, but it isn't aligned with the goals of Vite. I'm interested in both Vite and Deno, and I think it would be interesting if a new project were built for Deno that is similar to Vite. Since it would have its own goals, the developers could design it to build code to run on Deno in addition to browsers. |
@benatkin I don't know if it's similar somehow to Vite (because I'm still testing it) but there is this alternative: https://github.com/open-source-labs/vno |
This issue gets locked because it has been closed for more than 14 days. |
Vite already write on Typescript. But it still need running with npm. How to Setup running vite with deno?
Thx
The text was updated successfully, but these errors were encountered: