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>
< <[ResolveRequest, ResolveContext]> , <ResolveRequest> | <null> , <UnsetAdditionalOptions> >
Returns:
<AsyncSeriesBailHook> < <[ResolveRequest, ResolveContext]> , <ResolveRequest> | <null> >

getHook(name): AsyncSeriesBailHook
Attributes
name:<string> | <AsyncSeriesBailHook>
< <[ResolveRequest, ResolveContext]> , <ResolveRequest> | <null> , <UnsetAdditionalOptions> >
Returns:
<AsyncSeriesBailHook> < <[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:
(err: <ErrorWithDetail> | <null> , res?: <string> | <false> , req?: <ResolveRequest> ) => <void>
Returns:<void>
Attributes
request:<string>
resolveContext:<ResolveContext>
callback:
(err: <ErrorWithDetail> | <null> , res?: <string> | <false> , req?: <ResolveRequest> ) => <void>
Returns:<void>
Attributes
request:<string>
callback:
(err: <ErrorWithDetail> | <null> , res?: <string> | <false> , req?: <ResolveRequest> ) => <void>
Returns:<void>
Attributes
request:<string>
resolveContext:<ResolveContext>
callback:
(err: <ErrorWithDetail> | <null> , res?: <string> | <false> , req?: <ResolveRequest> ) => <void>
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
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
[]
extension:<string>

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

  • 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
aliasFields:<Set>
< <string> | <string> []> alias fields
cachePredicate:
(predicate: <ResolveRequest> ) => <boolean> cache predicate
cacheWithContext:<boolean>
cache with context
conditionNames:
{Set } 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 } 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 } 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 } roots
symlinks:<boolean>
symlinks
tsconfig file path or config object
unsafeCache:
<false> | <CacheTypes> unsafe cache