Skip to main content

Type Alias: GenerationTarget

GenerationTarget = GenerationTargetBase & object | GenerationTargetBase & object

Defined in: packages/vite/src/types.ts:183

A single (schema, variant, config) triple that produces exactly one generated form. The cache key space.

Discriminated on sourceKind: query-mode targets carry a user-named variant (or empty string for the default), while generate-mode targets use the reserved __generate_<n> prefix. Encoding the prefix in the type system prevents accidentally crossing the streams.