From cd1a3e9b556ab1eb8009676a38857aae7585dc8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Markb=C3=A5ge?= Date: Tue, 14 Dec 2021 16:19:19 -0800 Subject: [PATCH] Build both a partial renderer and fizz renderer of the legacy API for FB (#22933) This lets us test how the new architecture performs without comparing it to other infra changes related to streaming. I renamed the streaming one to ReactDOMServerStreaming so the references in www need to be updated. I'll open an adhoc sync with just those files. --- scripts/rollup/bundles.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/rollup/bundles.js b/scripts/rollup/bundles.js index 02f0c68f6baab..bfa423b720c89 100644 --- a/scripts/rollup/bundles.js +++ b/scripts/rollup/bundles.js @@ -259,9 +259,14 @@ const bundles = [ /******* React DOM Server *******/ { - bundleTypes: __EXPERIMENTAL__ - ? [UMD_DEV, UMD_PROD, NODE_DEV, NODE_PROD] - : [UMD_DEV, UMD_PROD, NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD], + bundleTypes: [ + UMD_DEV, + UMD_PROD, + NODE_DEV, + NODE_PROD, + FB_WWW_DEV, + FB_WWW_PROD, + ], moduleType: RENDERER, entry: 'react-dom/src/server/ReactDOMLegacyServerBrowser', name: 'react-dom-server-legacy.browser', @@ -317,7 +322,7 @@ const bundles = [ bundleTypes: __EXPERIMENTAL__ ? [FB_WWW_DEV, FB_WWW_PROD] : [], moduleType: RENDERER, entry: 'react-server-dom-relay/src/ReactDOMServerFB', - global: 'ReactDOMServer', + global: 'ReactDOMServerStreaming', minifyWithProdErrorCodes: false, wrapWithModuleBoundaries: false, externals: ['react'],