What's Changed
Performance Improvements ⚡
- perf: parallelize analyze module graph by @LingyuCoder in #11153
- perf: enhance native watcher with customizable ignore patterns by @GiveMe-A-Name in #11140
- perf: improve ensure min size fit by @LingyuCoder in #11181
- perf: improve prepare group by used exports by @LingyuCoder in #11180
- perf: improve calculate relation of code splitting by @LingyuCoder in #11159
- perf: replace rwlock with
atomic_refcell
by @CPunisher in #11177 - perf: improve calculate order index of code splitting by @LingyuCoder in #11195
- perf: improve code splitting by @LingyuCoder in #11179
- perf: improve process chunk groups for merging by @LingyuCoder in #11199
- perf: improve merge duplicate chunks plugin by @LingyuCoder in #11197
- perf: improve code splitting part 2 by @LingyuCoder in #11214
- perf: prepare module sizes for bundle splitting by @LingyuCoder in #11219
New Features 🎉
- feat: support moduleLayer for css-extract by @JSerFeng in #11193
- feat: build dependencies recursively collect dependencies by @jerrykingxyz in #11182
- feat: use zstd to cache compress by @stormslowly in #11176
- feat: implement Default trait for ExtendedStatsOptions struct by @ityuany in #11022
- feat(binding-builder): use full path to
napi
bindgen preludes by @h-a-n-a in #11212 - feat: rsdoctor native plugin calls the sourcemap plugin by @easy1090 in #11192
- feat: preserve all comments if user use externalize dynamic import by @JSerFeng in #11218
Bug Fixes 🐞
- fix: should not enable
exportedEnum
by default by @chenjiahan in #11169 - fix: correct cache option in tests by @JSerFeng in #11163
- fix(code-splitting): should add incoming blocks for async entrypoint by @JSerFeng in #11173
- fix(types): multi compiler can accept multiple watch options by @chenjiahan in #11174
- fix: persistent cache lose module build error by @jerrykingxyz in #11178
- fix: should return
resource
instead ofpath
in resolve by @colinaaa in #11194 - fix: should return
resource
inresolver.resolveSync
by @colinaaa in #11203 - fix(pnp): add yarn pnp support to read_dir by @elbywan in #11124
- fix: fix_issuers not clean cycled modules children by @jerrykingxyz in #11204
- fix: sri plugin should process async chunk in async entrypoints by @JSerFeng in #11207
- fix!: should abort the compilation when throwing error in make hook by @ahabhgk in #11213
- fix: do not use user_request to match external module by @JSerFeng in #11229
- fix: don't test
JAVASCRIPT_ASSET_REGEXP
iftest
is provided by @CPunisher in #11231 - fix: should invalidate if there is new entry modules by @JSerFeng in #11234
Refactor 🔨
- refactor: disable parallel code splitting by default by @JSerFeng in #11067
- refactor(webpack-test): use webpack runner for hot test cases by @stormslowly in #11158
Document Updates 📖
- docs: improve
resolve.conditionNames
documentation by @chenjiahan in #11216
Other Changes
- chore: release v1.4.10 by @chenjiahan in #11156
- revert: perf: napi communication (#11132) by @stormslowly in #11162
- chore: check lint warning in ci by @hardfist in #11167
- chore(deps): update Rspress to v2.0.0-beta.22 by @chenjiahan in #11165
- revert: "revert: perf: napi communication (#11132) (#11162)" by @SyMind in #11166
- chore(deps): update patch npm dependencies by @renovate[bot] in #11136
- chore: upgrade rspack_resolver to 0.6.1 by @stormslowly in #11175
- chore: use rslint to do typed linting by @hardfist in #11146
- chore(deps): update dependency zx to v8.7.1 by @renovate[bot] in #11188
- chore(deps): update dependency @swc/plugin-remove-console to v9 by @renovate[bot] in #11189
- chore(deps): update dependency memfs to v4.20.0 by @renovate[bot] in #11187
- chore: upgrade rslint to 0.0.9 by @hardfist in #11190
- chore: ignore rustc ice reports by @LingyuCoder in #11200
- chore: update binding js by @quanquan2100 in #11206
- chore(deps): update github-actions by @renovate[bot] in #11223
- chore(deps): update dependency @biomejs/biome to ^2.1.3 by @renovate[bot] in #11222
- chore: upgrade rslint to v0.0.15 by @hardfist in #11196
- chore(deps): update dependency @rslib/core to v0.11.0 by @renovate[bot] in #11186
- test: optimize the test for the rsdoctorPlugin's sourcemap tool by @easy1090 in #11227
New Contributors
- @elbywan made their first contribution in #11124
- @quanquan2100 made their first contribution in #11206
Full Changelog: v1.4.10...v1.4.11