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:
parent
2d5c590cc2
commit
fb88fd9d8c
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue