Skip to content

feat: Migrate to rsbuild 2.0 - #4116

Merged
zatteo merged 1 commit into
masterfrom
feat/rsbuild-2
Sep 17, 2026
Merged

zatteo merged 1 commit into
masterfrom
feat/rsbuild-2

Conversation

@zatteo

@zatteo zatteo commented Jul 30, 2026

Copy link
Copy Markdown
Member

See linagora/cozy-libs#3121

Summary by CodeRabbit

  • Performance

    • Restored optimized code-splitting behavior to improve application loading and resource delivery.
  • Maintenance

    • Updated build tooling for improved compatibility with modern JavaScript features.
    • Added support for generating build performance reports in CI environments.

codescene-delta-analysis[bot]

This comment was marked as outdated.

@bundlemon

bundlemon Bot commented Jul 30, 2026

Copy link
Copy Markdown

BundleMon

Files updated (12)
Status Path Size Limits
static/resource/(hash).js
336.94KB (+871B +0.25%) -
public/index.html
745B (-11B -1.46%) -
index.html
826B (-13B -1.55%) -
static/css/public.(hash).css
2.72KB (-42B -1.48%) -
static/js/lib-router.(hash).js
21.86KB (-68B -0.3%) -
static/js/lib-react.(hash).js
43.8KB (-83B -0.18%) -
static/js/lib-polyfill.(hash).js
22.37KB (-401B -1.72%) -
static/js/intents.(hash).js
17.18KB (-534B -2.95%) -
static/js/public.(hash).js
27.95KB (-773B -2.63%) -
static/js/main.(hash).js
58.38KB (-1023B -1.68%) -
services/dacc.js
2.16KB (-255.72KB -99.16%) -
services/qualificationMigration.js
2.45KB (-275.32KB -99.12%) -
Unchanged files (4)
Status Path Size Limits
static/css/main.(hash).css
8.25KB -
manifest.webapp
6.06KB -
intents/index.html
668B -
assets/manifest.json
185B -

Total files change -533.07KB -49.11%

Groups updated (3)
Status Path Size Limits
**/*.{png,svg,ico}
2.19MB (+28.22KB +1.28%) -
**/*.css
67.91KB (+37B +0.05%) -
**/*.js
5.55MB (-278.66KB -4.68%) -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 211fa0aa-20c8-4cc6-98a6-f9565c72348a

📥 Commits

Reviewing files that changed from the base of the PR and between d3ac04f and fb924c8.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (2)
  • package.json
  • rsbuild.config.mjs

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.


Walkthrough

The change upgrades @rsbuild/core and rsbuild-config-cozy-app, removes the @rsdoctor/rspack-plugin dependency, and adds core-js. The web environment now uses inherited chunk-splitting behavior. When RSDOCTOR_CI is set, the configuration enables RsdoctorRspackPlugin and writes a brief JSON report to the project root.

Priority: ⬇️ Low

Change: Other

Merge Risk: ⚪ Minimal · up to fb924

The build-toolchain update has no supported current-head issue requiring changes before merge.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: migrating the project to Rsbuild 2.0.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/rsbuild-2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

codescene-delta-analysis[bot]

This comment was marked as outdated.

Comment thread package.json Outdated
codescene-delta-analysis[bot]

This comment was marked as outdated.

codescene-delta-analysis[bot]

This comment was marked as outdated.

@codescene-delta-analysis codescene-delta-analysis Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gates Passed
3 Quality Gates Passed

See analysis details in CodeScene

Quality Gate Profile: The Bare Minimum
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

@github-actions

Copy link
Copy Markdown
Contributor

Rsdoctor Bundle Diff Analysis

📊 Quick Summary
Project Total Size Gzip Size Change Gzip Change
rsdoctor-data.json 32.6 MB 8.7 MB -123.4 KB (-0.4%) -25.8 KB (-0.3%)
📋 Detailed Reports (Click to expand)

📁 rsdoctor-data.json

Path: rsdoctor-data.json

📌 Baseline Commit: fcf05b6c987b8b5c117483f5af1decc487f7eda7 | PR: #4197

Metric Current Baseline Change
📊 Total Size 32.6 MB 32.8 MB -123.4 KB (-0.4%)
🗜️ Gzip Size 8.7 MB 8.8 MB -25.8 KB (-0.3%)
📄 JavaScript 18.2 MB 18.3 MB -151.7 KB (-0.8%)
🎨 CSS 368.9 KB 368.8 KB +95.0 B (0.0%)
🌐 HTML 6.3 KB 6.3 KB -60.0 B (-0.9%)
📁 Other Assets 14.1 MB 14.1 MB +28.2 KB (0.2%)

📦 Download Diff Report: rsdoctor-data.json Bundle Diff

Generated by Rsdoctor GitHub Action

@zatteo
zatteo merged commit b11e4e2 into master Sep 17, 2026
8 checks passed
@zatteo
zatteo deleted the feat/rsbuild-2 branch September 17, 2026 08:54
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.

2 participants