btn() — vite Function Reference
Architecture documentation for the btn() function in hmr.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 82e0ac0b_1e1c_2947_4395_e07557b9d7a9["btn()"] 2bff1ddd_39d7_0bc8_e313_78c6a7eae614["hmr.ts"] 82e0ac0b_1e1c_2947_4395_e07557b9d7a9 -->|defined in| 2bff1ddd_39d7_0bc8_e313_78c6a7eae614 style 82e0ac0b_1e1c_2947_4395_e07557b9d7a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
playground/hmr/hmr.ts lines 28–32
btn.onclick = () => {
if (import.meta.hot) {
import.meta.hot.send('virtual:increment')
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does btn() do?
btn() is a function in the vite codebase, defined in playground/hmr/hmr.ts.
Where is btn() defined?
btn() is defined in playground/hmr/hmr.ts at line 28.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free