mirror of https://github.com/webpack/webpack.git
Merge pull request #13877 from axules/bugfix/hot-poll-infinity
fix hot/poll, hot/condition, hot/only-dev-server infinity recursion
This commit is contained in:
commit
1c1af83e12
|
@ -13,7 +13,7 @@ if (module.hot) {
|
|||
module.hot
|
||||
.check()
|
||||
.then(function (updatedModules) {
|
||||
if (!updatedModules) {
|
||||
if (!updatedModules || updatedModules.length === 0) {
|
||||
log("warning", "[HMR] Cannot find update. Need to do a full reload!");
|
||||
log(
|
||||
"warning",
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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