On this page

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

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

doResolve(hook, request, message, resolveContext, callback): void

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

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

isDirectory(path): boolean
Attributes
Returns:<boolean>

isModule(path): boolean
Attributes
Returns:<boolean>

isPrivate(path): boolean
Attributes
Returns:<boolean>

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

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

parse(identifier): ParsedIdentifier
Attributes
identifier:<string>

resolve(path, request, callback): void
Attributes
request:<string>
callback:<Function>
Returns:<void>
Attributes
request:<string>
resolveContext:<ResolveContext>
callback:<Function>
Returns:<void>
Attributes
request:<string>
callback:<Function>
Returns:<void>
Attributes
request:<string>
resolveContext:<ResolveContext>
callback:<Function>
Returns:<void>

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

resolveSync(path, request, resolveContext?): void
Attributes
request:<string>
resolveContext:<ResolveContext>
Returns:<string> | <false>
Attributes
request:<string>
resolveContext:<ResolveContext>
Returns:<string> | <false>
Attributes
cache:<Map>
< <string> , <Map> < <string> | <undefined> , <string> | <undefined> >> the underlying cache map
cached dirname function

Attributes
cache:<Map>
< <string> , <string> > the underlying cache map
cached dirname function

Attributes
[]
extension:<string>

Attributes
cache:<Map>
< <string> , <Map> < <string> , <string> | <undefined> >> the underlying cache map
cached join function


Attributes
cached basename
cached dirname
cached join

Attributes
[] alias
aliasFields:<Set>
< <string> | <string> []> alias fields
cachePredicate:<Function>
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:<object>
[] 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