diff --git a/react-packager/src/Bundler/Bundle.js b/react-packager/src/Bundler/Bundle.js index c3cdc804..ccaaffa8 100644 --- a/react-packager/src/Bundler/Bundle.js +++ b/react-packager/src/Bundler/Bundle.js @@ -22,7 +22,6 @@ class Bundle extends BundleBase { this._sourceMap = false; this._sourceMapUrl = sourceMapUrl; this._shouldCombineSourceMaps = false; - this._numPrependedModules = 0; this._numRequireCalls = 0; this._dev = dev; this._minify = minify; @@ -53,10 +52,6 @@ class Bundle extends BundleBase { }); } - setNumPrependedModules(n) { - this._numPrependedModules = n; - } - finalize(options) { options = options || {}; if (options.runMainModule) { @@ -277,7 +272,6 @@ class Bundle extends BundleBase { return { ...super.toJSON(), sourceMapUrl: this._sourceMapUrl, - numPrependedModules: this._numPrependedModules, numRequireCalls: this._numRequireCalls, shouldCombineSourceMaps: this._shouldCombineSourceMaps, }; @@ -287,7 +281,6 @@ class Bundle extends BundleBase { const bundle = new Bundle({sourceMapUrl: json.sourceMapUrl}); bundle._sourceMapUrl = json.sourceMapUrl; - bundle._numPrependedModules = json.numPrependedModules; bundle._numRequireCalls = json.numRequireCalls; bundle._shouldCombineSourceMaps = json.shouldCombineSourceMaps; diff --git a/react-packager/src/Bundler/index.js b/react-packager/src/Bundler/index.js index 029846b1..8b411be9 100644 --- a/react-packager/src/Bundler/index.js +++ b/react-packager/src/Bundler/index.js @@ -250,11 +250,6 @@ class Bundler { }) { const onResolutionResponse = response => { bundle.setMainModuleId(response.getModuleId(getMainModule(response))); - if (bundle.setNumPrependedModules) { - bundle.setNumPrependedModules( - response.numPrependedDependencies + moduleSystemDeps.length - ); - } if (entryModuleOnly) { response.dependencies = response.dependencies.filter(module => module.path.endsWith(entryFile)