Function getAbsoluteFileURL

  • Returns an absolute file URL, readable by the ESM loader.

    Returns

    The absolute file URL.

    Parameters

    • baseURL: string

      The base URL of the module.

    • path: string[]

      The path to the target file.

    Returns URL