Open Gentle opened 2 months ago
This is the standard QuickJS behavior and I think rquickjs should stick to to how QuickJS does things.
Too add I don't think there is a good way to support this without some extensive patching of QuickJS. So I don't think there is a way to do this.
thanks for your response, I assumed as much
I'm trying to get some form of hot module reloading to work, I've now switched to declaring the modules and keeping the returned namespace in a registry, so that the registry can handle when a module has been replaced with a new version
If there's a better way I'm interested :)
I would like to be able to redeclare modules, but the observed behavior is that the first declaration is always taken
Example Code that doesn't do what I would have expected: