fix pure-kiss moduledependency bug

This commit is contained in:
2023-07-08 11:19:27 -06:00
parent 7f4f823271
commit d719351299

View File

@@ -377,7 +377,10 @@ class Kiss {
} else {
Path.join([loadingDirectory, kissFile]);
};
Context.registerModuleDependency(Context.getLocalModule(), fullPath);
var module = Context.getLocalModule();
if (module.length > 0)
Context.registerModuleDependency(module, fullPath);
var previousFile = k.file;
k.file = fullPath;