Update bundle configs to not build some packages (#18800)
* Stop building old ReactCache for FB * Update other bundle configs
Dan Abramov committed
May 1, 2020 at 16:07 UTC
01914a767317e72ebb24c12bc83630a85f2163c4
1 file changed
+8
-22
scripts/rollup/bundles.js
+8
-22
@@ -82,9 +82,7 @@ const bundles = [
82
NODE_DEV,
83
NODE_PROD,
84
NODE_PROFILING,
85
- FB_WWW_DEV,
86
- FB_WWW_PROD,
87
- FB_WWW_PROFILING,
85
+ // TODO: use on WWW.
86
],
87
moduleType: ISOMORPHIC,
88
entry: 'react/jsx-runtime',
@@ -110,14 +108,7 @@ const bundles = [
108
109
/******* React Cache (experimental, new) *******/
110
{
113
- bundleTypes: [
114
- NODE_DEV,
115
- NODE_PROD,
116
- NODE_PROFILING,
117
- FB_WWW_DEV,
118
- FB_WWW_PROD,
119
- FB_WWW_PROFILING,
120
- ],
111
+ bundleTypes: [NODE_DEV, NODE_PROD, NODE_PROFILING],
112
moduleType: ISOMORPHIC,
113
entry: 'react/unstable-cache',
114
global: 'ReactCache',
@@ -197,7 +188,7 @@ const bundles = [
188
/******* React DOM - www - Testing *******/
189
{
190
moduleType: RENDERER,
200
- bundleTypes: [FB_WWW_DEV, FB_WWW_PROD, FB_WWW_PROFILING],
191
+ bundleTypes: [FB_WWW_DEV, FB_WWW_PROD],
192
entry: 'react-dom/testing',
193
global: 'ReactDOMTesting',
194
externals: ['react'],
@@ -318,7 +309,7 @@ const bundles = [
309
],
310
},
311
{
321
- bundleTypes: [FB_WWW_DEV, FB_WWW_PROD],
312
+ bundleTypes: [], // TODO: FB_WWW_DEV, FB_WWW_PROD
313
moduleType: RENDERER,
314
entry: 'react-flight-dom-relay/server-runtime',
315
global: 'ReactFlightDOMRelayServerRuntime',
@@ -579,17 +570,12 @@ const bundles = [
570
571
/******* React Cache (experimental, old) *******/
572
{
582
- bundleTypes: [
583
- FB_WWW_DEV,
584
- FB_WWW_PROD,
585
- NODE_DEV,
586
- NODE_PROD,
587
- UMD_DEV,
588
- UMD_PROD,
589
- ],
573
+ // This is only used by our own tests.
574
+ // We can delete it later.
575
+ bundleTypes: [NODE_DEV, NODE_PROD],
576
moduleType: ISOMORPHIC,
577
entry: 'react-cache',
592
- global: 'ReactCache',
578
+ global: 'ReactCacheOld',
579
externals: ['react', 'scheduler'],
580
},
581