Home / Function/ create() — astro Function Reference

create() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ceb10880_ddf7_23bd_aeb0_045f941a4e13["create()"]
  1856d10d_49b6_d49e_0f37_cbee2beb3083["NonRunnablePipeline"]
  ceb10880_ddf7_23bd_aeb0_045f941a4e13 -->|defined in| 1856d10d_49b6_d49e_0f37_cbee2beb3083
  style ceb10880_ddf7_23bd_aeb0_045f941a4e13 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/app/dev/pipeline.ts lines 23–49

	static create({ logger, manifest, streaming }: DevPipelineCreate) {
		async function resolve(specifier: string): Promise<string> {
			if (specifier.startsWith('/')) {
				return specifier;
			} else {
				return '/@id/' + specifier;
			}
		}

		const pipeline = new NonRunnablePipeline(
			logger,
			manifest,
			'development',
			manifest.renderers,
			resolve,
			streaming,
			undefined,
			undefined,
			undefined,
			undefined,
			undefined,
			undefined,
			undefined,
			undefined,
		);
		return pipeline;
	}

Domain

Subdomains

Frequently Asked Questions

What does create() do?
create() is a function in the astro codebase, defined in packages/astro/src/core/app/dev/pipeline.ts.
Where is create() defined?
create() is defined in packages/astro/src/core/app/dev/pipeline.ts at line 23.

Analyze Your Own Codebase

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

Try Supermodel Free