hmr() — vite Function Reference
Architecture documentation for the hmr() function in hmr-ssr.spec.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 13a1522e_caa9_80c0_d7f5_121df7e2a2d2["hmr()"] 2f2e510b_d491_14bf_c7ee_0c390a8b3218["hmr-ssr.spec.ts"] 13a1522e_caa9_80c0_d7f5_121df7e2a2d2 -->|defined in| 2f2e510b_d491_14bf_c7ee_0c390a8b3218 style 13a1522e_caa9_80c0_d7f5_121df7e2a2d2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/hmr-ssr/__tests__/hmr-ssr.spec.ts lines 44–44
const hmr = (key: string) => (globalThis.__HMR__[key] as string) || ''
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does hmr() do?
hmr() is a function in the vite codebase, defined in playground/hmr-ssr/__tests__/hmr-ssr.spec.ts.
Where is hmr() defined?
hmr() is defined in playground/hmr-ssr/__tests__/hmr-ssr.spec.ts at line 44.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free