Skip file removal on HMR interface

Summary:
public

We're not planning to accept file removals in the short term on the HMR interface so lets bail when a file is removed (before this this we were throwing when trying to get the shallow dependencies).

Reviewed By: yungsters

Differential Revision: D2810534

fb-gh-sync-id: f2733382f4a2619e22bdf1163aa4180694fff9f8
This commit is contained in:
Martín Bigio
2016-01-07 08:48:39 -08:00
committed by facebook-github-bot-3
parent a45219966c
commit 2b09614068
5 changed files with 79 additions and 62 deletions

View File

@@ -184,7 +184,7 @@ class Server {
// updates. Instead, send the HMR updates right away and once that
// finishes, invoke any other file change listener.
if (this._hmrFileChangeListener) {
this._hmrFileChangeListener(filePath);
this._hmrFileChangeListener(filePath, this._bundler.stat(filePath));
return;
}