SSR / foldkit-ssr/vite

defineManifest

function · packages/ssr/src/vite/manifest.ts:38

function defineManifest<const Tags extends ReadonlyArray<string>>(
  tags: Tags & UniqueTuple<Tags>,
  entries: {
    readonly [T in Tags[number]]: ManifestEntry
  },
): Manifest<Tags[number]>

Construct a verified Manifest<Tag> where every tag in tags is present exactly once. Fails at compile time if any tag is missing or duplicated in tags, and throws at runtime if any tag is duplicated or missing.