@samitouri / QOS-React-2 / commits / fb88fd9d8c

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

Brian Vaughn committed Sep 4, 2018 at 10:31 UTC fb88fd9d8c9f72b8e2e7e1ae89652d2a6a707562
1 file changed -8
scripts/rollup/build.js
-8
@@ -330,14 +330,6 @@ function getPlugins(
330 }),
331 // We still need CommonJS for external deps like object-assign.
332 commonjs(),
333 - // www still needs require('React') rather than require('react')
334 - isFBBundle && {
335 - transformBundle(source) {
336 - return source
337 - .replace(/require\(['"]react['"]\)/g, "require('React')")
338 - .replace(/require\(['"]react-is['"]\)/g, "require('ReactIs')");
339 - },
340 - },
333 // Apply dead code elimination and/or minification.
334 isProduction &&
335 closure(