hot-module-replacement
hot-module-replacement copied to clipboard
Hot module replacement for node.js
Implementation looks sooo similar ( but it is clearly an independent work )
hey, thanks for a neat project. i'm messing around with building a hot reloading test runner and i needed some lifecycle hooks to know what was going on. i also...
I was able to replicate via: 1. `module.hot.accept` a file that can be successfully `require`d. 2. Make changes to the file (confirmed updated). 3. Add `require('lodash')` or any other dependency...
I just introduced this to a (personal) project and was trying to figure out how to tell if the module has actually changed: https://github.com/sidorares/hot-module-replacement/blob/834782b4ee000435c392beb46f34932b0c8c6012/index.js#L70 Traditionally, webpack generates a hash for...
I got this inconsistent error on start the 3. time: ```bash node_modules\hot-module-replacement\index.js:24 function pathsToAcceptingModules(path, root) { ^ RangeError: Maximum call stack size exceeded at pathsToAcceptingModules (node_modules\hot-module-replacement\index.js:24:37) at pathsToAcceptingModules (node_modules\hot-module-replacement\index.js:42:9) at...
In webpack this would work: ``` import App from './App' import { render } from ... const nativeNode = ... const renderApp = () => render(, nativeNode) if (module.hot) {...
I am getting the following error when deleting a module file: ```bash { Error: ENOENT: no such file or directory, open 'pathToModule.js' at Object.openSync (fs.js:450:3) at Object.readFileSync (fs.js:350:35) at Object.Module._extensions..js...
this module monkey-patches known extensions, but for all future extensions the hooks are not added automatically. Proposed solution: instead plain js object with extensions as keys use Proxy and track...