Rspack 0.5.0 is out!
Read the announcement blog post: Announcing Rspack 0.5.
Overview
- Module Federation added to Rspack
- optimization.chunkIds is deterministic in production mode by default
- Remove default transformation
- Remove extended resolve extensions
- Make @swc/helpers and react-refresh as peerDependencies
- Remove deprecated builtins options
What's Changed
Performance Improvements ⚡
- perf: exports info hash by @IWANABETHATGUY in #5125
- perf: delete useless calls by @bvanjoi in #5155
Exciting New Features 🎉
- feat: add diag test by @bvanjoi in #5113
- feat: support CommonJsSelfReferenceDependency by @LingyuCoder in #5114
- feat: removes all deprecate warning in CI by @lippzhang in #5127
- feat: warning of magic comment by @LingyuCoder in #5126
- feat: support DependencyTemplate of CommonJsExportRequireDependency by @LingyuCoder in #5130
- feat: support custom banner by @bvanjoi in #5153
- feat: bump tracing to support
NO_COLOR
by @bvanjoi in #5156 - feat: support module.require by @LingyuCoder in #5167
- feat: support
webpackIgnore
comment by @bvanjoi in #5172 - feat: remove extended resolve extensions by @h-a-n-a in #5184
- feat: remove experiments.incrementalRebuild option by @jerrykingxyz in #5225
- feat: add remoteInitOptions as initContainer params by @ahabhgk in #5247
Bug Fixes 🐞
- fix(rspack-dev-server): remove webpack dep by @hardfist in #5119
- fix(mf): should not have extra empty chunk by @ahabhgk in #5128
- fix: user freindly error msg for output.hashFunction by @bvanjoi in #5129
- fix: library module renderStartup missing export by @bvanjoi in #4901
- fix(plugin-runtime):
stringify_chunk
should escape special chars in chunk names as js's JSON.stringify do by @xc2 in #5117 - fix: entryOptions should able to merge by @ahabhgk in #5134
- fix: should not create additional missing modules by @h-a-n-a in #5124
- fix(treeshaking): calculate add_connection_states right by @JSerFeng in #5140
- fix: sort errors and warnings in stats based on offsets by @h-a-n-a in #5142
- fix: harmony export default from should be a parse error by @h-a-n-a in #5144
- fix: import meta url property by @LingyuCoder in #5145
- fix: enable more mf v1.5 tests by @ahabhgk in #5148
- fix: external modules in esm by @LingyuCoder in #5146
- fix: should store dependencies even if module factorization is failed by @h-a-n-a in #5137
- fix: empty name and complex member expression in cjs dependency by @LingyuCoder in #5154
- fix: missing module in block by @ahabhgk in #5171
- fix(mf1.5): container name in runtime by @ahabhgk in #5175
- fix(mf1.5): add resolve alias for mf runtime by @ahabhgk in #5239
- fix: not enable rspack-plugin-react-refresh when mode set to 'product… by @hardfist in #5260
Other Changes
- refactor: remove
get
andget_mut
inDatabase
by @bvanjoi in #5121 - revert: removes all deprecate warning in CI by github CI by @lippzhang in #5135
- refactor: align render module arguments with webpack by @LingyuCoder in #5131
- refactor: 🤖 avoid clone exports info by @IWANABETHATGUY in #5141
- chore: add module federation example by @ahabhgk in #5136
- chore: add hmr and react refresh for module federation example by @ahabhgk in #5159
- chore: comment benchmark result for commit by @jerrykingxyz in #5170
- chore: build rspack/core first by @jerrykingxyz in #5174
- refactor(rspack_core): remove nodejs_resolver and
experiments.rspackFuture.newResolver
by @Boshen in #5089 - refactor: replace devServer.hot by HotModuleReplacementPlugin by @ahabhgk in #5193
- refactor: enable disableApplyEntryLazily by default by @ahabhgk in #5179
- refactor: remove builtin:sass-loader for 0.5 by @ahabhgk in #5177
- chore: remove deprecated splitChunksPlugin by @JSerFeng in #5208
- refactor: remove deprecated builtins options by @ahabhgk in #5207
- chore: add module federation interop example by @ahabhgk in #5224
- refactor: move swc helpers and react-refresh to peer by @ahabhgk in #5228
- chore: fix template version by @hardfist in #5261
- chore: fixed mf 1.5 runtime version by @ahabhgk in #5275
Full Changelog: v0.4.5...v0.5.0