interface

OnResolveResult

interface OnResolveResult

  • external?: boolean
  • namespace?: string

    The namespace of the destination It is concatenated with path to form the final import specifier

    "foo" // "foo:bar"
  • path: string

    The destination of the import

    In a runtime plugin, a path without a namespace is resolved from the importing module like any other import, without running onResolve callbacks on it. If nothing is found there, it is used as it is when an onLoad callback matches it.

    A bare name could also be a package in the registry, so onResolve callbacks run on it once more. If one of them returns a path, the name is the plugin's own and is never auto-installed.