Skip to content

Commit

Permalink
fix empty updatedModules check
Browse files Browse the repository at this point in the history
in hot/only-dev-server
  • Loading branch information
axules committed Aug 1, 2021
1 parent b573514 commit 551f64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hot/only-dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 551f64a

Please sign in to comment.