Home / Function/ resolveEntryPoint() — astro Function Reference

resolveEntryPoint() — astro Function Reference

Architecture documentation for the resolveEntryPoint() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  65ccf604_e5ba_d546_3e6f_a32402a34d18["resolveEntryPoint()"]
  dfd7a031_bf4c_d294_22de_195709bd3025["index.ts"]
  65ccf604_e5ba_d546_3e6f_a32402a34d18 -->|defined in| dfd7a031_bf4c_d294_22de_195709bd3025
  style 65ccf604_e5ba_d546_3e6f_a32402a34d18 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/vite-plugin-integrations-container/index.ts lines 33–44

async function resolveEntryPoint(
	this: PluginContext,
	route: InternalInjectedRoute,
): Promise<ResolvedInjectedRoute> {
	const resolvedId = await this.resolve(route.entrypoint.toString())
		.then((res) => res?.id)
		.catch(() => undefined);
	if (!resolvedId) return route;

	const resolvedEntryPoint = new URL(`file://${normalizePath(resolvedId)}`);
	return { ...route, resolvedEntryPoint };
}

Domain

Subdomains

Frequently Asked Questions

What does resolveEntryPoint() do?
resolveEntryPoint() is a function in the astro codebase, defined in packages/astro/src/vite-plugin-integrations-container/index.ts.
Where is resolveEntryPoint() defined?
resolveEntryPoint() is defined in packages/astro/src/vite-plugin-integrations-container/index.ts at line 33.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free