@oazmi/esbuild-plugin-deno - v0.4.0
    Preparing search index...

    Interface ImportMapResolutionConfig

    a general interface used for configuring the behavior of an import-map path-resolving function.

    the base interface simply allows the user to define the base-directory of relative path-aliases and path-values.

    interface ImportMapResolutionConfig {
        baseAliasDir: string;
        basePathDir: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    baseAliasDir: string

    the base directory, to which the import/export-map-aliases are relative to.

    for instance:

    • if an export map is: { "./aliased/path": "./src/mod.ts" },
    • and the baseAliasDir option is set to "jsr:@scope/lib@version/" (a trailing slash will always be added, unless the original alias was exactly "." or "").
    • then, the equivalent export-map that resolvePathFromImportMapEntries will be resolving with regards to will be:
    { "jsr:@scope/lib@version/aliased/path": "./src/mod.ts" }
    

    "" (an empty string, so that no prefixes are added to the aliases)

    basePathDir: string

    the base directory, to which the import/export-paths are relative to.

    for instance:

    { "./aliased/path": "https://jsr.io/@oazmi/kitchensink/0.9.3/src/mod.ts" }
    

    "" (an empty string, so that no prefixes are added to the paths)