v2.2.2
Added 2
- Add infrastructure logging to the new cache
- Add JavascriptModulesPlugin.getChunkFilenameTemplate
Changed 4
- Optimize deterministic module id assignment
- Share runtimes in flag dependency usage
- Optimize module rendering for chunk assets
- Optimize create module hashes
Fixed 9
- Generate correct prefetch child assets
- Keep import.meta.url in createRequire when importMeta is disabled
- Align module need_build and FileSystemInfo with webpack
- Support all EnvironmentPlugin default values
- Improve incremental chunk graph reuse
- Await patch delivery before sealing completes in rsdoctor
- Ignore exportsOnly in local ident hashes for CSS
- Fallback eval devtools for modern-module
- Report diagnostics for unsupported context modes
From rspack
What's Changed
New Features 🎉
- feat(cache): add intrastructure logging to the new cache by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/15338
- feat(javascript): add JavascriptModulesPlugin.getChunkFilenameTemplate by @kakiuwang-ui in https://github.com/web-infra-dev/rspack/pull/15280
Performance 🚀
- perf(ids): optimize deterministic module id assignment by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15393
- perf: share runtimes in flag dependency usage by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15388
- perf(core): optimize module rendering for chunk assets by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15394
- perf(core): optimize create module hashes by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15396
Bug Fixes 🐞
- fix(stats): generate correct prefetch child assets by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15208
- fix: keep import.meta.url in createRequire when importMeta is disabled by @lazerg in https://github.com/web-infra-dev/rspack/pull/15273
- fix(core): align module need_build and FileSystemInfo with webpack by @hardfist in https://github.com/web-infra-dev/rspack/pull/15374
- fix(types): support all EnvironmentPlugin default values by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15382
- fix: improve incremental chunk graph reuse by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15373
- fix(rsdoctor): await patch delivery before sealing completes by @kakiuwang-ui in https://github.com/web-infra-dev/rspack/pull/15399
- fix(css): ignore exportsOnly in local ident hashes by @mattcosta7 in https://github.com/web-infra-dev/rspack/pull/15364
- fix: fallback eval devtools for modern-module by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/15404
- fix: report diagnostics for unsupported context modes by @dr4gan0x in https://github.com/web-infra-dev/rspack/pull/15361
Refactor 🔨
- refactor(loader): reuse filesystem snapshots for cache dependencies by @intellild in https://github.com/web-infra-dev/rspack/pull/15366
- refactor(core): remove BuildInfo clone by @hardfist in https://github.com/web-infra-dev/rspack/pull/15377
Document 📖
- docs: correct compact hashed API names by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15358
- docs: improve built-in plugin overview and examples by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15354
- docs: move webpack attribution to page footer by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15365
- docs: improve low-level plugin documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15368
- docs: update webpack plugin compatibility by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15369
- docs: remove version info before Rspack 1.3.0 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15371
- docs: standardize plugin documentation structure by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15378
- docs: improve BannerPlugin option documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15392
- docs: improve IgnorePlugin documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15395
- docs: improve plugin option documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15398
- docs: remove extra code block spacing in collapse panels by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15403
- docs: improve ContextReplacementPlugin documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15410
- docs: improve CssExtractRspackPlugin documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15411
- docs: improve HtmlRspackPlugin documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15412
- docs: improve HTML plugin guidance by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15414
Other Changes
- chore(deps): update dependency @microsoft/api-extractor to ^7.59.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15385
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15383
- chore: replace Rstack CLI skill by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15387
- chore(deps): update dependency @module-federation/runtime-tools to v2.9.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15386
- chore(deps): update dependency jest-diff to ^30.5.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15389
- chore(deps): update dependency pretty-format to v30.5.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15390
- chore(release): bump all published crates in crate-version by @stormslowly in https://github.com/web-infra-dev/rspack/pull/15367
- ci: refresh self-hosted cache action reference by @deanjingshui in https://github.com/web-infra-dev/rspack/pull/15407
- chore: use heading-case as a formatter plugin by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/15405
- chore(deps): update github-actions by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/15413
- chore(ci): validate website builds for fork pull requests by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/15408
New Contributors
- @mattcosta7 made their first contribution in https://github.com/web-infra-dev/rspack/pull/15364
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.2.1...v2.2.2