Skip to content

Comments

feat(nextjs-mf): support Next.js 16 RSC with v9 hydration stabilization#4425

Open
ScriptedAlchemy wants to merge 21 commits intomainfrom
nextjs-mf-v9-e2e-stabilize-20260207
Open

feat(nextjs-mf): support Next.js 16 RSC with v9 hydration stabilization#4425
ScriptedAlchemy wants to merge 21 commits intomainfrom
nextjs-mf-v9-e2e-stabilize-20260207

Conversation

@ScriptedAlchemy
Copy link
Member

@ScriptedAlchemy ScriptedAlchemy commented Feb 12, 2026

Summary

This PR delivers the Next.js Module Federation v9 stabilization line with support for Next.js 16 RSC behavior and hydration reliability improvements.

What Changed

  • Reworked and hardened @module-federation/nextjs-mf runtime integration for modern Next.js app/router flows.
  • Added/fixed loader behavior and runtime edge cases affecting hydration and asset handling.
  • Expanded Next.js and app-router test coverage and supporting e2e harness updates.
  • Updated supporting package integrations used by this path (@module-federation/node, @module-federation/enhanced, @module-federation/manifest, @module-federation/modern-js, @module-federation/modern-js-v3, @module-federation/sdk).

Changesets

This branch includes contextual changesets for the modified publishable packages and keeps existing package-specific notes (for example runtime-core and dts-plugin) intact.

Branch Status

  • Base: main
  • Synced with latest origin/main
  • Head commit: af5af21c4

ScriptedAlchemy and others added 4 commits February 7, 2026 17:00
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
@changeset-bot
Copy link

changeset-bot bot commented Feb 12, 2026

🦋 Changeset detected

Latest commit: cbc1c5a

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

This PR includes changesets to release 43 packages
Name Type
@module-federation/nextjs-mf Patch
@module-federation/node Patch
@module-federation/enhanced Patch
@module-federation/manifest Patch
@module-federation/modern-js Patch
@module-federation/modern-js-v3 Patch
@module-federation/sdk Patch
@module-federation/rsbuild-plugin Patch
@module-federation/rspress-plugin Patch
@module-federation/storybook-addon Patch
shared-tree-shaking-no-server-host Patch
shared-tree-shaking-no-server-provider Patch
@module-federation/rspack Patch
shared-tree-shaking-with-server-host Patch
shared-tree-shaking-with-server-provider Patch
@module-federation/devtools Patch
@module-federation/cli Patch
@module-federation/data-prefetch Patch
@module-federation/dts-plugin Patch
@module-federation/esbuild Patch
@module-federation/managers Patch
@module-federation/metro Patch
@module-federation/retry-plugin Patch
@module-federation/runtime-core Patch
@module-federation/runtime Patch
@module-federation/utilities Patch
@module-federation/webpack-bundler-runtime Patch
@module-federation/bridge-react-webpack-plugin Patch
@module-federation/bridge-react Patch
@module-federation/bridge-vue3 Patch
remote5 Patch
remote6 Patch
website-new Patch
@module-federation/metro-plugin-rnc-cli Patch
@module-federation/metro-plugin-rnef Patch
@module-federation/runtime-tools Patch
@module-federation/inject-external-runtime-core-plugin Patch
@module-federation/third-party-dts-extractor Patch
@module-federation/bridge-shared Patch
@module-federation/error-codes Patch
create-module-federation Patch
@module-federation/treeshake-server Patch
@module-federation/treeshake-frontend 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
Copy link

netlify bot commented Feb 12, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit cbc1c5a
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/69969047a0071100089a1cc4
😎 Deploy Preview https://deploy-preview-4425--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@ScriptedAlchemy ScriptedAlchemy changed the title feat(nextjs-mf): consolidate v9 stabilization branch feat(nextjs-mf): support Next.js 16 RSC with v9 hydration stabilization Feb 12, 2026
@ScriptedAlchemy ScriptedAlchemy changed the title feat(nextjs-mf): support Next.js 16 RSC with v9 hydration stabilization feat(nextjs-mf): support Next.js 16 RSC Feb 12, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: acf8166e8c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ScriptedAlchemy ScriptedAlchemy changed the title feat(nextjs-mf): support Next.js 16 RSC feat(nextjs-mf): support Next.js 16 RSC with v9 hydration stabilization Feb 12, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 14, 2026

