Skip to main content

Interface: ImportMap

Mapping from a bare specifier (or a /-terminated prefix) to a path or URL the specifier should resolve to. Paths starting with ./ or ../ are resolved against the baseDir argument passed to tjs.setImportMap(). Mapping a key to null blocks the import.

Properties

imports?

optional imports?: Record<string, string | null>


scopes?

optional scopes?: Record<string, Record<string, string | null>>