Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Performance Improvements ⚡
In version 1.0.0-beta.0 we have made a number of performance optimizations, which together add up to significant performance gains. According to benchmark data, Rspack's dev startup is 4.7% faster, and its prod build is 11% faster.
Detailed changes:
Stats
by @h-a-n-a in perf: reduce allocation forStats
#7124ModuleRule
matching by @h-a-n-a in perf: reduce allocation forModuleRule
matching #7249JavascriptParser::new
by @h-a-n-a in perf: reduce large pre-allocations forJavascriptParser::new
#7286Ukey
s by @ahabhgk in perf: faster hasher forUkey
s #7287Breaking Changes 🛠
Upgraded to latest SWC
@rspack/core
now depends onswc_core
v0.99 (previously v0.96).If your project is using the SWC Wasm plugin, this will be a breaking change, and you will need to upgrade the SWC Wasm plugin to the latest version.
Upgraded to webpack-dev-server v5
@rspack/cli
now depends onwebpack-dev-server
v5 (previously v4).If you are using
@rspack/cli
, please be aware of the following breaking changes:webpack-dev-server@5
is18.12.0
.Deprecated @rspack/plugin-minify
rspack/plugin-minify
has been deprecated as it was a temporary package to support Terser.Now Rspack has full support for
terser-webpack-plugin
. If you need to use Terser as the minimizer, we recommend usingterser-webpack-plugin
instead of@rspack/plugin-minify
:All Changes
Exciting New Features 🎉
__webpack_get_script_filename__
by @LingyuCoder in feat: support__webpack_get_script_filename__
#7203publicPath
options with webpack by @xc2 in feat: alignpublicPath
options with webpack #7216compilation.chunkGroups
andcompilation.namedChunkGroups
by @LingyuCoder in feat: supportcompilation.chunkGroups
andcompilation.namedChunkGroups
#7254test
,include
andexclude
options forLightningCssMinimizerRspackPlugin
by @simonxabris in feat: supporttest
,include
andexclude
options forLightningCssMinimizerRspackPlugin
#7290Bug Fixes 🐞
FileSystem
trait by @hardfist in fix(fs): remove generic inFileSystem
trait #7275truthy || any
andfalsy && any
by @xc2 in fix: corrects result fortruthy || any
andfalsy && any
#7277await
to async module export by @CPunisher in fix: addawait
to async module export #7308Document Updates 📖
Other Changes
packages/rspack/src/util
from js to ts and esm by @jithyan in refactor(typescript): refactorpackages/rspack/src/util
from js to ts and esm #7246packages/rspack/src/config
from js to ts/esm by @jithyan in refactor(typescript):packages/rspack/src/config
from js to ts/esm #7255prebundle
when prepare by @colinaaa in chore: runprebundle
when prepare #7304rspack-test-tools
by @colinaaa in test: move native loader test torspack-test-tools
#7303New Contributors
packages/rspack/src/util
from js to ts and esm #7246Full Changelog: v1.0.0-alpha.5...v1.0.0-beta.0