mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Update bundle configs to not build some packages (#18800)
* Stop building old ReactCache for FB * Update other bundle configs
This commit is contained in:
@@ -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',
|
||||
@@ -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',
|
||||
@@ -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'],
|
||||
@@ -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',
|
||||
@@ -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'],
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user