Skip to content

Commit ca333a7

Browse files
committed
Add react-flight-server-fb package for Meta's internal bundler (#36309)
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory. Before submitting a pull request, please make sure the following is done: 1. Fork [the repository](https://github.com/facebook/react) and create your branch from `main`. 2. Run `yarn` in the repository root. 3. If you've fixed a bug or added code that should be tested, add tests! 4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development. 5. Run `yarn test --prod` to test in the production environment. It supports the same options as `yarn test`. 6. If you need a debugger, run `yarn test --debug --watch TestName`, open `chrome://inspect`, and press "Inspect". 7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`). 8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files. 9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`). 10. If you haven't already, complete the CLA. Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html --> ## Summary <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> - 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? <!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface. How exactly did you verify that your PR solves the issue you wanted to solve? If you leave this empty, your PR will very likely be closed. --> E2E integration test is set up on Meta's internal system. DiffTrain build for [ad5dfc8](ad5dfc8)
1 parent c85c5b8 commit ca333a7

42 files changed

Lines changed: 31368 additions & 86 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
142cfde89edab3d4eabd6335458b4c8736cebfb6
1+
ad5dfc82b7107728da1430dd142f75b97b684dac
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
142cfde89edab3d4eabd6335458b4c8736cebfb6
1+
ad5dfc82b7107728da1430dd142f75b97b684dac

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@ __DEV__ &&
14821482
exports.useTransition = function () {
14831483
return resolveDispatcher().useTransition();
14841484
};
1485-
exports.version = "19.3.0-www-classic-142cfde8-20260422";
1485+
exports.version = "19.3.0-www-classic-ad5dfc82-20260427";
14861486
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14871487
"function" ===
14881488
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1482,7 +1482,7 @@ __DEV__ &&
14821482
exports.useTransition = function () {
14831483
return resolveDispatcher().useTransition();
14841484
};
1485-
exports.version = "19.3.0-www-modern-142cfde8-20260422";
1485+
exports.version = "19.3.0-www-modern-ad5dfc82-20260427";
14861486
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14871487
"function" ===
14881488
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,4 +610,4 @@ exports.useSyncExternalStore = function (
610610
exports.useTransition = function () {
611611
return ReactSharedInternals.H.useTransition();
612612
};
613-
exports.version = "19.3.0-www-classic-142cfde8-20260422";
613+
exports.version = "19.3.0-www-classic-ad5dfc82-20260427";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,4 +610,4 @@ exports.useSyncExternalStore = function (
610610
exports.useTransition = function () {
611611
return ReactSharedInternals.H.useTransition();
612612
};
613-
exports.version = "19.3.0-www-modern-142cfde8-20260422";
613+
exports.version = "19.3.0-www-modern-ad5dfc82-20260427";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ exports.useSyncExternalStore = function (
614614
exports.useTransition = function () {
615615
return ReactSharedInternals.H.useTransition();
616616
};
617-
exports.version = "19.3.0-www-classic-142cfde8-20260422";
617+
exports.version = "19.3.0-www-classic-ad5dfc82-20260427";
618618
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
619619
"function" ===
620620
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ exports.useSyncExternalStore = function (
614614
exports.useTransition = function () {
615615
return ReactSharedInternals.H.useTransition();
616616
};
617-
exports.version = "19.3.0-www-modern-142cfde8-20260422";
617+
exports.version = "19.3.0-www-modern-ad5dfc82-20260427";
618618
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
619619
"function" ===
620620
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20434,10 +20434,10 @@ __DEV__ &&
2043420434
(function () {
2043520435
var internals = {
2043620436
bundleType: 1,
20437-
version: "19.3.0-www-classic-142cfde8-20260422",
20437+
version: "19.3.0-www-classic-ad5dfc82-20260427",
2043820438
rendererPackageName: "react-art",
2043920439
currentDispatcherRef: ReactSharedInternals,
20440-
reconcilerVersion: "19.3.0-www-classic-142cfde8-20260422"
20440+
reconcilerVersion: "19.3.0-www-classic-ad5dfc82-20260427"
2044120441
};
2044220442
internals.overrideHookState = overrideHookState;
2044320443
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20472,7 +20472,7 @@ __DEV__ &&
2047220472
exports.Shape = Shape;
2047320473
exports.Surface = Surface;
2047420474
exports.Text = Text;
20475-
exports.version = "19.3.0-www-classic-142cfde8-20260422";
20475+
exports.version = "19.3.0-www-classic-ad5dfc82-20260427";
2047620476
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2047720477
"function" ===
2047820478
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20205,10 +20205,10 @@ __DEV__ &&
2020520205
(function () {
2020620206
var internals = {
2020720207
bundleType: 1,
20208-
version: "19.3.0-www-modern-142cfde8-20260422",
20208+
version: "19.3.0-www-modern-ad5dfc82-20260427",
2020920209
rendererPackageName: "react-art",
2021020210
currentDispatcherRef: ReactSharedInternals,
20211-
reconcilerVersion: "19.3.0-www-modern-142cfde8-20260422"
20211+
reconcilerVersion: "19.3.0-www-modern-ad5dfc82-20260427"
2021220212
};
2021320213
internals.overrideHookState = overrideHookState;
2021420214
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -20243,7 +20243,7 @@ __DEV__ &&
2024320243
exports.Shape = Shape;
2024420244
exports.Surface = Surface;
2024520245
exports.Text = Text;
20246-
exports.version = "19.3.0-www-modern-142cfde8-20260422";
20246+
exports.version = "19.3.0-www-modern-ad5dfc82-20260427";
2024720247
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2024820248
"function" ===
2024920249
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)