Repository navigation
Releases
v2.1.0-rc.0
What's Changed
New Features 🎉
Performance 🚀
- perf: optimize compilation entrypoints getter by @chenjiahan in #14485
- perf: reduce asset wrapper overhead by @chenjiahan in #14487
- perf(deps): bump camino to 1.2.3 by @stormslowly in #14519
- perf(ci): drop debuginfo from the whole ci profile by @stormslowly in #14528
Bug Fixes 🐞
- fix(types): align wasm loading types by @chenjiahan in #14506
- fix(split-chunks): align max size grouping with webpack by @intellild in #14481
- fix(rstest): fallback to automock for missing manual mocks by @9aoy in #14418
- fix(css): preserve undeclared css module idents by @intellild in #14497
- fix(mf): stabilize consume shared runtime output by @2heal1 in #14532
- fix(cache): default context_dependencies snapshot strategy to timestamp by @hardfist in #14490
Refactor 🔨
- refactor: merge webpack api parser plugins by @LingyuCoder in #14529
Document 📖
- docs: fix duplicate createRequire parser docs by @JSerFeng in #14486
- docs: update React Compiler guide by @chenjiahan in #14496
- docs: remove redundant javascript/auto type examples by @chenjiahan in #14499
- docs: update ESM config examples by @chenjiahan in #14505
- docs: fix entry config docs by @chenjiahan in #14514
- docs: fix module config types by @chenjiahan in #14515
- docs: fix resolve config types by @chenjiahan in #14516
- docs: fix stats config types by @chenjiahan in #14518
- docs: document dev server options by @chenjiahan in #14523
- docs: move cache migration guide by @chenjiahan in #14535
- docs: improve cache option documentation by @chenjiahan in #14540
Other Changes
- chore: release v2.1.0-beta.0 by @ahabhgk in #14480
- chore: remove codspeed js bench case by @SyMind in #14489
- test(tree-shaking): lock in pureFunctions innerGraph deferred-pure-check behavior by @JSerFeng in #14488
- chore(ci): pause portable cache check by @stormslowly in #14492
- chore(ci): align hookTimeout with testTimeout to fix flaky afterAll close timeout by @stormslowly in #14498
- chore(deps): update dependency http-proxy-middleware to v4.1.1 [security] by @renovate 🤖 in #14500
- chore(deps): update dependency lint-staged to v17 by @renovate 🤖 in #14504
- chore(deps): update pnpm to v11.8.0 by @renovate 🤖 in #14503
- chore(deps): update dependency @rslib/core to ^0.23.0 by @renovate 🤖 in #14501
- chore(deps): remove unused axios dependency by @chenjiahan in #14507
- chore(deps): update dependency enhanced-resolve to v5.24.0 by @renovate 🤖 in #14512
- chore(deps): update dependency webpack-sources to v3.5.0 by @renovate 🤖 in #14513
- chore(deps): bump rspack_resolver to 0.9.3 by @stormslowly in #14521
- chore(deps): update patch npm dependencies by @renovate 🤖 in #14510
- chore(test): stabilize watch-detection on Windows with synchronous writes by @stormslowly in #14520
- test: replace non_webpack_require in tests by @LingyuCoder in #14530
- chore: bump swc_core from 68 to 71 by @CPunisher in #14526
- Release 0.101.0-rc.0 by @LingyuCoder
- chore(release): release 2.1.0-rc.0 by @LingyuCoder
Full Changelog: v2.1.0-beta.0...v2.1.0-rc.0
v2.1.0-beta.0
Highlights 💡
Support React Compiler in builtin:swc-loader
React projects can now use React Compiler directly through Rspack's built-in SWC loader. See the React Compiler guide for details.
export default {
module: {
rules: [
{
test: /\.[cm]?[jt]sx?$/,
loader: 'builtin:swc-loader',
options: {
jsc: {
transform: {
reactCompiler: true,
},
},
},
},
],
},
};Side-effect-free function analysis by default
Rspack's side-effect-free function analysis is now enabled by default in production builds. It can detect pure function calls through the #__NO_SIDE_EFFECTS__ notation and pureFunctions configuration, including exported functions across module boundaries. When the returned value is unused, Rspack can remove the call more reliably and improve tree shaking results without extra configuration. See experiments.pureFunctions for details.
// lib.js
/*@__NO_SIDE_EFFECTS__*/
export function call() {
console.log('hi')
}
// barrel.js
import { call } from './lib'
const value = call()
// if value is unused, call can be removed
export { value }
What's Changed
New Features 🎉
- feat: expose module error JS API by @SyMind in #14351
- feat(cache): log persistent cache read and write timings by @hardfist in #14314
- feat(module_graph): expose
getProvidedExports()to JS API by @logonoff in #14349 - feat: support drop inactive branch dependencies for member expr by @ahabhgk in #14382
- feat(runtime): introduce experimental.runtimeMode by @LingyuCoder in #14254
- feat: support branch guarded export presence for
inon ESM imports by @ahabhgk in #14426 - feat: bump swc to support react compiler by @CPunisher in #14435
- feat(runtime): runtime internals of rspack runtime mode by @LingyuCoder in #14427
- feat(rsdoctor): expose export usage graph by @JSerFeng in #14291
- feat: enable pureFunctions by default by @JSerFeng in #14465
- feat(cache): add maxAge and maxGenerations for persistent cache cleanup by @matthewdavis-oai in #14296
Performance 🚀
- perf: remove serde json by @SyMind in #14272
- perf: use mask intersects instead of flag iteration for scope globals by @stormslowly in #14353
- perf: add ASCII fast path for dependency location column computation by @stormslowly in #14355
- perf: force DFA automaton for real content hash scanning by @stormslowly in #14356
- perf(core): reduce memcpy overhead by @hardfist in #14381
- perf: reduce flag dependency usage key allocations by @LingyuCoder in #14417
- perf: reduce build chunk graph preparation work by @LingyuCoder in #14421
- perf(sources): avoid cloning source maps with borrowed fields by @SyMind in #14380
- perf: optimize module concatenation traversal by @LingyuCoder in #14422
- perf(loader-runner): cache esm loader imports by @hardfist in #14434
- perf(core): optimize resource parsing by @chenjiahan in #14456
- perf(ci): drop redundant cargo check from rust CI by @stormslowly in #14461
- perf: avoid JavaScriptTracer overhead when tracing is disabled by @chenjiahan in #14468
- perf(loader-runner): reduce loader object construction overhead by @chenjiahan in #14477
Bug Fixes 🐞
- fix: preserve inline source content for transform sourcemaps by @intellild in #14350
- fix: remove webpackSource and webpackDefer magic comments by @ahabhgk in #14364
- fix: apply global
overrideStrictfor ContextModule by @colinaaa in #14361 - fix(watcher): filter ignored-subtree events that emit a spurious folder change by @stormslowly in #14329
- fix: use ChunkWithSizeInfo delimiter in maxInitialSize chunk naming fallback path by @wr40000 in #14331
- fix: wait for in-flight build before closing compiler by @stormslowly in #14377
- fix(browser): point wasi-worker-browser export to dist file by @stormslowly in #14415
- fix(tree-shaking): handle nested pure function calls by @JSerFeng in #14375
- fix: cherry-pick mf manifest expose assets by @2heal1 in #14339
- fix: cache import.meta filename and dirname outside eval by @intellild in #14423
- fix(pure-functions): keep deferred pure import callees by @JSerFeng in #14425
- fix: improve createRequire argument parsing by @JSerFeng in #14424
- fix(rstest): preserve mocks in module chunk loading by @9aoy in #14472
- fix(rspack_watcher): prevent watch-root panic from orphaned path tree by @stormslowly in #14448
- fix(test): isolate source for fixture-writing config cases by @stormslowly in #14462
- fix: change default value of createRequire parsing to false by @JSerFeng in #14482
Refactor 🔨
- refactor(binding): consolidate module property definitions by @SyMind in #14365
- refactor: remove unused unresolved context from pure checks by @CPunisher in #14433
Document 📖
- docs: document source phase imports by @chenjiahan in #14360
- docs: fix optimization config types by @chenjiahan in #14370
- docs: document split chunks options by @chenjiahan in #14371
- docs: add Remotion to ecosystem by @chenjiahan in #14374
- docs: update magic comment version and anchors by @chenjiahan in #14378
- docs: update Vite comparison docs by @chenjiahan in #14412
- docs: update Rollup comparison docs by @chenjiahan in #14413
- docs: update rules use parallel type by @chenjiahan in #14416
- docs: add instructions for unsupported platforms by @swwind in #14442
- docs(website): fix Rspress summary style by @chenjiahan in #14449
- docs: improve incremental config docs by @chenjiahan in #14450
- docs: add GitHub to who is using by @chenjiahan in #14474
Other Changes
- revert: "fix: temporarily revert JS parser changes causing runtime err" by @CPunisher in #14347
- chore: add scope hoisting regression for for-init references by @CPunisher in #14352
- chore(ci): update ecosystem ci action to v0.3.2 by @Timeless0911 in #14362
- chore(ci): use mini runner to offload lightweight CI jobs by @stormslowly in #14363
- chore(ci): use mini runner for lint workflow by @chenjiahan in #14376
- chore(deps): group emnapi renovate updates by @chenjiahan in #14390
- chore(deps): update dependency terser-webpack-plugin to ^5.6.1 by @renovate[bot] in #14393
- test(wasm): skip file-dependencies-huge to fix flaky afterAll timeout by @stormslowly in #14399
- chore(deps): update yarn to v4.16.0 by @renovate[bot] in #14396
- chore(deps): update dependency http-proxy-middleware to ^4.1.0 by @renovate[bot] in #14392
- chore(deps): update dependency rspack-merge to v1 by @renovate[bot] in #14397
- chore(deps): update dependency ts-checker-rspack-plugin to ^1.4.0 by @renovate[bot] in #14394
- chore(deps): update dependency @rslint/core to v0.6.1 by @renovate[b...
v1.7.12
What's Changed
Bug Fixes 🐞
Document Updates 📖
- docs(v1): add algolia site verification meta by @SoonIter in #13818
- docs: use rspack-v1 algolia index on v1 site by @SoonIter in #13924
Other Changes
- chore: release 1.7.11 by @LingyuCoder in #13550
- chore(backport): use OIDC to publish crates by @stormslowly in #13563
- chore(release): crate 0.7.11 by @stormslowly in #13570
- chore: change CodSpeed baseline branch from main to v1.x by @stormslowly in #13573
- fix: correct mf manifest expose assets by @2heal1 in #14327
- ci: pin release artifact download action by @2heal1 in #14459
Full Changelog: v1.7.11...v1.7.12
v2.0.8
What's Changed
Bug Fixes 🐞
- fix: temporarily revert JS parser changes causing runtime errors by @CPunisher in #14343
Other Changes
- chore: bind walltime bench to dedicated CPUs by @deanjingshui in #14336
- chore(ci): update rsdoctor action by @yifancong in #14342
Full Changelog: v2.0.7...v2.0.8
v2.0.7
Warning
v2.0.7 has been deprecated because it may generate incorrect Rspack build outputs.
Please do not install or use v2.0.7. Upgrade to v2.0.8 instead, which was released as the fix for this issue.
What's Changed
New Features 🎉
- feat: add SyncModuleIdsPlugin by @intellild in #14243
- feat(css): support CSS modules options
container,function,gridandpureby @intellild in #14189 - feat: support source phase import for WebAssembly modules by @magic-akari in #13864
- feat(watcher): granularity-safe native watcher scan (watchpack FS_ACCURACY) by @stormslowly in #14306
- feat: better circular check plugin by @ahabhgk in #14319
- feat: support rspack magic comment prefix by @intellild in #14323
Performance 🚀
- perf(split-chunks): reduce module grouping overhead by @LingyuCoder in #14209
- perf(sources): preallocate source map mappings buffer by @SyMind in #14288
- perf(module-graph): store dependencies in dense map by @hardfist in #14290
- perf(core): use dense dependency id maps in module graph by @hardfist in #14322
Bug Fixes 🐞
- fix(copy): normalize glob common dir before adding as context dependency by @stormslowly in #14257
- fix: declarator nested webpack exports by @ahabhgk in #14253
- fix(css): preserve import render conditions by @intellild in #14218
- fix(lazy-compilation): reserve closure-library externals on inactive proxy by @stormslowly in #14228
- fix(css): align dashed idents with webpack by @intellild in #14261
- fix: preserve shared fallback versions by @2heal1 in #14219
- fix(library): implement JsonpLibraryPlugin for
output.library.type: 'jsonp'by @logonoff in #14278 - fix(watcher): carry dependency deltas across coalesced rebuilds by @stormslowly in #14279
- fix(rstest): support mocking dynamic import() of external modules by @fi3ework in #14247
- fix(css): include local name in hash-only local idents by @intellild in #14334
Refactor 🔨
- refactor: parse magic comments with swc by @intellild in #14264
- refactor(devtool): propagate source map kind to generators by @intellild in #14283
- refactor: swc exp for javascript parser plugin by @CPunisher in #14256
Document 📖
- docs: add TanStack Start to ecosystem guide by @chenjiahan in #14259
- docs(style): dark mode styling for website ApiMeta tag by @Copilot in #14262
- docs: fix broken documentation links by @chenjiahan in #14316
Other Changes
- chore: scale threejs walltime benchmark input by @hardfist in #14250
- chore(deps): update dependency @rstest/core to ^0.10.3 by @renovate[bot] in #14230
- chore(deps): update dependency enhanced-resolve to v5.22.1 by @renovate[bot] in #14231
- chore(deps): update dependency terser to v5.48.0 by @renovate[bot] in #14232
- chore(deps): update dependency ws to ^8.21.0 by @renovate[bot] in #14233
Full Changelog: v2.0.6...v2.0.7
v2.0.6
Highlights
React Server Components: enforce server-only / client-only boundaries
RSC builds now validate the server-only and client-only marker packages. Importing a client-only module from a server-graph module (or a server-only module from a client-graph module) is reported as a diagnostic. This marker-package validation always runs and is independent of disableClientApiChecks, which now only scopes the React client-API checks.
// server component (server graph)
import 'client-only'; // ❌ reported: client-only imported in a server module
// client component (client graph)
import 'server-only'; // ❌ reported: server-only imported in a client moduleExpose DeterministicModuleIdsPlugin
The webpack-compatible deterministic module id plugin is now exposed through the JS API as rspack.ids.DeterministicModuleIdsPlugin, giving you fine-grained control over module ids for long-term caching. It supports the webpack options test, maxLength, salt, fixedLength, and failOnConflict.
const rspack = require('@rspack/core');
module.exports = {
optimization: { moduleIds: false },
plugins: [
new rspack.ids.DeterministicModuleIdsPlugin({
maxLength: 5,
failOnConflict: true,
}),
],
};CSS Modules: preserve composes cascade order
CSS Modules now use a shared topological sort to keep the source order of composes, so composed declarations land in the output cascade in the order you authored them. This fixes subtle specificity surprises when composing local class names across modules.
What's Changed
New Features 🎉
- feat(rsc): validate server-only and client-only imports by @SyMind in #14190
- feat(css): ensure CSS compose module order by @intellild in #14156
- feat: expose DeterministicModuleIdsPlugin by @intellild in #14214
Performance 🚀
- perf: reduce sourcemap benchmark overhead by @hardfist in #14186
- perf(sources): lazily compute CachedSourceChunks source by @SyMind in #14202
- perf(deps): bump rspack_resolver to 0.9.2 by @stormslowly in #14192
- perf(core): cache resolved module rule options by @intellild in #14158
Bug Fixes 🐞
- fix: remove wasmtime threads feature by @hardfist in #14199
- fix: limit tsfn lifecycle to prevent memory leak by @SyMind in #13565
- fix(pure-functions): keep deferred local dependencies by @JSerFeng in #14191
- fix(lazy-compilation): clean up stale entry proxies on dynamic entry removal by @stormslowly in #14170
- fix: respect resolved external type in ESM rendering by @JSerFeng in #14180
- fix(esm-library): support context chunk loading by @JSerFeng in #14144
- fix(rspack_watcher): scan after registering the disk watcher to close a startup race by @stormslowly in #14210
- fix(esm-library): reuse inline export bindings by @JSerFeng in #14152
- fix: infer modern-module cjs externals from target by @Timeless0911 in #14215
Document 📖
- docs: recommend import.meta.glob for new code by @chenjiahan in #14220
Other Changes
- test(rsc): migrate RSC transform fixtures by @SyMind in #14183
- chore: release version 2.0.5 by @JSerFeng in #14155
- chore: migrate rspack_sources into rspack monorepo by @SyMind in #14193
- chore(perf): isolate rspack_sources codspeed benchmark target by @SyMind in #14204
- chore(deps): update dependency @ast-grep/napi to ^0.43.0 by @renovate[bot] in #14223
- chore(deps): update dependency @rstest/adapter-rspack to ^0.10.3 by @renovate[bot] in #14225
- chore(deps): update patch npm dependencies by @renovate[bot] in #14222
- chore(deps): update patch crates by @renovate[bot] in #14056
- chore(deps): update dependency @rslib/core to ^0.22.0 by @renovate[bot] in #14224
- chore: add Rust CodSpeed walltime benchmark by @hardfist in #14216
- chore(dep): css-module-lexer 0.0.16 → 0.0.15 by @stormslowly in #14240
- chore:Route Rust benchmarks to exclusive physical runner by @hardfist in #14245
- chore: bump
swc_expandswc_corefrom 66 to 68 by @CPunisher in #14241
Full Changelog: v2.0.5...v2.0.6
v2.0.5
Highlights
Support import.meta.glob
Rspack now supports import.meta.glob, a file-system import API already available in Vite and Turbopack. We chose to align with this ecosystem behavior.
const pages = import.meta.glob('./pages/**/*.tsx', {
eager: true,
import: 'default',
query: { layout: 'docs' },
base: './pages',
});More controllable CSS module parsing
CSS modules can now control parsing for @import, animations, custom idents, and dashed idents through module.parser, so projects can match existing CSS Modules behavior more closely while migrating to Rspack.
export default {
module: {
parser: {
'css/module': {
import: true,
animation: true,
customIdents: true,
dashedIdents: true,
},
},
},
};What's Changed
New Features 🎉
- feat(css): add supports import, animation, customIdents, and dashedIdents for CSS by @intellild in #14076
- feat: optimize generated getter for const export by @ahabhgk in #14045
- feat: implement import.meta.glob by @intellild in #13998
- feat: support import option for import.meta.glob by @intellild in #14123
- feat: support more import.meta.glob options by @intellild in #14129
- feat: inline const for default export by @ahabhgk in #14117
- feat: optimize getter for const export default by @ahabhgk in #14175
Performance 🚀
- perf: extend release opt-level s for cold-path crates by @hardfist in #14085
- perf: remove unnecessary async_trait usage by @hardfist in #14041
- perf: remove unused graph roots edge sorting by @intellild in #14101
- perf: reduce release binary size by @hardfist in #14103
- perf: reduce release binding size by @hardfist in #14108
- perf(javascript): reduce parser allocations by @hardfist in #14124
- perf: optimize find graph roots by @intellild in #14106
- perf: content into_string_lossy by @SyMind in #14121
- perf(core): use dense storage for dependency connections by @hardfist in #14148
- perf(resolver): reuse precomputed hash from rspack-resolver dependencies by @stormslowly in #14120
- perf(javascript): avoid cloning exports info during usage analysis by @hardfist in #14157
Bug Fixes 🐞
- fix(rsc): skip manifest runtime for worker entries by @SyMind in #14068
- fix: annotate generated JSON.parse as pure by @hardfist in #14110
- fix(rslib): align isolated dts diagnostics by @Timeless0911 in #14143
- fix(rspack_watcher): keep mtime baseline persistent across watch() cycles by @stormslowly in #14077
- fix(esm-library): split runtime chunk for async chunks by @JSerFeng in #14142
- fix: require swc helpers 0.5.22 by @JSerFeng in #14160
- fix(esm-library): move async runtime split logic by @JSerFeng in #14159
- fix(cli): block prototype-pollution payloads in --env parsing by @stormslowly in #14165
- fix: derive modern-module require external type from target by @JSerFeng in #14174
- fix: update peer dependency of @swc/helpers to ^0.5.23 by @JSerFeng in #14176
- fix: resolve external type in esm rendering by @JSerFeng in #14178
- fix: compat es5 for define property getters runtime by @ahabhgk in #14177
- fix(rstest): inject require.resolve origin by @9aoy in #14162
- fix(rstest): support new runtime template by @9aoy in #14181
Document 📖
- docs: add CSS module parser options by @intellild in #14096
- docs: split module config docs by @intellild in #14099
- docs: clarify module parser and generator options by @chenjiahan in #14111
- docs: align blog authors display with other rstack wbesite by @elecmonkey in #14125
- docs: invite @elecmonkey to Rspack core team by @chenjiahan in #14114
- docs: fix CSS module defaults by @intellild in #14136
- docs: document loader peer dependencies by @chenjiahan in #14137
- docs: document plugin peer dependencies by @chenjiahan in #14139
- docs(website): upgrade Tailwind CSS v4 with Rsbuild plugin by @chenjiahan in #14150
Other Changes
- test: remove jest-snapshot from test tools by @chenjiahan in #14112
- chore(deps): reduce peer dependency installs by @chenjiahan in #14115
- test: add swc-loader build module graph benchmark by @hardfist in #14128
- chore(deps): update patch npm dependencies by @renovate[bot] in #14132
- chore(deps): update dependency @module-federation/runtime-tools to v2.5.0 by @renovate[bot] in #14133
- test: satisfy socket.dev security by @intellild in #14138
- chore: upgrade swc_core from 66 to 67 by @hardfist in #14135
- revert: "feat: optimize generated getter for const export" by @ahabhgk in #14151
- revert: "revert: "feat: optimize generated getter for const export"" by @ahabhgk in #14153
- Revert "chore: upgrade swc_core from 66 to 67" by @JSerFeng in #14168
- Revert "fix: require swc helpers 0.5.22" by @JSerFeng in #14171
- chore(deps): upgrade pnpm to 11.3.0 by @chenjiahan in #14184
Full Changelog: v2.0.4...v2.0.5
v2.0.4
Highlights 💡
-
Inline const with module declarations (#14032): Previously, Rspack only inlined constant exports from leaf modules in the module graph. Now constant exports from any module can be inlined, even when that module also imports or re-exports other modules. In rare circular-reference cases this can make a TDZ error disappear, but we do not expect real projects to rely on TDZ errors, so Rspack prioritizes the optimization.
// constants.js import './setup'; export const ENABLE_EXPERIMENT = false; // entry.js import { ENABLE_EXPERIMENT } from './constants'; if (ENABLE_EXPERIMENT) { runExperiment(); } // Before: constants.js is not a leaf module, so the branch could keep // reading the imported binding. if (ENABLE_EXPERIMENT) { runExperiment(); } // Now: the constant can still be inlined, so dead branches are easier // to remove. if (false) { runExperiment(); }
-
Tree shake namespace default reexport (#13980): Previously, the
import * as a from './a'; export default a;pattern did not tree-shakeathrough the default export. Now Rspack further analyzes the default-exported namespace object and can remove unused exports from the original namespace module.// a.js export function used() {} export function unused() {} // bridge.js import * as a from './a'; export default a; // app.js import a from './bridge'; a.used(); // Before: both used and unused could be kept in the bundle. // Now: unused can be tree-shaken.
-
CSS global module type (#13988):
css/globalis useful when most selectors in a stylesheet should stay global, but you still want CSS Modules features for selected local selectors. This makes it easier to migrate existing global CSS gradually without turning every class name into a local scoped name.export default { module: { rules: [{ test: /\.global\.css$/i, type: 'css/global' }], }, };
/* style.global.css */ .button { color: red; } :local(.title) { font-weight: 600; }
.buttonstays global, while.titleis renamed as a local class. -
CSS Modules local ident options (#14009): CSS Modules now support local ident hash options such as hash function, digest, digest length, and salt. These options make generated class names more configurable and better aligned with webpack-compatible CSS Modules setups.
export default { module: { rules: [{ test: /\.module\.css$/i, type: 'css/module' }], generator: { 'css/module': { localIdentName: '[name]__[local]__[hash]', localIdentHashFunction: 'xxhash64', localIdentHashDigest: 'hex', localIdentHashDigestLength: 8, localIdentHashSalt: 'my-salt', }, }, }, };
What's Changed
New Features 🎉
- feat(css): add support for css/global module type by @intellild in #13988
- feat: tree shake namespace default reexport by @JSerFeng in #13980
- feat: inline const with module declarations by @ahabhgk in #14032
- feat(css): support CSS module local ident options by @intellild in #14009
- feat: circular modules info plugin by @ahabhgk in #14031
Performance 🚀
- perf: cache reserved name atom set by @LingyuCoder in #14014
- perf: optimize flag dependency usage by @LingyuCoder in #14052
- perf(cli): remove process title startup overhead by @chenjiahan in #14061
- perf(deps): unify duplicate Rust dependencies to reduce binary size by @intellild in #14012
- perf: improve split chunks cache group filtering by @LingyuCoder in #14067
- perf: optimize mangle exports plugin by @LingyuCoder in #14048
- perf(cli): lazy load json stream helpers by @chenjiahan in #14079
- perf: optimize named id assignment by @LingyuCoder in #14075
Bug Fixes 🐞
- fix(rsc): skip client entry mismatch without injections by @SyMind in #14018
- fix(cli): write logger trace output to file by default by @hardfist in #14022
- fix(ci): repair broken rustup shim chain on macos-latest by @stormslowly in #14040
- fix(stats): preserve sub-millisecond precision in logger time entries by @stormslowly in #14049
- fix: import.meta.filename/dirname escape on windows by @ahabhgk in #14050
- fix(rsc): group client chunks by server-entry ownership by @SyMind in #13880
- fix(rslib): emit type-only isolated dts dependencies by @Timeless0911 in #14037
- fix(copy-plugin): support JS input file system for glob copies by @intellild in #14023
- fix: keep buildHttp imports bundled for node target by @SyMind in #14086
Document 📖
- docs: update config option types by @chenjiahan in #14060
- docs: update runtime plugin hooks by @chenjiahan in #14069
- docs(plugin-api): document module factory hooks by @chenjiahan in #14070
- docs(cli): update cli option descriptions by @chenjiahan in #14071
- docs(website): update core team profile by @chenjiahan in #14093
Other Changes
- security(ci): remove PR title lint workflow by @chenjiahan in #14016
- chore: add local rust benchmark script by @hardfist in #14007
- chore(ci): replace archived actions-rs/cargo with bare cargo invocations by @stormslowly in #14017
- chore: release version 2.0.3 by @LingyuCoder in #14015
- chore: add draft release notes skill by @chenjiahan in #14028
- chore(build): fix empty napi-binding.d.ts on subsequent builds by @stormslowly in #14027
- chore: bump rslint to 0.5.3 by @fansenze in #14034
- chore(deps): update swc crates by @hardfist in #14036
- chore(skill): add rspack performance optimization skill by @LingyuCoder in #14047
- chore: upgrade swc from 64 to 66 by @hardfist in #14059
- chore(deps): update dependency @codspeed/vitest-plugin to ^5.4.0 by @renovate[bot] in #14057
- chore(deps): update patch npm dependencies by @renovate[bot] in #14055
- chore(deps): update dependency @playwright/test to v1.60.0 by @renovate[bot] in #14058
- chore: bump patch of swc_core and swc_typescript by @CPunisher in #14066
- test: add named ids codspeed benchmarks by @LingyuCoder in #14074
- chore(security): replace issues helper action by @chenjiahan in #14084
- chore(deps): bump rstack ecosystem ci action by @chenjiahan in #14092
Full Changelog: v2.0.3...v2.0.4
v2.0.3
What's Changed
Performance Improvements ⚡
- perf: reduce normal module creation and rule matching overhead by @LingyuCoder in #13926
- perf: disable perfetto tracing in release binding by @hardfist in #13932
- perf: reduce parser dependency bookkeeping overhead by @LingyuCoder in #13936
- perf: reduce code splitter allocation and lookup overhead by @LingyuCoder in #13968
New Features 🎉
- feat: expose dependency import attributes by @hardfist in #13947
- feat(rsc): support configurable CSS link props by @SyMind in #13945
- feat(externals): add modern-module externals type by @JSerFeng in #13861
- feat: support import.meta.rspackRsc by @SyMind in #13840
- feat: drop inactive branch dependencies for inlined booleans by @JSerFeng in #13863
- feat(sourcemap): support relative paths in inline source maps by @SyMind in #13974
Bug Fixes 🐞
- fix(cli): use rspack-merge for config extends by @intellild in #13869
- fix(deps): revert mimalloc update by @hardfist in #13942
- fix(hash): fix base64 digest and hash salt by @intellild in #13977
- fix: align sync module rule resource matching by @LingyuCoder in #13981
- fix(ci): avoid browser e2e watcher by @hardfist in #13987
Refactor 🔨
- refactor(rstest): expose injectDynamicImportOrigin.functionName and resolve callee once by @fi3ework in #13930
- refactor: use rspack util base64 by @intellild in #13978
- refactor(core): remove unused exports final name metadata by @LingyuCoder in #14003
Document Updates 📖
- docs: replace webpack-merge references with rspack-merge by @intellild in #13933
- docs: correct terminology spelling by @chenjiahan in #13964
- docs: update HTML plugin guide by @chenjiahan in #13970
- docs(externals): add modern-module externals example by @JSerFeng in #13979
- docs: update NestJS guide by @intellild in #13976
- docs: invite @intellild to Rspack core team by @chenjiahan in #13986
- docs: add Node app guide by @intellild in #13995
Other Changes
- chore: release v2.0.2 by @SyMind in #13922
- chore(benchmark): remove swc loader from threejs case by @hardfist in #13881
- ci: upload codspeed valgrind temp files by @hardfist in #13879
- chore: bump rslint to 0.5.2 by @fansenze in #13931
- chore: enable Rslint for more packages and fix lint issues by @chenjiahan in #13934
- chore: enable Rslint JS recommended rules by @chenjiahan in #13938
- chore: disable renovate updates for mimalloc by @hardfist in #13949
- ci: remove unused team label workflow by @chenjiahan in #13950
- test: configure rayon for codspeed benchmarks by @hardfist in #13954
- chore(deps): update patch npm dependencies by @renovate[bot] in #13959
- chore(deps): update rust crate tokio to 1.52.3 by @renovate[bot] in #13961
- chore(deps): update pnpm to v10.33.4 by @renovate[bot] in #13960
- chore: enable tsgo for dts generation by @chenjiahan in #13952
- test(benchmark): disable spawn blocking for codspeed by @hardfist in #13958
- chore: use mimalloc for codspeed benchmark allocator by @hardfist in #13966
- test: split compilation stage benchmarks by @hardfist in #13969
- test: split benchmark case entrypoints by @hardfist in #13971
- test: print benchmark compilation errors by @hardfist in #13984
- chore: bump swc from 65.0.1 to 65.0.4 by @CPunisher in #13985
- chore(deps): update dependency mermaid to v11.15.0 [security] by @renovate[bot] in #13997
- chore(deps): tighten pnpm install safeguards by @chenjiahan in #14005
- security(release): drop .npmrc NPM_TOKEN write, rely on npm trusted publishing by @stormslowly in #14011
- chore(ci): pin actions/{download,upload}-artifact to immutable SHAs by @stormslowly in #14001
Full Changelog: v2.0.2...v2.0.3
v2.0.2
What's Changed
Performance Improvements ⚡
- perf(split-chunks): lazily precompute sorted modules for compare by @LingyuCoder in #13854
- perf(split-chunks): batch split chunk runtime updates by @LingyuCoder in #13859
- perf(split-chunks): optimize module chunk lookup by @LingyuCoder in #13873
- perf(build): reduce binding size with size-optimized Wasmtime crates by @Timeless0911 in #13877
New Features 🎉
- feat: add logging for persistent cache validation info by @ahabhgk in #13855
- feat(rslib): support emit isolated declarations by @Timeless0911 in #13872
- feat(create-rspack): support rslint template mapping by @chenjiahan in #13882
- feat(rstest): inject source-module origin into dynamic imports by @fi3ework in #13849
Bug Fixes 🐞
- fix: handle weak dynamic imports without async chunks by @hardfist in #13848
- fix(source-maps): avoid loader request in lightningcss source maps by @zalishchuk in #13830
- fix(rsc): handle server component css by server entry scope by @SyMind in #13844
- fix: sort ConcatenatedModule export keys for deterministic builds by @mango766 in #13425
- fix: use index maps for concatenated export rendering by @JSerFeng in #13875
- fix(core): ignore optional hono type imports by @chenjiahan in #13883
- fix(rsc): scope server-entry CSS collection by entry by @SyMind in #13878
- fix(rslib): make isolated dts metadata relative by @Timeless0911 in #13884
- fix(deps): update http-proxy-middleware to 4.0.0-beta.6 by @Darshan808 in #13909
- fix(plugin-library): skip unused exports in ModuleLibraryPlugin by @SAY-5 in #13920
- fix: expose numeric chunk ids in JS APIs by @JSerFeng in #13839
- fix(rsc): support void onServerComponentChanges callbacks by @SyMind in #13885
- fix: align module external remapping with webpack by @JSerFeng in #13802
Document Updates 📖
- docs: Add Shakapacker to Ecosystem (Ruby on Rails) by @cody-elhard in #13866
- docs: sync Shakapacker ecosystem docs to zh by @chenjiahan in #13867
- docs: fix Modern.js links by @chenjiahan in #13868
- docs: add TanStack Router to ecosystem by @chenjiahan in #13870
- docs: sort config options sidebar by @chenjiahan in #13874
- docs(faq): remove outdated React Server Components support section by @lajczi in #13898
- docs: sync zh FAQ with RSC update by @chenjiahan in #13902
- docs: add webpack package replacements by @chenjiahan in #13910
- docs: replace storybook roadmap link with migration guide by @fi3ework in #13923
- docs: clarify splitChunks name function by @JSerFeng in #13928
Other Changes
- chore: move check source changed jobs to self-hosted runner by @hardfist in #13862
- chore: release version 2.0.1 by @intellild in #13860
- chore(benchmark): disable minimize for bundle codspeed by @LingyuCoder in #13871
- chore(deps): update dependency happy-dom to ^20.9.0 by @renovate[bot] in #13833
- chore(deps): update dependency toml to v4 by @renovate[bot] in #13892
- chore(deps): update dependency image-minimizer-webpack-plugin to v5 by @renovate[bot] in #13891
- chore(deps): update dependency lint-staged to ^16.4.0 by @renovate[bot] in #13887
- chore(deps): update dependency @module-federation/runtime-tools to v2.4.0 by @renovate[bot] in #13886
- chore(deps): update dependency cspell to v10 by @renovate[bot] in #13897
- chore(deps): update dependency @shikijs/transformers to v4 by @renovate[bot] in #13896
- chore(deps): update dependency mermaid to ^11.14.0 by @renovate[bot] in #13894
- chore(deps): update dependency terser-webpack-plugin to ^5.5.0 by @renovate[bot] in #13889
- chore(deps): update dependency ws to ^8.20.0 by @renovate[bot] in #13895
- chore(deps): update patch npm dependencies by @renovate[bot] in #13900
- build: replace webpack-merge with rspack-merge by @intellild in #13907
- chore(deps): update rust crate rayon to 1.12.0 by @renovate[bot] in #13904
- chore(deps): update rust crate oneshot to 0.2.1 by @renovate[bot] in #13903
- chore(deps): update dependency exit-hook to v5 by @renovate[bot] in #13906
- chore(deps): update yarn to v4.14.1 by @renovate[bot] in #13905
- chore(deps): update dependency memfs to v4.57.2 by @renovate[bot] in #13888
- chore(deps): update dependency watchpack to v2.5.1 by @renovate[bot] in #13890
- chore(deps): update dependency axios to ^1.16.0 by @renovate[bot] in #13911
- chore(deps): update rust crate hashlink to 0.11.0 by @renovate[bot] in #13912
- chore(deps): update rust crate indexmap to 2.14.0 by @renovate[bot] in #13913
- chore(deps): remove http-proxy-middleware dts patch by @chenjiahan in #13919
- chore(deps): update dependency @discoveryjs/json-ext to v1 by @renovate[bot] in #13916
- chore(deps): update napi by @renovate[bot] in #13899
New Contributors
- @zalishchuk made their first contribution in #13830
- @cody-elhard made their first contribution in #13866
- @mango766 made their first contribution in #13425
- @lajczi made their first contribution in #13898
- @Darshan808 made their first contribution in #13909
- @SAY-5 made their first contribution in #13920
Full Changelog: v2.0.1...v2.0.2