Home / Function/ hmr() — vite Function Reference

hmr() — vite Function Reference

Architecture documentation for the hmr() function in index.js from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  e00e989e_8cf6_f5e6_38c0_87e1da5d6789["hmr()"]
  d1190008_63be_a391_4421_320f66ac7c71["index.js"]
  e00e989e_8cf6_f5e6_38c0_87e1da5d6789 -->|defined in| d1190008_63be_a391_4421_320f66ac7c71
  5e0357ef_628e_5b1c_d986_be5e7552e0c6["hmr()"]
  5e0357ef_628e_5b1c_d986_be5e7552e0c6 -->|calls| e00e989e_8cf6_f5e6_38c0_87e1da5d6789
  style e00e989e_8cf6_f5e6_38c0_87e1da5d6789 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

playground/hmr-ssr/queries/index.js lines 7–9

function hmr(key, value) {
  globalThis.__HMR__[key] = String(value)
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does hmr() do?
hmr() is a function in the vite codebase, defined in playground/hmr-ssr/queries/index.js.
Where is hmr() defined?
hmr() is defined in playground/hmr-ssr/queries/index.js at line 7.
What calls hmr()?
hmr() is called by 1 function(s): hmr.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free