Interface: ResolveOptions
Defined in: webpack/types.d.ts:15461 Options object for resolving requests.Properties
alias?
Defined in: webpack/types.d.ts:15465 Redirect module requests.optionalalias: {[index:string]:string|false|string[]; } |object[]
Type Declaration
{[index: string]: string | false | string[]; }
Index Signature
[index: string]: string | false | string[]
object[]
aliasFields?
Defined in: webpack/types.d.ts:15485 Fields in the description file (usually package.json) which are used to redirect requests inside the module.optionalaliasFields: (string|string[])[]
byDependency?
Defined in: webpack/types.d.ts:15490 Extra resolve options per dependency category. Typical categories are “commonjs”, “amd”, “esm”.optionalbyDependency:object
Index Signature
[index: string]: ResolveOptions
cache?
Defined in: webpack/types.d.ts:15495 Enable caching of successfully resolved requests (cache entries are revalidated).optionalcache:boolean
cachePredicate()?
Defined in: webpack/types.d.ts:15500 Predicate function to decide which requests should be cached.optionalcachePredicate: (request) =>boolean
Parameters
request
ResolveRequest
Returns
boolean
cacheWithContext?
Defined in: webpack/types.d.ts:15505 Include the context information in the cache identifier when caching.optionalcacheWithContext:boolean
conditionNames?
Defined in: webpack/types.d.ts:15510 Condition names for exports field entry point.optionalconditionNames:string[]
descriptionFiles?
Defined in: webpack/types.d.ts:15515 Filenames used to find a description file (like a package.json).optionaldescriptionFiles:string[]
enforceExtension?
Defined in: webpack/types.d.ts:15520 Enforce the resolver to use one of the extensions from the extensions option (User must specify requests without extension).optionalenforceExtension:boolean
exportsFields?
Defined in: webpack/types.d.ts:15525 Field names from the description file (usually package.json) which are used to provide entry points of a package.optionalexportsFields:string[]
extensionAlias?
Defined in: webpack/types.d.ts:15530 An object which maps extension to extension aliases.optionalextensionAlias:object
Index Signature
[index: string]: string | string[]
extensions?
Defined in: webpack/types.d.ts:15535 Extensions added to the request when trying to find the file.optionalextensions:string[]
fallback?
Defined in: webpack/types.d.ts:15540 Redirect module requests when normal resolving fails.optionalfallback: {[index:string]:string|false|string[]; } |object[]
Type Declaration
{[index: string]: string | false | string[]; }
Index Signature
[index: string]: string | false | string[]
object[]
fileSystem?
Defined in: webpack/types.d.ts:15560 Filesystem for the resolver.optionalfileSystem:InputFileSystem
fullySpecified?
Defined in: webpack/types.d.ts:15565 Treats 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).optionalfullySpecified:boolean
importsFields?
Defined in: webpack/types.d.ts:15570 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).optionalimportsFields:string[]
mainFields?
Defined in: webpack/types.d.ts:15575 Field names from the description file (package.json) which are used to find the default entry point.optionalmainFields: (string|string[])[]
mainFiles?
Defined in: webpack/types.d.ts:15580 Filenames used to find the default entry point if there is no description file or main field.optionalmainFiles:string[]
modules?
Defined in: webpack/types.d.ts:15585 Folder names or directory paths where to find modules.optionalmodules:string[]
plugins?
Defined in: webpack/types.d.ts:15590 Plugins for the resolver.optionalplugins: (false|""|0|"..."| {[index:string]:any;apply: (arg0) =>void; } | (this,arg1) =>void)[]
preferAbsolute?
Defined in: webpack/types.d.ts:15610 Prefer to resolve server-relative URLs (starting with ’/’) as absolute paths before falling back to resolve in ‘resolve.roots’.optionalpreferAbsolute:boolean
preferRelative?
Defined in: webpack/types.d.ts:15615 Prefer to resolve module requests as relative request and fallback to resolving as module.optionalpreferRelative:boolean
resolver?
Defined in: webpack/types.d.ts:15620 Custom resolver.optionalresolver:Resolver
restrictions?
Defined in: webpack/types.d.ts:15625 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.optionalrestrictions: (string|RegExp)[]
roots?
Defined in: webpack/types.d.ts:15630 A list of directories in which requests that are server-relative URLs (starting with ’/’) are resolved.optionalroots:string[]
symlinks?
Defined in: webpack/types.d.ts:15635 Enable resolving symlinks to the original location.optionalsymlinks:boolean
tsconfig?
Defined in: webpack/types.d.ts:15640 TypeScript config for paths mapping. Can beoptionaltsconfig:string|boolean| {configFile?:string;references?:string; }
false (disabled), true (use default tsconfig.json), a string path to tsconfig.json, or an object with configFile and references options.
Type Declaration
string
boolean
{ configFile?: string; references?: string; }
configFile?
A path to the tsconfig file.optionalconfigFile:string
references?
References to other tsconfig files. ‘auto’ inherits from TypeScript config, or an array of relative/absolute paths.optionalreferences:string
unsafeCache?
Defined in: webpack/types.d.ts:15657 Enable caching of successfully resolved requests (cache entries are not revalidated).optionalunsafeCache:boolean| {[index:string]:any; }
useSyncFileSystemCalls?
Defined in: webpack/types.d.ts:15662 Use synchronous filesystem calls for the resolver.optionaluseSyncFileSystemCalls:boolean