Revert "Remove legacy www config from Rollup build (#18016)"

This reverts commit 529e58ab0a.
This commit is contained in:
Brian Vaughn 2020-02-11 15:35:47 -08:00 committed by GitHub
parent f7278034de
commit f0f60e6ff0

View File

@ -541,6 +541,11 @@ async function createBundle(bundle, bundleType) {
bundle.moduleType, bundle.moduleType,
pureExternalModules 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( const [mainOutputPath, ...otherOutputPaths] = Packaging.getBundleOutputPaths(
bundleType, bundleType,