Categories

Functions

f
defineConfig<T extends Config>(config: T): T

Type an import map configuration for export and reuse, then pass it to createImportMap or writeImportMap. Returns its input unchanged; it exists only for inference and autocomplete.

Interfaces

I
Config

An importmapify config file: the shape a config file's default export and defineConfig take. Every field is optional; the config loader and CLI supply root and the remaining defaults.

I
HookContext

Resolved paths shared by every generation hook.

I
ImportMapHooks

Lifecycle hooks the CLI runs around import map generation, modeled on tsdown's hooks.