Skip to main content

publicresolveModule

Callable

  • resolveModule(id: string, options?: Pick<ResolveOptions, baseDir>): Promise<undefined | string>

  • Returns full file path of the given module id.


    Parameters

    • id: string

      A relative or absolute path to a file or directory, or a module name.

    • options: Pick<ResolveOptions, baseDir> = {}

    Returns Promise<undefined | string>