Skip to content

Commit

Permalink
Update bundle configs to not build some packages (facebook#18800)
Browse files Browse the repository at this point in the history
* Stop building old ReactCache for FB

* Update other bundle configs
  • Loading branch information
gaearon committed May 1, 2020
1 parent 21670cf commit 01914a7
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions scripts/rollup/bundles.js
Expand Up @@ -82,9 +82,7 @@ const bundles = [
NODE_DEV,
NODE_PROD,
NODE_PROFILING,
FB_WWW_DEV,
FB_WWW_PROD,
FB_WWW_PROFILING,
// TODO: use on WWW.
],
moduleType: ISOMORPHIC,
entry: 'react/jsx-runtime',
Expand All @@ -110,14 +108,7 @@ const bundles = [

/******* React Cache (experimental, new) *******/
{
bundleTypes: [
NODE_DEV,
NODE_PROD,
NODE_PROFILING,
FB_WWW_DEV,
FB_WWW_PROD,
FB_WWW_PROFILING,
],
bundleTypes: [NODE_DEV, NODE_PROD, NODE_PROFILING],
moduleType: ISOMORPHIC,
entry: 'react/unstable-cache',
global: 'ReactCache',
Expand Down Expand Up @@ -197,7 +188,7 @@ const bundles = [
/******* React DOM - www - Testing *******/
{
moduleType: RENDERER,
bundleTypes: [FB_WWW_DEV, FB_WWW_PROD, FB_WWW_PROFILING],
bundleTypes: [FB_WWW_DEV, FB_WWW_PROD],
entry: 'react-dom/testing',
global: 'ReactDOMTesting',
externals: ['react'],
Expand Down Expand Up @@ -318,7 +309,7 @@ const bundles = [
],
},
{
bundleTypes: [FB_WWW_DEV, FB_WWW_PROD],
bundleTypes: [], // TODO: FB_WWW_DEV, FB_WWW_PROD
moduleType: RENDERER,
entry: 'react-flight-dom-relay/server-runtime',
global: 'ReactFlightDOMRelayServerRuntime',
Expand Down Expand Up @@ -579,17 +570,12 @@ const bundles = [

/******* React Cache (experimental, old) *******/
{
bundleTypes: [
FB_WWW_DEV,
FB_WWW_PROD,
NODE_DEV,
NODE_PROD,
UMD_DEV,
UMD_PROD,
],
// This is only used by our own tests.
// We can delete it later.
bundleTypes: [NODE_DEV, NODE_PROD],
moduleType: ISOMORPHIC,
entry: 'react-cache',
global: 'ReactCache',
global: 'ReactCacheOld',
externals: ['react', 'scheduler'],
},

Expand Down

0 comments on commit 01914a7

Please sign in to comment.