constructor() — vite Function Reference
Architecture documentation for the constructor() function in moduleGraph.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 6497c3c9_5d65_a10d_0f25_f07b57b4d40e["constructor()"] fc3efa20_5545_5daf_3cf9_fa65c8365591["EnvironmentModuleNode"] 6497c3c9_5d65_a10d_0f25_f07b57b4d40e -->|defined in| fc3efa20_5545_5daf_3cf9_fa65c8365591 376706df_d697_046b_0a1c_a3ae1033328c["constructor()"] 376706df_d697_046b_0a1c_a3ae1033328c -->|calls| 6497c3c9_5d65_a10d_0f25_f07b57b4d40e 376706df_d697_046b_0a1c_a3ae1033328c["constructor()"] 6497c3c9_5d65_a10d_0f25_f07b57b4d40e -->|calls| 376706df_d697_046b_0a1c_a3ae1033328c 234581fb_7a15_7750_8a19_e6fefe7d215b["isDirectCSSRequest()"] 6497c3c9_5d65_a10d_0f25_f07b57b4d40e -->|calls| 234581fb_7a15_7750_8a19_e6fefe7d215b style 6497c3c9_5d65_a10d_0f25_f07b57b4d40e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/node/server/moduleGraph.ts lines 74–81
constructor(url: string, environment: string, setIsSelfAccepting = true) {
this.environment = environment
this.url = url
this.type = isDirectCSSRequest(url) ? 'css' : 'js'
if (setIsSelfAccepting) {
this.isSelfAccepting = false
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the vite codebase, defined in packages/vite/src/node/server/moduleGraph.ts.
Where is constructor() defined?
constructor() is defined in packages/vite/src/node/server/moduleGraph.ts at line 74.
What does constructor() call?
constructor() calls 2 function(s): constructor, isDirectCSSRequest.
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