Highlight
Caution
Don't use this version, use 0.3.13 instead, this version contains a serious bug related to #4643
support EntryDescription.library
Bundling this entry as a library, and allows you to configure the library format through this option, enabling the generation of different module formats (CommonJS, global variable, ESModule, etc.). This flexibility ensures that your code can be easily used in various environments. Additionally, this feature serves as a prerequisite for Module Federation.
What's Changed
Performance Improvements ⚡
- perf(plugin-react-refresh): remove schema-utils by @chenjiahan in #4591
- perf(@rspack/core): remove schema-utils by @chenjiahan in #4593
Exciting New Features 🎉
- feat: should have null as placeholder in stats chunks before chunkIds by @JSerFeng in #4549
- feat: support more minify options by @h-a-n-a in #4554
- feat: support entryDescription.library by @ahabhgk in #4547
- feat: support webpackContextName for import context by @bvanjoi in #4570
- feat(example): vue2-tsx by @Y80 in #4573
- feat(runtime): alignment of commonjs exports dependency by @LingyuCoder in #4572
- feat: deprecate splitChunks options by @h-a-n-a in #4580
- feat: add module and context fields in loader context by @JSerFeng in #4586
- feat(runtime): alignment of module runtime requirements by @LingyuCoder in #4581
- feat(resolver): print detailed error messages for oxc_resolver (#4564) by @msdlisper in #4614
- feat: add auxiliary_files in js chunk by @JSerFeng in #4636
Bug Fixes 🐞
- fix: deep insert runtime to splitted chunk by @bvanjoi in #4548
- fix: succeedModule hook panic when can't convert to jsModule by @IWANABETHATGUY in #4555
- fix: make builtin plugins class name consistent with webpack by @chenjiahan in #4563
- fix: require.context should not fail when using
endWith
algo (#4557) by @hverlin in #4577 - fix: fix unsoundness of napi type detection by @h-a-n-a in #4575
- fix: add the
./package.json
in the package.json's exports by @xfsnowind in #4543 - fix: tree shaking dfs_order test case. by @IWANABETHATGUY in #4574
- fix: avoid generate banner when there are not extract comment by @bvanjoi in #4592
- fix: fix url rewriting in css variables by @h-a-n-a in #4606
- fix: fix infinite while loop when entry name contains '/' like 'routes/index' by @hardfist in #4610
- fix: warning for direct access import.meta by @OceanPresentChao in #4621
- fix(chunk_graph): chunkGraph insert if not present by @JSerFeng in #4615
- fix: use original value when
import.style
is object by @bvanjoi in #4616
Other Changes
- chore: adjust to 14 days for need reproduction label by @hardfist in #4561
- feat: support stats runtime modules by @faga295 in #4126
- chore: upload artifact use RUNNER_LABELS by @jerrykingxyz in #4567
- refactor: remove cumbersome type conversions by @h-a-n-a in #4569
- chore: fix
launch.json
by @h-a-n-a in #4598 - chore: auto assign author as assignee by @hardfist in #4599
- chore: fix auto-assign workflow by @hardfist in #4600
- chore(runtime-diff): alignment of compat get default export runtime module by @LingyuCoder in #4607
- chore: move @rspack/dev-server from deps to devDeps by @9aoy in #4496
- chore: export more stats type for users use by @9aoy in #4604
- chore: add react-refresh to rspack-cli reference by @hardfist in #4608
- ci: disable minification for example/arco-pro to speed up CI by @Boshen in #4620
- chore: better debugging by @h-a-n-a in #4611
- chore: remove goverance by @hardfist in #4627
- refactor(process_runtime_requirements): align api with webpack by @JSerFeng in #4617
- chore: bump swc-emotion by @JSerFeng in #4631
- refactor: AsyncDependenciesBlock by @ahabhgk in #4595
- ci: disable most of the optimization.minimize in examples to speed up CI by @Boshen in #4624
New Contributors
- @hverlin made their first contribution in #4577
- @Y80 made their first contribution in #4573
- @xfsnowind made their first contribution in #4543
- @msdlisper made their first contribution in #4614
Full Changelog: v0.3.11...v0.3.12