From 3bb71dfd4bfc68920e758cd5fcf9fbfa44b99a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Markb=C3=A5ge?= Date: Tue, 18 Oct 2022 10:15:52 -0400 Subject: [PATCH] Rename react-server-dom-webpack entry points to /client and /server (#25504) --- fixtures/flight-browser/index.html | 2 +- fixtures/flight/server/handler.server.js | 2 +- fixtures/flight/src/index.js | 2 +- packages/react-server-dom-webpack/client.js | 10 ++++++++++ packages/react-server-dom-webpack/index.js | 2 +- .../react-server-dom-webpack/npm/client.js | 7 +++++++ .../react-server-dom-webpack/npm/index.js | 15 +++++++++----- .../npm/server.browser.js | 7 +++++++ .../npm/{writer.js => server.js} | 0 .../npm/server.node.js | 7 +++++++ .../npm/writer.browser.server.js | 7 ------- .../npm/writer.node.server.js | 7 ------- .../react-server-dom-webpack/package.json | 20 ++++++++++--------- ...er.browser.server.js => server.browser.js} | 0 .../{writer.js => server.js} | 2 +- .../{writer.node.server.js => server.node.js} | 0 .../src/ReactFlightWebpackPlugin.js | 2 +- .../src/__tests__/ReactFlightDOM-test.js | 4 ++-- .../__tests__/ReactFlightDOMBrowser-test.js | 4 ++-- scripts/rollup/bundles.js | 16 +++++++-------- scripts/shared/inlinedHostConfigs.js | 20 ++++++++++--------- 21 files changed, 81 insertions(+), 55 deletions(-) create mode 100644 packages/react-server-dom-webpack/client.js create mode 100644 packages/react-server-dom-webpack/npm/client.js create mode 100644 packages/react-server-dom-webpack/npm/server.browser.js rename packages/react-server-dom-webpack/npm/{writer.js => server.js} (100%) create mode 100644 packages/react-server-dom-webpack/npm/server.node.js delete mode 100644 packages/react-server-dom-webpack/npm/writer.browser.server.js delete mode 100644 packages/react-server-dom-webpack/npm/writer.node.server.js rename packages/react-server-dom-webpack/{writer.browser.server.js => server.browser.js} (100%) rename packages/react-server-dom-webpack/{writer.js => server.js} (78%) rename packages/react-server-dom-webpack/{writer.node.server.js => server.node.js} (100%) diff --git a/fixtures/flight-browser/index.html b/fixtures/flight-browser/index.html index 75654b943eb53..190bd782cf87e 100644 --- a/fixtures/flight-browser/index.html +++ b/fixtures/flight-browser/index.html @@ -19,7 +19,7 @@

Flight Example

- +