constructor() — vite Function Reference
Architecture documentation for the constructor() function in decoder.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 9403ecb8_2412_269e_6e02_f1efb1085de8["constructor()"] d26160cf_98b0_224e_37f8_05fe0a3df273["DecodedMap"] 9403ecb8_2412_269e_6e02_f1efb1085de8 -->|defined in| d26160cf_98b0_224e_37f8_05fe0a3df273 9ae057cc_f9e6_b6d2_6db0_2b8de0b41d8f["constructor()"] 9ae057cc_f9e6_b6d2_6db0_2b8de0b41d8f -->|calls| 9403ecb8_2412_269e_6e02_f1efb1085de8 6dcddc0a_80fe_ef98_9acc_06c17e6b1e67["memoizedState()"] 9403ecb8_2412_269e_6e02_f1efb1085de8 -->|calls| 6dcddc0a_80fe_ef98_9acc_06c17e6b1e67 style 9403ecb8_2412_269e_6e02_f1efb1085de8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/module-runner/sourcemap/decoder.ts lines 28–43
constructor(
public map: SourceMapLike,
from: string,
) {
const { mappings, names, sources } = map
this.version = map.version
this.names = names || []
this._encoded = mappings || ''
this._decodedMemo = memoizedState()
this.url = from
this.file = from
const originDir = posixDirname(from)
this.resolvedSources = (sources || []).map((s) =>
posixResolve(originDir, s || ''),
)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the vite codebase, defined in packages/vite/src/module-runner/sourcemap/decoder.ts.
Where is constructor() defined?
constructor() is defined in packages/vite/src/module-runner/sourcemap/decoder.ts at line 28.
What does constructor() call?
constructor() calls 1 function(s): memoizedState.
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