This document provides a comprehensive specification for the Hot Module Replacement (HMR) runtime, specifically tailored for a Node.js environment where update chunks are loaded from the filesystem and executed within the current V8 context using the vm
module. This runtime enables developers to update modules in a running Node.js application without a full server restart, significantly speeding up development workflows.
The primary purpose of this HMR runtime is to:
- Detect changes to modules in a running application