From b6a7beefe48d7df9e04cc214b8ef8ea18fe80f39 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Mon, 6 Nov 2017 13:57:15 +0000 Subject: [PATCH] Use Rollup legacy mode for www builds (#11469) --- scripts/rollup/build.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/rollup/build.js b/scripts/rollup/build.js index 4744f16085..537cd20755 100644 --- a/scripts/rollup/build.js +++ b/scripts/rollup/build.js @@ -582,6 +582,8 @@ function createBundle(bundle, bundleType) { bundle.modulesToStub, bundle.featureFlags ), + // We can't use getters in www. + legacy: bundleType === FB_DEV || bundleType === FB_PROD, }) .then(result => result.write(