dillon1000/react
Commit
Browse files Add server-runtime to create Server Blocks (#18392)
This is equivalent to the jsx-runtime in that this is what the compiled output on the server is supposed to target. It's really just the same code for all the different Flights, but they have different types in their arguments so each one gets their own entry point. We might use this to add runtime warnings per entry point. Unlike the client-side React.block call this doesn't provide the factory function that curries the load function. The compiler is expected to wrap this call in the currying factory.
Changed paths22 files
First-parent comparisonpackages/react-client/src/__tests__/ReactFlight-test.js ModifiedA packages/react-flight-dom-relay/server-runtime.js AddedM packages/react-flight-dom-relay/src/ReactFlightDOMRelayServerHostConfig.js ModifiedM packages/react-flight-dom-relay/src/__tests__/ReactFlightDOMRelay-test.internal.js ModifiedA packages/react-flight-dom-webpack/npm/server-runtime.js AddedM packages/react-flight-dom-webpack/package.json ModifiedA packages/react-flight-dom-webpack/server-runtime.js AddedM packages/react-flight-dom-webpack/src/ReactFlightServerWebpackBundlerConfig.js ModifiedM packages/react-flight-dom-webpack/src/__tests__/ReactFlightDOM-test.js ModifiedA packages/react-noop-renderer/flight-server-runtime.js AddedA packages/react-noop-renderer/npm/flight-server-runtime.js AddedM packages/react-noop-renderer/package.json ModifiedA packages/react-server/flight-server-runtime.js AddedA packages/react-server/npm/flight-server-runtime.js AddedM packages/react-server/package.json ModifiedM packages/react-server/src/ReactFlightServer.js ModifiedM packages/react-server/src/ReactFlightServerBundlerConfigCustom.js ModifiedA packages/react-server/src/ReactFlightServerRuntime.js AddedM packages/react/src/ReactBlock.js ModifiedM scripts/flow/react-relay-hooks.js ModifiedM scripts/rollup/bundles.js ModifiedM scripts/shared/inlinedHostConfigs.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…