@samitouri / QOS-React / commits / cd1a3e9b55

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.

Sebastian Markbåge committed Dec 14, 2021 at 16:19 UTC cd1a3e9b556ab1eb8009676a38857aae7585dc8b
1 file changed +9 -4
scripts/rollup/bundles.js
+9 -4
@@ -259,9 +259,14 @@ const bundles = [
259
260 /******* React DOM Server *******/
261 {
262 - bundleTypes: __EXPERIMENTAL__
263 - ? [UMD_DEV, UMD_PROD, NODE_DEV, NODE_PROD]
264 - : [UMD_DEV, UMD_PROD, NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],
262 + bundleTypes: [
263 + UMD_DEV,
264 + UMD_PROD,
265 + NODE_DEV,
266 + NODE_PROD,
267 + FB_WWW_DEV,
268 + FB_WWW_PROD,
269 + ],
270 moduleType: RENDERER,
271 entry: 'react-dom/src/server/ReactDOMLegacyServerBrowser',
272 name: 'react-dom-server-legacy.browser',
@@ -317,7 +322,7 @@ const bundles = [
322 bundleTypes: __EXPERIMENTAL__ ? [FB_WWW_DEV, FB_WWW_PROD] : [],
323 moduleType: RENDERER,
324 entry: 'react-server-dom-relay/src/ReactDOMServerFB',
320 - global: 'ReactDOMServer',
325 + global: 'ReactDOMServerStreaming',
326 minifyWithProdErrorCodes: false,
327 wrapWithModuleBoundaries: false,
328 externals: ['react'],