Optional aliasRedirect module requests.
Optional aliasFields in the description file (usually package.json) which are used to redirect requests inside the module.
Optional byExtra resolve options per dependency category. Typical categories are "commonjs", "amd", "esm".
Optional cacheEnable caching of successfully resolved requests (cache entries are revalidated).
Optional cachePredicate function to decide which requests should be cached.
Optional cacheInclude the context information in the cache identifier when caching.
Optional conditionCondition names for exports field entry point.
Optional descriptionFilenames used to find a description file (like a package.json).
Optional enforceEnforce the resolver to use one of the extensions from the extensions option (User must specify requests without extension).
Optional exportsField names from the description file (usually package.json) which are used to provide entry points of a package.
Optional extensionAn object which maps extension to extension aliases.
Optional extensionsExtensions added to the request when trying to find the file.
Optional fallbackRedirect module requests when normal resolving fails.
Optional fileFilesystem for the resolver.
Optional fullyTreats 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).
Optional importsField 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).
Optional mainField names from the description file (package.json) which are used to find the default entry point.
Optional mainFilenames used to find the default entry point if there is no description file or main field.
Optional modulesFolder names or directory paths where to find modules.
Optional pluginsPlugins for the resolver.
Optional preferPrefer to resolve server-relative URLs (starting with '/') as absolute paths before falling back to resolve in 'resolve.roots'.
Optional preferPrefer to resolve module requests as relative request and fallback to resolving as module.
Optional resolverCustom resolver.
Optional restrictionsA 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.
Optional rootsA list of directories in which requests that are server-relative URLs (starting with '/') are resolved.
Optional symlinksEnable resolving symlinks to the original location.
Optional unsafeEnable caching of successfully resolved requests (cache entries are not revalidated).
Optional useUse synchronous filesystem calls for the resolver.
Generated using TypeDoc
Options object for resolving requests.