From b2c99bbd0727806d38006a1a71635c445835a629 Mon Sep 17 00:00:00 2001 From: Christian Mortaro Date: Sat, 1 Jul 2023 21:15:29 -0300 Subject: [PATCH] :bug: fix functional reload --- client/runtime.js | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/runtime.js b/client/runtime.js index 8942468e..01ebe75c 100644 --- a/client/runtime.js +++ b/client/runtime.js @@ -17,7 +17,9 @@ if (module.hot) { $runtime.dependencies = new Map() $runtime.accept = function accept(target, file, dependencies, declarations) { - target.hot.accept() + if (declarations.length > 0) { + target.hot.accept() + } let initiateQueue = [] const old = $runtime.dependencies.get(file) if (old) { diff --git a/package.json b/package.json index bf3c77ed..311332ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nullstack", - "version": "0.19.2", + "version": "0.19.3", "description": "Feature-Driven Full Stack JavaScript Components", "main": "./types/index.d.ts", "author": "Mortaro",