Skip to content

feat(rsc-mf): implement MF RSC support#8366

Draft
ScriptedAlchemy wants to merge 327 commits intoweb-infra-dev:mainfrom
ScriptedAlchemy:cursor/module-federation-rsc-example-16dd
Draft

feat(rsc-mf): implement MF RSC support#8366
ScriptedAlchemy wants to merge 327 commits intoweb-infra-dev:mainfrom
ScriptedAlchemy:cursor/module-federation-rsc-example-16dd

Conversation

@ScriptedAlchemy
Copy link
Copy Markdown
Contributor

@ScriptedAlchemy ScriptedAlchemy commented Feb 23, 2026

What changed vs main

  • add a full integration fixture at tests/integration/rsc-mf (host + remote) that exercises Module Federation + React Server Components end-to-end in both dev and build flows
  • keep @module-federation/modern-js-v3 consumption canary-scoped to the new rsc-mf fixture (tests/integration/rsc-mf/{host,remote})
  • remove the vendored in-repo packages/modernjs-v3 copy so plugin source-of-truth remains in module-federation/core
  • restore i18n MF fixture package specs for @module-federation/modern-js-v3 back to published version (2.0.0) instead of workspace:*
  • keep dependency-consistency strict globally, while ignoring only the dedicated canary fixture paths in scripts/check-dependencies.js

Why

  • avoid duplicating plugin implementation across repositories now that modernjs-v3 updates ship from module-federation/core
  • validate the real canary artifact in Modern.js integration tests rather than validating an in-repo copy
  • keep CI deterministic with canary usage isolated to explicit integration fixtures

Validation

  • pnpm run check-dependencies
  • pnpm run test:framework --testPathPattern=integration/rsc-mf/tests/index.test.ts

Related

  • core plugin PR: module-federation/core#4467

cursoragent and others added 16 commits February 18, 2026 02:59
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Prevent static middleware path traversal-by-reset by resolving requests under the bundles root with explicit containment checks, and make bridge loading dedupe atomic by caching a pending promise before triggering remote load side effects.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Co-authored-by: Zack Jackson <ScriptedAlchemy@users.noreply.github.com>
Update fixture package pins to the latest core canaries and tighten rsc-mf containment
resolution contracts to match the new modern-js-v3 loading behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
…cy check

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 23, 2026

⚠️ No Changeset found

Latest commit: 6c1c8ea

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 23, 2026

Deploy Preview for modernjs-byted ready!

Name Link
🔨 Latest commit 6c1c8ea
🔍 Latest deploy log https://app.netlify.com/projects/modernjs-byted/deploys/699fb14dd82fe600082acaf5
😎 Deploy Preview https://deploy-preview-8366--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: 98 (🔴 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

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

@ScriptedAlchemy ScriptedAlchemy changed the title test(integration): add rsc-mf fixture for module federation + RSC feat(modernjs-v3): port MF v3 RSC bridge and add rsc-mf fixture Feb 23, 2026
…age fixture-scoped

Drop the in-repo modernjs-v3 package copy now that plugin updates ship from module-federation/core canaries, and restore i18n fixture dependency specs to published versions.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ScriptedAlchemy ScriptedAlchemy changed the title feat(modernjs-v3): port MF v3 RSC bridge and add rsc-mf fixture feat(rsc-mf): validate core modernjs-v3 canary via MF + RSC fixture Feb 23, 2026
@ScriptedAlchemy ScriptedAlchemy changed the title feat(rsc-mf): validate core modernjs-v3 canary via MF + RSC fixture feat(rsc-mf): implement MF RSC support Feb 24, 2026
ScriptedAlchemy and others added 2 commits February 24, 2026 00:10
…o cursor/module-federation-rsc-example-16dd
Co-authored-by: Cursor <cursoragent@cursor.com>
@2heal1
Copy link
Copy Markdown
Member

2heal1 commented Feb 24, 2026

Want to confirm whether this PR is ready for review ?

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