Revert "Merge pull request #13877 from axules/bugfix/hot-poll-infinity"

This reverts commit 1c1af83e12, reversing
changes made to 3f353b6ae2.
This commit is contained in:
Tobias Koppers 2021-08-05 16:03:13 +02:00
parent 6d24d111f8
commit f6726a15d1
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ if (module.hot) {
module.hot
.check()
.then(function (updatedModules) {
if (!updatedModules || updatedModules.length === 0) {
if (!updatedModules) {
log("warning", "[HMR] Cannot find update. Need to do a full reload!");
log(
"warning",

View File

@ -12,7 +12,7 @@ if (module.hot) {
module.hot
.check(true)
.then(function (updatedModules) {
if (!updatedModules || updatedModules.length === 0) {
if (!updatedModules) {
if (fromUpdate) log("info", "[HMR] Update applied.");
return;
}

View File

@ -9,7 +9,7 @@ if (module.hot) {
module.hot
.check()
.then(function (updatedModules) {
if (!updatedModules || updatedModules.length === 0) {
if (!updatedModules) {
if (fromUpdate) log("info", "[HMR] Update applied.");
else log("warning", "[HMR] Cannot find update.");
return;