2 parents cf00a1a + 216b435 commit 14e6cafCopy full SHA for 14e6caf
1 file changed
hot/only-dev-server.js
@@ -50,9 +50,14 @@ if(module.hot) {
50
var hotEmitter = require("./emitter");
51
hotEmitter.on("webpackHotUpdate", function(currentHash) {
52
lastHash = currentHash;
53
- if(!upToDate() && module.hot.status() === "idle") {
54
- console.log("[HMR] Checking for updates on the server...");
55
- check();
+ if(!upToDate()) {
+ var status = module.hot.status();
+ if(status === "idle") {
56
+ console.log("[HMR] Checking for updates on the server...");
57
+ check();
58
+ } else if(["abort", "fail"].indexOf(status) >= 0) {
59
+ console.warn("[HMR] Cannot apply update as a previous update " + status + "ed. Need to do a full reload!");
60
+ }
61
}
62
});
63
console.log("[HMR] Waiting for update signal from WDS...");
0 commit comments