Skip to content

Add react-flight-server-fb package for Meta's internal bundler#36309

Open
imdreamrunner wants to merge 2 commits intofacebook:mainfrom
imdreamrunner:main
Open

Add react-flight-server-fb package for Meta's internal bundler#36309
imdreamrunner wants to merge 2 commits intofacebook:mainfrom
imdreamrunner:main

Conversation

@imdreamrunner
Copy link
Copy Markdown

@imdreamrunner imdreamrunner commented Apr 17, 2026

Summary

  • Adds a new react-flight-server-fb package providing RSC Flight bindings for Meta's internal bundler stack
  • Unlike webpack/turbopack integrations, this uses no manifest. Module metadata is self-contained in ClientReference objects and sent over the wire as-is
  • Registers dom-browser-fb and dom-node-fb host configs for Rollup builds targeting FB_WWW_DEV and FB_WWW_PROD

Key design differences from other bundler

  • No build-time manifest
  • Module IDs use Haste module names (e.g. "MyComponent"), with named exports encoded as "Module#export", rather than file paths resolved through a manifest
  • Client-side loading uses Bootloader.handlePayload() + JSResource().load()
  • resolveClientReferenceMetadata and resolveClientReference are pass-throughs

How did you test this change?

E2E integration test is set up on Meta's internal system.

@meta-cla meta-cla bot added the CLA Signed label Apr 17, 2026
@imdreamrunner imdreamrunner force-pushed the main branch 3 times, most recently from a4d160c to 38b6fd5 Compare April 17, 2026 17:49
@imdreamrunner imdreamrunner marked this pull request as ready for review April 17, 2026 17:53
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