These types are not exported by webpack, but they are available to TypeScript consumers.
Attributes
contextDependencies:
WriteOnlySet<string>directories that was found on file system
fileDependencies:
WriteOnlySet<string>files that was found on file system
missingDependencies:
WriteOnlySet<string>dependencies that was not found on file system
stack:
Set<string> | StackEntrytip of the resolver call stack (a singly-linked list with Set-like API). For instance,
resolve → parsedResolve → describedResolve
. Accepts a legacy
Set<string>
for back-compat with older callers; it is normalized internally without a hot-path branch.yield:
(request: ResolveRequest) => voidyield result, if provided plugins can return several results
Attributes
cacheable:
booleanallow to use the unsafe cache
context:
stringcontextInfo:
ModuleFactoryCreateDataContextInfocreateData:
Partial<CreateData>dependencies:
ModuleDependency[]dependencyType:
stringignoredModule:
Modulephase:
"source" | "defer" | "evaluation"request:
stringresolveOptions:
ResolveOptionsAttributes
Attributes
Options object for resolving requests.
Attributes
alias:
{ alias: string | false | string[]; name: string; onlyModule?: boolean }[] | { [index: string]: string | false | string[] }Redirect module requests.
Fields in the description file (usually package.json) which are used to redirect requests inside the module.
byDependency:
{ [index: string]: ResolveOptions }Extra resolve options per dependency category. Typical categories are "commonjs", "amd", "esm".
cache:
booleanEnable caching of successfully resolved requests (cache entries are revalidated).
cachePredicate:
(request: ResolveRequest) => booleanPredicate function to decide which requests should be cached.
cacheWithContext:
booleanInclude the context information in the cache identifier when caching.
conditionNames:
string[]Condition names for exports field entry point.
descriptionFiles:
string[]Filenames used to find a description file (like a package.json).
enforceExtension:
booleanEnforce the resolver to use one of the extensions from the extensions option (User must specify requests without extension).
exportsFields:
string[]Field names from the description file (usually package.json) which are used to provide entry points of a package.
An object which maps extension to extension aliases.
extensions:
string[]Extensions added to the request when trying to find the file.
fallback:
{ alias: string | false | string[]; name: string; onlyModule?: boolean }[] | { [index: string]: string | false | string[] }Redirect module requests when normal resolving fails.
fileSystem:
InputFileSystemFilesystem for the resolver.
fullySpecified:
booleanTreats the request specified by the user as fully specified, meaning no extensions are added and the mainFiles in directories are not resolved (This doesn't affect requests from mainFields, aliasFields or aliases).
importsFields:
string[]Field names from the description file (usually package.json) which are used to provide internal request of a package (requests starting with # are considered as internal).
Field names from the description file (package.json) which are used to find the default entry point.
mainFiles:
string[]Filenames used to find the default entry point if there is no description file or main field.
modules:
string[]Folder names or directory paths where to find modules.
plugins:
(false | "" | 0 | "..." | { apply: (arg0: Resolver) => void; [index: string]: any } | ((this: Resolver, arg1: Resolver) => void) | null | undefined)[]Plugins for the resolver.
preferAbsolute:
booleanPrefer to resolve server-relative URLs (starting with '/') as absolute paths before falling back to resolve in 'resolve.roots'.
preferRelative:
booleanPrefer to resolve module requests as relative request and fallback to resolving as module.
resolver:
ResolverCustom resolver.
A list of resolve restrictions. Resolve results must fulfill all of these restrictions to resolve successfully. Other resolve paths are taken when restrictions are not met.
roots:
string[]A list of directories in which requests that are server-relative URLs (starting with '/') are resolved.
symlinks:
booleanEnable resolving symlinks to the original location.
TypeScript config for paths mapping. Can be
false
(disabled),
true
(use default
tsconfig.json
), a string path to
tsconfig.json
, or an object with
configFile
and
references
options.Enable caching of successfully resolved requests (cache entries are not revalidated).
useSyncFileSystemCalls:
booleanUse synchronous filesystem calls for the resolver.
{ apply: (arg0: Resolver) => void; [index: string]: any }
(this: Resolver, arg1: Resolver) => void
Type:
BaseResolveRequest & Partial<ParsedIdentifier>Type:
Resolver & WithOptions