From b573514987e53fbf248af30b0028540f411147b7 Mon Sep 17 00:00:00 2001 From: Denis Shelest Date: Sun, 1 Aug 2021 14:11:48 +0300 Subject: [PATCH] fix hot/signal infinity recursion --- hot/signal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hot/signal.js b/hot/signal.js index ef949521f..5e069c073 100644 --- a/hot/signal.js +++ b/hot/signal.js @@ -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;