diff --git a/packages/metro-bundler/src/Server/index.js b/packages/metro-bundler/src/Server/index.js index c77bea8d..7fc1f12f 100644 --- a/packages/metro-bundler/src/Server/index.js +++ b/packages/metro-bundler/src/Server/index.js @@ -257,10 +257,6 @@ class Server { 'change', ({eventsQueue}) => eventsQueue.forEach(processFileChange), ); - dependencyGraph.getHasteMap().on('change', () => { - debug('Clearing bundle cache due to haste map change'); - this._clearBundles(); - }); }); this._debouncedFileChangeHandler = debounceAndBatch(filePaths => { diff --git a/packages/metro-bundler/src/node-haste/index.js b/packages/metro-bundler/src/node-haste/index.js index 73b6da53..b25d982e 100644 --- a/packages/metro-bundler/src/node-haste/index.js +++ b/packages/metro-bundler/src/node-haste/index.js @@ -325,10 +325,6 @@ class DependencyGraph extends EventEmitter { return this._moduleCache.createPolyfill(options); } - getHasteMap() { - return this._hasteMap; - } - static Cache; static Module; static Polyfill;