mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08:00
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:
committed by
facebook-github-bot-3
parent
a45219966c
commit
2b09614068
2
packager/react-packager/src/Server/index.js
vendored
2
packager/react-packager/src/Server/index.js
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user