Skip to content

TransformTemplateOptions

Defined in: index.ts:4

Options for transformTemplate.

optional dirs?: string[]

Defined in: index.ts:14

Additional directory path segments. Any file whose resolved id contains one of these strings is transformed into a default-exported string, regardless of extension (except .json, which is handled natively by most bundlers and should not be double-transformed).

transformTemplate({ dirs: ["/commands/setup/templates/"] })