-
Notifications
You must be signed in to change notification settings - Fork 511
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
fix(worker): preserve esmodule symbol for dynamic imports #354
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
Note: this also affects vercel-edge
and netlify-edge
(in addition to cloudflare) which will currently be broken without this fix.
I tried to add the config in my nuxt app here LeducIT/captime-website@da09bdb I'm not sure that exactly related. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I couldn't test it but trust works. For the future fixes, it would be nice to link nitro PRs with minimal reproduction (of a nitro app) ππΌ |
Thank you. This solution fixed my cloudflare-deployed Nuxt app. |
π Linked issue
β Type of change
π Description
iife inlined all dynamic imports but name tag is not preserved so it is not recognized by vue defineAsyncComponent correctly as an esmodule for all dynamic chunks such as pages / layouts.
Enabling the rollup option fixes the issue.
π Checklist
nuxt/nuxt#14350