From b849256843e83c739adbd39c642fbfba9a5cdf1e Mon Sep 17 00:00:00 2001 From: Andrew Clark Date: Fri, 18 Oct 2019 12:45:41 -0700 Subject: [PATCH] Don't build non-experimental www bundles Reduces the likelihood we'll accidentally sync the wrong ones. --- scripts/rollup/build.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/rollup/build.js b/scripts/rollup/build.js index 34184efab63e1f..ee813ae817fcfa 100644 --- a/scripts/rollup/build.js +++ b/scripts/rollup/build.js @@ -656,9 +656,6 @@ async function buildEverything() { [bundle, NODE_DEV], [bundle, NODE_PROD], [bundle, NODE_PROFILING], - [bundle, FB_WWW_DEV], - [bundle, FB_WWW_PROD], - [bundle, FB_WWW_PROFILING], [bundle, RN_OSS_DEV], [bundle, RN_OSS_PROD], [bundle, RN_OSS_PROFILING], @@ -666,6 +663,15 @@ async function buildEverything() { [bundle, RN_FB_PROD], [bundle, RN_FB_PROFILING] ); + + if (__EXPERIMENTAL__) { + // www uses experimental builds only. + bundles.push( + [bundle, FB_WWW_DEV], + [bundle, FB_WWW_PROD], + [bundle, FB_WWW_PROFILING] + ); + } } if (!shouldExtractErrors && process.env.CIRCLE_NODE_TOTAL) {