constructor() — vite Function Reference
Architecture documentation for the constructor() function in ssrModuleLoader.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD f297b990_b9f9_4d71_aa05_07419a0a6688["constructor()"] 2f2ffab9_0c5f_ca70_13c6_2a3b12222c1a["SSRCompatModuleRunner"] f297b990_b9f9_4d71_aa05_07419a0a6688 -->|defined in| 2f2ffab9_0c5f_ca70_13c6_2a3b12222c1a 6ea66dc7_258c_4d4e_457c_a36e57776e88["constructor()"] f297b990_b9f9_4d71_aa05_07419a0a6688 -->|calls| 6ea66dc7_258c_4d4e_457c_a36e57776e88 ff59ab93_7c74_485b_47bc_a4e4a58d6455["createServerModuleRunnerTransport()"] f297b990_b9f9_4d71_aa05_07419a0a6688 -->|calls| ff59ab93_7c74_485b_47bc_a4e4a58d6455 style f297b990_b9f9_4d71_aa05_07419a0a6688 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/ssr/ssrModuleLoader.ts lines 70–82
constructor(private environment: DevEnvironment) {
super(
{
transport: createServerModuleRunnerTransport({
channel: environment.hot as NormalizedServerHotChannel,
}),
createImportMeta: createNodeImportMeta,
sourcemapInterceptor: false,
hmr: false,
},
new ESModulesEvaluator(),
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the vite codebase, defined in packages/vite/src/node/ssr/ssrModuleLoader.ts.
Where is constructor() defined?
constructor() is defined in packages/vite/src/node/ssr/ssrModuleLoader.ts at line 70.
What does constructor() call?
constructor() calls 2 function(s): constructor, createServerModuleRunnerTransport.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free