constructor() — vite Function Reference
Architecture documentation for the constructor() function in hmr.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 807ccbf8_3770_7cc7_42ab_44a6fc97398b["constructor()"] 59034bde_6f4e_fe6a_b2ce_a002a0aa10b4["HMRClient"] 807ccbf8_3770_7cc7_42ab_44a6fc97398b -->|defined in| 59034bde_6f4e_fe6a_b2ce_a002a0aa10b4 99e78c4e_c5fd_cc5a_c78d_d4a1f68ab5ce["constructor()"] 99e78c4e_c5fd_cc5a_c78d_d4a1f68ab5ce -->|calls| 807ccbf8_3770_7cc7_42ab_44a6fc97398b 99e78c4e_c5fd_cc5a_c78d_d4a1f68ab5ce["constructor()"] 807ccbf8_3770_7cc7_42ab_44a6fc97398b -->|calls| 99e78c4e_c5fd_cc5a_c78d_d4a1f68ab5ce style 807ccbf8_3770_7cc7_42ab_44a6fc97398b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/shared/hmr.ts lines 180–185
constructor(
public logger: HMRLogger,
private transport: NormalizedModuleRunnerTransport,
// This allows implementing reloading via different methods depending on the environment
private importUpdatedModule: (update: Update) => Promise<ModuleNamespace>,
) {}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the vite codebase, defined in packages/vite/src/shared/hmr.ts.
Where is constructor() defined?
constructor() is defined in packages/vite/src/shared/hmr.ts at line 180.
What does constructor() call?
constructor() calls 1 function(s): constructor.
What calls constructor()?
constructor() is called by 1 function(s): constructor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free