Function findPath

  • Search for the first stored FilePath matching the given filter options.

    Parameters

    • options: FilterOptions

      FilePath's search filter options.

    • OptionalotherPaths: FilePath[]

      If not provided, the search will be performed on the stored paths.

    Returns FilePath | void

    • The FilePath if found, otherwise undefined.
    const p = findPath({ name: 'example' })
    const { ... } = (await import(p.fullPath)).default