Home / Function/ getComponentByRoute() — astro Function Reference

getComponentByRoute() — astro Function Reference

Architecture documentation for the getComponentByRoute() function in pipeline.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  ddcb40c7_1fe7_8127_0dcf_33d7e687f835["getComponentByRoute()"]
  91572b20_ae8c_d5b0_82aa_5914d1622215["RunnablePipeline"]
  ddcb40c7_1fe7_8127_0dcf_33d7e687f835 -->|defined in| 91572b20_ae8c_d5b0_82aa_5914d1622215
  93232022_cf8d_03d9_d054_c2e6cc9ca329["tryRewrite()"]
  93232022_cf8d_03d9_d054_c2e6cc9ca329 -->|calls| ddcb40c7_1fe7_8127_0dcf_33d7e687f835
  0f5bfc9a_beba_920f_ec4e_e897a3448a53["preload()"]
  ddcb40c7_1fe7_8127_0dcf_33d7e687f835 -->|calls| 0f5bfc9a_beba_920f_ec4e_e897a3448a53
  style ddcb40c7_1fe7_8127_0dcf_33d7e687f835 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/vite-plugin-app/pipeline.ts lines 202–205

	async getComponentByRoute(routeData: RouteData): Promise<ComponentInstance> {
		const filePath = new URL(`${routeData.component}`, this.manifest.rootDir);
		return await this.preload(routeData, filePath);
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does getComponentByRoute() do?
getComponentByRoute() is a function in the astro codebase, defined in packages/astro/src/vite-plugin-app/pipeline.ts.
Where is getComponentByRoute() defined?
getComponentByRoute() is defined in packages/astro/src/vite-plugin-app/pipeline.ts at line 202.
What does getComponentByRoute() call?
getComponentByRoute() calls 1 function(s): preload.
What calls getComponentByRoute()?
getComponentByRoute() is called by 1 function(s): tryRewrite.

Analyze Your Own Codebase

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

Try Supermodel Free