resolve.ts — astro Source File
Architecture documentation for resolve.ts, a typescript file in the astro codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR ad6fb103_941b_aaec_1802_83acc3b876f8["resolve.ts"] 32f8c7d4_d66e_e0cf_b019_46ec3f2fea31["../core/module-loader/index.js"] ad6fb103_941b_aaec_1802_83acc3b876f8 --> 32f8c7d4_d66e_e0cf_b019_46ec3f2fea31 a370a45c_02f1_30de_445d_47ee08d095a2["../core/viteUtils.js"] ad6fb103_941b_aaec_1802_83acc3b876f8 --> a370a45c_02f1_30de_445d_47ee08d095a2 style ad6fb103_941b_aaec_1802_83acc3b876f8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { ModuleLoader } from '../core/module-loader/index.js';
import { resolveIdToUrl } from '../core/viteUtils.js';
export function createResolve(loader: ModuleLoader, root: URL) {
// Resolves specifiers in the inline hydrated scripts, such as:
// - @astrojs/preact/client.js
// - @/components/Foo.vue
// - /Users/macos/project/src/Foo.vue
// - C:/Windows/project/src/Foo.vue (normalized slash)
return async function (s: string) {
return await resolveIdToUrl(loader, s, root);
};
}
Domain
Subdomains
Functions
Dependencies
- ../core/module-loader/index.js
- ../core/viteUtils.js
Source
Frequently Asked Questions
What does resolve.ts do?
resolve.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in resolve.ts?
resolve.ts defines 1 function(s): createResolve.
What does resolve.ts depend on?
resolve.ts imports 2 module(s): ../core/module-loader/index.js, ../core/viteUtils.js.
Where is resolve.ts in the architecture?
resolve.ts is located at packages/astro/src/vite-plugin-astro-server/resolve.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/vite-plugin-astro-server).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free