ViteDevRuntime Class — vite Architecture
Architecture documentation for the ViteDevRuntime class in client.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 9d86a451_fc66_ac55_a182_c55b6c1f4551["ViteDevRuntime"] 85908ff5_4d12_826d_8235_531f91538758["client.ts"] 9d86a451_fc66_ac55_a182_c55b6c1f4551 -->|defined in| 85908ff5_4d12_826d_8235_531f91538758 74a3a94c_9499_76fa_a3bd_a5783d82cc55["createModuleHotContext()"] 9d86a451_fc66_ac55_a182_c55b6c1f4551 -->|method| 74a3a94c_9499_76fa_a3bd_a5783d82cc55 fa29b6e3_c544_0192_a1ba_4be4d79e9100["applyUpdates()"] 9d86a451_fc66_ac55_a182_c55b6c1f4551 -->|method| fa29b6e3_c544_0192_a1ba_4be4d79e9100
Relationship Graph
Source Code
packages/vite/src/client/client.ts lines 627–638
class ViteDevRuntime extends DevRuntime {
override createModuleHotContext(moduleId: string) {
const ctx = createHotContext(moduleId)
// @ts-expect-error TODO: support CSS properly
ctx._internal = { updateStyle, removeStyle }
return ctx
}
override applyUpdates(_boundaries: [string, string][]): void {
// noop, handled in the HMR client
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the ViteDevRuntime class?
ViteDevRuntime is a class in the vite codebase, defined in packages/vite/src/client/client.ts.
Where is ViteDevRuntime defined?
ViteDevRuntime is defined in packages/vite/src/client/client.ts at line 627.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free