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