fix(browser): fix @rspack/browser failure after pure esm transformation#12781
fix(browser): fix @rspack/browser failure after pure esm transformation#12781Timeless0911 merged 2 commits intov2from
@rspack/browser failure after pure esm transformation#12781Conversation
✅ Deploy Preview for rspack-v2 canceled.
|
@rspack/browser failure after pure esm transformation
Rsdoctor Bundle Diff AnalysisFound 5 projects in monorepo, 5 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 react-10kPath:
📦 Download Diff Report: react-10k Bundle Diff 📁 react-1kPath:
📦 Download Diff Report: react-1k Bundle Diff 📁 react-5kPath:
📦 Download Diff Report: react-5k Bundle Diff 📁 ui-componentsPath:
📦 Download Diff Report: ui-components Bundle Diff 📁 romePath:
📦 Download Diff Report: rome Bundle Diff Generated by Rsdoctor GitHub Action |
📦 Binary Size-limit
🎉 Size decreased by 322.13KB from 47.99MB to 47.68MB (⬇️0.66%) |
Merging this PR will not alter performance
Comparing Footnotes
|
Summary
Fixes
@rspack/browserfailure after pure ESM transformation.rslib.browser.config.mtstorslib.browser.config.tscreateRequireusages from the code, sincecreateRequireis not available in browser environment.packages/rspack-browser/package.jsonexports to use./dist/index.js.Related links
Checklist