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
This commit is contained in:
Brian Vaughn 2018-09-04 10:31:52 -07:00 committed by GitHub
parent 2d5c590cc2
commit fb88fd9d8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -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(