From fb8192f16821f9aefab4991a1eb62ad78600d654 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Wed, 15 Feb 2023 23:50:41 -0500 Subject: [PATCH 1/4] Split client into separate builds per environment including unbundled node --- fixtures/flight-browser/index.html | 2 +- .../client.browser.js | 10 +++++ .../react-server-dom-webpack/client.edge.js | 10 +++++ packages/react-server-dom-webpack/client.js | 2 +- .../react-server-dom-webpack/client.node.js | 10 +++++ .../client.node.unbundled.js | 10 +++++ .../npm/client.browser.js | 7 ++++ .../npm/client.edge.js | 7 ++++ .../react-server-dom-webpack/npm/client.js | 6 +-- .../npm/client.node.js | 7 ++++ .../npm/client.node.unbundled.js | 7 ++++ .../npm/server.node.unbundled.js | 7 ++++ .../react-server-dom-webpack/package.json | 30 +++++++++++++-- .../server.node.unbundled.js | 10 +++++ .../src/__tests__/ReactFlightDOM-test.js | 2 +- scripts/rollup/bundles.js | 38 ++++++++++++++++++- scripts/shared/inlinedHostConfigs.js | 20 ++++------ 17 files changed, 161 insertions(+), 24 deletions(-) create mode 100644 packages/react-server-dom-webpack/client.browser.js create mode 100644 packages/react-server-dom-webpack/client.edge.js create mode 100644 packages/react-server-dom-webpack/client.node.js create mode 100644 packages/react-server-dom-webpack/client.node.unbundled.js create mode 100644 packages/react-server-dom-webpack/npm/client.browser.js create mode 100644 packages/react-server-dom-webpack/npm/client.edge.js create mode 100644 packages/react-server-dom-webpack/npm/client.node.js create mode 100644 packages/react-server-dom-webpack/npm/client.node.unbundled.js create mode 100644 packages/react-server-dom-webpack/npm/server.node.unbundled.js create mode 100644 packages/react-server-dom-webpack/server.node.unbundled.js diff --git a/fixtures/flight-browser/index.html b/fixtures/flight-browser/index.html index 5b16a2809c7a1..76035601d315a 100644 --- a/fixtures/flight-browser/index.html +++ b/fixtures/flight-browser/index.html @@ -20,7 +20,7 @@

Flight Example

- +