MENU

Fun & Interesting

How Hot Module Replacement REALLY Works | JS Toolchain From Scratch

Lachlan Miller 5,094 lượt xem 10 months ago
Video Not Working? Fix It Now

🎉 NEW book on tooling (build your own tools!) Coming 2024, register for updates): https://lachlan-miller.ck.page/92dfa021b3
⚠️ NOTE: I refer to HMR as Hot Module RELOAD - it's actually "Replacement", I had been saying in wrong for years.
🐦 My Twitter: https://twitter.com/Lachlan19900
✏️ Diagram/notes from video: https://app.eraser.io/workspace/W1ZOWqpCPrv4Vz2vcytS?origin=share
🔨 I am building an entire JS toolchain from (mostly) scratch. In this video, we lay the foundations and build out a naive but simple and functional hot module replacement (HMR) implementation.
Source: https://github.com/lmiller1990/build-your-own-vite/tree/main

Comment