From f0f60e6ff042ea3295773d7632e64652dd18fac4 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Tue, 11 Feb 2020 15:35:47 -0800 Subject: [PATCH] Revert "Remove legacy www config from Rollup build (#18016)" This reverts commit 529e58ab0a62ed22be9b40bbe44a6ac1b2c89cfe. --- scripts/rollup/build.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/rollup/build.js b/scripts/rollup/build.js index 97fee0eab2853..c629ed509a7a4 100644 --- a/scripts/rollup/build.js +++ b/scripts/rollup/build.js @@ -541,6 +541,11 @@ async function createBundle(bundle, bundleType) { bundle.moduleType, pureExternalModules ), + // We can't use getters in www. + legacy: + bundleType === FB_WWW_DEV || + bundleType === FB_WWW_PROD || + bundleType === FB_WWW_PROFILING, }; const [mainOutputPath, ...otherOutputPaths] = Packaging.getBundleOutputPaths( bundleType,