Skip to content

Commit 2ece72e

Browse files
committed
Exclude the testing build from non-experimental builds except at FB
1 parent aced076 commit 2ece72e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/rollup/bundles.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,13 @@ const bundles = [
245245
externals: ['react', 'react-dom'],
246246
},
247247

248-
// TODO: We don't use this bundle anymore
249248
/******* React DOM - www - Testing *******/
250249
{
251250
moduleType: RENDERER,
252-
bundleTypes: [FB_WWW_DEV, FB_WWW_PROD, NODE_DEV, NODE_PROD],
253-
entry: 'react-dom/testing',
251+
bundleTypes: __EXPERIMENTAL__
252+
? [FB_WWW_DEV, FB_WWW_PROD]
253+
: [FB_WWW_DEV, FB_WWW_PROD, NODE_DEV, NODE_PROD],
254+
entry: 'react-dom/unstable_testing',
254255
global: 'ReactDOMTesting',
255256
minifyWithProdErrorCodes: true,
256257
wrapWithModuleBoundaries: false,

0 commit comments

Comments
 (0)