We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Rollup now treeshakes dynamically imported modules in a lot of cases, which is brilliant, but there are a couple of important cases where it de-opts:
maths.js
export const square = x => x * x; export const double = x => x * 2;
These cases will not treeshake:
const module = await import('./maths.js'); module.square(4);
Demo
const square = await import('./maths.js').then((m) => m.square); square(4);
This is unexpected, because the static equivalent treeshakes.
Treeshake pls 😄
The text was updated successfully, but these errors were encountered:
TrickyPi
No branches or pull requests
Feature Use Case
Rollup now treeshakes dynamically imported modules in a lot of cases, which is brilliant, but there are a couple of important cases where it de-opts:
maths.js
These cases will not treeshake:
Demo
Demo
This is unexpected, because the static equivalent treeshakes.
Feature Proposal
Treeshake pls 😄
The text was updated successfully, but these errors were encountered: