v0.3.12
版本发布时间: 2023-11-14 18:34:19
web-infra-dev/rspack最新发布版本:v0.3.13(2023-11-15 21:30:09)
Highlight
[!CAUTION] Don't use this version, use 0.3.13 instead, this version contains a serious bug related to https://github.com/web-infra-dev/rspack/issues/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 https://github.com/web-infra-dev/rspack/pull/4591
- perf(@rspack/core): remove schema-utils by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/4593
Exciting New Features 🎉
- feat: should have null as placeholder in stats chunks before chunkIds by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/4549
- feat: support more minify options by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4554
- feat: support entryDescription.library by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4547
- feat: support webpackContextName for import context by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4570
- feat(example): vue2-tsx by @Y80 in https://github.com/web-infra-dev/rspack/pull/4573
- feat(runtime): alignment of commonjs exports dependency by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4572
- feat: deprecate splitChunks options by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4580
- feat: add module and context fields in loader context by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/4586
- feat(runtime): alignment of module runtime requirements by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4581
- feat(resolver): print detailed error messages for oxc_resolver (#4564) by @msdlisper in https://github.com/web-infra-dev/rspack/pull/4614
- feat: add auxiliary_files in js chunk by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/4636
Bug Fixes 🐞
- fix: deep insert runtime to splitted chunk by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4548
- fix: succeedModule hook panic when can't convert to jsModule by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4555
- fix: make builtin plugins class name consistent with webpack by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/4563
- fix: require.context should not fail when using
endWith
algo (#4557) by @hverlin in https://github.com/web-infra-dev/rspack/pull/4577 - fix: fix unsoundness of napi type detection by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4575
- fix: add the
./package.json
in the package.json's exports by @xfsnowind in https://github.com/web-infra-dev/rspack/pull/4543 - fix: tree shaking dfs_order test case. by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4574
- fix: avoid generate banner when there are not extract comment by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4592
- fix: fix url rewriting in css variables by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4606
- fix: fix infinite while loop when entry name contains '/' like 'routes/index' by @hardfist in https://github.com/web-infra-dev/rspack/pull/4610
- fix: warning for direct access import.meta by @OceanPresentChao in https://github.com/web-infra-dev/rspack/pull/4621
- fix(chunk_graph): chunkGraph insert if not present by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/4615
- fix: use original value when
import.style
is object by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/4616
Other Changes
- chore: adjust to 14 days for need reproduction label by @hardfist in https://github.com/web-infra-dev/rspack/pull/4561
- feat: support stats runtime modules by @faga295 in https://github.com/web-infra-dev/rspack/pull/4126
- chore: upload artifact use RUNNER_LABELS by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/4567
- refactor: remove cumbersome type conversions by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4569
- chore: fix
launch.json
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4598 - chore: auto assign author as assignee by @hardfist in https://github.com/web-infra-dev/rspack/pull/4599
- chore: fix auto-assign workflow by @hardfist in https://github.com/web-infra-dev/rspack/pull/4600
- chore(runtime-diff): alignment of compat get default export runtime module by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4607
- chore: move @rspack/dev-server from deps to devDeps by @9aoy in https://github.com/web-infra-dev/rspack/pull/4496
- chore: export more stats type for users use by @9aoy in https://github.com/web-infra-dev/rspack/pull/4604
- chore: add react-refresh to rspack-cli reference by @hardfist in https://github.com/web-infra-dev/rspack/pull/4608
- ci: disable minification for example/arco-pro to speed up CI by @Boshen in https://github.com/web-infra-dev/rspack/pull/4620
- chore: better debugging by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4611
- chore: remove goverance by @hardfist in https://github.com/web-infra-dev/rspack/pull/4627
- refactor(process_runtime_requirements): align api with webpack by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/4617
- chore: bump swc-emotion by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/4631
- refactor: AsyncDependenciesBlock by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4595
- ci: disable most of the optimization.minimize in examples to speed up CI by @Boshen in https://github.com/web-infra-dev/rspack/pull/4624
New Contributors
- @hverlin made their first contribution in https://github.com/web-infra-dev/rspack/pull/4577
- @Y80 made their first contribution in https://github.com/web-infra-dev/rspack/pull/4573
- @xfsnowind made their first contribution in https://github.com/web-infra-dev/rspack/pull/4543
- @msdlisper made their first contribution in https://github.com/web-infra-dev/rspack/pull/4614
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.3.11...v0.3.12