diff options
-rw-r--r-- | script/vm/node.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua index e76542aa..6a86350a 100644 --- a/script/vm/node.lua +++ b/script/vm/node.lua @@ -315,3 +315,9 @@ files.watch(function (ev, uri) end end end) + +ws.watch(function (ev, uri) + if ev == 'reload' then + vm.clearNodeCache() + end +end) |