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
export * as x from "..."
are never deferred
#7227
Comments
I am also having this issue. Basically what I want is to have something like this in export * as SomeExternalName from "./internal-module-with-exports; So that the consumer of the library can do: import { SomeExternalName } from "my-lib";
SomeExternalName.someFunction(); @mischnic Have you found a workaround? |
Are you seeing some error? This issue is about an optimization to include less unused code in the final bundle. |
I get this error:
|
Year, I guess that is in fact the issue that I am having. Thought they were related based on the title. |
Any update on this? |
🐛 bug report
export-namespace-as reexports are never deferred, even if they are statically unused.
🤔 Expected Behavior
If
b
isn't imported, thenexport * as b from "./other.js";
can be deferred.😯 Current Behavior
It's not deferred.
💁 Possible Solution
parcel/packages/core/core/src/AssetGraph.js
Line 390 in c8a64c9
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: