Highlights 💡
Faster Startup 🚀
The Node.js code from @rspack/core
is now bundled into a single bundle, making Rspack startup 30ms faster.
Benchmark 1 (Rspack 1.0.10)
Time (mean ± σ): 370.5 ms ± 12.1 ms [User: 412.9 ms, System: 68.1 ms]
Range (min … max): 357.9 ms … 395.1 ms 10 runs
Benchmark 2 (Rspack 1.0.11)
Time (mean ± σ): 335.4 ms ± 2.6 ms [User: 380.3 ms, System: 59.0 ms]
Range (min … max): 331.8 ms … 339.1 ms 10 runs
What's Changed
Performance Improvements ⚡
- perf: bundle
@rspack/core
for faster startup by @chenjiahan in #8072 - perf(rspack_core): replace
HASH_PLACEHOLDER_REGEX
with simple string parsing by @shulaoda in #7907 - perf: add cache for getting sideEffectState by @JSerFeng in #8070
Exciting New Features 🎉
- feat(core): bump swc to 1.0.0 by @hardfist in #8104
- feat(rspack_plugin_copy): Set source_filename and copied flag when copying an asset by @ramon-villain in #8077
Bug Fixes 🐞
- fix: avoid renaming the export name when outputting a library by @inottn in #8046
- fix(ci/preview-commit): remove predicate-quantifier by @shulaoda in #8091
- fix: return url in CreateScriptUrlRuntimeModule by @LingyuCoder in #8088
- fix: css module should not calculate id by @JSerFeng in #8084
- fix: avoid extra runtime for get javascript chunk filename by @inottn in #8099
- fix: generate code correctly for dynamically importing the same file by @inottn in #8100
Other Changes
- test: disable unstable test case of rspack-cli by @LingyuCoder in #8086
- chore: polish CSS HMR logs and correct the case by @chenjiahan in #8083
- chore(deps): update npm dependencies by @renovate in #7976
- refactor: remove connection id by @jerrykingxyz in #8089
- test(plugin-test): support for reference Rspack source modules by @chenjiahan in #8105
- refactor: add JSDoc & types to improve Rspack configuration.output types. by @GiveMe-A-Name in #8107
- chore(website/deps): bump Rspress 1.33.1 by @SoonIter in #8112
New Contributors
- @ramon-villain made their first contribution in #8077
Full Changelog: v1.0.10...v1.0.11