Skip to content

Upgrade to rsbuild 2 - #3121

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

zatteo merged 2 commits into
masterfrom
feat/rsbuild-2

Conversation

@zatteo

@zatteo zatteo commented Aug 27, 2026

Copy link
Copy Markdown
Member

Goal

=> support latest bundler features (RSC support, better ESM support, etc)
=> benefit from performance improvments (for dev and build env)

Benchmark

For twake-drive with hyperfine --warmup 1 --runs 5 'yarn build'

Before: 6,48s
After: 4,60s (-33%)

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 2324a5e2-28fb-4830-a87a-2024e6047a68


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.

},
"devDependencies": {
"@rsbuild/core": "1.5.4",
"@rsbuild/core": "2.2.0",

@zatteo zatteo Aug 27, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Important update

We do not use our custom browserlist since we migrated to rsbuild which means we use default rsbuild values. They changed here.

From (rsbuild 1)
chrome >= 87
edge >= 88
firefox >= 78
safari >= 14

To (rsbuild 2)
chrome >= 107
edge >= 107
firefox >= 104
safari >= 16

Is it OK? What do we want to target? @Crash-- @JF-Cozy @doubleface @rezk2ll

@zatteo zatteo Aug 27, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

FYI:

  • cozy-stack: no transpilation/polyfill
  • cloudery: babel with browserslist-config-cozy
  • sign up: Vite 7 default so Baseline Widely Available on 2025-05-01 (exactly same as rsbuild 2)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sign up: Vite 7 default so Baseline Widely Available on 2025-05-01 (exactly same as rsbuild 2)

We fixed issue on safari 15 few days ago for signup... https://github.com/linagora/twake-workplace-private/issues/1535

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For the moment, please wait on that. I need to check the figures to define our current strategy of supported browsers.

@zatteo zatteo Sep 17, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Seen together, for now, we stay on rsbuild 1.x defaults to avoid breaking changes

It increase bundle size to force a chunk with every lib together especially for intent bundle.
Because this chunk contains every cozy lib, it makes also little
sense because it changes often. This changes was tested and validated
in cozy-drive in
github.com/cozy/cozy-drive/commit/8eb379f9127a381813f6ccc1c08368faa54470ea
BREAKING CHANGE: Update "@rsbuild/core": ">= 2.2.7" and add "core-js": ">= 3.50.0"
@zatteo
zatteo merged commit 8bed013 into master Sep 17, 2026
3 checks passed
@zatteo
zatteo deleted the feat/rsbuild-2 branch September 17, 2026 06:57
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.

3 participants