resolvePath() — astro Function Reference
Architecture documentation for the resolvePath() function in viteUtils.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 45432fd2_fd54_9960_9588_e913ea1e7d25["resolvePath()"] b7a40933_4ff9_20ad_c87e_be8112bdd644["viteUtils.ts"] 45432fd2_fd54_9960_9588_e913ea1e7d25 -->|defined in| b7a40933_4ff9_20ad_c87e_be8112bdd644 b7d7daa6_6e47_6026_9d0b_458be9f6257c["normalizePath()"] 45432fd2_fd54_9960_9588_e913ea1e7d25 -->|calls| b7d7daa6_6e47_6026_9d0b_458be9f6257c style 45432fd2_fd54_9960_9588_e913ea1e7d25 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/core/viteUtils.ts lines 19–26
export function resolvePath(specifier: string, importer: string) {
if (specifier.startsWith('.')) {
const absoluteSpecifier = path.resolve(path.dirname(importer), specifier);
return resolveJsToTs(normalizePath(absoluteSpecifier));
} else {
return specifier;
}
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does resolvePath() do?
resolvePath() is a function in the astro codebase, defined in packages/astro/src/core/viteUtils.ts.
Where is resolvePath() defined?
resolvePath() is defined in packages/astro/src/core/viteUtils.ts at line 19.
What does resolvePath() call?
resolvePath() calls 1 function(s): normalizePath.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free