Function resolveImportPath

  • Determines the path that will be imported into the given startingPoint from the given importPath. Resolves symlinks, tries to map .js extensions to .ts extensions when needed, and tries to find the best node_modules import for package imports.

    Parameters

    • importerFilePath: string
    • importPath: string

    Returns undefined | string

    undefined if no matches are found.

MMNEPVFCICPMFPCPTTAAATR