Highlights 💡
Explicit Resource Management
Rspack now supports the "using" declaration.
This enables the explicit resource management feature in ECMAScript, making resource cleanup more straightforward ✨

Learn more: using - MDN
What's Changed
Performance Improvements ⚡
- perf: Replace hot regex with parser by @quininer in #11341
- perf: use new swc lexer for asi by @CPunisher in #11357
- perf: improve bundle splitting by @LingyuCoder in #11364
New Features 🎉
- feat: lazy compilation with persistent cache by @JSerFeng in #11235
- feat: define plugin use value dependencies by @jerrykingxyz in #11339
- feat(rslib): do not hoist
import
externalized module to webpack modules by @fi3ework in #11358 - feat: port normal module replacement plugin to builtin plugin by @ahabhgk in #11362
- feat: support
[folder]
template string inlocalIdentName
option by @mochiya98 in #11356 - feat: provide plugin use value dependencies by @jerrykingxyz in #11380
- feat: support using declaration by @ahabhgk in #11395
- feat: should rebuild all entries if there are entry removals by @JSerFeng in #11381
Bug Fixes 🐞
- fix: add unknown_context_critical option for unknown require as expression by @PeterCardenas in #10329
- fix(incremental): LimitChunkCountPlugin panic with incremental turned on by @pgoldberg in #11360
- fix(loader): fix JS loader type detection for issue #11129 by @h-a-n-a in #11361
- fix(cli): resolve port conflicts in parallel test execution by @h-a-n-a in #11363
- fix: modify lazy compilation tests by @JSerFeng in #11349
- fix: should use specific runtime to get target url by @JSerFeng in #11372
- fix(wasm): remove cjs loader support by @CPunisher in #11283
- fix: cache concatenated module imports is not safe by @LingyuCoder in #11385
- fix: add query to avoid browser cache the link by @JSerFeng in #11394
- fix: fix identifier typo by @JSerFeng in #11403
- fix: correct export alias for json by @inottn in #11402
Refactor 🔨
- refactor: move builtin virtual module plugin to experiments by @stormslowly in #11353
- refactor: inline const parser plugin by @ahabhgk in #11359
- refactor: distinguish free variable and tagged variable by @ahabhgk in #11389
- refactor: rspack error remove useless code by @jerrykingxyz in #11406
Document Updates 📖
- docs(config): output.filename link fix by @vsn4ik in #11369
- docs: update examples and terminology by @chenjiahan in #11374
- docs: fix typos in asset modules by @colinaaa in #11382
- docs: add playground to navbar by @CPunisher in #11384
- docs(website): restructure navigation and update sidebar config by @chenjiahan in #11386
- docs: remove outdated Node version requirements from quick start by @chenjiahan in #11393
- docs: update ts config guide by @hardfist in #11409
Other Changes
- chore(deps): update dependency @module-federation/runtime-tools to v0.18.0 by @renovate[bot] in #11322
- chore(ci): fix flaky serve test by @quininer in #11352
- chore(ci): fix flaky serve test (take 2) by @quininer in #11355
- chore(deps): update dependency @shikijs/transformers to ^3.9.2 by @renovate[bot] in #11367
- chore(deps): update github-actions by @renovate[bot] in #11365
- chore(deps): update dependency @types/babel__traverse to v7.28.0 by @renovate[bot] in #11368
- chore(deps): update dependency core-js to v3.45.0 by @renovate[bot] in #11370
- chore: build http test case avoid send http request by @jerrykingxyz in #11375
- chore: Use macro instead of runtime debug_assert by @quininer in #11379
- chore: remove
@rsbuild/core
by @CPunisher in #11383 - chore: upgrade rslint to 0.1.11 by @hardfist in #11396
- chore(browser): fix generated types by @CPunisher in #11388
- chore(deps): update pnpm to v10.14.0 by @renovate[bot] in #11399
- chore(deps): update dependency @rslib/core to v0.12.1 by @renovate[bot] in #11397
- chore(deps): update dependency rsbuild-plugin-open-graph to v1.1.0 by @renovate[bot] in #11398
- chore(deps): update lightningcss crate to 1.0.0-alpha.67 by @chenjiahan in #11405
New Contributors
- @PeterCardenas made their first contribution in #10329
- @vsn4ik made their first contribution in #11369
- @mochiya98 made their first contribution in #11356
Full Changelog: v1.5.0-beta.0...v1.5.0-beta.1