Categories

Interfaces

I
CreateImportMapOptions

Options for creating an import map without writing it to disk.

I
WriteImportMapOptions

Options for creating and writing an import map.

  • indent: string | number

    Indentation for the serialized map, with the semantics of JSON.stringify's space parameter: a number of spaces per level or a literal indent string. Defaults to a tab.

  • out: PathOrUrl

    Output path, resolved against root. Accepts a relative path, an absolute path, a file:// URL string, or a URL. Defaults to import_map.json.

Type Aliases

T
PathOrUrl = string | URL

A filesystem location as a path string or file:// URL, accepted wherever an option names a directory or file.

T
TargetFilter = RegExp | ((target: string) => boolean)

A matcher for filter, tested against a candidate target path such as ./dist/internal-qo9O8jzH.js. A target is kept only when every matcher accepts it.