Skip to content

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

Closed
NathanWalker wants to merge 9 commits into
mainfrom
feat/import-meta-hot-data
Closed

feat: support import.meta.hot.data for persistent objects across hmr updates#329
NathanWalker wants to merge 9 commits into
mainfrom
feat/import-meta-hot-data

Conversation

@NathanWalker

Copy link
Copy Markdown
Contributor

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 NathanWalker marked this pull request as draft January 16, 2026 02:49
@NathanWalker

Copy link
Copy Markdown
Contributor Author

closing in favor of #383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant