v2.0.0-rc.1
Rspack can now detect side-effect-free function calls through the #__NO_SIDE_EFFECTS__ notation and manual pureFunctions hints. With support for exported functions and cross-module analysis, unused calls can be identified more reliably, improving tree shaking results and making it easier to optimize both application code and third-party dependencies.
// 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 }
- feat!: disable bundlerInfo force by default by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13599
- perf(javascript): cache non-nested export target lookups by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13545
- perf(rspack-sources): perf potential tokens and source map to json by @SyMind in https://github.com/web-infra-dev/rspack/pull/13497
- perf: modules should use IdentifierHasher by @SyMind in https://github.com/web-infra-dev/rspack/pull/13601
- feat: Implement HashedModuleIdsPlugin by @aancuta in https://github.com/web-infra-dev/rspack/pull/13197
- feat: add TryFutureConsumer with short-circuit cancellation by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/13554
- feat(binding): add active-related APIs to ModuleGraphConnection by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13548
- feat: support optimize side effects free function calls by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/12559
- feat(node-binding): add external wasm debug info for wasm dwarf debugging by @hardfist in https://github.com/web-infra-dev/rspack/pull/13638
- fix(cli): surface fatal errors and unhandled rejections on process exit by @briansilah in https://github.com/web-infra-dev/rspack/pull/13506
- fix: multicompiler devServer false support in serve by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13572
- fix(cli): bundle lazy-loaded helper deps by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13587
- fix: cjs self reference mangle exports by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13588
- fix(esm-library): emit empty export for empty node chunks by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13462
- fix(wasm): avoid blocking-thread work under node:wasi by @hardfist in https://github.com/web-infra-dev/rspack/pull/13598
- fix(core): move connection states to ModuleGraphConnection by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13624
- fix(side-effects): respect DefinePlugin purity evaluation by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13628
- fix(externals): correct external type for aliased node builtin externals by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13627
- refactor: rename rspack_futures to rspack_parallel by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/13547
- refactor: Refactor build chunk graph artifact render state reset by @hardfist in https://github.com/web-infra-dev/rspack/pull/13569
- refactor(split-chunks): reduce module group allocation churn by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13560
- refactor(watcher): clean up stale entries from watch_patterns after unwatch by @jaehafe in https://github.com/web-infra-dev/rspack/pull/13511
- refactor(storage): db switch to readonly mode when save failed by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/13584
- refactor: persistent cache remove lock by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/13589
- refactor: improve persistent cache load error handling by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/13608
- docs: improve docs for worker custom syntax by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13552
- docs: improve
import.metadocs by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13574 - docs: update image-minimizer-webpack-plugin compatibility status to compatible by @jaehafe in https://github.com/web-infra-dev/rspack/pull/13618
- docs: update import for React Refresh plugin by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13632
- chore(release): release 2.0.0-rc.0 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13537
- chore(security): use rspack scoped mocked react by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13551
- chore: Update AGENTS concurrency guidance by @hardfist in https://github.com/web-infra-dev/rspack/pull/13553
- chore: Remove chunk graph DOT generation logic by @hardfist in https://github.com/web-infra-dev/rspack/pull/13549
- chore(deps): update dependency @rslint/core to v0.3.4 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13561
- chore(deps): update dependency @module-federation/runtime-tools to v2.3.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13562
- test: format rspack test configs with prettier by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13571
- chore: run
@rspack/cli,@rspack/teststests sequentially in wasm by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13557 - chore(deps): update dependency lodash-es to v4.18.1 [security] by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13585
- chore: switch codspeed official action by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13582
- chore(deps): update dependency lodash to v4.18.1 [security] by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13586
- chore: Update emnapi dependencies to 1.9.2 by @hardfist in https://github.com/web-infra-dev/rspack/pull/13590
- test: fix try_future_consumer test unstable by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/13592
- chore(ci): migrate ecosystem CI to central rstack-ecosystem-ci repository by @fi3ework in https://github.com/web-infra-dev/rspack/pull/13522
- test(benchmark): add persistent cache codspeed cases by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13594
- chore: bump
swc_corefrom 59 to 62 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13602 - ci: add contents:read permission for ecosystem CI commit comments by @fi3ework in https://github.com/web-infra-dev/rspack/pull/13605
- ci: use contents:write permission for ecosystem CI commit comments by @fi3ework in https://github.com/web-infra-dev/rspack/pull/13611
- chore(deps): update napi by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13614
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13615
- chore(deps): update dependency @playwright/test to v1.59.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13616
- chore(deps): update github-actions by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13613
- chore: upgrade node to 24 while releasing by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13639
- @briansilah made their first contribution in https://github.com/web-infra-dev/rspack/pull/13506
- @aancuta made their first contribution in https://github.com/web-infra-dev/rspack/pull/13197
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.0.0-rc.0...v2.0.0-rc.1
v1.7.11
- feat: rsdoctor support the side effects infos by @yifancong in https://github.com/web-infra-dev/rspack/pull/13405
- chore: release v1.7.10 by @SyMind in https://github.com/web-infra-dev/rspack/pull/13443
- chore: lock rspack-resolver by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13432
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.7.10...v1.7.11
v2.0.0-rc.0
- perf(core): reduce target resolution overhead by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13513
- feat: support
import.meta.mainby @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13489 - feat: support expression in
import.meta.resolveargument by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13523 - feat: add ModuleGraph.getUsedExports to ModuleGraph by @SyMind in https://github.com/web-infra-dev/rspack/pull/13519
- fix(watcher): rename typo
recursiron_directoriestorecurse_parent_directoriesby @jaehafe in https://github.com/web-infra-dev/rspack/pull/13510 - fix: avoid spreading huge dependency iterables by @SyMind in https://github.com/web-infra-dev/rspack/pull/13517
- fix(types): allow partial jsc.parser config when detectSyntax is auto by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13531
- fix(swc-loader): fallback detectSyntax auto for virtual modules by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13529
- fix: reset chunk.rendered in incremental build by @hardfist in https://github.com/web-infra-dev/rspack/pull/13544
- refactor(split-chunks): optimize get_combs lookups by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13532
- docs(migration): simplify v2 experimental changes by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13479
- chore: update cargo shear and fix issues by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13503
- test(benchmark): add codspeed cases for compilation stages by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13499
- chore: try namespace runner for wasm test by @hardfist in https://github.com/web-infra-dev/rspack/pull/13500
- release: 2.0.0-beta.9 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13502
- chore(ci): move renovate schedule to saturday by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13512
- chore: bump emnapi from 1.8.1 to 1.9.1 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13516
- test(benchmark): add split chunks codspeed case by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13520
- chore(deps): bump @rslib/core to 0.20.2 by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/13525
- chore: split wasm browser ci by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13504
- chore: adds
-Zfmt-debug=nonefor non-browser wasm target by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13527 - chore: remove
-Zfmt-debug=noneby @CPunisher in https://github.com/web-infra-dev/rspack/pull/13540 - chore:
useNapiCrossfor x64 linux gnu compilation by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13539 - chore(crates): use OIDC to publish crates by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13543
- @jaehafe made their first contribution in https://github.com/web-infra-dev/rspack/pull/13510
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.0.0-beta.9...v2.0.0-rc.0
v2.0.0-beta.9
- feat(create-rspack): update typescript to v6 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13445
- feat(swc-loader): add detectSyntax option to infer parser by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13467
- fix: keep empty entry runtime chunk for modern-module render by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/13452
- fix(esm-library): support star reexport namespaces by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13448
- fix(core): bump rslib and fix type related issues by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/13376
- fix: use Symbol.for() for shared symbol identity in module bindings by @tryggvigy in https://github.com/web-infra-dev/rspack/pull/13457
- fix(rsc): tree shaking client barrel by @SyMind in https://github.com/web-infra-dev/rspack/pull/13472
- fix:
import.meta.resolve()and add tests by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13469 - fix(rstest): resolve manual mock targets with resolver by @9aoy in https://github.com/web-infra-dev/rspack/pull/13439
- fix(esm-library): avoid duplicate webpack_require export by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13483
- fix: improve pure comment matching by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13498
- fix(esm): deconflict external bindings in module output by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13466
- refactor: remove
swc_node_commentsby @CPunisher in https://github.com/web-infra-dev/rspack/pull/13470
- docs(split-chunks): refine production guidance and FAQ by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13451
- docs: recommand avoid using require paramter of require.ensure by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13453
- docs(migration): add transformImport upgrade notes by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13473
- docs: invite @fansenze to Rspack core team by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13475
- docs: removed module.unsafeCache in rspack_1.x.mdx by @SyMind in https://github.com/web-infra-dev/rspack/pull/13476
- chore(ci): fix taplo wrong parameters by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13449
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13456
- chore(deps): update dependency @rslint/core to v0.3.2 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13458
- chore: fix local website build by @hardfist in https://github.com/web-infra-dev/rspack/pull/13455
- chore(deps): update dependency @module-federation/runtime-tools to v2.2.3 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13460
- chore(deps): update dependency mermaid to ^11.13.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13352
- chore(deps): update rust crate itoa to 1.0.18 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13459
- ci: update ecosystem CI suite by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13463
- chore: pin rspack_resolver version to exact =0.7.0 by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13433
- chore(deps): update dependency core-js to v3.49.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13461
- chore: use pre-built codspeed by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13426
- chore(ci): remove stale miri config by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13465
- chore(workflow): simplify JavaScript linters by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13477
- chore: remove stale devcontainer files by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13480
- chore: add walltime support by @hardfist in https://github.com/web-infra-dev/rspack/pull/13446
- test: use html-rspack-plugin in test cases by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13481
- chore: switch to github runner for bench by @hardfist in https://github.com/web-infra-dev/rspack/pull/13486
- chore: rm rspack_collection_hasher to improve ci speed by @SyMind in https://github.com/web-infra-dev/rspack/pull/13482
- ci: remove pnpm cache and simplify pnpm install steps by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13487
- chore(ci): split binding and rust benchmarks by @hardfist in https://github.com/web-infra-dev/rspack/pull/13492
- chore: try namespace runner by @hardfist in https://github.com/web-infra-dev/rspack/pull/13484
- chore: move check-changed job to namespace by @hardfist in https://github.com/web-infra-dev/rspack/pull/13496
- @tryggvigy made their first contribution in https://github.com/web-infra-dev/rspack/pull/13457
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.0.0-beta.8...v2.0.0-beta.9
v2.0.0-beta.8
- perf(esm-lib): optimize ESM library rendering performance by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13334
- perf(build_chunk_graph): optimize data structures in code splitter by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13403
- perf: rspack_storage parallel write by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/13407
- feat: tree shaking for inlined members access dynamic import by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13381
- feat: add EsmNodeTargetPlugin for ESM-aware node builtin externals by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13370
- feat(pnp)!: drop multi yarn pnp project resolving by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13389
- feat(rsdoctor): add support for dependency connections by @yifancong in https://github.com/web-infra-dev/rspack/pull/13384
- feat: enable mangle exports for cjs reexport by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13413
- feat(rstest): support unmockRequire methods by @9aoy in https://github.com/web-infra-dev/rspack/pull/13412
- fix(esm-lib): avoid exporting webpack_require and useless runtime when runtimeChunk is false by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13374
- fix: optimize concatenated module code generation hot paths by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13375
- fix: avoid analyze cjs tree shaking for user defined require by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13401
- fix(esm-lib): replace panics in get_module_chunk with Result-based error handling by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13396
- fix(rsc): should compile css without use server-entry by @SyMind in https://github.com/web-infra-dev/rspack/pull/13402
- fix: deduplicate source name stable by @SyMind in https://github.com/web-infra-dev/rspack/pull/13416
- fix(esm-library): deduplicate external module import identifiers in ESM output by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13418
- fix(esm-lib): use package name for node_modules short name in dynamic imports by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13406
- fix: add coverage for esm library linking, and fix linking errors by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13424
- fix: should enforce orphan:false for concatenated module by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/10317
- fix: lightningcss with previous loader source maps by @SyMind in https://github.com/web-infra-dev/rspack/pull/13436
- fix: duplicate-sources-order by @SyMind in https://github.com/web-infra-dev/rspack/pull/13438
- fix(core): implement new Map methods on Compilation.entries by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13444
- fix(core): preserve external namespace access in esm externals by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13442
- refactor(core): reduce exports info overhead in esm import checks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13383
- refactor: flush storage when compiler close by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/13395
- docs: remove EsmLibraryPlugin documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13386
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13350
- chore: release 2.0.0-beta.7 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13385
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13393
- chore: bump rslint to 0.3.1 & migrate rslint.json to rslint.config.ts by @fansenze in https://github.com/web-infra-dev/rspack/pull/13398
- chore: remove old deprecated code of ModernModuleLibraryPlugin by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13318
- chore(deps): update dependency less to v4.6.4 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13351
- chore(deps): update dependency @ast-grep/napi to ^0.42.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13394
- chore(ci): switch wasm test runner back to self hosted by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13414
- chore: upgrade path-serializer 0.6.0 by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13411
- chore: renovate ignore linting crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13391
- chore: Add memory codspeed benchmarks by @hardfist in https://github.com/web-infra-dev/rspack/pull/13017
- chore: bump napi dependencies by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13362
- chore: bump
swc_corefrom 58 to 59 by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13434 - chore: use ci profile for windows by @hardfist in https://github.com/web-infra-dev/rspack/pull/13441
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.0.0-beta.7...v2.0.0-beta.8
v1.7.10
- feat(backport): support regex flags and JavaScript lookaheads in extractComments condition by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13437
- chore: suport pnp global cache by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13382
- chore: bump swc_core from 58 to 59 for v1.x by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13435
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.7.9...v1.7.10
v2.0.0-beta.7
- feat!: default resolve roots to empty array by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13273
- feat!: remove .wasm from default js extensions by @hardfist in https://github.com/web-infra-dev/rspack/pull/13321
- feat!: remove 'webpack' from default CSS import conditions by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13348
- fix!: remove unconsumed useless
optimization.removeAvailableModulesconfig option by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13317 - feat(swc-loader)!: move rspackExperiments.import to top-level transformImport by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13345
- perf: remove ukey collections by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13309
- perf: replace unnecessary usize and u64 with u32 by @hardfist in https://github.com/web-infra-dev/rspack/pull/13338
- perf: dyn lint for default hash by @SyMind in https://github.com/web-infra-dev/rspack/pull/13346
- perf: parser hook plugins by @SyMind in https://github.com/web-infra-dev/rspack/pull/13373
- feat(create-rspack): add Rstest as an optional tool by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13300
- feat: support rsc manifest callback by @SyMind in https://github.com/web-infra-dev/rspack/pull/13277
- feat: rspack_plugin_rsdoctor add collect connections function by @yifancong in https://github.com/web-infra-dev/rspack/pull/13181
- fix: restore panic backtrace for macOS arm64 bindings by @hardfist in https://github.com/web-infra-dev/rspack/pull/13283
- fix(collections): use FxHasher for Ukey by @hardfist in https://github.com/web-infra-dev/rspack/pull/13293
- fix(esm-lib): tree-shake unused exports, fix property_access name collision and get_binding panic by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13288
- fix: cjs tree shaking used with named export by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13303
- fix: huge file dependencies cause range error by @SyMind in https://github.com/web-infra-dev/rspack/pull/13305
- fix: dynamic import tree shaking used with named export by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13307
- fix: correct dev server types by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13313
- fix(rstest): prevent the re-exports optimization for mocked modules by @9aoy in https://github.com/web-infra-dev/rspack/pull/13262
- fix(esm-lib): render init fragments after import source by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13308
- fix: normal runtime use should not contains require function by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13190
- fix: strict this context for dynamic import and cjs require by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13328
- fix(javascript): preserve live code after labeled breaks by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13325
- fix: WorkerPlugin should be inherented in children compiler by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13310
- fix(parser): avoid treating require.resolve chains as require by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/13341
- refactor: specialize overlay map hashers by @hardfist in https://github.com/web-infra-dev/rspack/pull/13291
- refactor: better task loop scheduler by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13280
- refactor: use enum payload for
BasicEvaluatedExpressionby @CPunisher in https://github.com/web-infra-dev/rspack/pull/13265 - refactor(ids): reduce string cloning in named module ids by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13281
- refactor(core): batch runtime spec key updates by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13316
- refactor: remove Ukey DataBase abstraction by @hardfist in https://github.com/web-infra-dev/rspack/pull/13339
- refactor: persistent cache storage v2 by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/13292
- docs: add AI documentation by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/13323
- docs: update devtool default value changes in migration guide by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13326
- docs(config): clarify default mode behavior by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13330
- docs: update dev server documentation for v2 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13331
- docs: fix formatting in SKILL.md by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13333
- docs: clarify JSON.stringify usage in DefinePlugin by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13337
- docs: docs for strict this context on imports by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13340
- docs: clarify merge rules and extensions behavior in resolve config by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13347
- docs: unify website description by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13349
- docs: update benchmark data by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13357
- docs: migration guide for
readResourceForSchemehook by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13365 - docs: add mf optional deps migration docs by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13367
- docs: correct the migration docs for
builtin:swc-loaderby @CPunisher in https://github.com/web-infra-dev/rspack/pull/13366 - docs: correct mf runtime tools to optional peer dependency by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13368
- docs: update migration guide for dev server changes by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13369
- docs: sync en v1-to-v2 migration guide with zh by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13371
- docs(migration): clarify async webassembly defaults by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13372
- docs: generate description for all documentations by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13377
- docs: remove useless placeholder comments by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13378
- chore: release 2.0.0 beta.6 by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13282
- chore: update @rspack/dev-server to 2.0.0-beta.5 and update docs by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13286
- chore(ai): add rspack pgo skill by @hardfist in https://github.com/web-infra-dev/rspack/pull/13284
- chore(deps): update dependency @rslib/core to v0.20.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13298
- chore(deps): update dependency enhanced-resolve to v5.20.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13299
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13295
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13296
- chore: docs for config rsc build entries by @SyMind in https://github.com/web-infra-dev/rspack/pull/13289
- chore(deps): update rust crate rspack_resolver to 0.6.8 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13187
- chore: rm unused rsc client entry loader by @SyMind in https://github.com/web-infra-dev/rspack/pull/13312
- chore: lock emnapi by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13329
- chore: introduce polars for sftrace skill by @quininer in https://github.com/web-infra-dev/rspack/pull/13324
- chore(ci): run wasm test in github runner by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13252
- chore(deps): update dependency webpack to v5.104.1 [security] by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12966
- chore(deps): update dependency @rslint/core to v0.2.3 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13294
- ci: simplify lint workflow and remove redundant checks by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13335
- chore(defaults): remove obsolete IGNORE comments by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13336
- chore(ci): eco benchmark compare using by commits perf data by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13315
- chore(deps): update dependency cac to v7 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13355
- chore(deps): update dependency pretty-format to v30.3.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13353
- chore(deps): update dependency terser-webpack-plugin to ^5.4.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13354
- ci(workflow): add condition to only run canary release in main by @wChenonly in https://github.com/web-infra-dev/rspack/pull/13359
- chore: enable enableGlobalVirtualStore for pnpm by @hardfist in https://github.com/web-infra-dev/rspack/pull/13363
- chore(ci): eco benchmark compare base optimize by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13360
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.0.0-beta.6...v2.0.0-beta.7
v1.7.9
- feat(mf): support array share scope by @2heal1 in https://github.com/web-infra-dev/rspack/pull/13260
- fix: WorkerPlugin should be inherented in children compiler (#13310) by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13361
- chore: lock emnapi by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13343
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.7.8...v1.7.9
v2.0.0-beta.6
- refactor!: remove default exports in hot modules by @Timeless0911 in https://github.com/web-infra-dev/rspack/pull/13213
- perf: by json-escape-simd by @SyMind in https://github.com/web-infra-dev/rspack/pull/13183
- perf: Add smallvec-backed member chains by @hardfist in https://github.com/web-infra-dev/rspack/pull/13227
- perf: improve find_new_name by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13209
- perf(regex): enable case-insensitive endsWith fast path by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13232
- perf: reduce replace source string alloc by @SyMind in https://github.com/web-infra-dev/rspack/pull/13150
- perf: improve data structure by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13259
- perf(core): cache ModuleId hash by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13264
- perf: use UkeySet or IdentifierSet for graph and plugin collections by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13266
- feat(esm-library): auto-name unnamed dynamic import chunks with deterministic module name by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13172
- feat(deps): update @rspack/dev-server to 2.0.0-beta.1 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13205
- feat: cjs require variable property access tree shaking by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13155
- feat: enable mangle exports for cjs full require by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13212
- feat(esm-library): deduplicate non-concatenated external modules after scope hoisting by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13210
- feat(esm): optimize dynamic import exports for namespace and tree-shaking by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13211
- feat: support regex flags and JavaScript lookaheads in extractComments condition by @Copilot in https://github.com/web-infra-dev/rspack/pull/12990
- feat(mf): shareScope support array type by @2heal1 in https://github.com/web-infra-dev/rspack/pull/13107
- feat: add Node.js version check during initialization by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13261
- feat: rsc support disable client api checks by @SyMind in https://github.com/web-infra-dev/rspack/pull/13263
- feat: update
devServertypes for@rspack/dev-serverv2 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13278
- fix: revert lastCompilation check for stats by @hardfist in https://github.com/web-infra-dev/rspack/pull/13214
- fix(esm-library): fix dynamic import of same-chunk concatenated modules and external name deconfliction by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13220
- fix: Fix stats artifact fallback warning test to use stale stats by @hardfist in https://github.com/web-infra-dev/rspack/pull/13219
- fix: Remove DerefMut impl from ArcPath by @hardfist in https://github.com/web-infra-dev/rspack/pull/13235
- fix(defaults): make module rules regex case-sensitive by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13238
- fix: dup external module declarations by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13231
- fix: merge exports info when merging external modules by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13257
- fix(create-rspack): update @rspack/dev-server to 2.0.0-beta.4 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13268
- fix: avoid import duplicate identifiers by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/13267
- refactor: return empty artifact when access stats during artifact mutation by @hardfist in https://github.com/web-infra-dev/rspack/pull/13196
- refactor: cache regex patterns for performance by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13217
- refactor: remove &mut Compilation in CompilationAddEntry hook by @hardfist in https://github.com/web-infra-dev/rspack/pull/13251
- refactor:
SourceSizeCachefor module size cache by @CPunisher in https://github.com/web-infra-dev/rspack/pull/13258 - refactor!: use
strictThisContextOnImportsto control ns obj as this by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/13234 - refactor(core): reduce identifier hashing in hot paths by @hardfist in https://github.com/web-infra-dev/rspack/pull/13269
- docs: fix html-rspack-plugin hook types of beforeEmit and afterEmit by @Gehbt in https://github.com/web-infra-dev/rspack/pull/13184
- docs: update devServer.proxy documentation for v2 by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13206
- docs: update webpack migration guide for minimizers by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13250
- docs(dev-server): improve static files configuration documentation by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13253
- docs: update descriptions to reflect refined webpack API by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13254
- chore(deps): update dependency @ast-grep/napi to ^0.41.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13188
- chore(deps): update patch npm dependencies by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13186
- chore(ci): update rsdoctor actions by @yifancong in https://github.com/web-infra-dev/rspack/pull/13192
- chore: update codeowners and teams by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13207
- chore(deps): update dependency @module-federation/runtime-tools to v2 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13091
- chore(deps): update patch crates by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13185
- chore: remove unused dependencies from root package.json by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13236
- test: remove defaults base snapshot alignment by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/13239
- chore(deps): update dependency cspell to ^9.7.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13246
- chore(deps): update dependency lint-staged to ^16.3.2 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13247
- chore(deps): update dependency case-police to ~2.2.0 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13245
- chore(deps): update rust crate cargo_toml to 0.22.3 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12538
- chore(deps): update rust crate oneshot to v0.1.12 [security] by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/12857
- chore: remove cargo build warning by @hardfist in https://github.com/web-infra-dev/rspack/pull/13255
- chore: lock file maintenance by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/13256
- chore(ci): use cnpm mirror to setup node in self hosted mac by @stormslowly in https://github.com/web-infra-dev/rspack/pull/13233
- chore(deps): update dependency @rstest/core to ^0.9.1 by @renovate[bot] in https://github.com/web-infra-dev/rspack/pull/13244
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v2.0.0-beta.5...v2.0.0-beta.6
v1.7.8
- feat: Add
beforeModuleIdshook by @hamlim in https://github.com/web-infra-dev/rspack/pull/13223 - feat: add the map of JSON data size to rspack_plugin_rsdoctor for use rsdoctor by @yifancong in https://github.com/web-infra-dev/rspack/pull/13194
- chore(ci): update rsdoctor actions by @yifancong in https://github.com/web-infra-dev/rspack/pull/13193
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v1.7.7...v1.7.8