Skip to content

[F] resolveModule

function resolveModule(
host,
specifier,
options): Promise<ModuleResolutionResult>

Resolve a module

Parameters

ParameterTypeDescription
hostResolveModuleHost
specifierstring
optionsResolveModuleOptions

Returns

Promise<ModuleResolutionResult>

Throws

When the module cannot be resolved.