-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Deno bundle not bundling imports #9200
Comments
cc/ @kdy1 |
kdy1
added a commit
to kdy1/swc
that referenced
this issue
Jan 21, 2021
kdy1
added a commit
to kdy1/swc
that referenced
this issue
Jan 21, 2021
kdy1
added a commit
to swc-project/swc
that referenced
this issue
Jan 25, 2021
swc_bundler: - Fix deglobbing of imports. (denoland/deno#8985) - Use correct syntax context while deglobbing imports. (denoland/deno#9212) - Allow reexporting from wrapped esms. (denoland/deno#8959, denoland/deno#9200) - Fix statement orderings. (denoland/deno#9250) - Emit injected items as early as possible. (denoland/deno#9250) - Respect `external_modules`. (#1338) - Fix cjs suppport. (#1328) swc_ecma_transforms_base: - hygiene: Fix for hoisting. (denoland/deno#9212)
Merged
The issue is resolved! Thank you for your hard work to get this fixed quickly! For anyone else that would like to use the fix now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to bundle my code for production it looks like some of the required code from the import is being optimized out.
Using
deno test
all the tests pass and everything works fine. It is just the bundling that is breaking.I was on 1.7.0 but after seeing #9176 I tried canary with no success.
Here is a simple gist to reproduce https://gist.github.com/larrybahr/0497bf1a419991e681987af505d54800Gist cleaned up after this was resolved, but here is the code for archiving purposes.
Running the code in browser results in

The text was updated successfully, but these errors were encountered: