hmr() — vite Function Reference
Architecture documentation for the hmr() function in hmr.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 5e0357ef_628e_5b1c_d986_be5e7552e0c6["hmr()"] be844d6e_9238_efe5_d28e_7822a013b9ab["hmr.ts"] 5e0357ef_628e_5b1c_d986_be5e7552e0c6 -->|defined in| be844d6e_9238_efe5_d28e_7822a013b9ab 0e46d4f6_175f_cdc0_5c63_758c83a5a885["text()"] 0e46d4f6_175f_cdc0_5c63_758c83a5a885 -->|calls| 5e0357ef_628e_5b1c_d986_be5e7552e0c6 37d3a581_5cdc_4430_f71a_346b590dfdb2["setImgSrc()"] 37d3a581_5cdc_4430_f71a_346b590dfdb2 -->|calls| 5e0357ef_628e_5b1c_d986_be5e7552e0c6 e00e989e_8cf6_f5e6_38c0_87e1da5d6789["hmr()"] 5e0357ef_628e_5b1c_d986_be5e7552e0c6 -->|calls| e00e989e_8cf6_f5e6_38c0_87e1da5d6789 style 5e0357ef_628e_5b1c_d986_be5e7552e0c6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/hmr-ssr/hmr.ts lines 118–120
function hmr(key: string, value: unknown) {
;(globalThis.__HMR__ as any)[key] = String(value)
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does hmr() do?
hmr() is a function in the vite codebase, defined in playground/hmr-ssr/hmr.ts.
Where is hmr() defined?
hmr() is defined in playground/hmr-ssr/hmr.ts at line 118.
What does hmr() call?
hmr() calls 1 function(s): hmr.
What calls hmr()?
hmr() is called by 2 function(s): setImgSrc, text.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free