diff --git a/scripts/rollup/build.js b/scripts/rollup/build.js index 97fee0eab2..c629ed509a 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,