On this page

A list of module alias configurations or an object which maps key to value

Type:(string | string[])[]

A list of alias fields in description files

resolveOptionsResolverFactoryObject2.cachePredicate(predicate): boolean
Attributes
predicate:ResolveRequest
Returns:boolean

A function which decides whether a request should be cached or not. An object is passed with at least path and request properties.

Type:boolean

Whether or not the unsafeCache should include request context as part of the cache key.

Type:string[]

A list of exports field condition names.

Type:string[]

A list of description files to read from

Type:boolean

Enforce that a extension from extensions must be used

Type:(string | string[])[]

A list of exports fields in description files

An object which maps extension to extension aliases

Type:boolean

Also apply extensionAlias to paths resolved through the package.json exports field. Off by default (Node.js-aligned); when enabled, matches TypeScript's behavior for packages that ship TS sources alongside compiled JS.

Type:string[]

A list of extensions which should be tried for files

A list of module alias configurations or an object which maps key to value, applied only after modules option

The file system which should be used

Type:boolean

The request is already fully specified and no extensions or directories are resolved for it

Type:(string | string[])[]

A list of imports fields in description files

Type:(string | string[] | { forceRelative: boolean; name: string | string[] })[]

A list of main fields in description files

Type:string[]

A list of main files in directories

Type:string | URL_url | (string | URL_url)[]

A list of directories to resolve modules from, can be absolute path, folder name, or a file: URL instance

Type:Plugin[]

A list of additional resolve plugins which should be applied

Type:PnpApi | null

A PnP API that should be used - null is "never", undefined is "auto"

Type:boolean

Prefer to resolve server-relative urls as absolute paths before falling back to resolve in roots

Type:boolean

Prefer to resolve module requests as relative requests before falling back to modules

A prepared Resolver to which the plugins are attached

Type:boolean

Resolve to a context instead of a file

Type:(string | RegExp | URL_url)[]

A list of resolve restrictions, each an absolute path, a file: URL instance, or a RegExp

Type:(string | URL_url)[]

A list of root paths, each an absolute path or a file: URL instance

Type:boolean

Resolve symlinks to their symlinked location

TypeScript config file path (or file: URL instance) or config object with configFile and references

Use this cache object to unsafely cache the successful requests

Type:boolean

Use only the sync constraints of the file system calls