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(