This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+20
View File
@@ -683,6 +683,10 @@ export interface ResolveOptions {
fileSystem?: {
[k: string]: any;
};
/**
* Enable to ignore fatal errors happening during resolving of 'resolve.roots'. Usually such errors should not happen, but this option is provided for backward-compatibility.
*/
ignoreRootsErrors?: boolean;
/**
* Field names from the description file (package.json) which are used to find the default entry point
*/
@@ -703,12 +707,20 @@ export interface ResolveOptions {
* Plugins for the resolver
*/
plugins?: (WebpackPluginInstance | WebpackPluginFunction)[];
/**
* Prefer to resolve server-relative URLs (starting with '/') as absolute paths before falling back to resolve in 'resolve.roots'.
*/
preferAbsolute?: boolean;
/**
* Custom resolver
*/
resolver?: {
[k: string]: any;
};
/**
* A list of directories in which requests that are server-relative URLs (starting with '/') are resolved.
*/
roots?: string[];
/**
* Enable resolving symlinks to the original location
*/
@@ -927,6 +939,10 @@ export interface OptimizationSplitChunksOptions {
* Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group
*/
enforce?: boolean;
/**
* Size threshold at which splitting is enforced and other restrictions (maxAsyncRequests, maxInitialRequests) are ignored.
*/
enforceSizeThreshold?: number;
/**
* Sets the template for the filename for created chunks (Only works for initial chunks)
*/
@@ -973,6 +989,10 @@ export interface OptimizationSplitChunksOptions {
* Select chunks for determining shared modules (defaults to "async", "initial" and "all" requires adding these chunks to the HTML)
*/
chunks?: ("initial" | "async" | "all") | Function;
/**
* Size threshold at which splitting is enforced and other restrictions (maxAsyncRequests, maxInitialRequests) are ignored.
*/
enforceSizeThreshold?: number;
/**
* Options for modules not selected by any other cache group
*/