Skip to content

Commit fb88fd9

Browse files
authored
Fixed schedule/tracking require for www sync script (facebook#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
1 parent 2d5c590 commit fb88fd9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

scripts/rollup/build.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -330,14 +330,6 @@ function getPlugins(
330330
}),
331331
// We still need CommonJS for external deps like object-assign.
332332
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-
},
341333
// Apply dead code elimination and/or minification.
342334
isProduction &&
343335
closure(

0 commit comments

Comments
 (0)