Module: @kosko/require#

Index#

References#

Variables#

Functions#

References#

requireDefault#

Re-exports: requireDefault


resolve#

Re-exports: resolve

Variables#

resolve#

Const resolve: Resolve = (promisify(_resolve) as any) as Resolve

Defined in packages/require/src/resolve.ts:10

Resolves path to the specified module. See resolve for more info.

Functions#

requireDefault#

requireDefault(id: string): any

Defined in packages/require/src/require.ts:5

Import default from ES modules.

Parameters:#

NameTypeDescription
idstringmodule name

Returns: any