Skip to content

Function: resolveImportPath()

resolveImportPath(importName, ensure)

resolveImportPath(importName, ensure?): Promise<string>

Before is CJS: use 'resolve' ESM: use 'mlly'

Parameters

importName: string

ensure?: true

Returns

Promise<string>

Defined in

packages/valaxy/node/utils/resolve.ts:11

resolveImportPath(importName, ensure)

resolveImportPath(importName, ensure?): Promise<string | undefined>

Parameters

importName: string

ensure?: boolean

Returns

Promise<string | undefined>

Defined in

packages/valaxy/node/utils/resolve.ts:12