UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

7 lines (6 loc) • 280 B
import { createManifestMemo } from "./memo.js"; const sites = createManifestMemo((manifest) => manifest.site ? new URL(manifest.site) : undefined); /** The manifest's `site` as a `URL` (used for `Astro.site`). */ export function getSite(manifest) { return sites.get(manifest); }