mirror of https://github.com/webpack/webpack.git
fix hot/signal infinity recursion
This commit is contained in:
parent
237f55a5a5
commit
b573514987
|
@ -9,7 +9,7 @@ if (module.hot) {
|
|||
module.hot
|
||||
.check()
|
||||
.then(function (updatedModules) {
|
||||
if (!updatedModules) {
|
||||
if (!updatedModules || updatedModules.length === 0) {
|
||||
if (fromUpdate) log("info", "[HMR] Update applied.");
|
||||
else log("warning", "[HMR] Cannot find update.");
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue