Skip to content

feat(rsbuild): add RSC federation host/remote example#13204

Draft
ScriptedAlchemy wants to merge 29 commits intocursor/manifest-rsc-client-data-d493from
cursor/rsbuild-rsc-federation-example-5928
Draft

feat(rsbuild): add RSC federation host/remote example#13204
ScriptedAlchemy wants to merge 29 commits intocursor/manifest-rsc-client-data-d493from
cursor/rsbuild-rsc-federation-example-5928

Conversation

@ScriptedAlchemy
Copy link
Contributor

@ScriptedAlchemy ScriptedAlchemy commented Mar 5, 2026

Summary

  • Add the base rsbuild RSC federation example packages and workspace wiring
  • Add the shared example package, baseline host example setup, manifest verification, and Playwright coverage needed for the stack
  • Keep the later module-pattern expansion and runtime-registration behavior in follow-up PRs

Stack

Current stack, bottom to top:

  • #12977 feat(mf): layer-aware sharing and runtime scope-array support
  • #13203 feat(mf): emit RSC metadata in federation manifests
  • #13204 feat(rsbuild): add RSC federation host/remote example <- this PR
  • #13208 feat(rsbuild): add RSC federation module patterns
  • #13215 feat(rsc): register federation manifest data at runtime

Why This PR Exists

This PR establishes the example workspace and baseline verification surface for the stack. It intentionally stops short of the broader module-pattern surface and the runtime-registration plugin.

References

@cursor
Copy link

cursor bot commented Mar 5, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

Rsdoctor Bundle Diff Analysis

⚠️ Note: The latest commit (354076ee82) does not have baseline artifacts. Using commit 475e5a937e for baseline comparison instead. If this seems incorrect, please wait a few minutes and try rerunning the workflow.

Found 5 projects in monorepo, 0 projects with changes.

📊 Quick Summary
Project Total Size Change
react-10k 5.7 MB 0
react-1k 826.2 KB 0
ui-components 2.3 MB 0
react-5k 2.7 MB 0
rome 984.2 KB 0

Generated by Rsdoctor GitHub Action

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

📦 Binary Size-limit

Comparing 06b2de2 to feat!: remove .wasm from default js extensions (#13321) by hardfist

❌ Size increased by 83.63KB from 49.01MB to 49.09MB (⬆️0.17%)

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 5, 2026

Merging this PR will not alter performance

✅ 16 untouched benchmarks
⏩ 3 skipped benchmarks1


Comparing cursor/rsbuild-rsc-federation-example-5928 (06b2de2) with cursor/manifest-rsc-client-data-d493 (ee282a6)

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@SyMind
Copy link
Member

SyMind commented Mar 5, 2026

@ScriptedAlchemy We should move Rsbuild RSC example in https://github.com/rstackjs/rsbuild-plugin-rsc/tree/main/examples

@ScriptedAlchemy
Copy link
Contributor Author

@ScriptedAlchemy We should move Rsbuild RSC example in https://github.com/rstackjs/rsbuild-plugin-rsc/tree/main/examples

yeah i know, im trying to build up a pr chain where incrementally layer on requirements, rsc data i need, then some basline rsc application to e2e it against to ensure manifest data is emitted and the refs are all correct, in the manifests, then connect the apps togehter and write a runtime dynamic registration layer for consumers so remote cna register client refs into host at runtime

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 5, 2026

Deploying rspack with  Cloudflare Pages  Cloudflare Pages

Latest commit: f393a02
Status: ✅  Deploy successful!
Preview URL: https://50f40aaa.rspack-v2.pages.dev
Branch Preview URL: https://cursor-rsbuild-rsc-federatio.rspack-v2.pages.dev

View logs

@ScriptedAlchemy ScriptedAlchemy changed the title Rsbuild rsc federation example example(rsbuild): add RSC federation host/remote example Mar 5, 2026
@ScriptedAlchemy ScriptedAlchemy changed the title example(rsbuild): add RSC federation host/remote example feat(rsbuild): add RSC federation host/remote example Mar 5, 2026
@github-actions github-actions bot added the release: feature release: feature related release(mr only) label Mar 5, 2026
@ScriptedAlchemy ScriptedAlchemy force-pushed the cursor/manifest-rsc-client-data-d493 branch from 2266fc4 to d5a3b9a Compare March 6, 2026 02:11
@ScriptedAlchemy ScriptedAlchemy force-pushed the cursor/rsbuild-rsc-federation-example-5928 branch 2 times, most recently from 9142072 to 8380495 Compare March 6, 2026 03:23
@ScriptedAlchemy ScriptedAlchemy force-pushed the cursor/manifest-rsc-client-data-d493 branch from d625616 to 5686d5e Compare March 6, 2026 04:54
@ScriptedAlchemy ScriptedAlchemy force-pushed the cursor/rsbuild-rsc-federation-example-5928 branch from 8380495 to dcc2e78 Compare March 6, 2026 04:54
ScriptedAlchemy and others added 15 commits March 6, 2026 14:37
…d493' into cursor/rsbuild-rsc-federation-example-5928

# Conflicts:
#	crates/rspack_plugin_mf/src/container/container_entry_module.rs
#	pnpm-lock.yaml
…d493' into cursor/rsbuild-rsc-federation-example-5928
…d493' into cursor/rsbuild-rsc-federation-example-5928

# Conflicts:
#	pnpm-lock.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: feature release: feature related release(mr only)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants