Skip to content

Commit 01914a7

Browse files
authored
Update bundle configs to not build some packages (#18800)
* Stop building old ReactCache for FB * Update other bundle configs
1 parent 21670cf commit 01914a7

1 file changed

Lines changed: 8 additions & 22 deletions

File tree

scripts/rollup/bundles.js

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ const bundles = [
8282
NODE_DEV,
8383
NODE_PROD,
8484
NODE_PROFILING,
85-
FB_WWW_DEV,
86-
FB_WWW_PROD,
87-
FB_WWW_PROFILING,
85+
// TODO: use on WWW.
8886
],
8987
moduleType: ISOMORPHIC,
9088
entry: 'react/jsx-runtime',
@@ -110,14 +108,7 @@ const bundles = [
110108

111109
/******* React Cache (experimental, new) *******/
112110
{
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],
121112
moduleType: ISOMORPHIC,
122113
entry: 'react/unstable-cache',
123114
global: 'ReactCache',
@@ -197,7 +188,7 @@ const bundles = [
197188
/******* React DOM - www - Testing *******/
198189
{
199190
moduleType: RENDERER,
200-
bundleTypes: [FB_WWW_DEV, FB_WWW_PROD, FB_WWW_PROFILING],
191+
bundleTypes: [FB_WWW_DEV, FB_WWW_PROD],
201192
entry: 'react-dom/testing',
202193
global: 'ReactDOMTesting',
203194
externals: ['react'],
@@ -318,7 +309,7 @@ const bundles = [
318309
],
319310
},
320311
{
321-
bundleTypes: [FB_WWW_DEV, FB_WWW_PROD],
312+
bundleTypes: [], // TODO: FB_WWW_DEV, FB_WWW_PROD
322313
moduleType: RENDERER,
323314
entry: 'react-flight-dom-relay/server-runtime',
324315
global: 'ReactFlightDOMRelayServerRuntime',
@@ -579,17 +570,12 @@ const bundles = [
579570

580571
/******* React Cache (experimental, old) *******/
581572
{
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],
590576
moduleType: ISOMORPHIC,
591577
entry: 'react-cache',
592-
global: 'ReactCache',
578+
global: 'ReactCacheOld',
593579
externals: ['react', 'scheduler'],
594580
},
595581

0 commit comments

Comments
 (0)