Home / Function/ value() — astro Function Reference

value() — astro Function Reference

Architecture documentation for the value() function in local.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  e72e4975_565d_75f6_a99e_9b328c31724a["value()"]
  214874ef_a162_c192_431e_95979e65861c["LocalFontProvider"]
  e72e4975_565d_75f6_a99e_9b328c31724a -->|defined in| 214874ef_a162_c192_431e_95979e65861c
  style e72e4975_565d_75f6_a99e_9b328c31724a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/assets/fonts/providers/local.ts lines 97–105

	#normalizeSource(value: RawSource): NormalizedSource {
		const isValue = typeof value === 'string' || value instanceof URL;
		const url = (isValue ? value : value.url).toString();
		const tech = isValue ? undefined : value.tech;
		return {
			url: fileURLToPath(this.#resolveEntrypoint(this.#root ?? new URL(import.meta.url), url)),
			tech,
		};
	}

Domain

Subdomains

Frequently Asked Questions

What does value() do?
value() is a function in the astro codebase, defined in packages/astro/src/assets/fonts/providers/local.ts.
Where is value() defined?
value() is defined in packages/astro/src/assets/fonts/providers/local.ts at line 97.

Analyze Your Own Codebase

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

Try Supermodel Free