On this page

new Resolver(): Resolver
Returns:Resolver
Attributes
basename(path, suffix?): string
Attributes
path:string
suffix:string
Returns:string

dirname(path): string
Attributes
path:string
Returns:string

doResolve(hook, request, message, resolveContext, callback): void
Attributes
hook:AsyncSeriesBailHook<[ResolveRequest, ResolveContext], ResolveRequest | null>
message:string | null
resolveContext:ResolveContext
callback:(err?: Error | null, result?: ResolveRequest) => void
Returns:void

ensureHook(name): AsyncSeriesBailHook<[ResolveRequest, ResolveContext], ResolveRequest | null>
Attributes
name:string | AsyncSeriesBailHook<[ResolveRequest, ResolveContext], ResolveRequest | null, UnsetAdditionalOptions>
Returns:AsyncSeriesBailHook<[ResolveRequest, ResolveContext], ResolveRequest | null>

getHook(name): AsyncSeriesBailHook<[ResolveRequest, ResolveContext], ResolveRequest | null>
Attributes
name:string | AsyncSeriesBailHook<[ResolveRequest, ResolveContext], ResolveRequest | null, UnsetAdditionalOptions>
Returns:AsyncSeriesBailHook<[ResolveRequest, ResolveContext], ResolveRequest | null>

isDirectory(path): boolean
Attributes
path:string
Returns:boolean

isModule(path): boolean
Attributes
path:string
Returns:boolean

isPrivate(path): boolean
Attributes
path:string
Returns:boolean

join(path, request): string
Attributes
path:string
request:string
Returns:string

normalize(path): string
Attributes
path:string
Returns:string

parse(identifier): ParsedIdentifier
Attributes
identifier:string

resolve(path, request, callback): void
Attributes
path:string
request:string
callback:(err: ErrorWithDetail | null, res?: string | false, req?: ResolveRequest) => void
Returns:void
Attributes
path:string
request:string
resolveContext:ResolveContext
callback:(err: ErrorWithDetail | null, res?: string | false, req?: ResolveRequest) => void
Returns:void
Attributes
context:ContextTypes
path:string
request:string
callback:(err: ErrorWithDetail | null, res?: string | false, req?: ResolveRequest) => void
Returns:void
Attributes
context:ContextTypes
path:string
request:string
resolveContext:ResolveContext
callback:(err: ErrorWithDetail | null, res?: string | false, req?: ResolveRequest) => void
Returns:void

resolvePromise(path, request, resolveContext?): void
Attributes
path:string
request:string
resolveContext:ResolveContext
Returns:Promise<string | false>
Attributes
context:ContextTypes
path:string
request:string
resolveContext:ResolveContext
Returns:Promise<string | false>

resolveSync(path, request, resolveContext?): void
Attributes
path:string
request:string
resolveContext:ResolveContext
Returns:string | false
Attributes
context:ContextTypes
path:string
request:string
resolveContext:ResolveContext
Returns:string | false
Attributes
the underlying cache map
fn:(maybePath: string, suffix?: string) => string
cached dirname function

Attributes
cache:Map<string, string>
the underlying cache map
fn:(maybePath: string) => string
cached dirname function

Attributes
alias:string | string[]
extension:string

Attributes
the underlying cache map
fn:(rootPath: string, request: string) => string
cached join function

Attributes
noResolve:SyncHook<[ResolveRequest, Error]>
no resolve hook
resolve:AsyncSeriesBailHook<[ResolveRequest, ResolveContext], ResolveRequest | null>
resolve hook
resolveStep:SyncHook<[AsyncSeriesBailHook<[ResolveRequest, ResolveContext], ResolveRequest | null, UnsetAdditionalOptions>, ResolveRequest]>
resolve step hook
result:AsyncSeriesHook<[ResolveRequest, ResolveContext]>
result hook

Attributes
cached basename
cached dirname
cached join

Attributes
alias:AliasOption[]
alias
aliasFields:Set<string | string[]>
alias fields
cachePredicate:(predicate: ResolveRequest) => boolean
cache predicate
cacheWithContext:boolean
cache with context
conditionNames:Set<string>
A list of exports field condition names.
descriptionFiles:string[]
description files
enforceExtension:boolean
enforce extension
exportsFields:Set<string | string[]>
exports fields
extensionAlias:ExtensionAliasOption[]
extension alias
extensionAliasForExports:boolean
apply extension alias to exports field targets
extensions:Set<string>
extensions
fallback:AliasOption[]
fallback
fileSystem:FileSystem
fileSystem
fullySpecified:boolean
fully specified
importsFields:Set<string | string[]>
imports fields
mainFields:{ forceRelative: boolean; name: string[] }[]
main fields
mainFiles:Set<string>
main files
modules:(string | string[])[]
modules
plugins:Plugin[]
plugins
pnpApi:PnpApi | null
pnp API
preferAbsolute:boolean
prefer absolute
preferRelative:boolean
prefer relative
resolver:Resolver
resolver
resolveToContext:boolean
resolve to context
restrictions:Set<string | RegExp>
restrictions
roots:Set<string>
roots
symlinks:boolean
symlinks
tsconfig file path or config object
unsafeCache:false | CacheTypes
unsafe cache