Home / Function/ btnDep() — vite Function Reference

btnDep() — vite Function Reference

Architecture documentation for the btnDep() function in hmr.ts from the vite codebase.

Entity Profile

Dependency Diagram

graph TD
  985ddf98_464e_0772_ee5c_a289ae7aba02["btnDep()"]
  2bff1ddd_39d7_0bc8_e313_78c6a7eae614["hmr.ts"]
  985ddf98_464e_0772_ee5c_a289ae7aba02 -->|defined in| 2bff1ddd_39d7_0bc8_e313_78c6a7eae614
  style 985ddf98_464e_0772_ee5c_a289ae7aba02 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

playground/hmr/hmr.ts lines 37–41

btnDep.onclick = () => {
  if (import.meta.hot) {
    import.meta.hot.send('virtual:increment', '-dep')
  }
}

Domain

Subdomains

Frequently Asked Questions

What does btnDep() do?
btnDep() is a function in the vite codebase, defined in playground/hmr/hmr.ts.
Where is btnDep() defined?
btnDep() is defined in playground/hmr/hmr.ts at line 37.

Analyze Your Own Codebase

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

Try Supermodel Free