-
-
Notifications
You must be signed in to change notification settings - Fork 746
fix: esm output chunk module missing load dependent chunks #11945
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
Conversation
✅ Deploy Preview for rspack canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes ESM output chunk module dependency loading by ensuring that dependent chunks are properly loaded during entry startup. This aligns the behavior with webpack's implementation (PR #19619) and addresses a false-passing test case.
Key Changes
- Added startup rendering hook to handle dependent chunk loading
- Implemented import statement generation for dependent chunks in ESM format
- Added logic to install dependent chunks using runtime globals during startup
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
📦 Binary Size-limit
❌ Size increased by 5.88KB from 47.82MB to 47.83MB (⬆️0.01%) |
CodSpeed Performance ReportMerging #11945 will not alter performanceComparing Summary
|
Summary
Align with webpack/webpack#19619, adding dependent chunks loading in the entry's startup.
The former test case
configCases/module/split-chunks-without-externals/index.jsis a false passing.So an E2E case is added to ensure the functionality.
Related links
Checklist