acceptDeps() — vite Function Reference
Architecture documentation for the acceptDeps() function in hmr.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 73d5c6b6_4669_9083_4698_693c1d9a8117["acceptDeps()"] d86a8333_3c9a_922b_57b2_926575326289["HMRContext"] 73d5c6b6_4669_9083_4698_693c1d9a8117 -->|defined in| d86a8333_3c9a_922b_57b2_926575326289 f0b7b836_2021_adcb_4b70_ecd5293b9089["accept()"] f0b7b836_2021_adcb_4b70_ecd5293b9089 -->|calls| 73d5c6b6_4669_9083_4698_693c1d9a8117 3d354a6c_d47c_7e0f_a3c9_c335e4eb5721["acceptExports()"] 3d354a6c_d47c_7e0f_a3c9_c335e4eb5721 -->|calls| 73d5c6b6_4669_9083_4698_693c1d9a8117 style 73d5c6b6_4669_9083_4698_693c1d9a8117 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/shared/hmr.ts lines 154–167
private acceptDeps(
deps: string[],
callback: HotCallback['fn'] = () => {},
): void {
const mod: HotModule = this.hmrClient.hotModulesMap.get(this.ownerPath) || {
id: this.ownerPath,
callbacks: [],
}
mod.callbacks.push({
deps,
fn: callback,
})
this.hmrClient.hotModulesMap.set(this.ownerPath, mod)
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does acceptDeps() do?
acceptDeps() is a function in the vite codebase, defined in packages/vite/src/shared/hmr.ts.
Where is acceptDeps() defined?
acceptDeps() is defined in packages/vite/src/shared/hmr.ts at line 154.
What calls acceptDeps()?
acceptDeps() is called by 2 function(s): accept, acceptExports.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free