Skip to content

chore(frontend): upgrade @rsbuild/core to ^2.1.6 (pulls Rspack 2.1.4)#39

Merged
eouzoe merged 1 commit into
devfrom
chore/upgrade-rsbuild-2.1.6
Jul 16, 2026
Merged

chore(frontend): upgrade @rsbuild/core to ^2.1.6 (pulls Rspack 2.1.4)#39
eouzoe merged 1 commit into
devfrom
chore/upgrade-rsbuild-2.1.6

Conversation

@eouzoe

@eouzoe eouzoe commented Jul 16, 2026

Copy link
Copy Markdown
Owner

摘要

将前端构建依赖 @rsbuild/core^2.1.5 升级到 ^2.1.6。由于 Rspack 是 Rsbuild 的传递依赖(由 Rsbuild 用 ~2.1.x 锁版本),此升级会顺带把底层 @rspack/core2.1.3 → 2.1.4

注:@rspack/core 不是本仓库的直接依赖,仅出现在 bun.lock 中。无法单独在 package.json 升级它——Rspack 版本始终跟随 Rsbuild 走。因此本 PR 为单一原子变更(一个镀锡)。

@rsbuild/core 2.1.5 → 2.1.6 具体变更(GitHub release 实查)

  • feat(deps): update @rspack/core to 2.1.4 (#8107) — 核心改动,底层 Rspack 2.1.3 → 2.1.4
  • perf: upgrade rslog to v2.2.0 (#8089)
  • perf(core): deduplicate concurrent loadBundle calls (#8105)
  • fix(create-rsbuild): preserve test template types (#8084)
  • refactor(core): use shared load config package (#8085)
  • chore(deps): update patch dependencies / pnpm to v11.10.0 等

@rspack/core 2.1.3 → 2.1.4 具体变更(patch 级)

来源:v2.1.3...v2.1.4

  • feat(runtime): support logical assignment for chunk loading global (#14655)
  • feat: support persistent cache for module hashes (#14717,后于 #14763 revert)
  • feat: support static worker new URL output (#14728)
  • feat: support fine-grained import (...)
  • fix(binding): clean up chunk wrappers when compiler is GCed (#14736)
  • fix: enable runtime mode esm context imports (#14740)
  • fix: respect RSPACK_BINDING in loader workers (#14775)
  • fix: invalidate the target compiler for lazy compilation (#14781)
  • 多项 refactor / chore(ci) / deps 更新

关于「快 5 倍」的说明(纠正)

「比前版快 5 倍」并非 2.1.4 patch 的宣称。该量级的性能提升属于 Rspack 2.1 整个 minor 发布(2026-06-26):

  • React Compiler 的 Rust 实现比 Babel 实现快 7–13×(仅 React Compiler 编译时间,需显式开启)
  • Rsbuild 2.1 的并行 Babel / SVGR 使 build 性能提升最高 30%

上述均非 2.1.3→2.1.4 的增量。本 PR 是常规 patch 跟进,主要价值是保持依赖在最新稳定线、拿到 2.1.4 的 bug fixes。

验证

  • bun install 更新 lock 至 Rsbuild 2.1.6 + Rspack 2.1.4 ✓
  • bunx rsbuild build 成功产出 client + SSR 产物(build 1.08s / 1.19s)✓
  • pre-commit hooks(oxlint / oxfmt / prettier)通过 ✓

改动文件

  • apps/frontend/package.json@rsbuild/core ^2.1.5^2.1.6
  • bun.lock — Rsbuild 2.1.6 + Rspack 2.1.4 锁定条目

@eouzoe
eouzoe merged commit 2352d85 into dev Jul 16, 2026
1 check passed
@eouzoe
eouzoe deleted the chore/upgrade-rsbuild-2.1.6 branch July 16, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant