Skip to content

Commit a12dd52

Browse files
authored
Don't build some packages for WWW (facebook#18078)
1 parent 44e5f5e commit a12dd52

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

scripts/rollup/bundles.js

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,7 @@ const bundles = [
131131

132132
/* React DOM internals required for react-native-web (e.g., to shim native events from react-dom) */
133133
{
134-
bundleTypes: [
135-
UMD_DEV,
136-
UMD_PROD,
137-
NODE_DEV,
138-
NODE_PROD,
139-
FB_WWW_DEV,
140-
FB_WWW_PROD,
141-
],
134+
bundleTypes: [UMD_DEV, UMD_PROD, NODE_DEV, NODE_PROD],
142135
moduleType: RENDERER_UTILS,
143136
entry: 'react-dom/unstable-native-dependencies',
144137
global: 'ReactDOMUnstableNativeDependencies',
@@ -188,7 +181,7 @@ const bundles = [
188181
externals: ['react', 'react-dom/server'],
189182
},
190183
{
191-
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],
184+
bundleTypes: [NODE_DEV, NODE_PROD],
192185
moduleType: RENDERER,
193186
entry: 'react-dom/unstable-fizz.node',
194187
global: 'ReactDOMFizzServer',
@@ -204,7 +197,7 @@ const bundles = [
204197
externals: ['react', 'react-dom/server'],
205198
},
206199
{
207-
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],
200+
bundleTypes: [NODE_DEV, NODE_PROD],
208201
moduleType: RENDERER,
209202
entry: 'react-flight-dom-webpack/server.node',
210203
global: 'ReactFlightDOMServer',
@@ -213,14 +206,7 @@ const bundles = [
213206

214207
/******* React DOM Flight Client Webpack *******/
215208
{
216-
bundleTypes: [
217-
NODE_DEV,
218-
NODE_PROD,
219-
UMD_DEV,
220-
UMD_PROD,
221-
FB_WWW_DEV,
222-
FB_WWW_PROD,
223-
],
209+
bundleTypes: [NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD],
224210
moduleType: RENDERER,
225211
entry: 'react-flight-dom-webpack',
226212
global: 'ReactFlightDOMClient',
@@ -535,7 +521,7 @@ const bundles = [
535521

536522
/******* Jest React (experimental) *******/
537523
{
538-
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],
524+
bundleTypes: [NODE_DEV, NODE_PROD],
539525
moduleType: ISOMORPHIC,
540526
entry: 'jest-react',
541527
global: 'JestReact',

0 commit comments

Comments
 (0)