Skip to content

Commit

Permalink
Don't build some packages for WWW (#18078)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Feb 19, 2020
1 parent 44e5f5e commit a12dd52
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,7 @@ const bundles = [

/* React DOM internals required for react-native-web (e.g., to shim native events from react-dom) */
{
bundleTypes: [
UMD_DEV,
UMD_PROD,
NODE_DEV,
NODE_PROD,
FB_WWW_DEV,
FB_WWW_PROD,
],
bundleTypes: [UMD_DEV, UMD_PROD, NODE_DEV, NODE_PROD],
moduleType: RENDERER_UTILS,
entry: 'react-dom/unstable-native-dependencies',
global: 'ReactDOMUnstableNativeDependencies',
Expand Down Expand Up @@ -188,7 +181,7 @@ const bundles = [
externals: ['react', 'react-dom/server'],
},
{
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],
bundleTypes: [NODE_DEV, NODE_PROD],
moduleType: RENDERER,
entry: 'react-dom/unstable-fizz.node',
global: 'ReactDOMFizzServer',
Expand All @@ -204,7 +197,7 @@ const bundles = [
externals: ['react', 'react-dom/server'],
},
{
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],
bundleTypes: [NODE_DEV, NODE_PROD],
moduleType: RENDERER,
entry: 'react-flight-dom-webpack/server.node',
global: 'ReactFlightDOMServer',
Expand All @@ -213,14 +206,7 @@ const bundles = [

/******* React DOM Flight Client Webpack *******/
{
bundleTypes: [
NODE_DEV,
NODE_PROD,
UMD_DEV,
UMD_PROD,
FB_WWW_DEV,
FB_WWW_PROD,
],
bundleTypes: [NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD],
moduleType: RENDERER,
entry: 'react-flight-dom-webpack',
global: 'ReactFlightDOMClient',
Expand Down Expand Up @@ -535,7 +521,7 @@ const bundles = [

/******* Jest React (experimental) *******/
{
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],
bundleTypes: [NODE_DEV, NODE_PROD],
moduleType: ISOMORPHIC,
entry: 'jest-react',
global: 'JestReact',
Expand Down

0 comments on commit a12dd52

Please sign in to comment.