ios
ios copied to clipboard
feat: support import.meta.hot.data for persistent objects across hmr updates
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-modulehot.datapersists 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