What's Changed
Performance Improvements ⚡
- perf(build): custom Rslib minify options for
@rspack/core
by @Timeless0911 in #10048 - perf(hash): avoid heap allocations in hash by @quininer in #10060
- perf: trivial static variable improve by @quininer in #10113
- perf(core): remove json-parse-even-better-errors dependency by @chenjiahan in #10122
- perf: define Rspack version to reduce require calls by @chenjiahan in #10121
Exciting New Features 🎉
- feat: rsdoctor module object add issuerPath property by @easy1090 in #10007
- feat: persistent cache snapshot save file hash by default by @jerrykingxyz in #10050
- feat: asset info support symbol key by @SyMind in #9871
- feat(core): remove otel tracing support by @hardfist in #10067
- feat: support svg-chunk-webpack-plugin by @LingyuCoder in #10066
- feat: swc loader support emitAssertForImportAttributes config by @fireairforce in #9826
- feat: improve lightningcss minimize warning by @SyMind in #10103
Bug Fixes 🐞
- fix(incremental): chunk id change should affect associate chunk by @ahabhgk in #10032
- fix(wasm): shutdown async runtime and thread workers after finishing by @CPunisher in #9895
- fix: remove progressbar instance when closing compiler by @LingyuCoder in #10034
- fix: should not rename webpack_require if declared in current scope by @JSerFeng in #10016
- fix: should rename webpack_require pat in parameters by @JSerFeng in #10036
- fix: failed to resolve tinypool when using parallel loader by @chenjiahan in #10040
- fix: require with string raw by @SyMind in #10047
- fix: dev server types by @LingyuCoder in #10038
- fix: async entry should have unique runtime by @JSerFeng in #10049
- fix(incremental): revoked module shouldn't exist in built modules by @ahabhgk in #10051
- fix: conflict hot update main content warning by @ahabhgk in #10059
- fix: should remove module napi_ref after finish make by @SyMind in #10062
- fix: should validate options of builtin swc loader by @LingyuCoder in #10055
- fix: context dependency with complex require by @SyMind in #10028
- fix: import module entry dependency resolve options by @LingyuCoder in #10070
- fix(cli): remove JSCPU & LOGGING support by @hardfist in #10071
- fix: allow lazyCompilation.serverUrl to end with slash by @chenjiahan in #10074
- fix: should have correct interop for default exportsType by @JSerFeng in #10069
- fix: ThreadsafeOneShotRef prevents event loop destroy by @SyMind in #10082
- fix: allow assignment of
require
identifier by @inottn in #10093 - fix(cli): simplify RSPACK_PROFILE by @hardfist in #10072
- fix: compilation.chuks not corresponds to a unique jsobect by @SyMind in #10098
- fix: hmr should not include unchanged module when adding a new runtime by @ahabhgk in #10061
- fix: comma in regex value of magic comments by @LingyuCoder in #10100
- fix(wasm): add wasm fallback in
checkVersion
by @CPunisher in #10097 - fix(diagnostic): fix excessively large width causing
format_args
panics by @h-a-n-a in #10109 - fix(pnp): resolved wrong description file in yarn pnp mode by @stormslowly in #10111
- fix: use evaluate expression to extract hmr accept dependencies by @ahabhgk in #10107
- fix: compilation chunks for each is undefined by @SyMind in #10112
- fix: should skip rebuilding chunk graph if only specifier order change by @JSerFeng in #10104
- fix(incremental): fallback when chunk depend on full hash by @ahabhgk in #10110
- fix(core): fix async event tracing showing in perfetto by @hardfist in #10119
Document Updates 📖
- docs: enhance Rsdoctor analysis guide by @chenjiahan in #10035
- docs: lightningcss errorRecovery option by @SyMind in #10077
- docs: rewrite tracing section by @hardfist in #10099
- docs: fix tracing title by @hardfist in #10106
- docs: update banner image by @chenjiahan in #10114
- docs: add
optimization.removeAvailableModules
config by @chenjiahan in #10115
Other Changes
- chore: release v1.3.5 by @h-a-n-a in #10031
- chore: bump swc version to 22.4.0 by @GiveMe-A-Name in #10033
- chore: use Rslib to bundle
@rspack/core
by @Timeless0911 in #9899 - test: cacheCases update dynamic file by write by @jerrykingxyz in #10039
- chore(deps): update npm dependencies by @renovate in #9918
- chore(deps): update github-actions by @renovate in #10042
- chore(deps): update dependency @module-federation/runtime-tools to v0.12.0 by @renovate in #10046
- chore(deps): update dependency @arco-design/web-react to ^2.66.1 by @renovate in #10045
- chore(deps): update npm dependencies by @renovate in #10043
- chore: keep debugger in rspack bundle by @hardfist in #10054
- ci: lock cargo shear version by @jerrykingxyz in #10052
- chore: merge rust & js loader & CPU Profiling together by @hardfist in #10009
- chore(deps): update dependency webpack to v5.99.5 by @renovate in #10002
- revert: lightningcss loader error recovery default value by @SyMind in #10076
- Add minSizeReduction to SplitChunks CacheGroup by @kbruccoleri in #10073
- chore(deps): update rspress to v2.0.0-alpha.12 by @renovate in #10087
- chore(deps): update dependency jsdom to ^26.1.0 by @renovate in #10090
- chore(deps): update dependency mime-types to v3 by @renovate in #10091
- chore(deps): update yarn to v4 by @renovate in #10096
- chore(deps): update github-actions (major) by @renovate in #10095
- chore(deps): update react to ^19.1.0 by @renovate in #10094
- refactor: improve render external module for module output by @JSerFeng in #10080
- chore: add tracing for hook call in define_hook macro by @ahabhgk in #10064
- test: fix Jest haste module naming collision by @chenjiahan in #10105
- chore: fork tracing-chrome for better support for perfetto by @hardfist in #10102
- chore: add back wasm build check by @stormslowly in #10053
- refactor(incremental): use ChunkSetHashes for chunk render by @ahabhgk in #10117
- chore: disable hook macro tracing by default by @ahabhgk in #10120
- ci: add more JS extensions to workflow filters and format script by @stormslowly in #10123
- Revert "refactor: improve render external module for module output" by @JSerFeng in #10126
- chore(deps): bump Rslib 0.6.6 by @Timeless0911 in #10129
- chore(deps): update dependency @module-federation/runtime-tools to v0.13.0 by @renovate in #10133
- chore(deps): update rspress to v2.0.0-beta.0 by @renovate in #10132
- chore(deps): update dependency webpack to v5.99.6 by @renovate in #10130
- chore(deps): update npm dependencies by @renovate in #10131
- chore(deps): bump Rslib 0.6.7 by @Timeless0911 in #10134
New Contributors
- @kbruccoleri made their first contribution in #10073
Full Changelog: v1.3.5...v1.3.6