Bundle Size Report

8 package(s) changed, 33 unchanged.

Package Total dist Delta ESM gzip Delta
dts-plugin 20.16 MB +19.55 MB (+3194.6%) 1.43 MB +1.41 MB (+6166.0%)
nextjs-mf 86.7 kB -25327 B (-22.2%) 278 B -6 B (-2.1%)
node 131.1 kB +8.0 kB (+6.5%) 489 B no change
manifest 139.7 kB +4.9 kB (+3.7%) 182 B no change
enhanced 1.29 MB +4.5 kB (+0.3%) 744 B no change
sdk 105.6 kB +988 B (+0.9%) 8.1 kB no change
modern-js-plugin 195.5 kB +844 B (+0.4%) 1.2 kB no change
modern-js-plugin-v3 187.1 kB +844 B (+0.4%) 900 B no change

Total dist: 26.43 MB (+19.55 MB (+283.8%))
Total ESM gzip: 1.54 MB (+1.41 MB (+1041.2%))

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 14, 2026

Open in StackBlitz

@module-federation/devtools

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/devtools@cbc1c5a

@module-federation/cli

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/cli@cbc1c5a

create-module-federation

pnpm add https://pkg.pr.new/module-federation/core/create-module-federation@cbc1c5a

@module-federation/data-prefetch

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/data-prefetch@cbc1c5a

@module-federation/dts-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/dts-plugin@cbc1c5a

@module-federation/enhanced

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/enhanced@cbc1c5a

@module-federation/error-codes

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/error-codes@cbc1c5a

@module-federation/managers

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/managers@cbc1c5a

@module-federation/manifest

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/manifest@cbc1c5a

@module-federation/metro

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro@cbc1c5a

@module-federation/metro-plugin-rnc-cli

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro-plugin-rnc-cli@cbc1c5a

@module-federation/metro-plugin-rnef

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/metro-plugin-rnef@cbc1c5a

@module-federation/modern-js-v3

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/modern-js-v3@cbc1c5a

@module-federation/retry-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/retry-plugin@cbc1c5a

@module-federation/rsbuild-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rsbuild-plugin@cbc1c5a

@module-federation/rspack

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rspack@cbc1c5a

@module-federation/rspress-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/rspress-plugin@cbc1c5a

@module-federation/runtime

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime@cbc1c5a

@module-federation/runtime-core

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime-core@cbc1c5a

@module-federation/runtime-tools

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/runtime-tools@cbc1c5a

@module-federation/sdk

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/sdk@cbc1c5a

@module-federation/third-party-dts-extractor

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/third-party-dts-extractor@cbc1c5a

@module-federation/treeshake-frontend

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/treeshake-frontend@cbc1c5a

@module-federation/treeshake-server

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/treeshake-server@cbc1c5a

@module-federation/webpack-bundler-runtime

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/webpack-bundler-runtime@cbc1c5a

@module-federation/bridge-react

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-react@cbc1c5a

@module-federation/bridge-react-webpack-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-react-webpack-plugin@cbc1c5a

@module-federation/bridge-shared

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-shared@cbc1c5a

@module-federation/bridge-vue3

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/bridge-vue3@cbc1c5a

@module-federation/inject-external-runtime-core-plugin

pnpm add https://pkg.pr.new/module-federation/core/@module-federation/inject-external-runtime-core-plugin@cbc1c5a

commit: cbc1c5a

@github-actions
Copy link
Contributor

github-actions bot commented Feb 14, 2026

Android Release APK for all devices

🔗 Download link.

Note: if the download link expires, please re-run the workflow to generate a new build.

Generated at 2026-02-15T22:31:02.853Z UTC

@github-actions
Copy link
Contributor

github-actions bot commented Feb 14, 2026

iOS Release APP for simulators

🔗 Download link.

Note: if the download link expires, please re-run the workflow to generate a new build.

Generated at 2026-02-15T22:28:58.577Z UTC

@darq37
Copy link

darq37 commented Feb 16, 2026

🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants