fix hot/poll infinity recursion

This commit is contained in:
Denis Shelest 2021-07-27 16:29:12 +03:00 committed by GitHub
parent 61ad5ff509
commit 237f55a5a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}