cloneCallSite() — vite Function Reference
Architecture documentation for the cloneCallSite() function in interceptor.ts from the vite codebase.
Entity Profile
Dependency Diagram
graph TD 155e9353_a9fb_dc00_1709_d4629470386c["cloneCallSite()"] 95cae2f2_ad8c_91c1_5a74_93d939dbc47b["interceptor.ts"] 155e9353_a9fb_dc00_1709_d4629470386c -->|defined in| 95cae2f2_ad8c_91c1_5a74_93d939dbc47b b30dd025_db49_148b_f0bc_60f33ba97a2d["wrapCallSite()"] b30dd025_db49_148b_f0bc_60f33ba97a2d -->|calls| 155e9353_a9fb_dc00_1709_d4629470386c style 155e9353_a9fb_dc00_1709_d4629470386c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/vite/src/module-runner/sourcemap/interceptor.ts lines 332–345
function cloneCallSite(frame: CallSite) {
const object = {} as CallSite
Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach((name) => {
const key = name as keyof CallSite
// @ts-expect-error difficult to type
object[key] = /^(?:is|get)/.test(name)
? function () {
return frame[key].call(frame)
}
: frame[key]
})
object.toString = CallSiteToString
return object
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does cloneCallSite() do?
cloneCallSite() is a function in the vite codebase, defined in packages/vite/src/module-runner/sourcemap/interceptor.ts.
Where is cloneCallSite() defined?
cloneCallSite() is defined in packages/vite/src/module-runner/sourcemap/interceptor.ts at line 332.
What calls cloneCallSite()?
cloneCallSite() is called by 1 function(s): wrapCallSite.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free