Node.js: using fs.watch to re-import CommonJS modules.
Nov 17, 2024 · 3 min read · Disclaimer. This is an investigation into what is possible. Not a fully-blown solution into how to reload modules without restarting the whole server. In a previous article, I was investigating how to use require.cache to refresh a module by deletin...
Join discussion











