diff --git a/react-packager/src/Bundler/index.js b/react-packager/src/Bundler/index.js index 197b24f3..2d67fad9 100644 --- a/react-packager/src/Bundler/index.js +++ b/react-packager/src/Bundler/index.js @@ -248,16 +248,6 @@ class Bundler { entryModuleOnly, resolutionResponse, }) { - if (dev && runBeforeMainModule) { // no runBeforeMainModule for hmr bundles - // `require` calls in the require polyfill itself are not extracted and - // replaced with numeric module IDs, but the require polyfill - // needs Systrace. - // Therefore, we include the Systrace module before the main module, and - // it will set itself as property on the require function. - // TODO(davidaurelio) Scan polyfills for dependencies, too (t9759686) - runBeforeMainModule = runBeforeMainModule.concat(['Systrace']); - } - const onResolutionResponse = response => { bundle.setMainModuleId(this._getModuleId(getMainModule(response))); if (bundle.setNumPrependedModules) {