rspack icon indicating copy to clipboard operation
rspack copied to clipboard

test: share webpackChunk of chunk loading across esm and jsdom

Open LingyuCoder opened this issue 3 weeks ago • 3 comments

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).

LingyuCoder avatar Nov 10 '25 09:11 LingyuCoder

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Nov 10 '25 09:11 netlify[bot]

📦 Binary Size-limit

Comparing e90c868 to fix: use real resource when export from external (#12136) by Fy

🙈 Size remains the same at 48.08MB

github-actions[bot] avatar Nov 10 '25 09:11 github-actions[bot]

CodSpeed Performance Report

Merging #12141 will not alter performance

Comparing test/share-webpack-chunk (e90c868) with main (ae75bb5)

Summary

✅ 17 untouched

codspeed-hq[bot] avatar Nov 10 '25 10:11 codspeed-hq[bot]