From fb88fd9d8c9f72b8e2e7e1ae89652d2a6a707562 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Tue, 4 Sep 2018 10:31:52 -0700 Subject: [PATCH] Fixed schedule/tracking require for www sync script (#13556) * Fixed schedule/tracking require for www sync script * Remove unused remapped FB modules from bundle as well * Remove www module rename plugin * Revert unnecessary change to strip-unused-imports plugin --- scripts/rollup/build.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/scripts/rollup/build.js b/scripts/rollup/build.js index c0ddb6e2db..c6b9946f18 100644 --- a/scripts/rollup/build.js +++ b/scripts/rollup/build.js @@ -330,14 +330,6 @@ function getPlugins( }), // We still need CommonJS for external deps like object-assign. commonjs(), - // www still needs require('React') rather than require('react') - isFBBundle && { - transformBundle(source) { - return source - .replace(/require\(['"]react['"]\)/g, "require('React')") - .replace(/require\(['"]react-is['"]\)/g, "require('ReactIs')"); - }, - }, // Apply dead code elimination and/or minification. isProduction && closure(