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
|
module.hot
|
||||||
.check()
|
.check()
|
||||||
.then(function (updatedModules) {
|
.then(function (updatedModules) {
|
||||||
if (!updatedModules) {
|
if (!updatedModules || updatedModules.length === 0) {
|
||||||
if (fromUpdate) log("info", "[HMR] Update applied.");
|
if (fromUpdate) log("info", "[HMR] Update applied.");
|
||||||
else log("warning", "[HMR] Cannot find update.");
|
else log("warning", "[HMR] Cannot find update.");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue