Set Up Hot-Module Replacement

HMR

In this lesson, we’ll delve into HMR in NestJS. HMR is a development tool that can significantly enhance developer workflow by allowing real-time updates to the application as we make changes. We’ll learn how HMR works, how to implement it in projects, and how it can expedite the development process.

Development mode

After we start the dev server, it will watch for source file changes. When we save a change to the source code, the server will restart, and then we’ll see the updated behavior.

Get hands-on with 1200+ tech skills courses.