Skip to content
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

feat: support tree shaking with awaiting dynamic import #7230

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

LingyuCoder
Copy link
Collaborator

Summary

Close #5551

Support tree shaking while awaiting dynamic import, just like webpack

(async function() {
	const { a, b } = import("./lib");
    // only export ["a", "b"] were imported
})();

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added team The issue/pr is created by the member of Rspack. release: feature release: feature related release(mr only) labels Jul 19, 2024
Copy link

netlify bot commented Jul 19, 2024

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 1588b3f
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/669a21c4c2d39a0008cde254

@LingyuCoder LingyuCoder enabled auto-merge (squash) July 19, 2024 08:50
@LingyuCoder LingyuCoder merged commit 4846c54 into main Jul 19, 2024
33 checks passed
@LingyuCoder LingyuCoder deleted the feat/dynamic-import-tree-shaking-await branch July 19, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: feature release: feature related release(mr only) team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dynamic import tree shaking
2 participants