Skip to content

chore(deps): upgrade Rsbuild to v2.2.0-rc.0 - #8818

Merged
chenjiahan merged 1 commit into
web-infra-dev:mainfrom
chenjiahan:chenjiahan/chore-rsbuild-2.2-rc
Aug 24, 2026
Merged

chenjiahan merged 1 commit into
web-infra-dev:mainfrom
chenjiahan:chenjiahan/chore-rsbuild-2.2-rc

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

This PR validates Modern.js against the upcoming Rsbuild 2.2 release, which includes Rspack 2.2 and enables split chunks by default for Node.js builds.
It upgrades @rsbuild/core to 2.2.0-rc.0, updates @swc/plugin-loadable-components to 12.0.0, and refreshes the affected builder snapshots.

Related Links

Checklist

  • I have added changeset via pnpm run change.
  • I have updated the documentation.
  • I have added tests to cover my changes.

@changeset-bot

changeset-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e15fcdd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 119 packages
Name Type
@modern-js/plugin-data-loader Patch
@modern-js/runtime Patch
@modern-js/app-tools Patch
@modern-js/adapter-rstest Patch
@modern-js/plugin-bff Patch
@modern-js/plugin Patch
@modern-js/builder Patch
@modern-js/plugin-styled-components Patch
@modern-js/plugin-i18n Patch
@integration-test/alias-set Patch
app-document Patch
async-entry-test Patch
tmp Patch
bff-api-app Patch
bff-client-app Patch
bff-indep-client-app Patch
bff-hono Patch
integration-clean-dist-path Patch
integration-compatibility Patch
integration-custom-dist-path Patch
custom-file-system-entry Patch
integration-custom-template Patch
deploy Patch
deploy-server Patch
dev-server Patch
integration-disable-html Patch
app-custom-entries Patch
app-custom-routes-runtime Patch
app-custom Patch
app-entry Patch
app-route Patch
app-entry-server Patch
i18n-app-csr-html-lang Patch
i18n-app Patch
i18n-app-ssr-html-lang Patch
i18n-app-ssr Patch
i18n-custom-i18n-wrapper Patch
i18n-mf-app-provider Patch
i18n-mf-component-provider Patch
i18n-mf-consumer Patch
i18n-routes Patch
i18n-routes-ssr Patch
@integration-test/image-component Patch
main-entry-name Patch
nonce Patch
pure-esm-project Patch
react-compiler-test Patch
routes-match Patch
routes Patch
app-rsbuild-hooks Patch
rsc-csr-app Patch
rsc-csr-routes Patch
rsc-ssr-app Patch
rsc-ssr-routes Patch
basic-app-rstest-browser Patch
basic-app-rstest Patch
runtime-custom-plugin Patch
runtime-custom-config-plugin Patch
select-mul-entry-test Patch
select-one-entry-test Patch
server-config Patch
server-esm-tsx Patch
server-json-script Patch
server-monitors Patch
server-prod Patch
server-routes Patch
@source-code-build/app Patch
ssg-fixtures-mega-list-routes Patch
ssg-fixtures-nested-routes Patch
ssg-fixtures-simple Patch
ssg-fixtures-web-server Patch
ssr-base-async-entry-test Patch
ssr-base-async-pre-entry-test Patch
ssr-base-json-test Patch
ssr-base-test Patch
ssr-base-fallback-test Patch
init Patch
ssr-base-loadable Patch
ssr-partial-test Patch
rsc-closing-tags-test Patch
ssr-script-loading Patch
ssr-useid-test Patch
ssr-streaming-inline-test Patch
ssr-streaming-lazy-test Patch
ssr-streaming-test Patch
styled-components-stream Patch
styled-components-string Patch
integration-tailwindcss-v2 Patch
integration-tailwindcss-v3 Patch
integration-tailwindcss-v4-tools Patch
integration-tailwindcss-v4 Patch
tmp-dir Patch
write-to-dist Patch
@modern-js/bundle-diff-benchmark Patch
@modern-js/plugin-ssg Patch
@modern-js/image Patch
@modern-js/plugin-polyfill Patch
entries-app-builder Patch
@modern-js/server-core Patch
@modern-js/server Patch
@modern-js/render Patch
@modern-js/prod-server Patch
@modern-js/server-runtime Patch
@modern-js/server-utils Patch
@modern-js/main-doc Patch
@modern-js/tsconfig Patch
@modern-js/bff-core Patch
@modern-js/bff-runtime Patch
@modern-js/create-request Patch
@modern-js/create Patch
@modern-js/i18n-utils Patch
@modern-js/runtime-utils Patch
@modern-js/sandpack-react Patch
@modern-js/types Patch
@modern-js/utils Patch
@modern-js/rslib Patch
@scripts/prebundle Patch
@scripts/rstest-config Patch
@scripts/release-node Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Aug 24, 2026

Copy link
Copy Markdown

Deploy Preview for modernjs-byted ready!

Name Link
🔨 Latest commit e15fcdd
🔍 Latest deploy log https://app.netlify.com/projects/modernjs-byted/deploys/6a8c08366b0d6e0008ecb85e
😎 Deploy Preview https://deploy-preview-8818--modernjs-byted.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 99 (🔴 down 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@chenjiahan
chenjiahan merged commit 3748f08 into web-infra-dev:main Aug 24, 2026
10 checks passed
@SoonIter

Copy link
Copy Markdown
Member

<agent: daily-job rstack ecosystem-ci>

Ecosystem CI regression: rslib/modernjs

Attribution: Confirmed downstream source

Impact: Rslib ecosystem CI now reaches Modern.js's styled-components integration with a Rspack 2.2/SWC 77 host, where all 8 SSR assertions fall back to empty client HTML.

Why this PR

This PR upgrades Modern.js to Rsbuild 2.2.0-rc.0 and correctly moves @swc/plugin-loadable-components to 12.0.0, but leaves @swc/plugin-styled-components at 12.12.1. The former deserialization failures recover, while both streaming and string styled-components SSR paths still fall back with reason: "error"; @swc/plugin-styled-components 13.0.0 is the matching SWC 77 generation. This exposes a downstream WASM-plugin compatibility constraint rather than an Rslib product regression.

Suggested next step

Modern.js should upgrade @swc/plugin-styled-components to 13.0.0 (or another verified SWC-77-compatible build). Verify the focused integration/styled-components suite, then pnpm test --stack rslib modernjs.

Evidence and attribution checks

@caohuilin caohuilin mentioned this pull request Aug 26, 2026
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

Sponsor
SponsoredKunjungi sekarang
Promo