Contributor: Aziz Khambati
Introducing warm-require for hot reloading during development.
You may want to know the following:
- warm-require helps in deleting the
requirecache of modified node modules.
- It uses chokidar to watch for file changes but it also exposes a burst function if you want
burstthem 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.