the configuration interface for the import-map esbuild plugin importMapPluginSetup.

interface ImportMapPluginSetupConfig {
    importMap: ImportMap;
    pluginDataMarker?: symbol;
    outputNamespace?: any;
    filter: OnResolveOptions;
    inputNamespace?: any;
}

Properties

importMap: ImportMap

specify the import-map to use for resolving aliases. to read more about import-maps check out ImportMap.

pluginDataMarker?: symbol

provide a unique symbol that will be implanted into the entity's esbuild.OnResolveArgs.PluginData, so that subsequent calls to the same import-map path-resolver will terminate early, in order to avoid infinite recursion.

outputNamespace?: any

specify an optional namespace to assign to entity being resolved, if it does happen to be part of your importMap. if the input entity's path is not part of the import-map, then this namespace will not be assigned.

filter: OnResolveOptions

specify the regex filter to use for your import-map path-resolver plugin.

RegExp(".*") (captures all input entities)

inputNamespace?: any

specify the namespace filter to use for your import-map path-resolver plugin.

undefined (captures all inputs in the default namespace, which is either "file", "", or undefined)