mirror of
https://github.com/facebook/react.git
synced 2026-02-23 20:23:02 +00:00
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:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user