rspack
rspack copied to clipboard
test: share webpackChunk of chunk loading across esm and jsdom
Summary
The esm and jsdom has different context and self["webpackChunk"] will be different instances that leads to chunk loading failure. So just share an array between these two vm context to make sure the loaded chunk can be found.
Related links
Checklist
- [ ] Tests updated (or not required).
- [ ] Documentation updated (or not required).
Deploy Preview for rspack ready!
| Name | Link |
|---|---|
| Latest commit | e90c8686b1fe2effcec2d8c2a4c3a2eefd6166dd |
| Latest deploy log | https://app.netlify.com/projects/rspack/deploys/6911b19fda18fb0008bb46c9 |
| Deploy Preview | https://deploy-preview-12141--rspack.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
📦 Binary Size-limit
Comparing
e90c868to fix: use real resource when export from external (#12136) by Fy
🙈 Size remains the same at 48.08MB
CodSpeed Performance Report
Merging #12141 will not alter performance
Comparing test/share-webpack-chunk (e90c868) with main (ae75bb5)
Summary
✅ 17 untouched