-
Notifications
You must be signed in to change notification settings - Fork 733
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
🚀 Feature Request: Add support for shims when no-bundling is applied #3074
Comments
For example the Nuxt team would like to use dynamic imports in their worker adaptor: nitrojs/nitro#1172 cc. @danielroe |
Can we please do this for |
Related: #2966 |
As a quick update, #3595 removed the D1 shim from Wrangler, allowing it to be used with |
Does #3726 WIP PR address this feature request? |
@IgorMinar yes, I believe so. You should be able to enable bundling, but then specify a set of modules you don't want to be bundled. 👍 |
Closed by #3726 |
Describe the solution
When the
--no-bundle
flag is used for building a worker we don't apply our shims like for example the D1 one or the sites/assets ones.This makes it impossible for example not to bundle a worker but still use sites in it.
We need a way to provide such shims as this would make for example using lazy loading extremely limited.
The text was updated successfully, but these errors were encountered: