Reloading Your Node Modules On Change

Contributor: Aziz Khambati

Introducing warm-require for hot reloading during development.


You may want to know the following:

  • warm-require helps in deleting the require cache of modified node modules.
  • It uses chokidar to watch for file changes but it also exposes a burst function if you want burst them programmatically on your own.
  • It replaces the internal require function (only on those modules which you specify) such that it can build a dependency tree to help in a recursively bursting cache.
  • If you think there is already a package that does this or similar, do let me know.
Read More