Inside Vite's HMR Architecture: Requirements, Boundaries, and Failure Modes
An architecture note on Vite's HMR: why serving native ES modules instead of a bundle makes updates near-instant, where the trust boundaries sit, and the circular-import and dev/prod divergence failure modes to watch for.