FB-specific builds of Flight Server, Flight Client, and React Shared Subset (#27579)

This PR adds a new FB-specific configuration of Flight. We also need to
bundle a version of ReactSharedSubset that will be used for running
Flight on the server.

This initial implementation does not support server actions yet.

The FB-Flight still uses the text protocol on the server (the flag
`enableBinaryFlight` is set to false). It looks like we need some
changes in Hermes to properly support this binary format.
This commit is contained in:
Andrey Lunyov
2023-11-27 18:34:58 -05:00
committed by GitHub
parent 6c7b41da3d
commit c17a27ef49
18 changed files with 960 additions and 9 deletions

View File

@@ -396,13 +396,34 @@ module.exports = [
'react-dom',
'react-dom/src/ReactDOMSharedSubset.js',
'react-dom-bindings',
'react-server-dom-fb',
'react-server-dom-fb/src/ReactDOMServerFB.js',
'shared/ReactDOMSharedInternals',
],
isFlowTyped: true,
isServerSupported: true,
isFlightSupported: false,
},
{
shortName: 'dom-fb-experimental',
entryPoints: [
'react-server-dom-fb/src/ReactFlightDOMClientFB.js',
'react-server-dom-fb/src/ReactFlightDOMServerFB.js',
],
paths: [
'react-dom',
'react-dom-bindings',
'react-server-dom-fb/src/ReactFlightClientConfigFBBundler.js',
'react-server-dom-fb/src/ReactFlightClientConfigFBBundler.js',
'react-server-dom-fb/src/ReactFlightReferencesFB.js',
'react-server-dom-fb/src/ReactFlightServerConfigFBBundler.js',
'react-server-dom-fb/src/ReactFlightDOMClientFB.js',
'react-server-dom-fb/src/ReactFlightDOMServerFB.js',
'shared/ReactDOMSharedInternals',
],
isFlowTyped: true,
isServerSupported: true,
isFlightSupported: true,
},
{
shortName: 'native',
entryPoints: ['react-native-renderer'],