diff --git a/packager/src/Server/index.js b/packager/src/Server/index.js index c77bea8db..7fc1f12fb 100644 --- a/packager/src/Server/index.js +++ b/packager/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/packager/src/node-haste/index.js b/packager/src/node-haste/index.js index 73b6da53f..b25d982ef 100644 --- a/packager/src/node-haste/index.js +++ b/packager/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;