@@ -98,6 +98,7 @@ const bundles = [
9898 moduleType : ISOMORPHIC ,
9999 entry : 'react/src/ReactServer.js' ,
100100 name : 'react.react-server' ,
101+ condition : 'react-server' ,
101102 global : 'React' ,
102103 minifyWithProdErrorCodes : true ,
103104 wrapWithModuleBoundaries : false ,
@@ -109,6 +110,7 @@ const bundles = [
109110 bundleTypes : __EXPERIMENTAL__ ? [ FB_WWW_DEV , FB_WWW_PROD ] : [ ] ,
110111 moduleType : ISOMORPHIC ,
111112 entry : 'react/src/ReactServerFB.js' ,
113+ condition : 'react-server' ,
112114 global : 'ReactServer' ,
113115 minifyWithProdErrorCodes : true ,
114116 wrapWithModuleBoundaries : false ,
@@ -140,6 +142,7 @@ const bundles = [
140142 moduleType : ISOMORPHIC ,
141143 entry : 'react/src/jsx/ReactJSXServer.js' ,
142144 name : 'react-jsx-runtime.react-server' ,
145+ condition : 'react-server' ,
143146 global : 'JSXRuntime' ,
144147 minifyWithProdErrorCodes : false ,
145148 wrapWithModuleBoundaries : false ,
@@ -194,6 +197,7 @@ const bundles = [
194197 moduleType : RENDERER ,
195198 entry : 'react-dom/src/ReactDOMServer.js' ,
196199 name : 'react-dom.react-server' ,
200+ condition : 'react-server' ,
197201 global : 'ReactDOM' ,
198202 minifyWithProdErrorCodes : false ,
199203 wrapWithModuleBoundaries : false ,
@@ -289,6 +293,7 @@ const bundles = [
289293 bundleTypes : __EXPERIMENTAL__ ? [ FB_WWW_DEV , FB_WWW_PROD ] : [ ] ,
290294 moduleType : RENDERER ,
291295 entry : 'react-server-dom-fb/src/ReactDOMServerFB.js' ,
296+ condition : 'react-server' ,
292297 global : 'ReactDOMServerStreaming' ,
293298 minifyWithProdErrorCodes : false ,
294299 wrapWithModuleBoundaries : false ,
@@ -350,6 +355,7 @@ const bundles = [
350355 bundleTypes : [ NODE_DEV , NODE_PROD , UMD_DEV , UMD_PROD ] ,
351356 moduleType : RENDERER ,
352357 entry : 'react-server-dom-webpack/server.browser' ,
358+ condition : 'react-server' ,
353359 global : 'ReactServerDOMServer' ,
354360 minifyWithProdErrorCodes : false ,
355361 wrapWithModuleBoundaries : false ,
@@ -359,6 +365,7 @@ const bundles = [
359365 bundleTypes : [ NODE_DEV , NODE_PROD ] ,
360366 moduleType : RENDERER ,
361367 entry : 'react-server-dom-webpack/server.node' ,
368+ condition : 'react-server' ,
362369 global : 'ReactServerDOMServer' ,
363370 minifyWithProdErrorCodes : false ,
364371 wrapWithModuleBoundaries : false ,
@@ -368,6 +375,7 @@ const bundles = [
368375 bundleTypes : [ NODE_DEV , NODE_PROD ] ,
369376 moduleType : RENDERER ,
370377 entry : 'react-server-dom-webpack/server.node.unbundled' ,
378+ condition : 'react-server' ,
371379 global : 'ReactServerDOMServer' ,
372380 minifyWithProdErrorCodes : false ,
373381 wrapWithModuleBoundaries : false ,
@@ -377,6 +385,7 @@ const bundles = [
377385 bundleTypes : [ NODE_DEV , NODE_PROD ] ,
378386 moduleType : RENDERER ,
379387 entry : 'react-server-dom-webpack/server.edge' ,
388+ condition : 'react-server' ,
380389 global : 'ReactServerDOMServer' ,
381390 minifyWithProdErrorCodes : false ,
382391 wrapWithModuleBoundaries : false ,
@@ -437,6 +446,7 @@ const bundles = [
437446 bundleTypes : [ ESM_PROD ] ,
438447 moduleType : RENDERER_UTILS ,
439448 entry : 'react-server-dom-webpack/node-loader' ,
449+ condition : 'react-server' ,
440450 global : 'ReactServerWebpackNodeLoader' ,
441451 minifyWithProdErrorCodes : false ,
442452 wrapWithModuleBoundaries : false ,
@@ -449,6 +459,7 @@ const bundles = [
449459 moduleType : RENDERER_UTILS ,
450460 entry : 'react-server-dom-webpack/src/ReactFlightWebpackNodeRegister' ,
451461 name : 'react-server-dom-webpack-node-register' ,
462+ condition : 'react-server' ,
452463 global : 'ReactFlightWebpackNodeRegister' ,
453464 minifyWithProdErrorCodes : false ,
454465 wrapWithModuleBoundaries : false ,
@@ -460,6 +471,7 @@ const bundles = [
460471 bundleTypes : [ NODE_DEV , NODE_PROD , UMD_DEV , UMD_PROD ] ,
461472 moduleType : RENDERER ,
462473 entry : 'react-server-dom-turbopack/server.browser' ,
474+ condition : 'react-server' ,
463475 global : 'ReactServerDOMServer' ,
464476 minifyWithProdErrorCodes : false ,
465477 wrapWithModuleBoundaries : false ,
@@ -469,6 +481,7 @@ const bundles = [
469481 bundleTypes : [ NODE_DEV , NODE_PROD ] ,
470482 moduleType : RENDERER ,
471483 entry : 'react-server-dom-turbopack/server.node' ,
484+ condition : 'react-server' ,
472485 global : 'ReactServerDOMServer' ,
473486 minifyWithProdErrorCodes : false ,
474487 wrapWithModuleBoundaries : false ,
@@ -478,6 +491,7 @@ const bundles = [
478491 bundleTypes : [ NODE_DEV , NODE_PROD ] ,
479492 moduleType : RENDERER ,
480493 entry : 'react-server-dom-turbopack/server.node.unbundled' ,
494+ condition : 'react-server' ,
481495 global : 'ReactServerDOMServer' ,
482496 minifyWithProdErrorCodes : false ,
483497 wrapWithModuleBoundaries : false ,
@@ -487,6 +501,7 @@ const bundles = [
487501 bundleTypes : [ NODE_DEV , NODE_PROD ] ,
488502 moduleType : RENDERER ,
489503 entry : 'react-server-dom-turbopack/server.edge' ,
504+ condition : 'react-server' ,
490505 global : 'ReactServerDOMServer' ,
491506 minifyWithProdErrorCodes : false ,
492507 wrapWithModuleBoundaries : false ,
@@ -540,6 +555,7 @@ const bundles = [
540555 bundleTypes : [ ESM_PROD ] ,
541556 moduleType : RENDERER_UTILS ,
542557 entry : 'react-server-dom-turbopack/node-loader' ,
558+ condition : 'react-server' ,
543559 global : 'ReactServerTurbopackNodeLoader' ,
544560 minifyWithProdErrorCodes : false ,
545561 wrapWithModuleBoundaries : false ,
@@ -552,6 +568,7 @@ const bundles = [
552568 moduleType : RENDERER_UTILS ,
553569 entry : 'react-server-dom-turbopack/src/ReactFlightTurbopackNodeRegister' ,
554570 name : 'react-server-dom-turbopack-node-register' ,
571+ condition : 'react-server' ,
555572 global : 'ReactFlightWebpackNodeRegister' ,
556573 minifyWithProdErrorCodes : false ,
557574 wrapWithModuleBoundaries : false ,
@@ -563,6 +580,7 @@ const bundles = [
563580 bundleTypes : [ NODE_DEV , NODE_PROD ] ,
564581 moduleType : RENDERER ,
565582 entry : 'react-server-dom-esm/server.node' ,
583+ condition : 'react-server' ,
566584 minifyWithProdErrorCodes : false ,
567585 wrapWithModuleBoundaries : false ,
568586 externals : [ 'react' , 'util' , 'crypto' , 'async_hooks' , 'react-dom' ] ,
@@ -591,6 +609,7 @@ const bundles = [
591609 bundleTypes : [ ESM_PROD ] ,
592610 moduleType : RENDERER_UTILS ,
593611 entry : 'react-server-dom-esm/node-loader' ,
612+ condition : 'react-server' ,
594613 global : 'ReactServerESMNodeLoader' ,
595614 minifyWithProdErrorCodes : false ,
596615 wrapWithModuleBoundaries : false ,
@@ -602,6 +621,7 @@ const bundles = [
602621 bundleTypes : __EXPERIMENTAL__ ? [ FB_WWW_DEV , FB_WWW_PROD ] : [ ] ,
603622 moduleType : RENDERER ,
604623 entry : 'react-server-dom-fb/src/ReactFlightDOMServerFB.js' ,
624+ condition : 'react-server' ,
605625 global : 'ReactFlightDOMServer' ,
606626 minifyWithProdErrorCodes : false ,
607627 wrapWithModuleBoundaries : false ,
@@ -796,6 +816,7 @@ const bundles = [
796816 bundleTypes : [ NODE_DEV , NODE_PROD ] ,
797817 moduleType : RENDERER ,
798818 entry : 'react-noop-renderer/flight-server' ,
819+ condition : 'react-server' ,
799820 global : 'ReactNoopFlightServer' ,
800821 minifyWithProdErrorCodes : false ,
801822 wrapWithModuleBoundaries : false ,
@@ -850,6 +871,7 @@ const bundles = [
850871 bundleTypes : [ NODE_DEV , NODE_PROD ] ,
851872 moduleType : RECONCILER ,
852873 entry : 'react-server/flight' ,
874+ condition : 'react-server' ,
853875 global : 'ReactFlightServer' ,
854876 minifyWithProdErrorCodes : false ,
855877 wrapWithModuleBoundaries : false ,
0 commit comments