4 ms·
Being able to reload a module without restarting. So not node.js, or deno.
by LAC-Tech 4y ago
Being able to reload a module without restarting.
So not node.js, or deno.
- capableweb 4y agoI haven't used deno so don't know how that works. With node you can definitely reload a module without restarting the REPL, you just have to make sure to reassign your references to the new module. The ecosystem generally haven't considered things like that in the past though, so requires quite a bit of setup to get working well in your own apps.
- souenzzo 4y agoIf you are using clojure, you can do hot-reload in nodejs You can also install npm deps and switch npm lib version without restart your repl https://shadow-cljs.github.io/docs/UsersGuide.html#node-repl https://shadow-cljs.github.io/docs/UsersGuide.html#node-repl
- zero_shift 4y agoYou can do it in Node, but it requires 1. Something to track the dependency graph 2. A way of determining if a module has side effects (which really requires ES modules)