Gemma Blackgemmablack.dev·Nov 17, 2024Node.js: using fs.watch to re-import CommonJS modules.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...170 readsfs.watch