-
Notifications
You must be signed in to change notification settings - Fork 507
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
feat: add experimental deno-server
preset
#592
Conversation
Codecov Report
@@ Coverage Diff @@
## main #592 +/- ##
==========================================
+ Coverage 76.22% 76.57% +0.34%
==========================================
Files 68 69 +1
Lines 6953 7081 +128
Branches 684 705 +21
==========================================
+ Hits 5300 5422 +122
- Misses 1652 1657 +5
- Partials 1 2 +1
|
Waiting for refactor of rollup-plugin-deno to unenv and inline impl |
Okay, we're ready to go on deno. Sorry for the delay. If you want to test with a Nuxt project, make sure to transpile // https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
build: {
transpile: [/@vue/, /\bvue\b/]
}
}) Note: deno doesn't use the |
@danielroe in the next minor release of Deno, coming out in two weeks, Deno should be able to pick up |
While deno supporting |
The problem is that then we miss out on the great work with node compat from Deno - so |
@bartlomieju No, it's not a bug - there is no index route in the test fixture. Try |
Thanks. I just tried and they all seem to work. Sorry but I'm a bit confused now about the problem here. Is the problem that Deno doesn't install |
The problem is that Deno does install them. Nitro has produced a |
@pi0 I know you've approved this previously - is there anything I can do at this point to help get this PR over the line? |
@pi0 Let me know when you are ready to review and I will happily resolve merge conflicts π |
deno-server
preset
β Live Preview ready!
|
I have made few refactors to keep I think we can move forward since it basically works but there are two important things:
|
@pi0 sorry for a slow response, I missed notitication in my inbox. Is there something we can do on Deno side to make it easier for you folks to handle the problem? Could we somehow limit what is discovered from |
π Linked issue
resolves #422
β Type of change
π Description
This PR adds a deno preset + deno server entry. You can see it in assembled action in a Nuxt project in https://github.com/danielroe/nuxt-deno - just run
pnpm i && pnpm build && pnpm preview
.Questions in my mind:
How appropriate is it for us to set version constraints on the deno imports we are generating? Should there be any at all? Should they be generated at build time, if so, or versioned with nitro?Is there a different/better way to consume node imports other than tracing? Could we avail ourselves of a Deno CDN instead?Thoughts and feedback very welcome @bartlomieju.
π Checklist