ios icon indicating copy to clipboard operation
ios copied to clipboard

feat: support import.meta.hot.data for persistent objects across hmr updates

Open NathanWalker opened this issue 2 months ago • 0 comments

Improve the stability and correctness of Hot Module Replacement (HMR) and HTTP module loading.

HMR key normalization and stability

  • Introduced a new canonicalization routine for HMR keys in InitializeImportMetaHot, ensuring that per-module hot.data persists across HMR updates by stripping fragments, normalizing dev endpoint paths
  • Updated all HMR callback and data property registrations to use the canonicalized key, preventing issues where module updates would not propagate due to key mismatches

NathanWalker avatar Dec 15 '25 06:12 NathanWalker