@rspack/core 0.1.12 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  "use strict";
3
3
  module.exports = validate10;
4
4
  module.exports.default = validate10;
5
- const schema11 = { "definitions": { "AssetModuleFilename": { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] }, "AssetParserDataUrlOptions": { "description": "Options object for DataUrl condition.", "type": "object", "additionalProperties": false, "properties": { "maxSize": { "description": "Maximum size of asset that should be inline as modules. Default: 8kb.", "type": "number" } } }, "AssetParserOptions": { "description": "Parser options for asset modules.", "type": "object", "additionalProperties": false, "properties": { "dataUrlCondition": { "description": "The condition for inlining the asset as DataUrl.", "anyOf": [{ "$ref": "#/definitions/AssetParserDataUrlOptions" }] } } }, "AuxiliaryComment": { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] }, "CacheOptions": { "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.", "type": "boolean" }, "ChunkFilename": { "description": "Specifies the filename template of output files of non-initial chunks on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "ChunkFormat": { "description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).", "anyOf": [{ "enum": ["array-push", "commonjs", "module", false] }, { "type": "string" }] }, "ChunkLoading": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/ChunkLoadingType" }] }, "ChunkLoadingType": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["jsonp", "import-scripts", "require", "async-node", "import"] }, { "type": "string" }] }, "CrossOriginLoading": { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] }, "Context": { "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.", "type": "string" }, "CssChunkFilename": { "description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "CssFilename": { "description": "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "HotUpdateChunkFilename": { "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.", "type": "string", "absolutePath": false }, "HotUpdateMainFilename": { "description": "The filename of the Hot Update Main File. It is inside the 'output.path' directory.", "type": "string", "absolutePath": false }, "WebassemblyModuleFilename": { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" }, "EnabledWasmLoadingTypes": { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } }, "EnabledChunkLoadingTypes": { "description": "List of chunk loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/ChunkLoadingType" } }, "WasmLoading": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/WasmLoadingType" }] }, "WasmLoadingType": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["fetch-streaming", "fetch", "async-node"] }, { "type": "string" }] }, "Dependencies": { "description": "References to other configurations to depend on.", "type": "array", "items": { "description": "References to another configuration to depend on.", "type": "string" } }, "DevServer": { "description": "Options for the rspack-dev-server.", "type": "object" }, "DevTool": { "description": "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).", "anyOf": [{ "enum": [false] }, { "type": "string", "pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$" }] }, "EnabledLibraryTypes": { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } }, "Entry": { "description": "The entry point(s) of the compilation.", "anyOf": [{ "$ref": "#/definitions/EntryStatic" }] }, "EntryDescription": { "description": "An object with entry point description.", "type": "object", "additionalProperties": false, "properties": { "import": { "$ref": "#/definitions/EntryItem" }, "runtime": { "$ref": "#/definitions/EntryRuntime" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" } }, "required": ["import"] }, "EntryFilename": { "description": "Specifies the filename of the output file on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "EntryItem": { "description": "Module(s) that are loaded upon startup.", "anyOf": [{ "description": "All modules are loaded upon startup. The last one is exported.", "type": "array", "items": { "description": "A module that is loaded upon startup. Only the last one is exported.", "type": "string", "minLength": 1 }, "minItems": 1, "uniqueItems": true }, { "description": "The string is resolved to a module which is loaded upon startup.", "type": "string", "minLength": 1 }] }, "EntryObject": { "description": "Multiple entry bundles are created. The key is the entry name. The value can be a string, an array or an entry description object.", "type": "object", "additionalProperties": { "description": "An entry point with name.", "anyOf": [{ "$ref": "#/definitions/EntryItem" }, { "$ref": "#/definitions/EntryDescription" }] } }, "EntryRuntime": { "description": "The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.", "anyOf": [{ "enum": [false] }, { "type": "string", "minLength": 1 }] }, "EntryStatic": { "description": "A static entry description.", "anyOf": [{ "$ref": "#/definitions/EntryObject" }, { "$ref": "#/definitions/EntryUnnamed" }] }, "EntryUnnamed": { "description": "An entry point without name.", "oneOf": [{ "$ref": "#/definitions/EntryItem" }] }, "Experiments": { "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).", "type": "object", "additionalProperties": false, "properties": { "asyncWebAssembly": { "description": "Support WebAssembly as asynchronous EcmaScript Module.", "type": "boolean" }, "incrementalRebuild": { "description": "Rebuild incrementally", "type": "boolean" }, "lazyCompilation": { "description": "Compile entrypoints and import()s only when they are accessed.", "anyOf": [{ "type": "boolean" }] }, "outputModule": { "description": "Allow output javascript files as module source type.", "type": "boolean" }, "newSplitChunks": { "description": "Enable new SplitChunksPlugin", "type": "boolean" }, "css": { "description": "Enable native css support.", "type": "boolean" } } }, "ExternalItem": { "description": "Specify dependency that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "description": "Every matched dependency becomes external.", "instanceof": "RegExp" }, { "description": "An exact matched dependency becomes external. The same string is used as external dependency.", "type": "string" }, { "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.", "type": "object", "additionalProperties": { "$ref": "#/definitions/ExternalItemValue" } }, { "description": "The function is called on each dependency (`function(context, request, callback(err, result))`).", "instanceof": "Function" }] }, "ExternalItemValue": { "description": "The dependency used for the external.", "anyOf": [{ "type": "array", "items": { "description": "A part of the target of the external.", "type": "string", "minLength": 1 } }, { "description": "The target of the external.", "type": "string" }, { "description": "`true`: The dependency name is used as target of the external.", "type": "boolean" }] }, "Externals": { "description": "Specify dependencies that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "type": "array", "items": { "$ref": "#/definitions/ExternalItem" } }, { "$ref": "#/definitions/ExternalItem" }] }, "ExternalsPresets": { "description": "Enable presets of externals for specific targets.", "type": "object", "additionalProperties": false, "properties": { "node": { "description": "Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.", "type": "boolean" } } }, "ExternalsType": { "description": "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).", "enum": ["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "script", "node-commonjs"] }, "Filename": { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "SourceMapFilename": { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "FilenameTemplate": { "description": "Specifies the filename template of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] }, "FilterItemTypes": { "description": "Filtering value, regexp or function.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }] }, "FilterTypes": { "description": "Filtering values.", "anyOf": [{ "type": "array", "items": { "description": "Rule to filter.", "oneOf": [{ "$ref": "#/definitions/FilterItemTypes" }] } }, { "$ref": "#/definitions/FilterItemTypes" }] }, "GlobalObject": { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 }, "ImportFunctionName": { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" }, "InfrastructureLogging": { "description": "Options for infrastructure level logging.", "type": "object", "additionalProperties": false, "properties": { "appendOnly": { "description": "Only appends lines to the output. Avoids updating existing output e. g. for status messages. This option is only used when no custom console is provided.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output. This option is only used when no custom console is provided.", "type": "boolean" }, "console": { "description": "Custom console used for logging." }, "debug": { "description": "Enable debug logging for specific loggers.", "anyOf": [{ "description": "Enable/Disable debug logging for all loggers.", "type": "boolean" }, { "$ref": "#/definitions/FilterTypes" }] }, "level": { "description": "Log level.", "enum": ["none", "error", "warn", "info", "log", "verbose"] }, "stream": { "description": "Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided." } } }, "Library": { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] }, "LibraryCustomUmdCommentObject": { "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Set comment for `amd` section in UMD.", "type": "string" }, "commonjs": { "description": "Set comment for `commonjs` (exports) section in UMD.", "type": "string" }, "commonjs2": { "description": "Set comment for `commonjs2` (module.exports) section in UMD.", "type": "string" }, "root": { "description": "Set comment for `root` (global variable) section in UMD.", "type": "string" } } }, "LibraryCustomUmdObject": { "description": "Description object for all UMD variants of the library name.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Name of the exposed AMD library in the UMD.", "type": "string", "minLength": 1 }, "commonjs": { "description": "Name of the exposed commonjs export in the UMD.", "type": "string", "minLength": 1 }, "root": { "description": "Name of the property exposed globally by a UMD library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the name of the property exposed globally by a UMD library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } } }, "LibraryExport": { "description": "Specify which export should be exposed as library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the export that should be exposed as library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] }, "LibraryName": { "description": "The name of the library (some types allow unnamed libraries too).", "anyOf": [{ "type": "array", "items": { "description": "A part of the library name.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "type": "string", "minLength": 1 }, { "$ref": "#/definitions/LibraryCustomUmdObject" }] }, "LibraryOptions": { "description": "Options for library.", "type": "object", "additionalProperties": false, "properties": { "auxiliaryComment": { "$ref": "#/definitions/AuxiliaryComment" }, "export": { "$ref": "#/definitions/LibraryExport" }, "name": { "$ref": "#/definitions/LibraryName" }, "type": { "$ref": "#/definitions/LibraryType" }, "umdNamedDefine": { "$ref": "#/definitions/UmdNamedDefine" } }, "required": ["type"] }, "LibraryType": { "description": "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).", "anyOf": [{ "enum": ["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"] }, { "type": "string" }] }, "Mode": { "description": "Enable production optimizations or development hints.", "enum": ["development", "production", "none"] }, "ignoreWarnings": { "description": "ignore warnings based on pattern", "type": "array", "items": { "anyOf": [{ "instanceof": "RegExp" }, { "instanceof": "Function" }] } }, "ModuleOptions": { "description": "Options affecting the normal modules (`NormalModuleFactory`).", "type": "object", "additionalProperties": false, "properties": { "defaultRules": { "description": "An array of rules applied by default for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] }, "parser": { "$ref": "#/definitions/ParserOptionsByModuleType" }, "rules": { "description": "An array of rules applied for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] } } }, "Name": { "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" }, "Node": { "description": "Include polyfills or mocks for various node stuff.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/NodeOptions" }] }, "NodeOptions": { "description": "Options object for node compatibility features.", "type": "object", "additionalProperties": false, "properties": { "__dirname": { "description": "Include a polyfill for the '__dirname' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "__filename": { "description": "Include a polyfill for the '__filename' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "global": { "description": "Include a polyfill for the 'global' variable.", "enum": [false, true, "warn"] } } }, "Optimization": { "description": "Enables/Disables integrated optimizations.", "type": "object", "additionalProperties": false, "properties": { "chunkIds": { "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "minimize": { "description": "Enable minimizing the output. Uses optimization.minimizer.", "type": "boolean" }, "minimizer": { "description": "Minimizer(s) to use for minimizing the output.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "moduleIds": { "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "removeAvailableModules": { "description": "Removes modules from chunks when these modules are already included in all parents.", "type": "boolean" }, "removeEmptyChunks": { "description": "Remove chunks which are empty.", "type": "boolean" }, "runtimeChunk": { "$ref": "#/definitions/OptimizationRuntimeChunk" }, "sideEffects": { "description": "Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).", "anyOf": [{ "enum": ["flag"] }, { "type": "boolean" }] }, "splitChunks": { "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/OptimizationSplitChunksOptions" }] }, "realContentHash": { "description": "Use real [contenthash] based on final content of the assets.", "type": "boolean" } } }, "OptimizationRuntimeChunk": { "description": "Create an additional chunk which contains only the rspack runtime and chunk hash maps.", "anyOf": [{ "enum": ["single", "multiple"] }, { "type": "boolean" }, { "type": "object", "additionalProperties": false, "properties": { "name": { "description": "The name or name factory for the runtime chunks.", "anyOf": [{ "type": "string" }, { "instanceof": "Function" }] } } }] }, "OptimizationSplitChunksCacheGroup": { "description": "Options object for describing behavior of a cache group selecting modules that should be cached together.", "type": "object", "additionalProperties": false, "properties": { "chunks": { "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }, { "instanceof": "Function" }] }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "name": { "description": "Give chunks for this cache group a name (chunks with equal name are merged).", "anyOf": [{ "enum": [false] }, { "type": "string" }, { "instanceof": "Function" }] }, "priority": { "description": "Priority of this cache group.", "type": "number" }, "reuseExistingChunk": { "description": "Try to reuse existing chunk (with name) when it has matching modules.", "type": "boolean" }, "enforce": { "description": "ignore splitChunks.minSize, splitChunks.minChunks, splitChunks.maxAsyncRequests and splitChunks.maxInitialRequests options and always create chunks for this cache group.", "type": "boolean" }, "hidePathInfo": { "type": "boolean" }, "maxSize": { "type": "number" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] } } }, "OptimizationSplitChunksOptions": { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "fallbackCacheGroup": { "type": "object", "properties": { "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "minSize": { "type": "number" } } }, "hidePathInfo": { "type": "boolean" }, "name": { "description": "The name or name for chunks.", "anyOf": [{ "type": "string" }] }, "cacheGroups": { "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').", "type": "object", "additionalProperties": { "description": "Configuration for a cache group.", "anyOf": [{ "$ref": "#/definitions/OptimizationSplitChunksCacheGroup" }] } }, "chunks": { "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }] }, "enforceSizeThreshold": { "description": "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxAsyncRequests": { "description": "Maximum number of requests which are accepted for on-demand loading.", "type": "number", "minimum": 1 }, "maxInitialRequests": { "description": "Maximum number of initial chunks which are accepted for an entry point.", "type": "number", "minimum": 1 }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "minRemainingSize": { "description": "Minimal size for the chunks the stay after moving the modules to a new chunk.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "reuseExistingChunk": { "description": "If the current chunk contains modules already split out from the main bundle, it will be reused instead of a new one being generated. This can affect the resulting file name of the chunk.", "type": "boolean" } } }, "OptimizationSplitChunksSizes": { "description": "Size description for limits.", "anyOf": [{ "description": "Size of the javascript part of the chunk.", "type": "number", "minimum": 0 }] }, "Iife": { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" }, "Clean": { "description": "Clears the output build directory", "type": "boolean" }, "Output": { "description": "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.", "type": "object", "additionalProperties": false, "properties": { "iife": { "$ref": "#/definitions/Iife" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFormat": { "$ref": "#/definitions/ChunkFormat" }, "chunkLoading": { "$ref": "#/definitions/ChunkLoading" }, "enabledChunkLoadingTypes": { "$ref": "#/definitions/EnabledChunkLoadingTypes" }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "hotUpdateChunkFilename": { "$ref": "#/definitions/HotUpdateChunkFilename" }, "hotUpdateMainFilename": { "$ref": "#/definitions/HotUpdateMainFilename" }, "enabledWasmLoadingTypes": { "$ref": "#/definitions/EnabledWasmLoadingTypes" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" }, "webassemblyModuleFilename": { "$ref": "#/definitions/WebassemblyModuleFilename" }, "enabledLibraryTypes": { "$ref": "#/definitions/EnabledLibraryTypes" }, "filename": { "$ref": "#/definitions/Filename" }, "globalObject": { "$ref": "#/definitions/GlobalObject" }, "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, "library": { "$ref": "#/definitions/Library" }, "libraryExport": { "oneOf": [{ "$ref": "#/definitions/LibraryExport" }] }, "libraryTarget": { "oneOf": [{ "$ref": "#/definitions/LibraryType" }] }, "module": { "$ref": "#/definitions/OutputModule" }, "path": { "$ref": "#/definitions/Path" }, "publicPath": { "$ref": "#/definitions/PublicPath" }, "strictModuleErrorHandling": { "$ref": "#/definitions/StrictModuleErrorHandling" }, "umdNamedDefine": { "oneOf": [{ "$ref": "#/definitions/UmdNamedDefine" }] }, "uniqueName": { "$ref": "#/definitions/UniqueName" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" }, "trustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.", "anyOf": [{ "enum": [true] }, { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 }, { "$ref": "#/definitions/TrustedTypes" }] }, "sourceMapFilename": { "$ref": "#/definitions/SourceMapFilename" } } }, "OutputModule": { "description": "Output javascript files as module source type.", "type": "boolean" }, "ParserOptionsByModuleType": { "description": "Specify options for each parser.", "type": "object", "additionalProperties": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "properties": { "asset": { "$ref": "#/definitions/AssetParserOptions" } } }, "Path": { "description": "The output directory as **absolute path** (required).", "type": "string" }, "Plugins": { "description": "Add additional plugins to the compiler.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "PublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] }, "RawPublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] }, "Resolve": { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "ResolveAlias": { "description": "Redirect module requests.", "anyOf": [{ "type": "object", "additionalProperties": { "description": "New request.", "anyOf": [{ "description": "Multiple alternative requests.", "type": "array", "items": { "description": "One choice of request.", "type": "string", "minLength": 1 } }, { "description": "Ignore request (replace with empty module).", "enum": [false] }, { "description": "New request.", "type": "string", "minLength": 1 }] } }] }, "ResolveOptions": { "description": "Options object for resolving requests.", "type": "object", "additionalProperties": false, "properties": { "alias": { "$ref": "#/definitions/ResolveAlias" }, "browserField": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "boolean" }, "conditionNames": { "description": "Condition names for exports field entry point.", "type": "array", "items": { "description": "Condition names for exports field entry point.", "type": "string" } }, "extensions": { "description": "Extensions added to the request when trying to find the file.", "type": "array", "items": { "description": "Extension added to the request when trying to find the file.", "type": "string" } }, "fallback": { "description": "Redirect module requests when normal resolving fails.", "oneOf": [{ "$ref": "#/definitions/ResolveAlias" }] }, "fullySpecified": { "description": "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).", "type": "boolean" }, "mainFields": { "description": "Field names from the description file (package.json) which are used to find the default entry point.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "anyOf": [{ "type": "array", "items": { "description": "Part of the field path from the description file (package.json) which are used to find the default entry point.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } }, "mainFiles": { "description": "Filenames used to find the default entry point if there is no description file or main field.", "type": "array", "items": { "description": "Filename used to find the default entry point if there is no description file or main field.", "type": "string", "minLength": 1 } }, "modules": { "description": "Folder names or directory paths where to find modules.", "type": "array", "items": { "description": "Folder name or directory path where to find modules.", "type": "string", "minLength": 1 } }, "preferRelative": { "description": "Prefer to resolve module requests as relative request and fallback to resolving as module.", "type": "boolean" }, "byDependency": { "description": "Extra resolve options per dependency category. Typical categories are \"commonjs\", \"amd\", \"esm\".", "type": "object", "additionalProperties": { "description": "Options object for resolving requests.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] } }, "tsConfigPath": { "description": "Path to tsconfig.json", "type": "string" }, "exportsFields": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "type": "string" } } } }, "RuleSetCondition": { "description": "A condition matcher.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }, { "$ref": "#/definitions/RuleSetLogicalConditions" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditionOrConditions": { "description": "One or multiple rule conditions.", "anyOf": [{ "$ref": "#/definitions/RuleSetCondition" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditions": { "description": "A list of rule conditions.", "type": "array", "items": { "description": "A rule condition.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] } }, "RuleSetLoader": { "description": "A loader request.", "type": "string", "minLength": 1 }, "RuleSetLoaderOptions": { "description": "Options passed to a loader.", "anyOf": [{ "type": "string" }, { "type": "object" }] }, "RuleSetLogicalConditions": { "description": "Logic operators used in a condition matcher.", "type": "object", "additionalProperties": false, "properties": { "and": { "description": "Logical AND.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] }, "not": { "description": "Logical NOT.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] }, "or": { "description": "Logical OR.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] } } }, "RuleSetRule": { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "enforce": { "description": "Enforce this rule as pre or post step.", "enum": ["pre", "post"] }, "exclude": { "description": "Shortcut for resource.exclude.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "generator": { "description": "The options for the module generator.", "type": "object" }, "include": { "description": "Shortcut for resource.include.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "issuer": { "description": "Match the issuer of the module (The module pointing to this module).", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "dependency": { "description": "Match dependency type.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "mimetype": { "description": "Match module mimetype when load from Data URI.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "scheme": { "description": "Match module scheme.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "rules": { "description": "Match and execute these rules when this rule is matched.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "sideEffects": { "description": "Flags a module as with or without side effects.", "type": "boolean" }, "test": { "description": "Shortcut for resource.test.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "type": { "description": "Module type to use for the module.", "type": "string" }, "use": { "description": "Modifiers applied to the module when rule is matched.", "oneOf": [{ "$ref": "#/definitions/RuleSetUse" }] } } }, "RuleSetRules": { "description": "A list of rules.", "type": "array", "items": { "description": "A rule.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RuleSetRule" }] } }, "RuleSetUse": { "description": "A list of descriptions of loaders applied.", "anyOf": [{ "type": "array", "items": { "description": "An use item.", "oneOf": [{ "$ref": "#/definitions/RuleSetUseItem" }] } }, { "$ref": "#/definitions/RuleSetUseItem" }] }, "RuleSetUseItem": { "description": "A description of an applied loader.", "anyOf": [{ "type": "object", "additionalProperties": false, "properties": { "loader": { "description": "Loader name.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoader" }] }, "options": { "description": "Loader options.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoaderOptions" }] } } }, { "$ref": "#/definitions/RuleSetLoader" }] }, "SnapshotOptions": { "description": "Options affecting how file system snapshots are created and validated.", "type": "object", "additionalProperties": false, "properties": { "module": { "description": "Options for snapshotting dependencies of modules to determine if they need to be built again.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } }, "resolve": { "description": "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } } } }, "StatsOptions": { "description": "Stats options object.", "type": "object", "additionalProperties": true, "properties": { "all": { "description": "Fallback value for stats options when an option is not defined (has precedence over local rspack defaults).", "type": "boolean" }, "assets": { "description": "Add assets information.", "type": "boolean" }, "chunkGroups": { "description": "Display all chunk groups with the corresponding bundles.", "type": "boolean" }, "chunks": { "description": "Add chunk information.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output.", "type": "boolean" }, "entrypoints": { "description": "Display the entry points with the corresponding bundles.", "anyOf": [{ "enum": ["auto"] }, { "type": "boolean" }] }, "errors": { "description": "Add errors.", "type": "boolean" }, "errorsCount": { "description": "Add errors count.", "type": "boolean" }, "hash": { "description": "Add the hash of the compilation.", "type": "boolean" }, "modules": { "description": "Add built modules information.", "type": "boolean" }, "preset": { "description": "Preset for the default values.", "anyOf": [{ "type": "boolean" }, { "type": "string" }] }, "publicPath": { "description": "Add public path information.", "type": "boolean" }, "reasons": { "description": "Add information about the reasons why modules are included.", "type": "boolean" }, "warnings": { "description": "Add warnings.", "type": "boolean" }, "warningsCount": { "description": "Add warnings count.", "type": "boolean" }, "outputPath": { "description": "Add output path information.", "type": "boolean" }, "chunkModules": { "description": "Add built modules information to chunk information.", "type": "boolean" }, "chunkRelations": { "description": "Add information about parent, children and sibling chunks to chunk information.", "type": "boolean" }, "timings": { "description": "Add timing information.", "type": "boolean" }, "builtAt": { "description": "Add built at time information.", "type": "boolean" }, "nestedModules": { "description": "Add information about modules nested in other modules (like with module concatenation).", "type": "boolean" } } }, "StatsValue": { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] }, "StrictModuleErrorHandling": { "description": "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.", "type": "boolean" }, "Target": { "description": "Environment to build for. An array of environments to build for all of them when possible.", "anyOf": [{ "type": "array", "items": { "description": "Environment to build for.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "enum": [false] }, { "type": "string", "minLength": 1 }] }, "TrustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks.", "type": "object", "additionalProperties": false, "properties": { "policyName": { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 } } }, "UmdNamedDefine": { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" }, "UniqueName": { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 }, "ChunkLoadingGlobal": { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 }, "Watch": { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" }, "WatchOptions": { "description": "Options for the watcher.", "type": "object", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "followSymlinks": { "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').", "type": "boolean" }, "ignored": { "description": "Ignore some files from watching (glob pattern or regexp).", "anyOf": [{ "type": "array", "items": { "description": "A glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 } }, { "instanceof": "RegExp" }, { "description": "A single glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 }] }, "poll": { "description": "Enable polling mode for watching.", "anyOf": [{ "description": "`number`: use polling with specified interval.", "type": "number" }, { "description": "`true`: use polling.", "type": "boolean" }] }, "stdin": { "description": "Stop watching when stdin stream has ended.", "type": "boolean" } } }, "RspackPluginFunction": { "description": "Function acting as plugin.", "instanceof": "Function" }, "RspackPluginInstance": { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] } }, "title": "RspackOptions", "description": "Options object as provided by the user.", "type": "object", "additionalProperties": false, "properties": { "cache": { "$ref": "#/definitions/CacheOptions" }, "context": { "$ref": "#/definitions/Context" }, "dependencies": { "$ref": "#/definitions/Dependencies" }, "devServer": { "$ref": "#/definitions/DevServer" }, "devtool": { "$ref": "#/definitions/DevTool" }, "entry": { "$ref": "#/definitions/Entry" }, "experiments": { "$ref": "#/definitions/Experiments" }, "externals": { "$ref": "#/definitions/Externals" }, "externalsType": { "$ref": "#/definitions/ExternalsType" }, "externalsPresets": { "$ref": "#/definitions/ExternalsPresets" }, "infrastructureLogging": { "$ref": "#/definitions/InfrastructureLogging" }, "mode": { "$ref": "#/definitions/Mode" }, "module": { "$ref": "#/definitions/ModuleOptions" }, "name": { "$ref": "#/definitions/Name" }, "node": { "$ref": "#/definitions/Node" }, "optimization": { "$ref": "#/definitions/Optimization" }, "output": { "$ref": "#/definitions/Output" }, "plugins": { "$ref": "#/definitions/Plugins" }, "resolve": { "$ref": "#/definitions/Resolve" }, "snapshot": { "$ref": "#/definitions/SnapshotOptions" }, "stats": { "$ref": "#/definitions/StatsValue" }, "target": { "$ref": "#/definitions/Target" }, "watch": { "$ref": "#/definitions/Watch" }, "watchOptions": { "$ref": "#/definitions/WatchOptions" }, "builtins": { "description": "Builtins features in rspack", "type": "object", "additionalProperties": true }, "ignoreWarnings": { "$ref": "#/definitions/ignoreWarnings" } } };
5
+ const schema11 = { "definitions": { "AssetModuleFilename": { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] }, "AssetParserDataUrlOptions": { "description": "Options object for DataUrl condition.", "type": "object", "additionalProperties": false, "properties": { "maxSize": { "description": "Maximum size of asset that should be inline as modules. Default: 8kb.", "type": "number" } } }, "AssetParserOptions": { "description": "Parser options for asset modules.", "type": "object", "additionalProperties": false, "properties": { "dataUrlCondition": { "description": "The condition for inlining the asset as DataUrl.", "anyOf": [{ "$ref": "#/definitions/AssetParserDataUrlOptions" }] } } }, "AuxiliaryComment": { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] }, "CacheOptions": { "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.", "type": "boolean" }, "ChunkFilename": { "description": "Specifies the filename template of output files of non-initial chunks on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "ChunkFormat": { "description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).", "anyOf": [{ "enum": ["array-push", "commonjs", "module", false] }, { "type": "string" }] }, "ChunkLoading": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/ChunkLoadingType" }] }, "ChunkLoadingType": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["jsonp", "import-scripts", "require", "async-node", "import"] }, { "type": "string" }] }, "CrossOriginLoading": { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] }, "Context": { "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.", "type": "string" }, "CssChunkFilename": { "description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "CssFilename": { "description": "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "HotUpdateChunkFilename": { "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.", "type": "string", "absolutePath": false }, "HotUpdateMainFilename": { "description": "The filename of the Hot Update Main File. It is inside the 'output.path' directory.", "type": "string", "absolutePath": false }, "HashDigest": { "description": "Digest type used for the hash.", "type": "string" }, "HashDigestLength": { "description": "Number of chars which are used for the hash.", "type": "number", "minimum": 1 }, "HashFunction": { "description": "Algorithm used for generation the hash (see node.js crypto package).", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] }, "HashSalt": { "description": "Any string which is added to the hash to salt it.", "type": "string", "minLength": 1 }, "WebassemblyModuleFilename": { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" }, "EnabledWasmLoadingTypes": { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } }, "EnabledChunkLoadingTypes": { "description": "List of chunk loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/ChunkLoadingType" } }, "WasmLoading": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/WasmLoadingType" }] }, "WasmLoadingType": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["fetch-streaming", "fetch", "async-node"] }, { "type": "string" }] }, "Dependencies": { "description": "References to other configurations to depend on.", "type": "array", "items": { "description": "References to another configuration to depend on.", "type": "string" } }, "DevServer": { "description": "Options for the rspack-dev-server.", "type": "object" }, "DevTool": { "description": "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).", "anyOf": [{ "enum": [false] }, { "type": "string", "pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$" }] }, "EnabledLibraryTypes": { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } }, "Entry": { "description": "The entry point(s) of the compilation.", "anyOf": [{ "$ref": "#/definitions/EntryStatic" }] }, "EntryDescription": { "description": "An object with entry point description.", "type": "object", "additionalProperties": false, "properties": { "import": { "$ref": "#/definitions/EntryItem" }, "runtime": { "$ref": "#/definitions/EntryRuntime" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" } }, "required": ["import"] }, "EntryFilename": { "description": "Specifies the filename of the output file on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "EntryItem": { "description": "Module(s) that are loaded upon startup.", "anyOf": [{ "description": "All modules are loaded upon startup. The last one is exported.", "type": "array", "items": { "description": "A module that is loaded upon startup. Only the last one is exported.", "type": "string", "minLength": 1 }, "minItems": 1, "uniqueItems": true }, { "description": "The string is resolved to a module which is loaded upon startup.", "type": "string", "minLength": 1 }] }, "EntryObject": { "description": "Multiple entry bundles are created. The key is the entry name. The value can be a string, an array or an entry description object.", "type": "object", "additionalProperties": { "description": "An entry point with name.", "anyOf": [{ "$ref": "#/definitions/EntryItem" }, { "$ref": "#/definitions/EntryDescription" }] } }, "EntryRuntime": { "description": "The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.", "anyOf": [{ "enum": [false] }, { "type": "string", "minLength": 1 }] }, "EntryStatic": { "description": "A static entry description.", "anyOf": [{ "$ref": "#/definitions/EntryObject" }, { "$ref": "#/definitions/EntryUnnamed" }] }, "EntryUnnamed": { "description": "An entry point without name.", "oneOf": [{ "$ref": "#/definitions/EntryItem" }] }, "Experiments": { "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).", "type": "object", "additionalProperties": false, "properties": { "asyncWebAssembly": { "description": "Support WebAssembly as asynchronous EcmaScript Module.", "type": "boolean" }, "incrementalRebuild": { "description": "Rebuild incrementally", "type": "boolean" }, "lazyCompilation": { "description": "Compile entrypoints and import()s only when they are accessed.", "anyOf": [{ "type": "boolean" }] }, "outputModule": { "description": "Allow output javascript files as module source type.", "type": "boolean" }, "newSplitChunks": { "description": "Enable new SplitChunksPlugin", "type": "boolean" }, "css": { "description": "Enable native css support.", "type": "boolean" } } }, "ExternalItem": { "description": "Specify dependency that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "description": "Every matched dependency becomes external.", "instanceof": "RegExp" }, { "description": "An exact matched dependency becomes external. The same string is used as external dependency.", "type": "string" }, { "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.", "type": "object", "additionalProperties": { "$ref": "#/definitions/ExternalItemValue" } }, { "description": "The function is called on each dependency (`function(context, request, callback(err, result))`).", "instanceof": "Function" }] }, "ExternalItemValue": { "description": "The dependency used for the external.", "anyOf": [{ "type": "array", "items": { "description": "A part of the target of the external.", "type": "string", "minLength": 1 } }, { "description": "The target of the external.", "type": "string" }, { "description": "`true`: The dependency name is used as target of the external.", "type": "boolean" }] }, "Externals": { "description": "Specify dependencies that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "type": "array", "items": { "$ref": "#/definitions/ExternalItem" } }, { "$ref": "#/definitions/ExternalItem" }] }, "ExternalsPresets": { "description": "Enable presets of externals for specific targets.", "type": "object", "additionalProperties": false, "properties": { "node": { "description": "Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.", "type": "boolean" } } }, "ExternalsType": { "description": "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).", "enum": ["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "script", "node-commonjs"] }, "Filename": { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "SourceMapFilename": { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "FilenameTemplate": { "description": "Specifies the filename template of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] }, "FilterItemTypes": { "description": "Filtering value, regexp or function.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }] }, "FilterTypes": { "description": "Filtering values.", "anyOf": [{ "type": "array", "items": { "description": "Rule to filter.", "oneOf": [{ "$ref": "#/definitions/FilterItemTypes" }] } }, { "$ref": "#/definitions/FilterItemTypes" }] }, "GlobalObject": { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 }, "ImportFunctionName": { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" }, "InfrastructureLogging": { "description": "Options for infrastructure level logging.", "type": "object", "additionalProperties": false, "properties": { "appendOnly": { "description": "Only appends lines to the output. Avoids updating existing output e. g. for status messages. This option is only used when no custom console is provided.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output. This option is only used when no custom console is provided.", "type": "boolean" }, "console": { "description": "Custom console used for logging." }, "debug": { "description": "Enable debug logging for specific loggers.", "anyOf": [{ "description": "Enable/Disable debug logging for all loggers.", "type": "boolean" }, { "$ref": "#/definitions/FilterTypes" }] }, "level": { "description": "Log level.", "enum": ["none", "error", "warn", "info", "log", "verbose"] }, "stream": { "description": "Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided." } } }, "Library": { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] }, "LibraryCustomUmdCommentObject": { "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Set comment for `amd` section in UMD.", "type": "string" }, "commonjs": { "description": "Set comment for `commonjs` (exports) section in UMD.", "type": "string" }, "commonjs2": { "description": "Set comment for `commonjs2` (module.exports) section in UMD.", "type": "string" }, "root": { "description": "Set comment for `root` (global variable) section in UMD.", "type": "string" } } }, "LibraryCustomUmdObject": { "description": "Description object for all UMD variants of the library name.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Name of the exposed AMD library in the UMD.", "type": "string", "minLength": 1 }, "commonjs": { "description": "Name of the exposed commonjs export in the UMD.", "type": "string", "minLength": 1 }, "root": { "description": "Name of the property exposed globally by a UMD library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the name of the property exposed globally by a UMD library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } } }, "LibraryExport": { "description": "Specify which export should be exposed as library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the export that should be exposed as library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] }, "LibraryName": { "description": "The name of the library (some types allow unnamed libraries too).", "anyOf": [{ "type": "array", "items": { "description": "A part of the library name.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "type": "string", "minLength": 1 }, { "$ref": "#/definitions/LibraryCustomUmdObject" }] }, "LibraryOptions": { "description": "Options for library.", "type": "object", "additionalProperties": false, "properties": { "auxiliaryComment": { "$ref": "#/definitions/AuxiliaryComment" }, "export": { "$ref": "#/definitions/LibraryExport" }, "name": { "$ref": "#/definitions/LibraryName" }, "type": { "$ref": "#/definitions/LibraryType" }, "umdNamedDefine": { "$ref": "#/definitions/UmdNamedDefine" } }, "required": ["type"] }, "LibraryType": { "description": "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).", "anyOf": [{ "enum": ["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"] }, { "type": "string" }] }, "Mode": { "description": "Enable production optimizations or development hints.", "enum": ["development", "production", "none"] }, "IgnoreWarnings": { "description": "ignore warnings based on pattern", "type": "array", "items": { "anyOf": [{ "instanceof": "RegExp" }, { "instanceof": "Function" }] } }, "ModuleOptions": { "description": "Options affecting the normal modules (`NormalModuleFactory`).", "type": "object", "additionalProperties": false, "properties": { "defaultRules": { "description": "An array of rules applied by default for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] }, "parser": { "$ref": "#/definitions/ParserOptionsByModuleType" }, "rules": { "description": "An array of rules applied for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] } } }, "Name": { "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" }, "Node": { "description": "Include polyfills or mocks for various node stuff.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/NodeOptions" }] }, "NodeOptions": { "description": "Options object for node compatibility features.", "type": "object", "additionalProperties": false, "properties": { "__dirname": { "description": "Include a polyfill for the '__dirname' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "__filename": { "description": "Include a polyfill for the '__filename' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "global": { "description": "Include a polyfill for the 'global' variable.", "enum": [false, true, "warn"] } } }, "Optimization": { "description": "Enables/Disables integrated optimizations.", "type": "object", "additionalProperties": false, "properties": { "chunkIds": { "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "minimize": { "description": "Enable minimizing the output. Uses optimization.minimizer.", "type": "boolean" }, "minimizer": { "description": "Minimizer(s) to use for minimizing the output.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "moduleIds": { "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "removeAvailableModules": { "description": "Removes modules from chunks when these modules are already included in all parents.", "type": "boolean" }, "removeEmptyChunks": { "description": "Remove chunks which are empty.", "type": "boolean" }, "runtimeChunk": { "$ref": "#/definitions/OptimizationRuntimeChunk" }, "sideEffects": { "description": "Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).", "anyOf": [{ "enum": ["flag"] }, { "type": "boolean" }] }, "splitChunks": { "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/OptimizationSplitChunksOptions" }] }, "realContentHash": { "description": "Use real [contenthash] based on final content of the assets.", "type": "boolean" } } }, "OptimizationRuntimeChunk": { "description": "Create an additional chunk which contains only the rspack runtime and chunk hash maps.", "anyOf": [{ "enum": ["single", "multiple"] }, { "type": "boolean" }, { "type": "object", "additionalProperties": false, "properties": { "name": { "description": "The name or name factory for the runtime chunks.", "anyOf": [{ "type": "string" }, { "instanceof": "Function" }] } } }] }, "OptimizationSplitChunksCacheGroup": { "description": "Options object for describing behavior of a cache group selecting modules that should be cached together.", "type": "object", "additionalProperties": false, "properties": { "chunks": { "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }, { "instanceof": "Function" }] }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "name": { "description": "Give chunks for this cache group a name (chunks with equal name are merged).", "anyOf": [{ "enum": [false] }, { "type": "string" }, { "instanceof": "Function" }] }, "priority": { "description": "Priority of this cache group.", "type": "number" }, "reuseExistingChunk": { "description": "Try to reuse existing chunk (with name) when it has matching modules.", "type": "boolean" }, "enforce": { "description": "ignore splitChunks.minSize, splitChunks.minChunks, splitChunks.maxAsyncRequests and splitChunks.maxInitialRequests options and always create chunks for this cache group.", "type": "boolean" }, "hidePathInfo": { "type": "boolean" }, "maxSize": { "type": "number" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] } } }, "OptimizationSplitChunksOptions": { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "fallbackCacheGroup": { "type": "object", "properties": { "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "minSize": { "type": "number" } } }, "hidePathInfo": { "type": "boolean" }, "name": { "description": "The name or name for chunks.", "anyOf": [{ "type": "string" }] }, "cacheGroups": { "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').", "type": "object", "additionalProperties": { "description": "Configuration for a cache group.", "anyOf": [{ "$ref": "#/definitions/OptimizationSplitChunksCacheGroup" }] } }, "chunks": { "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }] }, "enforceSizeThreshold": { "description": "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxAsyncRequests": { "description": "Maximum number of requests which are accepted for on-demand loading.", "type": "number", "minimum": 1 }, "maxInitialRequests": { "description": "Maximum number of initial chunks which are accepted for an entry point.", "type": "number", "minimum": 1 }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "minRemainingSize": { "description": "Minimal size for the chunks the stay after moving the modules to a new chunk.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "reuseExistingChunk": { "description": "If the current chunk contains modules already split out from the main bundle, it will be reused instead of a new one being generated. This can affect the resulting file name of the chunk.", "type": "boolean" } } }, "OptimizationSplitChunksSizes": { "description": "Size description for limits.", "anyOf": [{ "description": "Size of the javascript part of the chunk.", "type": "number", "minimum": 0 }] }, "Iife": { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" }, "Clean": { "description": "Clears the output build directory", "type": "boolean" }, "Output": { "description": "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.", "type": "object", "additionalProperties": false, "properties": { "iife": { "$ref": "#/definitions/Iife" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFormat": { "$ref": "#/definitions/ChunkFormat" }, "chunkLoading": { "$ref": "#/definitions/ChunkLoading" }, "enabledChunkLoadingTypes": { "$ref": "#/definitions/EnabledChunkLoadingTypes" }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "hotUpdateChunkFilename": { "$ref": "#/definitions/HotUpdateChunkFilename" }, "hotUpdateMainFilename": { "$ref": "#/definitions/HotUpdateMainFilename" }, "enabledWasmLoadingTypes": { "$ref": "#/definitions/EnabledWasmLoadingTypes" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" }, "webassemblyModuleFilename": { "$ref": "#/definitions/WebassemblyModuleFilename" }, "enabledLibraryTypes": { "$ref": "#/definitions/EnabledLibraryTypes" }, "filename": { "$ref": "#/definitions/Filename" }, "globalObject": { "$ref": "#/definitions/GlobalObject" }, "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, "library": { "$ref": "#/definitions/Library" }, "libraryExport": { "oneOf": [{ "$ref": "#/definitions/LibraryExport" }] }, "libraryTarget": { "oneOf": [{ "$ref": "#/definitions/LibraryType" }] }, "module": { "$ref": "#/definitions/OutputModule" }, "path": { "$ref": "#/definitions/Path" }, "publicPath": { "$ref": "#/definitions/PublicPath" }, "strictModuleErrorHandling": { "$ref": "#/definitions/StrictModuleErrorHandling" }, "umdNamedDefine": { "oneOf": [{ "$ref": "#/definitions/UmdNamedDefine" }] }, "uniqueName": { "$ref": "#/definitions/UniqueName" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" }, "trustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.", "anyOf": [{ "enum": [true] }, { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 }, { "$ref": "#/definitions/TrustedTypes" }] }, "sourceMapFilename": { "$ref": "#/definitions/SourceMapFilename" }, "hashDigest": { "$ref": "#/definitions/HashDigest" }, "hashDigestLength": { "$ref": "#/definitions/HashDigestLength" }, "hashFunction": { "$ref": "#/definitions/HashFunction" }, "hashSalt": { "$ref": "#/definitions/HashSalt" } } }, "OutputModule": { "description": "Output javascript files as module source type.", "type": "boolean" }, "ParserOptionsByModuleType": { "description": "Specify options for each parser.", "type": "object", "additionalProperties": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "properties": { "asset": { "$ref": "#/definitions/AssetParserOptions" } } }, "Path": { "description": "The output directory as **absolute path** (required).", "type": "string" }, "Plugins": { "description": "Add additional plugins to the compiler.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "PublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] }, "RawPublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] }, "Resolve": { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "ResolveAlias": { "description": "Redirect module requests.", "anyOf": [{ "type": "object", "additionalProperties": { "description": "New request.", "anyOf": [{ "description": "Multiple alternative requests.", "type": "array", "items": { "description": "One choice of request.", "type": "string", "minLength": 1 } }, { "description": "Ignore request (replace with empty module).", "enum": [false] }, { "description": "New request.", "type": "string", "minLength": 1 }] } }] }, "ResolveOptions": { "description": "Options object for resolving requests.", "type": "object", "additionalProperties": false, "properties": { "alias": { "$ref": "#/definitions/ResolveAlias" }, "browserField": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "boolean" }, "conditionNames": { "description": "Condition names for exports field entry point.", "type": "array", "items": { "description": "Condition names for exports field entry point.", "type": "string" } }, "extensionAlias": { "description": "An object which maps extension to extension aliases.", "type": "object", "additionalProperties": { "description": "Extension alias.", "anyOf": [{ "description": "Multiple extensions.", "type": "array", "items": { "description": "Aliased extension.", "type": "string", "minLength": 1 } }, { "description": "Aliased extension.", "type": "string", "minLength": 1 }] } }, "extensions": { "description": "Extensions added to the request when trying to find the file.", "type": "array", "items": { "description": "Extension added to the request when trying to find the file.", "type": "string" } }, "fallback": { "description": "Redirect module requests when normal resolving fails.", "oneOf": [{ "$ref": "#/definitions/ResolveAlias" }] }, "fullySpecified": { "description": "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).", "type": "boolean" }, "mainFields": { "description": "Field names from the description file (package.json) which are used to find the default entry point.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "anyOf": [{ "type": "array", "items": { "description": "Part of the field path from the description file (package.json) which are used to find the default entry point.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } }, "mainFiles": { "description": "Filenames used to find the default entry point if there is no description file or main field.", "type": "array", "items": { "description": "Filename used to find the default entry point if there is no description file or main field.", "type": "string", "minLength": 1 } }, "modules": { "description": "Folder names or directory paths where to find modules.", "type": "array", "items": { "description": "Folder name or directory path where to find modules.", "type": "string", "minLength": 1 } }, "preferRelative": { "description": "Prefer to resolve module requests as relative request and fallback to resolving as module.", "type": "boolean" }, "byDependency": { "description": "Extra resolve options per dependency category. Typical categories are \"commonjs\", \"amd\", \"esm\".", "type": "object", "additionalProperties": { "description": "Options object for resolving requests.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] } }, "tsConfigPath": { "description": "Path to tsconfig.json", "type": "string" }, "exportsFields": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "type": "string" } } } }, "RuleSetCondition": { "description": "A condition matcher.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }, { "$ref": "#/definitions/RuleSetLogicalConditions" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditionOrConditions": { "description": "One or multiple rule conditions.", "anyOf": [{ "$ref": "#/definitions/RuleSetCondition" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditions": { "description": "A list of rule conditions.", "type": "array", "items": { "description": "A rule condition.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] } }, "RuleSetLoader": { "description": "A loader request.", "type": "string", "minLength": 1 }, "RuleSetLoaderOptions": { "description": "Options passed to a loader.", "anyOf": [{ "type": "string" }, { "type": "object" }] }, "RuleSetLogicalConditions": { "description": "Logic operators used in a condition matcher.", "type": "object", "additionalProperties": false, "properties": { "and": { "description": "Logical AND.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] }, "not": { "description": "Logical NOT.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] }, "or": { "description": "Logical OR.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] } } }, "RuleSetRule": { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "enforce": { "description": "Enforce this rule as pre or post step.", "enum": ["pre", "post"] }, "exclude": { "description": "Shortcut for resource.exclude.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "generator": { "description": "The options for the module generator.", "type": "object" }, "include": { "description": "Shortcut for resource.include.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "issuer": { "description": "Match the issuer of the module (The module pointing to this module).", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "dependency": { "description": "Match dependency type.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "mimetype": { "description": "Match module mimetype when load from Data URI.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "loader": { "description": "Shortcut for use.loader.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoader" }] }, "options": { "description": "Shortcut for use.options.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoaderOptions" }] }, "scheme": { "description": "Match module scheme.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "rules": { "description": "Match and execute these rules when this rule is matched.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "sideEffects": { "description": "Flags a module as with or without side effects.", "type": "boolean" }, "test": { "description": "Shortcut for resource.test.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "type": { "description": "Module type to use for the module.", "type": "string" }, "use": { "description": "Modifiers applied to the module when rule is matched.", "oneOf": [{ "$ref": "#/definitions/RuleSetUse" }] } } }, "RuleSetRules": { "description": "A list of rules.", "type": "array", "items": { "description": "A rule.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RuleSetRule" }] } }, "RuleSetUse": { "description": "A list of descriptions of loaders applied.", "anyOf": [{ "type": "array", "items": { "description": "An use item.", "oneOf": [{ "$ref": "#/definitions/RuleSetUseItem" }] } }, { "$ref": "#/definitions/RuleSetUseItem" }] }, "RuleSetUseItem": { "description": "A description of an applied loader.", "anyOf": [{ "type": "object", "additionalProperties": false, "properties": { "loader": { "description": "Loader name.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoader" }] }, "options": { "description": "Loader options.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoaderOptions" }] } } }, { "$ref": "#/definitions/RuleSetLoader" }] }, "SnapshotOptions": { "description": "Options affecting how file system snapshots are created and validated.", "type": "object", "additionalProperties": false, "properties": { "module": { "description": "Options for snapshotting dependencies of modules to determine if they need to be built again.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } }, "resolve": { "description": "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } } } }, "StatsOptions": { "description": "Stats options object.", "type": "object", "additionalProperties": true, "properties": { "all": { "description": "Fallback value for stats options when an option is not defined (has precedence over local rspack defaults).", "type": "boolean" }, "assets": { "description": "Add assets information.", "type": "boolean" }, "chunkGroups": { "description": "Display all chunk groups with the corresponding bundles.", "type": "boolean" }, "chunks": { "description": "Add chunk information.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output.", "type": "boolean" }, "entrypoints": { "description": "Display the entry points with the corresponding bundles.", "anyOf": [{ "enum": ["auto"] }, { "type": "boolean" }] }, "errors": { "description": "Add errors.", "type": "boolean" }, "errorsCount": { "description": "Add errors count.", "type": "boolean" }, "hash": { "description": "Add the hash of the compilation.", "type": "boolean" }, "modules": { "description": "Add built modules information.", "type": "boolean" }, "preset": { "description": "Preset for the default values.", "anyOf": [{ "type": "boolean" }, { "type": "string" }] }, "publicPath": { "description": "Add public path information.", "type": "boolean" }, "reasons": { "description": "Add information about the reasons why modules are included.", "type": "boolean" }, "warnings": { "description": "Add warnings.", "type": "boolean" }, "warningsCount": { "description": "Add warnings count.", "type": "boolean" }, "outputPath": { "description": "Add output path information.", "type": "boolean" }, "chunkModules": { "description": "Add built modules information to chunk information.", "type": "boolean" }, "chunkRelations": { "description": "Add information about parent, children and sibling chunks to chunk information.", "type": "boolean" }, "timings": { "description": "Add timing information.", "type": "boolean" }, "builtAt": { "description": "Add built at time information.", "type": "boolean" }, "nestedModules": { "description": "Add information about modules nested in other modules (like with module concatenation).", "type": "boolean" } } }, "StatsValue": { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] }, "StrictModuleErrorHandling": { "description": "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.", "type": "boolean" }, "Target": { "description": "Environment to build for. An array of environments to build for all of them when possible.", "anyOf": [{ "type": "array", "items": { "description": "Environment to build for.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "enum": [false] }, { "type": "string", "minLength": 1 }] }, "TrustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks.", "type": "object", "additionalProperties": false, "properties": { "policyName": { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 } } }, "UmdNamedDefine": { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" }, "UniqueName": { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 }, "ChunkLoadingGlobal": { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 }, "Watch": { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" }, "WatchOptions": { "description": "Options for the watcher.", "type": "object", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "followSymlinks": { "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').", "type": "boolean" }, "ignored": { "description": "Ignore some files from watching (glob pattern or regexp).", "anyOf": [{ "type": "array", "items": { "description": "A glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 } }, { "instanceof": "RegExp" }, { "description": "A single glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 }] }, "poll": { "description": "Enable polling mode for watching.", "anyOf": [{ "description": "`number`: use polling with specified interval.", "type": "number" }, { "description": "`true`: use polling.", "type": "boolean" }] }, "stdin": { "description": "Stop watching when stdin stream has ended.", "type": "boolean" } } }, "RspackPluginFunction": { "description": "Function acting as plugin.", "instanceof": "Function" }, "RspackPluginInstance": { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] } }, "title": "RspackOptions", "description": "Options object as provided by the user.", "type": "object", "additionalProperties": false, "properties": { "cache": { "$ref": "#/definitions/CacheOptions" }, "context": { "$ref": "#/definitions/Context" }, "dependencies": { "$ref": "#/definitions/Dependencies" }, "devServer": { "$ref": "#/definitions/DevServer" }, "devtool": { "$ref": "#/definitions/DevTool" }, "entry": { "$ref": "#/definitions/Entry" }, "experiments": { "$ref": "#/definitions/Experiments" }, "externals": { "$ref": "#/definitions/Externals" }, "externalsType": { "$ref": "#/definitions/ExternalsType" }, "externalsPresets": { "$ref": "#/definitions/ExternalsPresets" }, "infrastructureLogging": { "$ref": "#/definitions/InfrastructureLogging" }, "mode": { "$ref": "#/definitions/Mode" }, "module": { "$ref": "#/definitions/ModuleOptions" }, "name": { "$ref": "#/definitions/Name" }, "node": { "$ref": "#/definitions/Node" }, "optimization": { "$ref": "#/definitions/Optimization" }, "output": { "$ref": "#/definitions/Output" }, "plugins": { "$ref": "#/definitions/Plugins" }, "resolve": { "$ref": "#/definitions/Resolve" }, "snapshot": { "$ref": "#/definitions/SnapshotOptions" }, "stats": { "$ref": "#/definitions/StatsValue" }, "target": { "$ref": "#/definitions/Target" }, "watch": { "$ref": "#/definitions/Watch" }, "watchOptions": { "$ref": "#/definitions/WatchOptions" }, "builtins": { "description": "Builtins features in rspack", "type": "object", "additionalProperties": true }, "ignoreWarnings": { "$ref": "#/definitions/IgnoreWarnings" } } };
6
6
  const schema12 = { "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.", "type": "boolean" };
7
7
  const schema13 = { "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.", "type": "string" };
8
8
  const schema14 = { "description": "References to other configurations to depend on.", "type": "array", "items": { "description": "References to another configuration to depend on.", "type": "string" } };
@@ -12,12 +12,12 @@ const schema28 = { "description": "Enables/Disables experiments (experimental fe
12
12
  const schema32 = { "description": "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).", "enum": ["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "script", "node-commonjs"] };
13
13
  const schema33 = { "description": "Enable presets of externals for specific targets.", "type": "object", "additionalProperties": false, "properties": { "node": { "description": "Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.", "type": "boolean" } } };
14
14
  const schema38 = { "description": "Enable production optimizations or development hints.", "enum": ["development", "production", "none"] };
15
- const schema57 = { "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" };
16
- const schema123 = { "description": "Options affecting how file system snapshots are created and validated.", "type": "object", "additionalProperties": false, "properties": { "module": { "description": "Options for snapshotting dependencies of modules to determine if they need to be built again.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } }, "resolve": { "description": "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } } } };
17
- const schema126 = { "description": "Environment to build for. An array of environments to build for all of them when possible.", "anyOf": [{ "type": "array", "items": { "description": "Environment to build for.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "enum": [false] }, { "type": "string", "minLength": 1 }] };
18
- const schema127 = { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" };
19
- const schema128 = { "description": "Options for the watcher.", "type": "object", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "followSymlinks": { "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').", "type": "boolean" }, "ignored": { "description": "Ignore some files from watching (glob pattern or regexp).", "anyOf": [{ "type": "array", "items": { "description": "A glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 } }, { "instanceof": "RegExp" }, { "description": "A single glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 }] }, "poll": { "description": "Enable polling mode for watching.", "anyOf": [{ "description": "`number`: use polling with specified interval.", "type": "number" }, { "description": "`true`: use polling.", "type": "boolean" }] }, "stdin": { "description": "Stop watching when stdin stream has ended.", "type": "boolean" } } };
20
- const schema129 = { "description": "ignore warnings based on pattern", "type": "array", "items": { "anyOf": [{ "instanceof": "RegExp" }, { "instanceof": "Function" }] } };
15
+ const schema59 = { "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" };
16
+ const schema129 = { "description": "Options affecting how file system snapshots are created and validated.", "type": "object", "additionalProperties": false, "properties": { "module": { "description": "Options for snapshotting dependencies of modules to determine if they need to be built again.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } }, "resolve": { "description": "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } } } };
17
+ const schema132 = { "description": "Environment to build for. An array of environments to build for all of them when possible.", "anyOf": [{ "type": "array", "items": { "description": "Environment to build for.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "enum": [false] }, { "type": "string", "minLength": 1 }] };
18
+ const schema133 = { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" };
19
+ const schema134 = { "description": "Options for the watcher.", "type": "object", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "followSymlinks": { "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').", "type": "boolean" }, "ignored": { "description": "Ignore some files from watching (glob pattern or regexp).", "anyOf": [{ "type": "array", "items": { "description": "A glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 } }, { "instanceof": "RegExp" }, { "description": "A single glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 }] }, "poll": { "description": "Enable polling mode for watching.", "anyOf": [{ "description": "`number`: use polling with specified interval.", "type": "number" }, { "description": "`true`: use polling.", "type": "boolean" }] }, "stdin": { "description": "Stop watching when stdin stream has ended.", "type": "boolean" } } };
20
+ const schema135 = { "description": "ignore warnings based on pattern", "type": "array", "items": { "anyOf": [{ "instanceof": "RegExp" }, { "instanceof": "Function" }] } };
21
21
  const func2 = Object.prototype.hasOwnProperty;
22
22
  const pattern0 = new RegExp("^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$", "u");
23
23
  const schema17 = { "description": "The entry point(s) of the compilation.", "anyOf": [{ "$ref": "#/definitions/EntryStatic" }] };
@@ -1377,7 +1377,9 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
1377
1377
  } validate28.errors = vErrors; return errors === 0; }
1378
1378
  const schema39 = { "description": "Options affecting the normal modules (`NormalModuleFactory`).", "type": "object", "additionalProperties": false, "properties": { "defaultRules": { "description": "An array of rules applied by default for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] }, "parser": { "$ref": "#/definitions/ParserOptionsByModuleType" }, "rules": { "description": "An array of rules applied for modules.", "oneOf": [{ "$ref": "#/definitions/RuleSetRules" }] } } };
1379
1379
  const schema40 = { "description": "A list of rules.", "type": "array", "items": { "description": "A rule.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RuleSetRule" }] } };
1380
- const schema41 = { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "enforce": { "description": "Enforce this rule as pre or post step.", "enum": ["pre", "post"] }, "exclude": { "description": "Shortcut for resource.exclude.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "generator": { "description": "The options for the module generator.", "type": "object" }, "include": { "description": "Shortcut for resource.include.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "issuer": { "description": "Match the issuer of the module (The module pointing to this module).", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "dependency": { "description": "Match dependency type.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "mimetype": { "description": "Match module mimetype when load from Data URI.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "scheme": { "description": "Match module scheme.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "rules": { "description": "Match and execute these rules when this rule is matched.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "sideEffects": { "description": "Flags a module as with or without side effects.", "type": "boolean" }, "test": { "description": "Shortcut for resource.test.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "type": { "description": "Module type to use for the module.", "type": "string" }, "use": { "description": "Modifiers applied to the module when rule is matched.", "oneOf": [{ "$ref": "#/definitions/RuleSetUse" }] } } };
1380
+ const schema41 = { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "enforce": { "description": "Enforce this rule as pre or post step.", "enum": ["pre", "post"] }, "exclude": { "description": "Shortcut for resource.exclude.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "generator": { "description": "The options for the module generator.", "type": "object" }, "include": { "description": "Shortcut for resource.include.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "issuer": { "description": "Match the issuer of the module (The module pointing to this module).", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "dependency": { "description": "Match dependency type.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "mimetype": { "description": "Match module mimetype when load from Data URI.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "loader": { "description": "Shortcut for use.loader.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoader" }] }, "options": { "description": "Shortcut for use.options.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoaderOptions" }] }, "scheme": { "description": "Match module scheme.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "rules": { "description": "Match and execute these rules when this rule is matched.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "sideEffects": { "description": "Flags a module as with or without side effects.", "type": "boolean" }, "test": { "description": "Shortcut for resource.test.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "type": { "description": "Module type to use for the module.", "type": "string" }, "use": { "description": "Modifiers applied to the module when rule is matched.", "oneOf": [{ "$ref": "#/definitions/RuleSetUse" }] } } };
1381
+ const schema49 = { "description": "A loader request.", "type": "string", "minLength": 1 };
1382
+ const schema50 = { "description": "Options passed to a loader.", "anyOf": [{ "type": "string" }, { "type": "object" }] };
1381
1383
  const schema42 = { "description": "One or multiple rule conditions.", "anyOf": [{ "$ref": "#/definitions/RuleSetCondition" }, { "$ref": "#/definitions/RuleSetConditions" }] };
1382
1384
  const schema43 = { "description": "A condition matcher.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }, { "$ref": "#/definitions/RuleSetLogicalConditions" }, { "$ref": "#/definitions/RuleSetConditions" }] };
1383
1385
  const schema44 = { "description": "Logic operators used in a condition matcher.", "type": "object", "additionalProperties": false, "properties": { "and": { "description": "Logical AND.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] }, "not": { "description": "Logical NOT.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] }, "or": { "description": "Logical OR.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] } } };
@@ -1700,7 +1702,7 @@ else {
1700
1702
  }
1701
1703
  }
1702
1704
  } validate35.errors = vErrors; return errors === 0; }
1703
- const schema46 = { "description": "Options object for resolving requests.", "type": "object", "additionalProperties": false, "properties": { "alias": { "$ref": "#/definitions/ResolveAlias" }, "browserField": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "boolean" }, "conditionNames": { "description": "Condition names for exports field entry point.", "type": "array", "items": { "description": "Condition names for exports field entry point.", "type": "string" } }, "extensions": { "description": "Extensions added to the request when trying to find the file.", "type": "array", "items": { "description": "Extension added to the request when trying to find the file.", "type": "string" } }, "fallback": { "description": "Redirect module requests when normal resolving fails.", "oneOf": [{ "$ref": "#/definitions/ResolveAlias" }] }, "fullySpecified": { "description": "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).", "type": "boolean" }, "mainFields": { "description": "Field names from the description file (package.json) which are used to find the default entry point.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "anyOf": [{ "type": "array", "items": { "description": "Part of the field path from the description file (package.json) which are used to find the default entry point.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } }, "mainFiles": { "description": "Filenames used to find the default entry point if there is no description file or main field.", "type": "array", "items": { "description": "Filename used to find the default entry point if there is no description file or main field.", "type": "string", "minLength": 1 } }, "modules": { "description": "Folder names or directory paths where to find modules.", "type": "array", "items": { "description": "Folder name or directory path where to find modules.", "type": "string", "minLength": 1 } }, "preferRelative": { "description": "Prefer to resolve module requests as relative request and fallback to resolving as module.", "type": "boolean" }, "byDependency": { "description": "Extra resolve options per dependency category. Typical categories are \"commonjs\", \"amd\", \"esm\".", "type": "object", "additionalProperties": { "description": "Options object for resolving requests.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] } }, "tsConfigPath": { "description": "Path to tsconfig.json", "type": "string" }, "exportsFields": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "type": "string" } } } };
1705
+ const schema46 = { "description": "Options object for resolving requests.", "type": "object", "additionalProperties": false, "properties": { "alias": { "$ref": "#/definitions/ResolveAlias" }, "browserField": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "boolean" }, "conditionNames": { "description": "Condition names for exports field entry point.", "type": "array", "items": { "description": "Condition names for exports field entry point.", "type": "string" } }, "extensionAlias": { "description": "An object which maps extension to extension aliases.", "type": "object", "additionalProperties": { "description": "Extension alias.", "anyOf": [{ "description": "Multiple extensions.", "type": "array", "items": { "description": "Aliased extension.", "type": "string", "minLength": 1 } }, { "description": "Aliased extension.", "type": "string", "minLength": 1 }] } }, "extensions": { "description": "Extensions added to the request when trying to find the file.", "type": "array", "items": { "description": "Extension added to the request when trying to find the file.", "type": "string" } }, "fallback": { "description": "Redirect module requests when normal resolving fails.", "oneOf": [{ "$ref": "#/definitions/ResolveAlias" }] }, "fullySpecified": { "description": "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).", "type": "boolean" }, "mainFields": { "description": "Field names from the description file (package.json) which are used to find the default entry point.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "anyOf": [{ "type": "array", "items": { "description": "Part of the field path from the description file (package.json) which are used to find the default entry point.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } }, "mainFiles": { "description": "Filenames used to find the default entry point if there is no description file or main field.", "type": "array", "items": { "description": "Filename used to find the default entry point if there is no description file or main field.", "type": "string", "minLength": 1 } }, "modules": { "description": "Folder names or directory paths where to find modules.", "type": "array", "items": { "description": "Folder name or directory path where to find modules.", "type": "string", "minLength": 1 } }, "preferRelative": { "description": "Prefer to resolve module requests as relative request and fallback to resolving as module.", "type": "boolean" }, "byDependency": { "description": "Extra resolve options per dependency category. Typical categories are \"commonjs\", \"amd\", \"esm\".", "type": "object", "additionalProperties": { "description": "Options object for resolving requests.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] } }, "tsConfigPath": { "description": "Path to tsconfig.json", "type": "string" }, "exportsFields": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "type": "string" } } } };
1704
1706
  const schema47 = { "description": "Redirect module requests.", "anyOf": [{ "type": "object", "additionalProperties": { "description": "New request.", "anyOf": [{ "description": "Multiple alternative requests.", "type": "array", "items": { "description": "One choice of request.", "type": "string", "minLength": 1 } }, { "description": "Ignore request (replace with empty module).", "enum": [false] }, { "description": "New request.", "type": "string", "minLength": 1 }] } }] };
1705
1707
  const wrapper3 = { validate: validate50 };
1706
1708
  function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
@@ -1933,27 +1935,127 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
1933
1935
  var valid0 = true;
1934
1936
  }
1935
1937
  if (valid0) {
1936
- if (data.extensions !== undefined) {
1937
- let data6 = data.extensions;
1938
+ if (data.extensionAlias !== undefined) {
1939
+ let data6 = data.extensionAlias;
1938
1940
  const _errs23 = errors;
1939
1941
  if (errors === _errs23) {
1940
- if (Array.isArray(data6)) {
1941
- var valid7 = true;
1942
- const len2 = data6.length;
1943
- for (let i2 = 0; i2 < len2; i2++) {
1944
- const _errs25 = errors;
1945
- if (typeof data6[i2] !== "string") {
1946
- validate50.errors = [{ instancePath: instancePath + "/extensions/" + i2, schemaPath: "#/properties/extensions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
1942
+ if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
1943
+ for (const key2 in data6) {
1944
+ let data7 = data6[key2];
1945
+ const _errs26 = errors;
1946
+ const _errs27 = errors;
1947
+ let valid8 = false;
1948
+ const _errs28 = errors;
1949
+ if (errors === _errs28) {
1950
+ if (Array.isArray(data7)) {
1951
+ var valid9 = true;
1952
+ const len2 = data7.length;
1953
+ for (let i2 = 0; i2 < len2; i2++) {
1954
+ let data8 = data7[i2];
1955
+ const _errs30 = errors;
1956
+ if (errors === _errs30) {
1957
+ if (typeof data8 === "string") {
1958
+ if (data8.length < 1) {
1959
+ const err9 = { instancePath: instancePath + "/extensionAlias/" + key2.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i2, schemaPath: "#/properties/extensionAlias/additionalProperties/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
1960
+ if (vErrors === null) {
1961
+ vErrors = [err9];
1962
+ }
1963
+ else {
1964
+ vErrors.push(err9);
1965
+ }
1966
+ errors++;
1967
+ }
1968
+ }
1969
+ else {
1970
+ const err10 = { instancePath: instancePath + "/extensionAlias/" + key2.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i2, schemaPath: "#/properties/extensionAlias/additionalProperties/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1971
+ if (vErrors === null) {
1972
+ vErrors = [err10];
1973
+ }
1974
+ else {
1975
+ vErrors.push(err10);
1976
+ }
1977
+ errors++;
1978
+ }
1979
+ }
1980
+ var valid9 = _errs30 === errors;
1981
+ if (!valid9) {
1982
+ break;
1983
+ }
1984
+ }
1985
+ }
1986
+ else {
1987
+ const err11 = { instancePath: instancePath + "/extensionAlias/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/extensionAlias/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
1988
+ if (vErrors === null) {
1989
+ vErrors = [err11];
1990
+ }
1991
+ else {
1992
+ vErrors.push(err11);
1993
+ }
1994
+ errors++;
1995
+ }
1996
+ }
1997
+ var _valid2 = _errs28 === errors;
1998
+ valid8 = valid8 || _valid2;
1999
+ if (!valid8) {
2000
+ const _errs32 = errors;
2001
+ if (errors === _errs32) {
2002
+ if (typeof data7 === "string") {
2003
+ if (data7.length < 1) {
2004
+ const err12 = { instancePath: instancePath + "/extensionAlias/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/extensionAlias/additionalProperties/anyOf/1/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
2005
+ if (vErrors === null) {
2006
+ vErrors = [err12];
2007
+ }
2008
+ else {
2009
+ vErrors.push(err12);
2010
+ }
2011
+ errors++;
2012
+ }
2013
+ }
2014
+ else {
2015
+ const err13 = { instancePath: instancePath + "/extensionAlias/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/extensionAlias/additionalProperties/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2016
+ if (vErrors === null) {
2017
+ vErrors = [err13];
2018
+ }
2019
+ else {
2020
+ vErrors.push(err13);
2021
+ }
2022
+ errors++;
2023
+ }
2024
+ }
2025
+ var _valid2 = _errs32 === errors;
2026
+ valid8 = valid8 || _valid2;
2027
+ }
2028
+ if (!valid8) {
2029
+ const err14 = { instancePath: instancePath + "/extensionAlias/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/extensionAlias/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2030
+ if (vErrors === null) {
2031
+ vErrors = [err14];
2032
+ }
2033
+ else {
2034
+ vErrors.push(err14);
2035
+ }
2036
+ errors++;
2037
+ validate50.errors = vErrors;
1947
2038
  return false;
1948
2039
  }
1949
- var valid7 = _errs25 === errors;
2040
+ else {
2041
+ errors = _errs27;
2042
+ if (vErrors !== null) {
2043
+ if (_errs27) {
2044
+ vErrors.length = _errs27;
2045
+ }
2046
+ else {
2047
+ vErrors = null;
2048
+ }
2049
+ }
2050
+ }
2051
+ var valid7 = _errs26 === errors;
1950
2052
  if (!valid7) {
1951
2053
  break;
1952
2054
  }
1953
2055
  }
1954
2056
  }
1955
2057
  else {
1956
- validate50.errors = [{ instancePath: instancePath + "/extensions", schemaPath: "#/properties/extensions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
2058
+ validate50.errors = [{ instancePath: instancePath + "/extensionAlias", schemaPath: "#/properties/extensionAlias/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
1957
2059
  return false;
1958
2060
  }
1959
2061
  }
@@ -1963,548 +2065,579 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
1963
2065
  var valid0 = true;
1964
2066
  }
1965
2067
  if (valid0) {
1966
- if (data.fallback !== undefined) {
1967
- let data8 = data.fallback;
1968
- const _errs27 = errors;
1969
- const _errs28 = errors;
1970
- let valid8 = false;
1971
- let passing0 = null;
1972
- const _errs29 = errors;
1973
- const _errs31 = errors;
1974
- let valid10 = false;
1975
- const _errs32 = errors;
1976
- if (errors === _errs32) {
1977
- if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {
1978
- for (const key2 in data8) {
1979
- let data9 = data8[key2];
1980
- const _errs35 = errors;
2068
+ if (data.extensions !== undefined) {
2069
+ let data9 = data.extensions;
2070
+ const _errs34 = errors;
2071
+ if (errors === _errs34) {
2072
+ if (Array.isArray(data9)) {
2073
+ var valid10 = true;
2074
+ const len3 = data9.length;
2075
+ for (let i3 = 0; i3 < len3; i3++) {
1981
2076
  const _errs36 = errors;
1982
- let valid12 = false;
1983
- const _errs37 = errors;
1984
- if (errors === _errs37) {
1985
- if (Array.isArray(data9)) {
1986
- var valid13 = true;
1987
- const len3 = data9.length;
1988
- for (let i3 = 0; i3 < len3; i3++) {
1989
- let data10 = data9[i3];
1990
- const _errs39 = errors;
1991
- if (errors === _errs39) {
1992
- if (typeof data10 === "string") {
1993
- if (data10.length < 1) {
1994
- const err9 = { instancePath: instancePath + "/fallback/" + key2.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i3, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
2077
+ if (typeof data9[i3] !== "string") {
2078
+ validate50.errors = [{ instancePath: instancePath + "/extensions/" + i3, schemaPath: "#/properties/extensions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2079
+ return false;
2080
+ }
2081
+ var valid10 = _errs36 === errors;
2082
+ if (!valid10) {
2083
+ break;
2084
+ }
2085
+ }
2086
+ }
2087
+ else {
2088
+ validate50.errors = [{ instancePath: instancePath + "/extensions", schemaPath: "#/properties/extensions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
2089
+ return false;
2090
+ }
2091
+ }
2092
+ var valid0 = _errs34 === errors;
2093
+ }
2094
+ else {
2095
+ var valid0 = true;
2096
+ }
2097
+ if (valid0) {
2098
+ if (data.fallback !== undefined) {
2099
+ let data11 = data.fallback;
2100
+ const _errs38 = errors;
2101
+ const _errs39 = errors;
2102
+ let valid11 = false;
2103
+ let passing0 = null;
2104
+ const _errs40 = errors;
2105
+ const _errs42 = errors;
2106
+ let valid13 = false;
2107
+ const _errs43 = errors;
2108
+ if (errors === _errs43) {
2109
+ if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
2110
+ for (const key3 in data11) {
2111
+ let data12 = data11[key3];
2112
+ const _errs46 = errors;
2113
+ const _errs47 = errors;
2114
+ let valid15 = false;
2115
+ const _errs48 = errors;
2116
+ if (errors === _errs48) {
2117
+ if (Array.isArray(data12)) {
2118
+ var valid16 = true;
2119
+ const len4 = data12.length;
2120
+ for (let i4 = 0; i4 < len4; i4++) {
2121
+ let data13 = data12[i4];
2122
+ const _errs50 = errors;
2123
+ if (errors === _errs50) {
2124
+ if (typeof data13 === "string") {
2125
+ if (data13.length < 1) {
2126
+ const err15 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i4, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
2127
+ if (vErrors === null) {
2128
+ vErrors = [err15];
2129
+ }
2130
+ else {
2131
+ vErrors.push(err15);
2132
+ }
2133
+ errors++;
2134
+ }
2135
+ }
2136
+ else {
2137
+ const err16 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i4, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1995
2138
  if (vErrors === null) {
1996
- vErrors = [err9];
2139
+ vErrors = [err16];
1997
2140
  }
1998
2141
  else {
1999
- vErrors.push(err9);
2142
+ vErrors.push(err16);
2143
+ }
2144
+ errors++;
2145
+ }
2146
+ }
2147
+ var valid16 = _errs50 === errors;
2148
+ if (!valid16) {
2149
+ break;
2150
+ }
2151
+ }
2152
+ }
2153
+ else {
2154
+ const err17 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
2155
+ if (vErrors === null) {
2156
+ vErrors = [err17];
2157
+ }
2158
+ else {
2159
+ vErrors.push(err17);
2160
+ }
2161
+ errors++;
2162
+ }
2163
+ }
2164
+ var _valid5 = _errs48 === errors;
2165
+ valid15 = valid15 || _valid5;
2166
+ if (!valid15) {
2167
+ const _errs52 = errors;
2168
+ if (data12 !== false) {
2169
+ const err18 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/1/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
2170
+ if (vErrors === null) {
2171
+ vErrors = [err18];
2172
+ }
2173
+ else {
2174
+ vErrors.push(err18);
2175
+ }
2176
+ errors++;
2177
+ }
2178
+ var _valid5 = _errs52 === errors;
2179
+ valid15 = valid15 || _valid5;
2180
+ if (!valid15) {
2181
+ const _errs53 = errors;
2182
+ if (errors === _errs53) {
2183
+ if (typeof data12 === "string") {
2184
+ if (data12.length < 1) {
2185
+ const err19 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
2186
+ if (vErrors === null) {
2187
+ vErrors = [err19];
2188
+ }
2189
+ else {
2190
+ vErrors.push(err19);
2000
2191
  }
2001
2192
  errors++;
2002
2193
  }
2003
2194
  }
2004
2195
  else {
2005
- const err10 = { instancePath: instancePath + "/fallback/" + key2.replace(/~/g, "~0").replace(/\//g, "~1") + "/" + i3, schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2196
+ const err20 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2006
2197
  if (vErrors === null) {
2007
- vErrors = [err10];
2198
+ vErrors = [err20];
2008
2199
  }
2009
2200
  else {
2010
- vErrors.push(err10);
2201
+ vErrors.push(err20);
2011
2202
  }
2012
2203
  errors++;
2013
2204
  }
2014
2205
  }
2015
- var valid13 = _errs39 === errors;
2016
- if (!valid13) {
2017
- break;
2018
- }
2019
- }
2020
- }
2021
- else {
2022
- const err11 = { instancePath: instancePath + "/fallback/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
2023
- if (vErrors === null) {
2024
- vErrors = [err11];
2025
- }
2026
- else {
2027
- vErrors.push(err11);
2206
+ var _valid5 = _errs53 === errors;
2207
+ valid15 = valid15 || _valid5;
2028
2208
  }
2029
- errors++;
2030
2209
  }
2031
- }
2032
- var _valid4 = _errs37 === errors;
2033
- valid12 = valid12 || _valid4;
2034
- if (!valid12) {
2035
- const _errs41 = errors;
2036
- if (data9 !== false) {
2037
- const err12 = { instancePath: instancePath + "/fallback/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/1/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
2210
+ if (!valid15) {
2211
+ const err21 = { instancePath: instancePath + "/fallback/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2038
2212
  if (vErrors === null) {
2039
- vErrors = [err12];
2213
+ vErrors = [err21];
2040
2214
  }
2041
2215
  else {
2042
- vErrors.push(err12);
2216
+ vErrors.push(err21);
2043
2217
  }
2044
2218
  errors++;
2045
2219
  }
2046
- var _valid4 = _errs41 === errors;
2047
- valid12 = valid12 || _valid4;
2048
- if (!valid12) {
2049
- const _errs42 = errors;
2050
- if (errors === _errs42) {
2051
- if (typeof data9 === "string") {
2052
- if (data9.length < 1) {
2053
- const err13 = { instancePath: instancePath + "/fallback/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
2054
- if (vErrors === null) {
2055
- vErrors = [err13];
2056
- }
2057
- else {
2058
- vErrors.push(err13);
2059
- }
2060
- errors++;
2061
- }
2220
+ else {
2221
+ errors = _errs47;
2222
+ if (vErrors !== null) {
2223
+ if (_errs47) {
2224
+ vErrors.length = _errs47;
2062
2225
  }
2063
2226
  else {
2064
- const err14 = { instancePath: instancePath + "/fallback/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf/2/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2065
- if (vErrors === null) {
2066
- vErrors = [err14];
2067
- }
2068
- else {
2069
- vErrors.push(err14);
2070
- }
2071
- errors++;
2227
+ vErrors = null;
2072
2228
  }
2073
2229
  }
2074
- var _valid4 = _errs42 === errors;
2075
- valid12 = valid12 || _valid4;
2076
2230
  }
2077
- }
2078
- if (!valid12) {
2079
- const err15 = { instancePath: instancePath + "/fallback/" + key2.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/definitions/ResolveAlias/anyOf/0/additionalProperties/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2080
- if (vErrors === null) {
2081
- vErrors = [err15];
2082
- }
2083
- else {
2084
- vErrors.push(err15);
2231
+ var valid14 = _errs46 === errors;
2232
+ if (!valid14) {
2233
+ break;
2085
2234
  }
2086
- errors++;
2087
2235
  }
2088
- else {
2089
- errors = _errs36;
2090
- if (vErrors !== null) {
2091
- if (_errs36) {
2092
- vErrors.length = _errs36;
2093
- }
2094
- else {
2095
- vErrors = null;
2096
- }
2097
- }
2236
+ }
2237
+ else {
2238
+ const err22 = { instancePath: instancePath + "/fallback", schemaPath: "#/definitions/ResolveAlias/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2239
+ if (vErrors === null) {
2240
+ vErrors = [err22];
2098
2241
  }
2099
- var valid11 = _errs35 === errors;
2100
- if (!valid11) {
2101
- break;
2242
+ else {
2243
+ vErrors.push(err22);
2102
2244
  }
2245
+ errors++;
2103
2246
  }
2104
2247
  }
2105
- else {
2106
- const err16 = { instancePath: instancePath + "/fallback", schemaPath: "#/definitions/ResolveAlias/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2248
+ var _valid4 = _errs43 === errors;
2249
+ valid13 = valid13 || _valid4;
2250
+ if (!valid13) {
2251
+ const err23 = { instancePath: instancePath + "/fallback", schemaPath: "#/definitions/ResolveAlias/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2107
2252
  if (vErrors === null) {
2108
- vErrors = [err16];
2253
+ vErrors = [err23];
2109
2254
  }
2110
2255
  else {
2111
- vErrors.push(err16);
2256
+ vErrors.push(err23);
2112
2257
  }
2113
2258
  errors++;
2114
2259
  }
2115
- }
2116
- var _valid3 = _errs32 === errors;
2117
- valid10 = valid10 || _valid3;
2118
- if (!valid10) {
2119
- const err17 = { instancePath: instancePath + "/fallback", schemaPath: "#/definitions/ResolveAlias/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2120
- if (vErrors === null) {
2121
- vErrors = [err17];
2122
- }
2123
2260
  else {
2124
- vErrors.push(err17);
2125
- }
2126
- errors++;
2127
- }
2128
- else {
2129
- errors = _errs31;
2130
- if (vErrors !== null) {
2131
- if (_errs31) {
2132
- vErrors.length = _errs31;
2133
- }
2134
- else {
2135
- vErrors = null;
2261
+ errors = _errs42;
2262
+ if (vErrors !== null) {
2263
+ if (_errs42) {
2264
+ vErrors.length = _errs42;
2265
+ }
2266
+ else {
2267
+ vErrors = null;
2268
+ }
2136
2269
  }
2137
2270
  }
2138
- }
2139
- var _valid2 = _errs29 === errors;
2140
- if (_valid2) {
2141
- valid8 = true;
2142
- passing0 = 0;
2143
- }
2144
- if (!valid8) {
2145
- const err18 = { instancePath: instancePath + "/fallback", schemaPath: "#/properties/fallback/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
2146
- if (vErrors === null) {
2147
- vErrors = [err18];
2148
- }
2149
- else {
2150
- vErrors.push(err18);
2271
+ var _valid3 = _errs40 === errors;
2272
+ if (_valid3) {
2273
+ valid11 = true;
2274
+ passing0 = 0;
2151
2275
  }
2152
- errors++;
2153
- validate50.errors = vErrors;
2154
- return false;
2155
- }
2156
- else {
2157
- errors = _errs28;
2158
- if (vErrors !== null) {
2159
- if (_errs28) {
2160
- vErrors.length = _errs28;
2276
+ if (!valid11) {
2277
+ const err24 = { instancePath: instancePath + "/fallback", schemaPath: "#/properties/fallback/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
2278
+ if (vErrors === null) {
2279
+ vErrors = [err24];
2161
2280
  }
2162
2281
  else {
2163
- vErrors = null;
2282
+ vErrors.push(err24);
2164
2283
  }
2165
- }
2166
- }
2167
- var valid0 = _errs27 === errors;
2168
- }
2169
- else {
2170
- var valid0 = true;
2171
- }
2172
- if (valid0) {
2173
- if (data.fullySpecified !== undefined) {
2174
- const _errs44 = errors;
2175
- if (typeof data.fullySpecified !== "boolean") {
2176
- validate50.errors = [{ instancePath: instancePath + "/fullySpecified", schemaPath: "#/properties/fullySpecified/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
2284
+ errors++;
2285
+ validate50.errors = vErrors;
2177
2286
  return false;
2178
2287
  }
2179
- var valid0 = _errs44 === errors;
2288
+ else {
2289
+ errors = _errs39;
2290
+ if (vErrors !== null) {
2291
+ if (_errs39) {
2292
+ vErrors.length = _errs39;
2293
+ }
2294
+ else {
2295
+ vErrors = null;
2296
+ }
2297
+ }
2298
+ }
2299
+ var valid0 = _errs38 === errors;
2180
2300
  }
2181
2301
  else {
2182
2302
  var valid0 = true;
2183
2303
  }
2184
2304
  if (valid0) {
2185
- if (data.mainFields !== undefined) {
2186
- let data12 = data.mainFields;
2187
- const _errs46 = errors;
2188
- if (errors === _errs46) {
2189
- if (Array.isArray(data12)) {
2190
- var valid14 = true;
2191
- const len4 = data12.length;
2192
- for (let i4 = 0; i4 < len4; i4++) {
2193
- let data13 = data12[i4];
2194
- const _errs48 = errors;
2195
- const _errs49 = errors;
2196
- let valid15 = false;
2197
- const _errs50 = errors;
2198
- if (errors === _errs50) {
2199
- if (Array.isArray(data13)) {
2200
- var valid16 = true;
2201
- const len5 = data13.length;
2202
- for (let i5 = 0; i5 < len5; i5++) {
2203
- let data14 = data13[i5];
2204
- const _errs52 = errors;
2205
- if (errors === _errs52) {
2206
- if (typeof data14 === "string") {
2207
- if (data14.length < 1) {
2208
- const err19 = { instancePath: instancePath + "/mainFields/" + i4 + "/" + i5, schemaPath: "#/properties/mainFields/items/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
2305
+ if (data.fullySpecified !== undefined) {
2306
+ const _errs55 = errors;
2307
+ if (typeof data.fullySpecified !== "boolean") {
2308
+ validate50.errors = [{ instancePath: instancePath + "/fullySpecified", schemaPath: "#/properties/fullySpecified/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
2309
+ return false;
2310
+ }
2311
+ var valid0 = _errs55 === errors;
2312
+ }
2313
+ else {
2314
+ var valid0 = true;
2315
+ }
2316
+ if (valid0) {
2317
+ if (data.mainFields !== undefined) {
2318
+ let data15 = data.mainFields;
2319
+ const _errs57 = errors;
2320
+ if (errors === _errs57) {
2321
+ if (Array.isArray(data15)) {
2322
+ var valid17 = true;
2323
+ const len5 = data15.length;
2324
+ for (let i5 = 0; i5 < len5; i5++) {
2325
+ let data16 = data15[i5];
2326
+ const _errs59 = errors;
2327
+ const _errs60 = errors;
2328
+ let valid18 = false;
2329
+ const _errs61 = errors;
2330
+ if (errors === _errs61) {
2331
+ if (Array.isArray(data16)) {
2332
+ var valid19 = true;
2333
+ const len6 = data16.length;
2334
+ for (let i6 = 0; i6 < len6; i6++) {
2335
+ let data17 = data16[i6];
2336
+ const _errs63 = errors;
2337
+ if (errors === _errs63) {
2338
+ if (typeof data17 === "string") {
2339
+ if (data17.length < 1) {
2340
+ const err25 = { instancePath: instancePath + "/mainFields/" + i5 + "/" + i6, schemaPath: "#/properties/mainFields/items/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
2341
+ if (vErrors === null) {
2342
+ vErrors = [err25];
2343
+ }
2344
+ else {
2345
+ vErrors.push(err25);
2346
+ }
2347
+ errors++;
2348
+ }
2349
+ }
2350
+ else {
2351
+ const err26 = { instancePath: instancePath + "/mainFields/" + i5 + "/" + i6, schemaPath: "#/properties/mainFields/items/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2209
2352
  if (vErrors === null) {
2210
- vErrors = [err19];
2353
+ vErrors = [err26];
2211
2354
  }
2212
2355
  else {
2213
- vErrors.push(err19);
2356
+ vErrors.push(err26);
2214
2357
  }
2215
2358
  errors++;
2216
2359
  }
2217
2360
  }
2218
- else {
2219
- const err20 = { instancePath: instancePath + "/mainFields/" + i4 + "/" + i5, schemaPath: "#/properties/mainFields/items/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2361
+ var valid19 = _errs63 === errors;
2362
+ if (!valid19) {
2363
+ break;
2364
+ }
2365
+ }
2366
+ }
2367
+ else {
2368
+ const err27 = { instancePath: instancePath + "/mainFields/" + i5, schemaPath: "#/properties/mainFields/items/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
2369
+ if (vErrors === null) {
2370
+ vErrors = [err27];
2371
+ }
2372
+ else {
2373
+ vErrors.push(err27);
2374
+ }
2375
+ errors++;
2376
+ }
2377
+ }
2378
+ var _valid6 = _errs61 === errors;
2379
+ valid18 = valid18 || _valid6;
2380
+ if (!valid18) {
2381
+ const _errs65 = errors;
2382
+ if (errors === _errs65) {
2383
+ if (typeof data16 === "string") {
2384
+ if (data16.length < 1) {
2385
+ const err28 = { instancePath: instancePath + "/mainFields/" + i5, schemaPath: "#/properties/mainFields/items/anyOf/1/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
2220
2386
  if (vErrors === null) {
2221
- vErrors = [err20];
2387
+ vErrors = [err28];
2222
2388
  }
2223
2389
  else {
2224
- vErrors.push(err20);
2390
+ vErrors.push(err28);
2225
2391
  }
2226
2392
  errors++;
2227
2393
  }
2228
2394
  }
2229
- var valid16 = _errs52 === errors;
2230
- if (!valid16) {
2231
- break;
2232
- }
2233
- }
2234
- }
2235
- else {
2236
- const err21 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
2237
- if (vErrors === null) {
2238
- vErrors = [err21];
2239
- }
2240
- else {
2241
- vErrors.push(err21);
2242
- }
2243
- errors++;
2244
- }
2245
- }
2246
- var _valid5 = _errs50 === errors;
2247
- valid15 = valid15 || _valid5;
2248
- if (!valid15) {
2249
- const _errs54 = errors;
2250
- if (errors === _errs54) {
2251
- if (typeof data13 === "string") {
2252
- if (data13.length < 1) {
2253
- const err22 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf/1/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
2395
+ else {
2396
+ const err29 = { instancePath: instancePath + "/mainFields/" + i5, schemaPath: "#/properties/mainFields/items/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2254
2397
  if (vErrors === null) {
2255
- vErrors = [err22];
2398
+ vErrors = [err29];
2256
2399
  }
2257
2400
  else {
2258
- vErrors.push(err22);
2401
+ vErrors.push(err29);
2259
2402
  }
2260
2403
  errors++;
2261
2404
  }
2262
2405
  }
2263
- else {
2264
- const err23 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2265
- if (vErrors === null) {
2266
- vErrors = [err23];
2267
- }
2268
- else {
2269
- vErrors.push(err23);
2270
- }
2271
- errors++;
2272
- }
2273
- }
2274
- var _valid5 = _errs54 === errors;
2275
- valid15 = valid15 || _valid5;
2276
- }
2277
- if (!valid15) {
2278
- const err24 = { instancePath: instancePath + "/mainFields/" + i4, schemaPath: "#/properties/mainFields/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2279
- if (vErrors === null) {
2280
- vErrors = [err24];
2281
- }
2282
- else {
2283
- vErrors.push(err24);
2406
+ var _valid6 = _errs65 === errors;
2407
+ valid18 = valid18 || _valid6;
2284
2408
  }
2285
- errors++;
2286
- validate50.errors = vErrors;
2287
- return false;
2288
- }
2289
- else {
2290
- errors = _errs49;
2291
- if (vErrors !== null) {
2292
- if (_errs49) {
2293
- vErrors.length = _errs49;
2409
+ if (!valid18) {
2410
+ const err30 = { instancePath: instancePath + "/mainFields/" + i5, schemaPath: "#/properties/mainFields/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2411
+ if (vErrors === null) {
2412
+ vErrors = [err30];
2294
2413
  }
2295
2414
  else {
2296
- vErrors = null;
2415
+ vErrors.push(err30);
2297
2416
  }
2417
+ errors++;
2418
+ validate50.errors = vErrors;
2419
+ return false;
2298
2420
  }
2299
- }
2300
- var valid14 = _errs48 === errors;
2301
- if (!valid14) {
2302
- break;
2303
- }
2304
- }
2305
- }
2306
- else {
2307
- validate50.errors = [{ instancePath: instancePath + "/mainFields", schemaPath: "#/properties/mainFields/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
2308
- return false;
2309
- }
2310
- }
2311
- var valid0 = _errs46 === errors;
2312
- }
2313
- else {
2314
- var valid0 = true;
2315
- }
2316
- if (valid0) {
2317
- if (data.mainFiles !== undefined) {
2318
- let data15 = data.mainFiles;
2319
- const _errs56 = errors;
2320
- if (errors === _errs56) {
2321
- if (Array.isArray(data15)) {
2322
- var valid17 = true;
2323
- const len6 = data15.length;
2324
- for (let i6 = 0; i6 < len6; i6++) {
2325
- let data16 = data15[i6];
2326
- const _errs58 = errors;
2327
- if (errors === _errs58) {
2328
- if (typeof data16 === "string") {
2329
- if (data16.length < 1) {
2330
- validate50.errors = [{ instancePath: instancePath + "/mainFiles/" + i6, schemaPath: "#/properties/mainFiles/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
2331
- return false;
2421
+ else {
2422
+ errors = _errs60;
2423
+ if (vErrors !== null) {
2424
+ if (_errs60) {
2425
+ vErrors.length = _errs60;
2426
+ }
2427
+ else {
2428
+ vErrors = null;
2332
2429
  }
2333
- }
2334
- else {
2335
- validate50.errors = [{ instancePath: instancePath + "/mainFiles/" + i6, schemaPath: "#/properties/mainFiles/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2336
- return false;
2337
2430
  }
2338
2431
  }
2339
- var valid17 = _errs58 === errors;
2432
+ var valid17 = _errs59 === errors;
2340
2433
  if (!valid17) {
2341
2434
  break;
2342
2435
  }
2343
2436
  }
2344
2437
  }
2345
2438
  else {
2346
- validate50.errors = [{ instancePath: instancePath + "/mainFiles", schemaPath: "#/properties/mainFiles/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
2439
+ validate50.errors = [{ instancePath: instancePath + "/mainFields", schemaPath: "#/properties/mainFields/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
2347
2440
  return false;
2348
2441
  }
2349
2442
  }
2350
- var valid0 = _errs56 === errors;
2443
+ var valid0 = _errs57 === errors;
2351
2444
  }
2352
2445
  else {
2353
2446
  var valid0 = true;
2354
2447
  }
2355
2448
  if (valid0) {
2356
- if (data.modules !== undefined) {
2357
- let data17 = data.modules;
2358
- const _errs60 = errors;
2359
- if (errors === _errs60) {
2360
- if (Array.isArray(data17)) {
2361
- var valid18 = true;
2362
- const len7 = data17.length;
2449
+ if (data.mainFiles !== undefined) {
2450
+ let data18 = data.mainFiles;
2451
+ const _errs67 = errors;
2452
+ if (errors === _errs67) {
2453
+ if (Array.isArray(data18)) {
2454
+ var valid20 = true;
2455
+ const len7 = data18.length;
2363
2456
  for (let i7 = 0; i7 < len7; i7++) {
2364
- let data18 = data17[i7];
2365
- const _errs62 = errors;
2366
- if (errors === _errs62) {
2367
- if (typeof data18 === "string") {
2368
- if (data18.length < 1) {
2369
- validate50.errors = [{ instancePath: instancePath + "/modules/" + i7, schemaPath: "#/properties/modules/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
2457
+ let data19 = data18[i7];
2458
+ const _errs69 = errors;
2459
+ if (errors === _errs69) {
2460
+ if (typeof data19 === "string") {
2461
+ if (data19.length < 1) {
2462
+ validate50.errors = [{ instancePath: instancePath + "/mainFiles/" + i7, schemaPath: "#/properties/mainFiles/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
2370
2463
  return false;
2371
2464
  }
2372
2465
  }
2373
2466
  else {
2374
- validate50.errors = [{ instancePath: instancePath + "/modules/" + i7, schemaPath: "#/properties/modules/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2467
+ validate50.errors = [{ instancePath: instancePath + "/mainFiles/" + i7, schemaPath: "#/properties/mainFiles/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2375
2468
  return false;
2376
2469
  }
2377
2470
  }
2378
- var valid18 = _errs62 === errors;
2379
- if (!valid18) {
2471
+ var valid20 = _errs69 === errors;
2472
+ if (!valid20) {
2380
2473
  break;
2381
2474
  }
2382
2475
  }
2383
2476
  }
2384
2477
  else {
2385
- validate50.errors = [{ instancePath: instancePath + "/modules", schemaPath: "#/properties/modules/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
2478
+ validate50.errors = [{ instancePath: instancePath + "/mainFiles", schemaPath: "#/properties/mainFiles/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
2386
2479
  return false;
2387
2480
  }
2388
2481
  }
2389
- var valid0 = _errs60 === errors;
2482
+ var valid0 = _errs67 === errors;
2390
2483
  }
2391
2484
  else {
2392
2485
  var valid0 = true;
2393
2486
  }
2394
2487
  if (valid0) {
2395
- if (data.preferRelative !== undefined) {
2396
- const _errs64 = errors;
2397
- if (typeof data.preferRelative !== "boolean") {
2398
- validate50.errors = [{ instancePath: instancePath + "/preferRelative", schemaPath: "#/properties/preferRelative/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
2399
- return false;
2400
- }
2401
- var valid0 = _errs64 === errors;
2402
- }
2403
- else {
2404
- var valid0 = true;
2405
- }
2406
- if (valid0) {
2407
- if (data.byDependency !== undefined) {
2408
- let data20 = data.byDependency;
2409
- const _errs66 = errors;
2410
- if (errors === _errs66) {
2411
- if (data20 && typeof data20 == "object" && !Array.isArray(data20)) {
2412
- for (const key3 in data20) {
2413
- const _errs69 = errors;
2414
- const _errs70 = errors;
2415
- let valid20 = false;
2416
- let passing1 = null;
2417
- const _errs71 = errors;
2418
- if (!(wrapper3.validate(data20[key3], { instancePath: instancePath + "/byDependency/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data20, parentDataProperty: key3, rootData }))) {
2419
- vErrors = vErrors === null ? wrapper3.validate.errors : vErrors.concat(wrapper3.validate.errors);
2420
- errors = vErrors.length;
2421
- }
2422
- var _valid6 = _errs71 === errors;
2423
- if (_valid6) {
2424
- valid20 = true;
2425
- passing1 = 0;
2426
- }
2427
- if (!valid20) {
2428
- const err25 = { instancePath: instancePath + "/byDependency/" + key3.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/byDependency/additionalProperties/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
2429
- if (vErrors === null) {
2430
- vErrors = [err25];
2431
- }
2432
- else {
2433
- vErrors.push(err25);
2488
+ if (data.modules !== undefined) {
2489
+ let data20 = data.modules;
2490
+ const _errs71 = errors;
2491
+ if (errors === _errs71) {
2492
+ if (Array.isArray(data20)) {
2493
+ var valid21 = true;
2494
+ const len8 = data20.length;
2495
+ for (let i8 = 0; i8 < len8; i8++) {
2496
+ let data21 = data20[i8];
2497
+ const _errs73 = errors;
2498
+ if (errors === _errs73) {
2499
+ if (typeof data21 === "string") {
2500
+ if (data21.length < 1) {
2501
+ validate50.errors = [{ instancePath: instancePath + "/modules/" + i8, schemaPath: "#/properties/modules/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
2502
+ return false;
2434
2503
  }
2435
- errors++;
2436
- validate50.errors = vErrors;
2437
- return false;
2438
2504
  }
2439
2505
  else {
2440
- errors = _errs70;
2441
- if (vErrors !== null) {
2442
- if (_errs70) {
2443
- vErrors.length = _errs70;
2444
- }
2445
- else {
2446
- vErrors = null;
2447
- }
2448
- }
2449
- }
2450
- var valid19 = _errs69 === errors;
2451
- if (!valid19) {
2452
- break;
2506
+ validate50.errors = [{ instancePath: instancePath + "/modules/" + i8, schemaPath: "#/properties/modules/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2507
+ return false;
2453
2508
  }
2454
2509
  }
2510
+ var valid21 = _errs73 === errors;
2511
+ if (!valid21) {
2512
+ break;
2513
+ }
2455
2514
  }
2456
- else {
2457
- validate50.errors = [{ instancePath: instancePath + "/byDependency", schemaPath: "#/properties/byDependency/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
2458
- return false;
2459
- }
2460
2515
  }
2461
- var valid0 = _errs66 === errors;
2516
+ else {
2517
+ validate50.errors = [{ instancePath: instancePath + "/modules", schemaPath: "#/properties/modules/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
2518
+ return false;
2519
+ }
2520
+ }
2521
+ var valid0 = _errs71 === errors;
2522
+ }
2523
+ else {
2524
+ var valid0 = true;
2525
+ }
2526
+ if (valid0) {
2527
+ if (data.preferRelative !== undefined) {
2528
+ const _errs75 = errors;
2529
+ if (typeof data.preferRelative !== "boolean") {
2530
+ validate50.errors = [{ instancePath: instancePath + "/preferRelative", schemaPath: "#/properties/preferRelative/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
2531
+ return false;
2532
+ }
2533
+ var valid0 = _errs75 === errors;
2462
2534
  }
2463
2535
  else {
2464
2536
  var valid0 = true;
2465
2537
  }
2466
2538
  if (valid0) {
2467
- if (data.tsConfigPath !== undefined) {
2468
- const _errs72 = errors;
2469
- if (typeof data.tsConfigPath !== "string") {
2470
- validate50.errors = [{ instancePath: instancePath + "/tsConfigPath", schemaPath: "#/properties/tsConfigPath/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2471
- return false;
2539
+ if (data.byDependency !== undefined) {
2540
+ let data23 = data.byDependency;
2541
+ const _errs77 = errors;
2542
+ if (errors === _errs77) {
2543
+ if (data23 && typeof data23 == "object" && !Array.isArray(data23)) {
2544
+ for (const key4 in data23) {
2545
+ const _errs80 = errors;
2546
+ const _errs81 = errors;
2547
+ let valid23 = false;
2548
+ let passing1 = null;
2549
+ const _errs82 = errors;
2550
+ if (!(wrapper3.validate(data23[key4], { instancePath: instancePath + "/byDependency/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data23, parentDataProperty: key4, rootData }))) {
2551
+ vErrors = vErrors === null ? wrapper3.validate.errors : vErrors.concat(wrapper3.validate.errors);
2552
+ errors = vErrors.length;
2553
+ }
2554
+ var _valid7 = _errs82 === errors;
2555
+ if (_valid7) {
2556
+ valid23 = true;
2557
+ passing1 = 0;
2558
+ }
2559
+ if (!valid23) {
2560
+ const err31 = { instancePath: instancePath + "/byDependency/" + key4.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/properties/byDependency/additionalProperties/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
2561
+ if (vErrors === null) {
2562
+ vErrors = [err31];
2563
+ }
2564
+ else {
2565
+ vErrors.push(err31);
2566
+ }
2567
+ errors++;
2568
+ validate50.errors = vErrors;
2569
+ return false;
2570
+ }
2571
+ else {
2572
+ errors = _errs81;
2573
+ if (vErrors !== null) {
2574
+ if (_errs81) {
2575
+ vErrors.length = _errs81;
2576
+ }
2577
+ else {
2578
+ vErrors = null;
2579
+ }
2580
+ }
2581
+ }
2582
+ var valid22 = _errs80 === errors;
2583
+ if (!valid22) {
2584
+ break;
2585
+ }
2586
+ }
2587
+ }
2588
+ else {
2589
+ validate50.errors = [{ instancePath: instancePath + "/byDependency", schemaPath: "#/properties/byDependency/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
2590
+ return false;
2591
+ }
2472
2592
  }
2473
- var valid0 = _errs72 === errors;
2593
+ var valid0 = _errs77 === errors;
2474
2594
  }
2475
2595
  else {
2476
2596
  var valid0 = true;
2477
2597
  }
2478
2598
  if (valid0) {
2479
- if (data.exportsFields !== undefined) {
2480
- let data23 = data.exportsFields;
2481
- const _errs74 = errors;
2482
- if (errors === _errs74) {
2483
- if (Array.isArray(data23)) {
2484
- var valid21 = true;
2485
- const len8 = data23.length;
2486
- for (let i8 = 0; i8 < len8; i8++) {
2487
- const _errs76 = errors;
2488
- if (typeof data23[i8] !== "string") {
2489
- validate50.errors = [{ instancePath: instancePath + "/exportsFields/" + i8, schemaPath: "#/properties/exportsFields/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2490
- return false;
2491
- }
2492
- var valid21 = _errs76 === errors;
2493
- if (!valid21) {
2494
- break;
2495
- }
2496
- }
2497
- }
2498
- else {
2499
- validate50.errors = [{ instancePath: instancePath + "/exportsFields", schemaPath: "#/properties/exportsFields/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
2500
- return false;
2501
- }
2599
+ if (data.tsConfigPath !== undefined) {
2600
+ const _errs83 = errors;
2601
+ if (typeof data.tsConfigPath !== "string") {
2602
+ validate50.errors = [{ instancePath: instancePath + "/tsConfigPath", schemaPath: "#/properties/tsConfigPath/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2603
+ return false;
2502
2604
  }
2503
- var valid0 = _errs74 === errors;
2605
+ var valid0 = _errs83 === errors;
2504
2606
  }
2505
2607
  else {
2506
2608
  var valid0 = true;
2507
2609
  }
2610
+ if (valid0) {
2611
+ if (data.exportsFields !== undefined) {
2612
+ let data26 = data.exportsFields;
2613
+ const _errs85 = errors;
2614
+ if (errors === _errs85) {
2615
+ if (Array.isArray(data26)) {
2616
+ var valid24 = true;
2617
+ const len9 = data26.length;
2618
+ for (let i9 = 0; i9 < len9; i9++) {
2619
+ const _errs87 = errors;
2620
+ if (typeof data26[i9] !== "string") {
2621
+ validate50.errors = [{ instancePath: instancePath + "/exportsFields/" + i9, schemaPath: "#/properties/exportsFields/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
2622
+ return false;
2623
+ }
2624
+ var valid24 = _errs87 === errors;
2625
+ if (!valid24) {
2626
+ break;
2627
+ }
2628
+ }
2629
+ }
2630
+ else {
2631
+ validate50.errors = [{ instancePath: instancePath + "/exportsFields", schemaPath: "#/properties/exportsFields/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
2632
+ return false;
2633
+ }
2634
+ }
2635
+ var valid0 = _errs85 === errors;
2636
+ }
2637
+ else {
2638
+ var valid0 = true;
2639
+ }
2640
+ }
2508
2641
  }
2509
2642
  }
2510
2643
  }
@@ -2524,10 +2657,8 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
2524
2657
  return false;
2525
2658
  }
2526
2659
  } validate50.errors = vErrors; return errors === 0; }
2527
- const schema49 = { "description": "A list of descriptions of loaders applied.", "anyOf": [{ "type": "array", "items": { "description": "An use item.", "oneOf": [{ "$ref": "#/definitions/RuleSetUseItem" }] } }, { "$ref": "#/definitions/RuleSetUseItem" }] };
2528
- const schema50 = { "description": "A description of an applied loader.", "anyOf": [{ "type": "object", "additionalProperties": false, "properties": { "loader": { "description": "Loader name.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoader" }] }, "options": { "description": "Loader options.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoaderOptions" }] } } }, { "$ref": "#/definitions/RuleSetLoader" }] };
2529
- const schema51 = { "description": "A loader request.", "type": "string", "minLength": 1 };
2530
- const schema52 = { "description": "Options passed to a loader.", "anyOf": [{ "type": "string" }, { "type": "object" }] };
2660
+ const schema51 = { "description": "A list of descriptions of loaders applied.", "anyOf": [{ "type": "array", "items": { "description": "An use item.", "oneOf": [{ "$ref": "#/definitions/RuleSetUseItem" }] } }, { "$ref": "#/definitions/RuleSetUseItem" }] };
2661
+ const schema52 = { "description": "A description of an applied loader.", "anyOf": [{ "type": "object", "additionalProperties": false, "properties": { "loader": { "description": "Loader name.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoader" }] }, "options": { "description": "Loader options.", "oneOf": [{ "$ref": "#/definitions/RuleSetLoaderOptions" }] } } }, { "$ref": "#/definitions/RuleSetLoader" }] };
2531
2662
  function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (errors === _errs1) {
2532
2663
  if (data && typeof data == "object" && !Array.isArray(data)) {
2533
2664
  const _errs3 = errors;
@@ -3395,15 +3526,37 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
3395
3526
  var valid0 = true;
3396
3527
  }
3397
3528
  if (valid0) {
3398
- if (data.scheme !== undefined) {
3529
+ if (data.loader !== undefined) {
3530
+ let data16 = data.loader;
3399
3531
  const _errs45 = errors;
3400
3532
  const _errs46 = errors;
3401
3533
  let valid13 = false;
3402
3534
  let passing10 = null;
3403
3535
  const _errs47 = errors;
3404
- if (!(validate35(data.scheme, { instancePath: instancePath + "/scheme", parentData: data, parentDataProperty: "scheme", rootData }))) {
3405
- vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
3406
- errors = vErrors.length;
3536
+ const _errs48 = errors;
3537
+ if (errors === _errs48) {
3538
+ if (typeof data16 === "string") {
3539
+ if (data16.length < 1) {
3540
+ const err10 = { instancePath: instancePath + "/loader", schemaPath: "#/definitions/RuleSetLoader/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
3541
+ if (vErrors === null) {
3542
+ vErrors = [err10];
3543
+ }
3544
+ else {
3545
+ vErrors.push(err10);
3546
+ }
3547
+ errors++;
3548
+ }
3549
+ }
3550
+ else {
3551
+ const err11 = { instancePath: instancePath + "/loader", schemaPath: "#/definitions/RuleSetLoader/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3552
+ if (vErrors === null) {
3553
+ vErrors = [err11];
3554
+ }
3555
+ else {
3556
+ vErrors.push(err11);
3557
+ }
3558
+ errors++;
3559
+ }
3407
3560
  }
3408
3561
  var _valid10 = _errs47 === errors;
3409
3562
  if (_valid10) {
@@ -3411,12 +3564,12 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
3411
3564
  passing10 = 0;
3412
3565
  }
3413
3566
  if (!valid13) {
3414
- const err10 = { instancePath: instancePath + "/scheme", schemaPath: "#/properties/scheme/oneOf", keyword: "oneOf", params: { passingSchemas: passing10 }, message: "must match exactly one schema in oneOf" };
3567
+ const err12 = { instancePath: instancePath + "/loader", schemaPath: "#/properties/loader/oneOf", keyword: "oneOf", params: { passingSchemas: passing10 }, message: "must match exactly one schema in oneOf" };
3415
3568
  if (vErrors === null) {
3416
- vErrors = [err10];
3569
+ vErrors = [err12];
3417
3570
  }
3418
3571
  else {
3419
- vErrors.push(err10);
3572
+ vErrors.push(err12);
3420
3573
  }
3421
3574
  errors++;
3422
3575
  validate34.errors = vErrors;
@@ -3439,179 +3592,317 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
3439
3592
  var valid0 = true;
3440
3593
  }
3441
3594
  if (valid0) {
3442
- if (data.rules !== undefined) {
3443
- let data17 = data.rules;
3444
- const _errs48 = errors;
3445
- if (errors === _errs48) {
3446
- if (Array.isArray(data17)) {
3447
- var valid14 = true;
3448
- const len1 = data17.length;
3449
- for (let i1 = 0; i1 < len1; i1++) {
3450
- const _errs50 = errors;
3451
- const _errs51 = errors;
3452
- let valid15 = false;
3453
- let passing11 = null;
3454
- const _errs52 = errors;
3455
- if (!(wrapper2.validate(data17[i1], { instancePath: instancePath + "/rules/" + i1, parentData: data17, parentDataProperty: i1, rootData }))) {
3456
- vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
3457
- errors = vErrors.length;
3458
- }
3459
- var _valid11 = _errs52 === errors;
3460
- if (_valid11) {
3461
- valid15 = true;
3462
- passing11 = 0;
3463
- }
3464
- if (!valid15) {
3465
- const err11 = { instancePath: instancePath + "/rules/" + i1, schemaPath: "#/properties/rules/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing11 }, message: "must match exactly one schema in oneOf" };
3466
- if (vErrors === null) {
3467
- vErrors = [err11];
3468
- }
3469
- else {
3470
- vErrors.push(err11);
3471
- }
3472
- errors++;
3473
- validate34.errors = vErrors;
3474
- return false;
3475
- }
3476
- else {
3477
- errors = _errs51;
3478
- if (vErrors !== null) {
3479
- if (_errs51) {
3480
- vErrors.length = _errs51;
3481
- }
3482
- else {
3483
- vErrors = null;
3484
- }
3485
- }
3486
- }
3487
- var valid14 = _errs50 === errors;
3488
- if (!valid14) {
3489
- break;
3490
- }
3595
+ if (data.options !== undefined) {
3596
+ let data17 = data.options;
3597
+ const _errs50 = errors;
3598
+ const _errs51 = errors;
3599
+ let valid15 = false;
3600
+ let passing11 = null;
3601
+ const _errs52 = errors;
3602
+ const _errs54 = errors;
3603
+ let valid17 = false;
3604
+ const _errs55 = errors;
3605
+ if (typeof data17 !== "string") {
3606
+ const err13 = { instancePath: instancePath + "/options", schemaPath: "#/definitions/RuleSetLoaderOptions/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
3607
+ if (vErrors === null) {
3608
+ vErrors = [err13];
3609
+ }
3610
+ else {
3611
+ vErrors.push(err13);
3612
+ }
3613
+ errors++;
3614
+ }
3615
+ var _valid12 = _errs55 === errors;
3616
+ valid17 = valid17 || _valid12;
3617
+ if (!valid17) {
3618
+ const _errs57 = errors;
3619
+ if (!(data17 && typeof data17 == "object" && !Array.isArray(data17))) {
3620
+ const err14 = { instancePath: instancePath + "/options", schemaPath: "#/definitions/RuleSetLoaderOptions/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
3621
+ if (vErrors === null) {
3622
+ vErrors = [err14];
3623
+ }
3624
+ else {
3625
+ vErrors.push(err14);
3626
+ }
3627
+ errors++;
3628
+ }
3629
+ var _valid12 = _errs57 === errors;
3630
+ valid17 = valid17 || _valid12;
3631
+ }
3632
+ if (!valid17) {
3633
+ const err15 = { instancePath: instancePath + "/options", schemaPath: "#/definitions/RuleSetLoaderOptions/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
3634
+ if (vErrors === null) {
3635
+ vErrors = [err15];
3636
+ }
3637
+ else {
3638
+ vErrors.push(err15);
3639
+ }
3640
+ errors++;
3641
+ }
3642
+ else {
3643
+ errors = _errs54;
3644
+ if (vErrors !== null) {
3645
+ if (_errs54) {
3646
+ vErrors.length = _errs54;
3491
3647
  }
3648
+ else {
3649
+ vErrors = null;
3650
+ }
3651
+ }
3652
+ }
3653
+ var _valid11 = _errs52 === errors;
3654
+ if (_valid11) {
3655
+ valid15 = true;
3656
+ passing11 = 0;
3657
+ }
3658
+ if (!valid15) {
3659
+ const err16 = { instancePath: instancePath + "/options", schemaPath: "#/properties/options/oneOf", keyword: "oneOf", params: { passingSchemas: passing11 }, message: "must match exactly one schema in oneOf" };
3660
+ if (vErrors === null) {
3661
+ vErrors = [err16];
3492
3662
  }
3493
3663
  else {
3494
- validate34.errors = [{ instancePath: instancePath + "/rules", schemaPath: "#/properties/rules/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
3495
- return false;
3664
+ vErrors.push(err16);
3665
+ }
3666
+ errors++;
3667
+ validate34.errors = vErrors;
3668
+ return false;
3669
+ }
3670
+ else {
3671
+ errors = _errs51;
3672
+ if (vErrors !== null) {
3673
+ if (_errs51) {
3674
+ vErrors.length = _errs51;
3675
+ }
3676
+ else {
3677
+ vErrors = null;
3678
+ }
3496
3679
  }
3497
3680
  }
3498
- var valid0 = _errs48 === errors;
3681
+ var valid0 = _errs50 === errors;
3499
3682
  }
3500
3683
  else {
3501
3684
  var valid0 = true;
3502
3685
  }
3503
3686
  if (valid0) {
3504
- if (data.sideEffects !== undefined) {
3505
- const _errs53 = errors;
3506
- if (typeof data.sideEffects !== "boolean") {
3507
- validate34.errors = [{ instancePath: instancePath + "/sideEffects", schemaPath: "#/properties/sideEffects/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
3687
+ if (data.scheme !== undefined) {
3688
+ const _errs59 = errors;
3689
+ const _errs60 = errors;
3690
+ let valid18 = false;
3691
+ let passing12 = null;
3692
+ const _errs61 = errors;
3693
+ if (!(validate35(data.scheme, { instancePath: instancePath + "/scheme", parentData: data, parentDataProperty: "scheme", rootData }))) {
3694
+ vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
3695
+ errors = vErrors.length;
3696
+ }
3697
+ var _valid13 = _errs61 === errors;
3698
+ if (_valid13) {
3699
+ valid18 = true;
3700
+ passing12 = 0;
3701
+ }
3702
+ if (!valid18) {
3703
+ const err17 = { instancePath: instancePath + "/scheme", schemaPath: "#/properties/scheme/oneOf", keyword: "oneOf", params: { passingSchemas: passing12 }, message: "must match exactly one schema in oneOf" };
3704
+ if (vErrors === null) {
3705
+ vErrors = [err17];
3706
+ }
3707
+ else {
3708
+ vErrors.push(err17);
3709
+ }
3710
+ errors++;
3711
+ validate34.errors = vErrors;
3508
3712
  return false;
3509
3713
  }
3510
- var valid0 = _errs53 === errors;
3714
+ else {
3715
+ errors = _errs60;
3716
+ if (vErrors !== null) {
3717
+ if (_errs60) {
3718
+ vErrors.length = _errs60;
3719
+ }
3720
+ else {
3721
+ vErrors = null;
3722
+ }
3723
+ }
3724
+ }
3725
+ var valid0 = _errs59 === errors;
3511
3726
  }
3512
3727
  else {
3513
3728
  var valid0 = true;
3514
3729
  }
3515
3730
  if (valid0) {
3516
- if (data.test !== undefined) {
3517
- const _errs55 = errors;
3518
- const _errs56 = errors;
3519
- let valid16 = false;
3520
- let passing12 = null;
3521
- const _errs57 = errors;
3522
- if (!(validate35(data.test, { instancePath: instancePath + "/test", parentData: data, parentDataProperty: "test", rootData }))) {
3523
- vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
3524
- errors = vErrors.length;
3525
- }
3526
- var _valid12 = _errs57 === errors;
3527
- if (_valid12) {
3528
- valid16 = true;
3529
- passing12 = 0;
3530
- }
3531
- if (!valid16) {
3532
- const err12 = { instancePath: instancePath + "/test", schemaPath: "#/properties/test/oneOf", keyword: "oneOf", params: { passingSchemas: passing12 }, message: "must match exactly one schema in oneOf" };
3533
- if (vErrors === null) {
3534
- vErrors = [err12];
3731
+ if (data.rules !== undefined) {
3732
+ let data19 = data.rules;
3733
+ const _errs62 = errors;
3734
+ if (errors === _errs62) {
3735
+ if (Array.isArray(data19)) {
3736
+ var valid19 = true;
3737
+ const len1 = data19.length;
3738
+ for (let i1 = 0; i1 < len1; i1++) {
3739
+ const _errs64 = errors;
3740
+ const _errs65 = errors;
3741
+ let valid20 = false;
3742
+ let passing13 = null;
3743
+ const _errs66 = errors;
3744
+ if (!(wrapper2.validate(data19[i1], { instancePath: instancePath + "/rules/" + i1, parentData: data19, parentDataProperty: i1, rootData }))) {
3745
+ vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
3746
+ errors = vErrors.length;
3747
+ }
3748
+ var _valid14 = _errs66 === errors;
3749
+ if (_valid14) {
3750
+ valid20 = true;
3751
+ passing13 = 0;
3752
+ }
3753
+ if (!valid20) {
3754
+ const err18 = { instancePath: instancePath + "/rules/" + i1, schemaPath: "#/properties/rules/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing13 }, message: "must match exactly one schema in oneOf" };
3755
+ if (vErrors === null) {
3756
+ vErrors = [err18];
3757
+ }
3758
+ else {
3759
+ vErrors.push(err18);
3760
+ }
3761
+ errors++;
3762
+ validate34.errors = vErrors;
3763
+ return false;
3764
+ }
3765
+ else {
3766
+ errors = _errs65;
3767
+ if (vErrors !== null) {
3768
+ if (_errs65) {
3769
+ vErrors.length = _errs65;
3770
+ }
3771
+ else {
3772
+ vErrors = null;
3773
+ }
3774
+ }
3775
+ }
3776
+ var valid19 = _errs64 === errors;
3777
+ if (!valid19) {
3778
+ break;
3779
+ }
3780
+ }
3535
3781
  }
3536
3782
  else {
3537
- vErrors.push(err12);
3538
- }
3539
- errors++;
3540
- validate34.errors = vErrors;
3541
- return false;
3542
- }
3543
- else {
3544
- errors = _errs56;
3545
- if (vErrors !== null) {
3546
- if (_errs56) {
3547
- vErrors.length = _errs56;
3548
- }
3549
- else {
3550
- vErrors = null;
3551
- }
3783
+ validate34.errors = [{ instancePath: instancePath + "/rules", schemaPath: "#/properties/rules/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
3784
+ return false;
3552
3785
  }
3553
3786
  }
3554
- var valid0 = _errs55 === errors;
3787
+ var valid0 = _errs62 === errors;
3555
3788
  }
3556
3789
  else {
3557
3790
  var valid0 = true;
3558
3791
  }
3559
3792
  if (valid0) {
3560
- if (data.type !== undefined) {
3561
- const _errs58 = errors;
3562
- if (typeof data.type !== "string") {
3563
- validate34.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
3793
+ if (data.sideEffects !== undefined) {
3794
+ const _errs67 = errors;
3795
+ if (typeof data.sideEffects !== "boolean") {
3796
+ validate34.errors = [{ instancePath: instancePath + "/sideEffects", schemaPath: "#/properties/sideEffects/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
3564
3797
  return false;
3565
3798
  }
3566
- var valid0 = _errs58 === errors;
3799
+ var valid0 = _errs67 === errors;
3567
3800
  }
3568
3801
  else {
3569
3802
  var valid0 = true;
3570
3803
  }
3571
3804
  if (valid0) {
3572
- if (data.use !== undefined) {
3573
- const _errs60 = errors;
3574
- const _errs61 = errors;
3575
- let valid17 = false;
3576
- let passing13 = null;
3577
- const _errs62 = errors;
3578
- if (!(validate58(data.use, { instancePath: instancePath + "/use", parentData: data, parentDataProperty: "use", rootData }))) {
3579
- vErrors = vErrors === null ? validate58.errors : vErrors.concat(validate58.errors);
3805
+ if (data.test !== undefined) {
3806
+ const _errs69 = errors;
3807
+ const _errs70 = errors;
3808
+ let valid21 = false;
3809
+ let passing14 = null;
3810
+ const _errs71 = errors;
3811
+ if (!(validate35(data.test, { instancePath: instancePath + "/test", parentData: data, parentDataProperty: "test", rootData }))) {
3812
+ vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
3580
3813
  errors = vErrors.length;
3581
3814
  }
3582
- var _valid13 = _errs62 === errors;
3583
- if (_valid13) {
3584
- valid17 = true;
3585
- passing13 = 0;
3815
+ var _valid15 = _errs71 === errors;
3816
+ if (_valid15) {
3817
+ valid21 = true;
3818
+ passing14 = 0;
3586
3819
  }
3587
- if (!valid17) {
3588
- const err13 = { instancePath: instancePath + "/use", schemaPath: "#/properties/use/oneOf", keyword: "oneOf", params: { passingSchemas: passing13 }, message: "must match exactly one schema in oneOf" };
3820
+ if (!valid21) {
3821
+ const err19 = { instancePath: instancePath + "/test", schemaPath: "#/properties/test/oneOf", keyword: "oneOf", params: { passingSchemas: passing14 }, message: "must match exactly one schema in oneOf" };
3589
3822
  if (vErrors === null) {
3590
- vErrors = [err13];
3823
+ vErrors = [err19];
3591
3824
  }
3592
3825
  else {
3593
- vErrors.push(err13);
3826
+ vErrors.push(err19);
3594
3827
  }
3595
3828
  errors++;
3596
3829
  validate34.errors = vErrors;
3597
3830
  return false;
3598
3831
  }
3599
3832
  else {
3600
- errors = _errs61;
3833
+ errors = _errs70;
3601
3834
  if (vErrors !== null) {
3602
- if (_errs61) {
3603
- vErrors.length = _errs61;
3835
+ if (_errs70) {
3836
+ vErrors.length = _errs70;
3604
3837
  }
3605
3838
  else {
3606
3839
  vErrors = null;
3607
3840
  }
3608
3841
  }
3609
3842
  }
3610
- var valid0 = _errs60 === errors;
3843
+ var valid0 = _errs69 === errors;
3611
3844
  }
3612
3845
  else {
3613
3846
  var valid0 = true;
3614
3847
  }
3848
+ if (valid0) {
3849
+ if (data.type !== undefined) {
3850
+ const _errs72 = errors;
3851
+ if (typeof data.type !== "string") {
3852
+ validate34.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
3853
+ return false;
3854
+ }
3855
+ var valid0 = _errs72 === errors;
3856
+ }
3857
+ else {
3858
+ var valid0 = true;
3859
+ }
3860
+ if (valid0) {
3861
+ if (data.use !== undefined) {
3862
+ const _errs74 = errors;
3863
+ const _errs75 = errors;
3864
+ let valid22 = false;
3865
+ let passing15 = null;
3866
+ const _errs76 = errors;
3867
+ if (!(validate58(data.use, { instancePath: instancePath + "/use", parentData: data, parentDataProperty: "use", rootData }))) {
3868
+ vErrors = vErrors === null ? validate58.errors : vErrors.concat(validate58.errors);
3869
+ errors = vErrors.length;
3870
+ }
3871
+ var _valid16 = _errs76 === errors;
3872
+ if (_valid16) {
3873
+ valid22 = true;
3874
+ passing15 = 0;
3875
+ }
3876
+ if (!valid22) {
3877
+ const err20 = { instancePath: instancePath + "/use", schemaPath: "#/properties/use/oneOf", keyword: "oneOf", params: { passingSchemas: passing15 }, message: "must match exactly one schema in oneOf" };
3878
+ if (vErrors === null) {
3879
+ vErrors = [err20];
3880
+ }
3881
+ else {
3882
+ vErrors.push(err20);
3883
+ }
3884
+ errors++;
3885
+ validate34.errors = vErrors;
3886
+ return false;
3887
+ }
3888
+ else {
3889
+ errors = _errs75;
3890
+ if (vErrors !== null) {
3891
+ if (_errs75) {
3892
+ vErrors.length = _errs75;
3893
+ }
3894
+ else {
3895
+ vErrors = null;
3896
+ }
3897
+ }
3898
+ }
3899
+ var valid0 = _errs74 === errors;
3900
+ }
3901
+ else {
3902
+ var valid0 = true;
3903
+ }
3904
+ }
3905
+ }
3615
3906
  }
3616
3907
  }
3617
3908
  }
@@ -3703,9 +3994,9 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
3703
3994
  return false;
3704
3995
  }
3705
3996
  } validate33.errors = vErrors; return errors === 0; }
3706
- const schema54 = { "description": "Specify options for each parser.", "type": "object", "additionalProperties": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "properties": { "asset": { "$ref": "#/definitions/AssetParserOptions" } } };
3707
- const schema55 = { "description": "Parser options for asset modules.", "type": "object", "additionalProperties": false, "properties": { "dataUrlCondition": { "description": "The condition for inlining the asset as DataUrl.", "anyOf": [{ "$ref": "#/definitions/AssetParserDataUrlOptions" }] } } };
3708
- const schema56 = { "description": "Options object for DataUrl condition.", "type": "object", "additionalProperties": false, "properties": { "maxSize": { "description": "Maximum size of asset that should be inline as modules. Default: 8kb.", "type": "number" } } };
3997
+ const schema56 = { "description": "Specify options for each parser.", "type": "object", "additionalProperties": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "properties": { "asset": { "$ref": "#/definitions/AssetParserOptions" } } };
3998
+ const schema57 = { "description": "Parser options for asset modules.", "type": "object", "additionalProperties": false, "properties": { "dataUrlCondition": { "description": "The condition for inlining the asset as DataUrl.", "anyOf": [{ "$ref": "#/definitions/AssetParserDataUrlOptions" }] } } };
3999
+ const schema58 = { "description": "Options object for DataUrl condition.", "type": "object", "additionalProperties": false, "properties": { "maxSize": { "description": "Maximum size of asset that should be inline as modules. Default: 8kb.", "type": "number" } } };
3709
4000
  function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
3710
4001
  if (data && typeof data == "object" && !Array.isArray(data)) {
3711
4002
  const _errs1 = errors;
@@ -3951,8 +4242,8 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
3951
4242
  return false;
3952
4243
  }
3953
4244
  } validate32.errors = vErrors; return errors === 0; }
3954
- const schema58 = { "description": "Include polyfills or mocks for various node stuff.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/NodeOptions" }] };
3955
- const schema59 = { "description": "Options object for node compatibility features.", "type": "object", "additionalProperties": false, "properties": { "__dirname": { "description": "Include a polyfill for the '__dirname' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "__filename": { "description": "Include a polyfill for the '__filename' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "global": { "description": "Include a polyfill for the 'global' variable.", "enum": [false, true, "warn"] } } };
4245
+ const schema60 = { "description": "Include polyfills or mocks for various node stuff.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/NodeOptions" }] };
4246
+ const schema61 = { "description": "Options object for node compatibility features.", "type": "object", "additionalProperties": false, "properties": { "__dirname": { "description": "Include a polyfill for the '__dirname' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "__filename": { "description": "Include a polyfill for the '__filename' variable.", "enum": [false, true, "warn-mock", "mock", "eval-only"] }, "global": { "description": "Include a polyfill for the 'global' variable.", "enum": [false, true, "warn"] } } };
3956
4247
  function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== false) {
3957
4248
  const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
3958
4249
  if (vErrors === null) {
@@ -4078,18 +4369,18 @@ else {
4078
4369
  }
4079
4370
  }
4080
4371
  } validate71.errors = vErrors; return errors === 0; }
4081
- const schema60 = { "description": "Enables/Disables integrated optimizations.", "type": "object", "additionalProperties": false, "properties": { "chunkIds": { "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "minimize": { "description": "Enable minimizing the output. Uses optimization.minimizer.", "type": "boolean" }, "minimizer": { "description": "Minimizer(s) to use for minimizing the output.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "moduleIds": { "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "removeAvailableModules": { "description": "Removes modules from chunks when these modules are already included in all parents.", "type": "boolean" }, "removeEmptyChunks": { "description": "Remove chunks which are empty.", "type": "boolean" }, "runtimeChunk": { "$ref": "#/definitions/OptimizationRuntimeChunk" }, "sideEffects": { "description": "Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).", "anyOf": [{ "enum": ["flag"] }, { "type": "boolean" }] }, "splitChunks": { "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/OptimizationSplitChunksOptions" }] }, "realContentHash": { "description": "Use real [contenthash] based on final content of the assets.", "type": "boolean" } } };
4082
- const schema61 = { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] };
4083
- const schema62 = { "description": "Function acting as plugin.", "instanceof": "Function" };
4084
- const schema63 = { "description": "Create an additional chunk which contains only the rspack runtime and chunk hash maps.", "anyOf": [{ "enum": ["single", "multiple"] }, { "type": "boolean" }, { "type": "object", "additionalProperties": false, "properties": { "name": { "description": "The name or name factory for the runtime chunks.", "anyOf": [{ "type": "string" }, { "instanceof": "Function" }] } } }] };
4085
- const schema64 = { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "fallbackCacheGroup": { "type": "object", "properties": { "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "minSize": { "type": "number" } } }, "hidePathInfo": { "type": "boolean" }, "name": { "description": "The name or name for chunks.", "anyOf": [{ "type": "string" }] }, "cacheGroups": { "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').", "type": "object", "additionalProperties": { "description": "Configuration for a cache group.", "anyOf": [{ "$ref": "#/definitions/OptimizationSplitChunksCacheGroup" }] } }, "chunks": { "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }] }, "enforceSizeThreshold": { "description": "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxAsyncRequests": { "description": "Maximum number of requests which are accepted for on-demand loading.", "type": "number", "minimum": 1 }, "maxInitialRequests": { "description": "Maximum number of initial chunks which are accepted for an entry point.", "type": "number", "minimum": 1 }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "minRemainingSize": { "description": "Minimal size for the chunks the stay after moving the modules to a new chunk.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "reuseExistingChunk": { "description": "If the current chunk contains modules already split out from the main bundle, it will be reused instead of a new one being generated. This can affect the resulting file name of the chunk.", "type": "boolean" } } };
4086
- const schema66 = { "description": "Size description for limits.", "anyOf": [{ "description": "Size of the javascript part of the chunk.", "type": "number", "minimum": 0 }] };
4087
- const schema65 = { "description": "Options object for describing behavior of a cache group selecting modules that should be cached together.", "type": "object", "additionalProperties": false, "properties": { "chunks": { "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }, { "instanceof": "Function" }] }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "name": { "description": "Give chunks for this cache group a name (chunks with equal name are merged).", "anyOf": [{ "enum": [false] }, { "type": "string" }, { "instanceof": "Function" }] }, "priority": { "description": "Priority of this cache group.", "type": "number" }, "reuseExistingChunk": { "description": "Try to reuse existing chunk (with name) when it has matching modules.", "type": "boolean" }, "enforce": { "description": "ignore splitChunks.minSize, splitChunks.minChunks, splitChunks.maxAsyncRequests and splitChunks.maxInitialRequests options and always create chunks for this cache group.", "type": "boolean" }, "hidePathInfo": { "type": "boolean" }, "maxSize": { "type": "number" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] } } };
4372
+ const schema62 = { "description": "Enables/Disables integrated optimizations.", "type": "object", "additionalProperties": false, "properties": { "chunkIds": { "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "minimize": { "description": "Enable minimizing the output. Uses optimization.minimizer.", "type": "boolean" }, "minimizer": { "description": "Minimizer(s) to use for minimizing the output.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "moduleIds": { "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).", "enum": ["named", "deterministic"] }, "removeAvailableModules": { "description": "Removes modules from chunks when these modules are already included in all parents.", "type": "boolean" }, "removeEmptyChunks": { "description": "Remove chunks which are empty.", "type": "boolean" }, "runtimeChunk": { "$ref": "#/definitions/OptimizationRuntimeChunk" }, "sideEffects": { "description": "Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).", "anyOf": [{ "enum": ["flag"] }, { "type": "boolean" }] }, "splitChunks": { "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/OptimizationSplitChunksOptions" }] }, "realContentHash": { "description": "Use real [contenthash] based on final content of the assets.", "type": "boolean" } } };
4373
+ const schema63 = { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] };
4374
+ const schema64 = { "description": "Function acting as plugin.", "instanceof": "Function" };
4375
+ const schema65 = { "description": "Create an additional chunk which contains only the rspack runtime and chunk hash maps.", "anyOf": [{ "enum": ["single", "multiple"] }, { "type": "boolean" }, { "type": "object", "additionalProperties": false, "properties": { "name": { "description": "The name or name factory for the runtime chunks.", "anyOf": [{ "type": "string" }, { "instanceof": "Function" }] } } }] };
4376
+ const schema66 = { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "fallbackCacheGroup": { "type": "object", "properties": { "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "minSize": { "type": "number" } } }, "hidePathInfo": { "type": "boolean" }, "name": { "description": "The name or name for chunks.", "anyOf": [{ "type": "string" }] }, "cacheGroups": { "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').", "type": "object", "additionalProperties": { "description": "Configuration for a cache group.", "anyOf": [{ "$ref": "#/definitions/OptimizationSplitChunksCacheGroup" }] } }, "chunks": { "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }] }, "enforceSizeThreshold": { "description": "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxAsyncRequests": { "description": "Maximum number of requests which are accepted for on-demand loading.", "type": "number", "minimum": 1 }, "maxInitialRequests": { "description": "Maximum number of initial chunks which are accepted for an entry point.", "type": "number", "minimum": 1 }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "minRemainingSize": { "description": "Minimal size for the chunks the stay after moving the modules to a new chunk.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] }, "maxSize": { "type": "number" }, "maxInitialSize": { "type": "number" }, "maxAsyncSize": { "type": "number" }, "reuseExistingChunk": { "description": "If the current chunk contains modules already split out from the main bundle, it will be reused instead of a new one being generated. This can affect the resulting file name of the chunk.", "type": "boolean" } } };
4377
+ const schema68 = { "description": "Size description for limits.", "anyOf": [{ "description": "Size of the javascript part of the chunk.", "type": "number", "minimum": 0 }] };
4378
+ const schema67 = { "description": "Options object for describing behavior of a cache group selecting modules that should be cached together.", "type": "object", "additionalProperties": false, "properties": { "chunks": { "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML).", "anyOf": [{ "enum": ["initial", "async", "all"] }, { "instanceof": "Function" }] }, "minChunks": { "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.", "type": "number", "minimum": 1 }, "name": { "description": "Give chunks for this cache group a name (chunks with equal name are merged).", "anyOf": [{ "enum": [false] }, { "type": "string" }, { "instanceof": "Function" }] }, "priority": { "description": "Priority of this cache group.", "type": "number" }, "reuseExistingChunk": { "description": "Try to reuse existing chunk (with name) when it has matching modules.", "type": "boolean" }, "enforce": { "description": "ignore splitChunks.minSize, splitChunks.minChunks, splitChunks.maxAsyncRequests and splitChunks.maxInitialRequests options and always create chunks for this cache group.", "type": "boolean" }, "hidePathInfo": { "type": "boolean" }, "maxSize": { "type": "number" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] }, "minSize": { "description": "Minimal size for the created chunks.", "oneOf": [{ "$ref": "#/definitions/OptimizationSplitChunksSizes" }] } } };
4088
4379
  function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
4089
4380
  if (data && typeof data == "object" && !Array.isArray(data)) {
4090
4381
  const _errs1 = errors;
4091
4382
  for (const key0 in data) {
4092
- if (!(func2.call(schema65.properties, key0))) {
4383
+ if (!(func2.call(schema67.properties, key0))) {
4093
4384
  validate75.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
4094
4385
  return false;
4095
4386
  break;
@@ -4472,7 +4763,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
4472
4763
  if (data && typeof data == "object" && !Array.isArray(data)) {
4473
4764
  const _errs1 = errors;
4474
4765
  for (const key0 in data) {
4475
- if (!(func2.call(schema64.properties, key0))) {
4766
+ if (!(func2.call(schema66.properties, key0))) {
4476
4767
  validate74.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
4477
4768
  return false;
4478
4769
  break;
@@ -5115,7 +5406,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
5115
5406
  if (data && typeof data == "object" && !Array.isArray(data)) {
5116
5407
  const _errs1 = errors;
5117
5408
  for (const key0 in data) {
5118
- if (!(func2.call(schema60.properties, key0))) {
5409
+ if (!(func2.call(schema62.properties, key0))) {
5119
5410
  validate73.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
5120
5411
  return false;
5121
5412
  break;
@@ -5605,28 +5896,32 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
5605
5896
  return false;
5606
5897
  }
5607
5898
  } validate73.errors = vErrors; return errors === 0; }
5608
- const schema70 = { "description": "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.", "type": "object", "additionalProperties": false, "properties": { "iife": { "$ref": "#/definitions/Iife" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFormat": { "$ref": "#/definitions/ChunkFormat" }, "chunkLoading": { "$ref": "#/definitions/ChunkLoading" }, "enabledChunkLoadingTypes": { "$ref": "#/definitions/EnabledChunkLoadingTypes" }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "hotUpdateChunkFilename": { "$ref": "#/definitions/HotUpdateChunkFilename" }, "hotUpdateMainFilename": { "$ref": "#/definitions/HotUpdateMainFilename" }, "enabledWasmLoadingTypes": { "$ref": "#/definitions/EnabledWasmLoadingTypes" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" }, "webassemblyModuleFilename": { "$ref": "#/definitions/WebassemblyModuleFilename" }, "enabledLibraryTypes": { "$ref": "#/definitions/EnabledLibraryTypes" }, "filename": { "$ref": "#/definitions/Filename" }, "globalObject": { "$ref": "#/definitions/GlobalObject" }, "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, "library": { "$ref": "#/definitions/Library" }, "libraryExport": { "oneOf": [{ "$ref": "#/definitions/LibraryExport" }] }, "libraryTarget": { "oneOf": [{ "$ref": "#/definitions/LibraryType" }] }, "module": { "$ref": "#/definitions/OutputModule" }, "path": { "$ref": "#/definitions/Path" }, "publicPath": { "$ref": "#/definitions/PublicPath" }, "strictModuleErrorHandling": { "$ref": "#/definitions/StrictModuleErrorHandling" }, "umdNamedDefine": { "oneOf": [{ "$ref": "#/definitions/UmdNamedDefine" }] }, "uniqueName": { "$ref": "#/definitions/UniqueName" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" }, "trustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.", "anyOf": [{ "enum": [true] }, { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 }, { "$ref": "#/definitions/TrustedTypes" }] }, "sourceMapFilename": { "$ref": "#/definitions/SourceMapFilename" } } };
5609
- const schema71 = { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" };
5610
- const schema72 = { "description": "Clears the output build directory", "type": "boolean" };
5611
- const schema73 = { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] };
5612
- const schema76 = { "description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).", "anyOf": [{ "enum": ["array-push", "commonjs", "module", false] }, { "type": "string" }] };
5613
- const schema83 = { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] };
5614
- const schema88 = { "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.", "type": "string", "absolutePath": false };
5615
- const schema89 = { "description": "The filename of the Hot Update Main File. It is inside the 'output.path' directory.", "type": "string", "absolutePath": false };
5616
- const schema92 = { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" };
5617
- const schema97 = { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 };
5618
- const schema98 = { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" };
5619
- const schema103 = { "description": "Specify which export should be exposed as library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the export that should be exposed as library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] };
5620
- const schema94 = { "description": "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).", "anyOf": [{ "enum": ["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"] }, { "type": "string" }] };
5621
- const schema108 = { "description": "Output javascript files as module source type.", "type": "boolean" };
5622
- const schema109 = { "description": "The output directory as **absolute path** (required).", "type": "string" };
5623
- const schema112 = { "description": "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.", "type": "boolean" };
5624
- const schema105 = { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" };
5625
- const schema114 = { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 };
5626
- const schema115 = { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 };
5627
- const schema116 = { "description": "Use a Trusted Types policy to create urls for chunks.", "type": "object", "additionalProperties": false, "properties": { "policyName": { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 } } };
5628
- const schema74 = { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] };
5629
- const schema75 = { "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Set comment for `amd` section in UMD.", "type": "string" }, "commonjs": { "description": "Set comment for `commonjs` (exports) section in UMD.", "type": "string" }, "commonjs2": { "description": "Set comment for `commonjs2` (module.exports) section in UMD.", "type": "string" }, "root": { "description": "Set comment for `root` (global variable) section in UMD.", "type": "string" } } };
5899
+ const schema72 = { "description": "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.", "type": "object", "additionalProperties": false, "properties": { "iife": { "$ref": "#/definitions/Iife" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFormat": { "$ref": "#/definitions/ChunkFormat" }, "chunkLoading": { "$ref": "#/definitions/ChunkLoading" }, "enabledChunkLoadingTypes": { "$ref": "#/definitions/EnabledChunkLoadingTypes" }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "hotUpdateChunkFilename": { "$ref": "#/definitions/HotUpdateChunkFilename" }, "hotUpdateMainFilename": { "$ref": "#/definitions/HotUpdateMainFilename" }, "enabledWasmLoadingTypes": { "$ref": "#/definitions/EnabledWasmLoadingTypes" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" }, "webassemblyModuleFilename": { "$ref": "#/definitions/WebassemblyModuleFilename" }, "enabledLibraryTypes": { "$ref": "#/definitions/EnabledLibraryTypes" }, "filename": { "$ref": "#/definitions/Filename" }, "globalObject": { "$ref": "#/definitions/GlobalObject" }, "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, "library": { "$ref": "#/definitions/Library" }, "libraryExport": { "oneOf": [{ "$ref": "#/definitions/LibraryExport" }] }, "libraryTarget": { "oneOf": [{ "$ref": "#/definitions/LibraryType" }] }, "module": { "$ref": "#/definitions/OutputModule" }, "path": { "$ref": "#/definitions/Path" }, "publicPath": { "$ref": "#/definitions/PublicPath" }, "strictModuleErrorHandling": { "$ref": "#/definitions/StrictModuleErrorHandling" }, "umdNamedDefine": { "oneOf": [{ "$ref": "#/definitions/UmdNamedDefine" }] }, "uniqueName": { "$ref": "#/definitions/UniqueName" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" }, "trustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.", "anyOf": [{ "enum": [true] }, { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 }, { "$ref": "#/definitions/TrustedTypes" }] }, "sourceMapFilename": { "$ref": "#/definitions/SourceMapFilename" }, "hashDigest": { "$ref": "#/definitions/HashDigest" }, "hashDigestLength": { "$ref": "#/definitions/HashDigestLength" }, "hashFunction": { "$ref": "#/definitions/HashFunction" }, "hashSalt": { "$ref": "#/definitions/HashSalt" } } };
5900
+ const schema73 = { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" };
5901
+ const schema74 = { "description": "Clears the output build directory", "type": "boolean" };
5902
+ const schema75 = { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] };
5903
+ const schema78 = { "description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).", "anyOf": [{ "enum": ["array-push", "commonjs", "module", false] }, { "type": "string" }] };
5904
+ const schema85 = { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] };
5905
+ const schema90 = { "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.", "type": "string", "absolutePath": false };
5906
+ const schema91 = { "description": "The filename of the Hot Update Main File. It is inside the 'output.path' directory.", "type": "string", "absolutePath": false };
5907
+ const schema94 = { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" };
5908
+ const schema99 = { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 };
5909
+ const schema100 = { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" };
5910
+ const schema105 = { "description": "Specify which export should be exposed as library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the export that should be exposed as library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] };
5911
+ const schema96 = { "description": "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).", "anyOf": [{ "enum": ["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"] }, { "type": "string" }] };
5912
+ const schema110 = { "description": "Output javascript files as module source type.", "type": "boolean" };
5913
+ const schema111 = { "description": "The output directory as **absolute path** (required).", "type": "string" };
5914
+ const schema114 = { "description": "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.", "type": "boolean" };
5915
+ const schema107 = { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" };
5916
+ const schema116 = { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 };
5917
+ const schema117 = { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 };
5918
+ const schema118 = { "description": "Use a Trusted Types policy to create urls for chunks.", "type": "object", "additionalProperties": false, "properties": { "policyName": { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 } } };
5919
+ const schema121 = { "description": "Digest type used for the hash.", "type": "string" };
5920
+ const schema122 = { "description": "Number of chars which are used for the hash.", "type": "number", "minimum": 1 };
5921
+ const schema123 = { "description": "Algorithm used for generation the hash (see node.js crypto package).", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] };
5922
+ const schema124 = { "description": "Any string which is added to the hash to salt it.", "type": "string", "minLength": 1 };
5923
+ const schema76 = { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] };
5924
+ const schema77 = { "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Set comment for `amd` section in UMD.", "type": "string" }, "commonjs": { "description": "Set comment for `commonjs` (exports) section in UMD.", "type": "string" }, "commonjs2": { "description": "Set comment for `commonjs2` (module.exports) section in UMD.", "type": "string" }, "root": { "description": "Set comment for `root` (global variable) section in UMD.", "type": "string" } } };
5630
5925
  function validate80(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (typeof data !== "string") {
5631
5926
  const err0 = { instancePath, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5632
5927
  if (vErrors === null) {
@@ -5768,8 +6063,8 @@ else {
5768
6063
  }
5769
6064
  }
5770
6065
  } validate80.errors = vErrors; return errors === 0; }
5771
- const schema77 = { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/ChunkLoadingType" }] };
5772
- const schema78 = { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["jsonp", "import-scripts", "require", "async-node", "import"] }, { "type": "string" }] };
6066
+ const schema79 = { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/ChunkLoadingType" }] };
6067
+ const schema80 = { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["jsonp", "import-scripts", "require", "async-node", "import"] }, { "type": "string" }] };
5773
6068
  function validate82(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== false) {
5774
6069
  const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
5775
6070
  if (vErrors === null) {
@@ -5857,7 +6152,7 @@ else {
5857
6152
  }
5858
6153
  }
5859
6154
  } validate82.errors = vErrors; return errors === 0; }
5860
- const schema79 = { "description": "List of chunk loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/ChunkLoadingType" } };
6155
+ const schema81 = { "description": "List of chunk loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/ChunkLoadingType" } };
5861
6156
  function validate84(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
5862
6157
  if (Array.isArray(data)) {
5863
6158
  var valid0 = true;
@@ -5929,8 +6224,8 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
5929
6224
  return false;
5930
6225
  }
5931
6226
  } validate84.errors = vErrors; return errors === 0; }
5932
- const schema81 = { "description": "Specifies the filename template of output files of non-initial chunks on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
5933
- const schema82 = { "description": "Specifies the filename template of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] };
6227
+ const schema83 = { "description": "Specifies the filename template of output files of non-initial chunks on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
6228
+ const schema84 = { "description": "Specifies the filename template of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "anyOf": [{ "type": "string", "minLength": 1 }, { "instanceof": "Function" }] };
5934
6229
  function validate86(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
5935
6230
  if (typeof data === "string") {
5936
6231
  if (data.length < 1) {
@@ -6014,7 +6309,7 @@ else {
6014
6309
  }
6015
6310
  }
6016
6311
  } validate86.errors = vErrors; return errors === 0; }
6017
- const schema84 = { "description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
6312
+ const schema86 = { "description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
6018
6313
  function validate88(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
6019
6314
  if (typeof data === "string") {
6020
6315
  if (data.length < 1) {
@@ -6098,7 +6393,7 @@ else {
6098
6393
  }
6099
6394
  }
6100
6395
  } validate88.errors = vErrors; return errors === 0; }
6101
- const schema86 = { "description": "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
6396
+ const schema88 = { "description": "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
6102
6397
  function validate90(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
6103
6398
  if (typeof data === "string") {
6104
6399
  if (data.length < 1) {
@@ -6182,7 +6477,7 @@ else {
6182
6477
  }
6183
6478
  }
6184
6479
  } validate90.errors = vErrors; return errors === 0; }
6185
- const schema90 = { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } };
6480
+ const schema92 = { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } };
6186
6481
  function validate92(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
6187
6482
  if (Array.isArray(data)) {
6188
6483
  var valid0 = true;
@@ -6254,7 +6549,7 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
6254
6549
  return false;
6255
6550
  }
6256
6551
  } validate92.errors = vErrors; return errors === 0; }
6257
- const schema93 = { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } };
6552
+ const schema95 = { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } };
6258
6553
  function validate95(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
6259
6554
  if (Array.isArray(data)) {
6260
6555
  var valid0 = true;
@@ -6326,7 +6621,7 @@ function validate95(data, { instancePath = "", parentData, parentDataProperty, r
6326
6621
  return false;
6327
6622
  }
6328
6623
  } validate95.errors = vErrors; return errors === 0; }
6329
- const schema95 = { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
6624
+ const schema97 = { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
6330
6625
  function validate97(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
6331
6626
  if (typeof data === "string") {
6332
6627
  if (data.length < 1) {
@@ -6410,9 +6705,9 @@ else {
6410
6705
  }
6411
6706
  }
6412
6707
  } validate97.errors = vErrors; return errors === 0; }
6413
- const schema99 = { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] };
6414
- const schema100 = { "description": "The name of the library (some types allow unnamed libraries too).", "anyOf": [{ "type": "array", "items": { "description": "A part of the library name.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "type": "string", "minLength": 1 }, { "$ref": "#/definitions/LibraryCustomUmdObject" }] };
6415
- const schema101 = { "description": "Description object for all UMD variants of the library name.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Name of the exposed AMD library in the UMD.", "type": "string", "minLength": 1 }, "commonjs": { "description": "Name of the exposed commonjs export in the UMD.", "type": "string", "minLength": 1 }, "root": { "description": "Name of the property exposed globally by a UMD library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the name of the property exposed globally by a UMD library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } } };
6708
+ const schema101 = { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] };
6709
+ const schema102 = { "description": "The name of the library (some types allow unnamed libraries too).", "anyOf": [{ "type": "array", "items": { "description": "A part of the library name.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "type": "string", "minLength": 1 }, { "$ref": "#/definitions/LibraryCustomUmdObject" }] };
6710
+ const schema103 = { "description": "Description object for all UMD variants of the library name.", "type": "object", "additionalProperties": false, "properties": { "amd": { "description": "Name of the exposed AMD library in the UMD.", "type": "string", "minLength": 1 }, "commonjs": { "description": "Name of the exposed commonjs export in the UMD.", "type": "string", "minLength": 1 }, "root": { "description": "Name of the property exposed globally by a UMD library.", "anyOf": [{ "type": "array", "items": { "description": "Part of the name of the property exposed globally by a UMD library.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } } };
6416
6711
  function validate100(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (errors === _errs1) {
6417
6712
  if (Array.isArray(data)) {
6418
6713
  if (data.length < 1) {
@@ -6738,7 +7033,7 @@ else {
6738
7033
  }
6739
7034
  }
6740
7035
  } validate100.errors = vErrors; return errors === 0; }
6741
- const schema102 = { "description": "Options for library.", "type": "object", "additionalProperties": false, "properties": { "auxiliaryComment": { "$ref": "#/definitions/AuxiliaryComment" }, "export": { "$ref": "#/definitions/LibraryExport" }, "name": { "$ref": "#/definitions/LibraryName" }, "type": { "$ref": "#/definitions/LibraryType" }, "umdNamedDefine": { "$ref": "#/definitions/UmdNamedDefine" } }, "required": ["type"] };
7036
+ const schema104 = { "description": "Options for library.", "type": "object", "additionalProperties": false, "properties": { "auxiliaryComment": { "$ref": "#/definitions/AuxiliaryComment" }, "export": { "$ref": "#/definitions/LibraryExport" }, "name": { "$ref": "#/definitions/LibraryName" }, "type": { "$ref": "#/definitions/LibraryType" }, "umdNamedDefine": { "$ref": "#/definitions/UmdNamedDefine" } }, "required": ["type"] };
6742
7037
  function validate102(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
6743
7038
  if (data && typeof data == "object" && !Array.isArray(data)) {
6744
7039
  let missing0;
@@ -7013,8 +7308,8 @@ else {
7013
7308
  }
7014
7309
  }
7015
7310
  } validate99.errors = vErrors; return errors === 0; }
7016
- const schema110 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] };
7017
- const schema111 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] };
7311
+ const schema112 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] };
7312
+ const schema113 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] };
7018
7313
  function validate107(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== "auto") {
7019
7314
  const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
7020
7315
  if (vErrors === null) {
@@ -7087,7 +7382,7 @@ else {
7087
7382
  }
7088
7383
  }
7089
7384
  } validate107.errors = vErrors; return errors === 0; }
7090
- const schema117 = { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
7385
+ const schema119 = { "description": "Specifies the filename of output files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] };
7091
7386
  function validate109(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
7092
7387
  if (typeof data === "string") {
7093
7388
  if (data.length < 1) {
@@ -7175,7 +7470,7 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
7175
7470
  if (data && typeof data == "object" && !Array.isArray(data)) {
7176
7471
  const _errs1 = errors;
7177
7472
  for (const key0 in data) {
7178
- if (!(func2.call(schema70.properties, key0))) {
7473
+ if (!(func2.call(schema72.properties, key0))) {
7179
7474
  validate79.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
7180
7475
  return false;
7181
7476
  break;
@@ -8110,6 +8405,142 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
8110
8405
  else {
8111
8406
  var valid0 = true;
8112
8407
  }
8408
+ if (valid0) {
8409
+ if (data.hashDigest !== undefined) {
8410
+ const _errs101 = errors;
8411
+ if (typeof data.hashDigest !== "string") {
8412
+ validate79.errors = [{ instancePath: instancePath + "/hashDigest", schemaPath: "#/definitions/HashDigest/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
8413
+ return false;
8414
+ }
8415
+ var valid0 = _errs101 === errors;
8416
+ }
8417
+ else {
8418
+ var valid0 = true;
8419
+ }
8420
+ if (valid0) {
8421
+ if (data.hashDigestLength !== undefined) {
8422
+ let data35 = data.hashDigestLength;
8423
+ const _errs104 = errors;
8424
+ const _errs105 = errors;
8425
+ if (errors === _errs105) {
8426
+ if (typeof data35 == "number") {
8427
+ if (data35 < 1 || isNaN(data35)) {
8428
+ validate79.errors = [{ instancePath: instancePath + "/hashDigestLength", schemaPath: "#/definitions/HashDigestLength/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
8429
+ return false;
8430
+ }
8431
+ }
8432
+ else {
8433
+ validate79.errors = [{ instancePath: instancePath + "/hashDigestLength", schemaPath: "#/definitions/HashDigestLength/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
8434
+ return false;
8435
+ }
8436
+ }
8437
+ var valid0 = _errs104 === errors;
8438
+ }
8439
+ else {
8440
+ var valid0 = true;
8441
+ }
8442
+ if (valid0) {
8443
+ if (data.hashFunction !== undefined) {
8444
+ let data36 = data.hashFunction;
8445
+ const _errs107 = errors;
8446
+ const _errs109 = errors;
8447
+ let valid34 = false;
8448
+ const _errs110 = errors;
8449
+ if (errors === _errs110) {
8450
+ if (typeof data36 === "string") {
8451
+ if (data36.length < 1) {
8452
+ const err27 = { instancePath: instancePath + "/hashFunction", schemaPath: "#/definitions/HashFunction/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
8453
+ if (vErrors === null) {
8454
+ vErrors = [err27];
8455
+ }
8456
+ else {
8457
+ vErrors.push(err27);
8458
+ }
8459
+ errors++;
8460
+ }
8461
+ }
8462
+ else {
8463
+ const err28 = { instancePath: instancePath + "/hashFunction", schemaPath: "#/definitions/HashFunction/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8464
+ if (vErrors === null) {
8465
+ vErrors = [err28];
8466
+ }
8467
+ else {
8468
+ vErrors.push(err28);
8469
+ }
8470
+ errors++;
8471
+ }
8472
+ }
8473
+ var _valid9 = _errs110 === errors;
8474
+ valid34 = valid34 || _valid9;
8475
+ if (!valid34) {
8476
+ const _errs112 = errors;
8477
+ if (!(data36 instanceof Function)) {
8478
+ const err29 = { instancePath: instancePath + "/hashFunction", schemaPath: "#/definitions/HashFunction/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
8479
+ if (vErrors === null) {
8480
+ vErrors = [err29];
8481
+ }
8482
+ else {
8483
+ vErrors.push(err29);
8484
+ }
8485
+ errors++;
8486
+ }
8487
+ var _valid9 = _errs112 === errors;
8488
+ valid34 = valid34 || _valid9;
8489
+ }
8490
+ if (!valid34) {
8491
+ const err30 = { instancePath: instancePath + "/hashFunction", schemaPath: "#/definitions/HashFunction/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
8492
+ if (vErrors === null) {
8493
+ vErrors = [err30];
8494
+ }
8495
+ else {
8496
+ vErrors.push(err30);
8497
+ }
8498
+ errors++;
8499
+ validate79.errors = vErrors;
8500
+ return false;
8501
+ }
8502
+ else {
8503
+ errors = _errs109;
8504
+ if (vErrors !== null) {
8505
+ if (_errs109) {
8506
+ vErrors.length = _errs109;
8507
+ }
8508
+ else {
8509
+ vErrors = null;
8510
+ }
8511
+ }
8512
+ }
8513
+ var valid0 = _errs107 === errors;
8514
+ }
8515
+ else {
8516
+ var valid0 = true;
8517
+ }
8518
+ if (valid0) {
8519
+ if (data.hashSalt !== undefined) {
8520
+ let data37 = data.hashSalt;
8521
+ const _errs113 = errors;
8522
+ const _errs114 = errors;
8523
+ if (errors === _errs114) {
8524
+ if (typeof data37 === "string") {
8525
+ if (data37.length < 1) {
8526
+ validate79.errors = [{ instancePath: instancePath + "/hashSalt", schemaPath: "#/definitions/HashSalt/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
8527
+ return false;
8528
+ }
8529
+ }
8530
+ else {
8531
+ validate79.errors = [{ instancePath: instancePath + "/hashSalt", schemaPath: "#/definitions/HashSalt/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
8532
+ return false;
8533
+ }
8534
+ }
8535
+ var valid0 = _errs113 === errors;
8536
+ }
8537
+ else {
8538
+ var valid0 = true;
8539
+ }
8540
+ }
8541
+ }
8542
+ }
8543
+ }
8113
8544
  }
8114
8545
  }
8115
8546
  }
@@ -8148,7 +8579,7 @@ function validate79(data, { instancePath = "", parentData, parentDataProperty, r
8148
8579
  return false;
8149
8580
  }
8150
8581
  } validate79.errors = vErrors; return errors === 0; }
8151
- const schema119 = { "description": "Add additional plugins to the compiler.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } };
8582
+ const schema125 = { "description": "Add additional plugins to the compiler.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } };
8152
8583
  function validate112(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
8153
8584
  if (Array.isArray(data)) {
8154
8585
  var valid0 = true;
@@ -8250,7 +8681,7 @@ function validate112(data, { instancePath = "", parentData, parentDataProperty,
8250
8681
  return false;
8251
8682
  }
8252
8683
  } validate112.errors = vErrors; return errors === 0; }
8253
- const schema122 = { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] };
8684
+ const schema128 = { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] };
8254
8685
  function validate114(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; if (!(validate50(data, { instancePath, parentData, parentDataProperty, rootData }))) {
8255
8686
  vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
8256
8687
  errors = vErrors.length;
@@ -8280,8 +8711,8 @@ else {
8280
8711
  }
8281
8712
  }
8282
8713
  } validate114.errors = vErrors; return errors === 0; }
8283
- const schema124 = { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] };
8284
- const schema125 = { "description": "Stats options object.", "type": "object", "additionalProperties": true, "properties": { "all": { "description": "Fallback value for stats options when an option is not defined (has precedence over local rspack defaults).", "type": "boolean" }, "assets": { "description": "Add assets information.", "type": "boolean" }, "chunkGroups": { "description": "Display all chunk groups with the corresponding bundles.", "type": "boolean" }, "chunks": { "description": "Add chunk information.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output.", "type": "boolean" }, "entrypoints": { "description": "Display the entry points with the corresponding bundles.", "anyOf": [{ "enum": ["auto"] }, { "type": "boolean" }] }, "errors": { "description": "Add errors.", "type": "boolean" }, "errorsCount": { "description": "Add errors count.", "type": "boolean" }, "hash": { "description": "Add the hash of the compilation.", "type": "boolean" }, "modules": { "description": "Add built modules information.", "type": "boolean" }, "preset": { "description": "Preset for the default values.", "anyOf": [{ "type": "boolean" }, { "type": "string" }] }, "publicPath": { "description": "Add public path information.", "type": "boolean" }, "reasons": { "description": "Add information about the reasons why modules are included.", "type": "boolean" }, "warnings": { "description": "Add warnings.", "type": "boolean" }, "warningsCount": { "description": "Add warnings count.", "type": "boolean" }, "outputPath": { "description": "Add output path information.", "type": "boolean" }, "chunkModules": { "description": "Add built modules information to chunk information.", "type": "boolean" }, "chunkRelations": { "description": "Add information about parent, children and sibling chunks to chunk information.", "type": "boolean" }, "timings": { "description": "Add timing information.", "type": "boolean" }, "builtAt": { "description": "Add built at time information.", "type": "boolean" }, "nestedModules": { "description": "Add information about modules nested in other modules (like with module concatenation).", "type": "boolean" } } };
8714
+ const schema130 = { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] };
8715
+ const schema131 = { "description": "Stats options object.", "type": "object", "additionalProperties": true, "properties": { "all": { "description": "Fallback value for stats options when an option is not defined (has precedence over local rspack defaults).", "type": "boolean" }, "assets": { "description": "Add assets information.", "type": "boolean" }, "chunkGroups": { "description": "Display all chunk groups with the corresponding bundles.", "type": "boolean" }, "chunks": { "description": "Add chunk information.", "type": "boolean" }, "colors": { "description": "Enables/Disables colorful output.", "type": "boolean" }, "entrypoints": { "description": "Display the entry points with the corresponding bundles.", "anyOf": [{ "enum": ["auto"] }, { "type": "boolean" }] }, "errors": { "description": "Add errors.", "type": "boolean" }, "errorsCount": { "description": "Add errors count.", "type": "boolean" }, "hash": { "description": "Add the hash of the compilation.", "type": "boolean" }, "modules": { "description": "Add built modules information.", "type": "boolean" }, "preset": { "description": "Preset for the default values.", "anyOf": [{ "type": "boolean" }, { "type": "string" }] }, "publicPath": { "description": "Add public path information.", "type": "boolean" }, "reasons": { "description": "Add information about the reasons why modules are included.", "type": "boolean" }, "warnings": { "description": "Add warnings.", "type": "boolean" }, "warningsCount": { "description": "Add warnings count.", "type": "boolean" }, "outputPath": { "description": "Add output path information.", "type": "boolean" }, "chunkModules": { "description": "Add built modules information to chunk information.", "type": "boolean" }, "chunkRelations": { "description": "Add information about parent, children and sibling chunks to chunk information.", "type": "boolean" }, "timings": { "description": "Add timing information.", "type": "boolean" }, "builtAt": { "description": "Add built at time information.", "type": "boolean" }, "nestedModules": { "description": "Add information about modules nested in other modules (like with module concatenation).", "type": "boolean" } } };
8285
8716
  function validate117(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== "none" && data !== "errors-only" && data !== "errors-warnings" && data !== "normal" && data !== "verbose") {
8286
8717
  const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
8287
8718
  if (vErrors === null) {
@@ -9886,7 +10317,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
9886
10317
  let valid31 = false;
9887
10318
  const _errs127 = errors;
9888
10319
  if (!(data47 instanceof RegExp)) {
9889
- const err24 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/ignoreWarnings/items/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
10320
+ const err24 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/IgnoreWarnings/items/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
9890
10321
  if (vErrors === null) {
9891
10322
  vErrors = [err24];
9892
10323
  }
@@ -9900,7 +10331,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
9900
10331
  if (!valid31) {
9901
10332
  const _errs128 = errors;
9902
10333
  if (!(data47 instanceof Function)) {
9903
- const err25 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/ignoreWarnings/items/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
10334
+ const err25 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/IgnoreWarnings/items/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
9904
10335
  if (vErrors === null) {
9905
10336
  vErrors = [err25];
9906
10337
  }
@@ -9913,7 +10344,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
9913
10344
  valid31 = valid31 || _valid5;
9914
10345
  }
9915
10346
  if (!valid31) {
9916
- const err26 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/ignoreWarnings/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
10347
+ const err26 = { instancePath: instancePath + "/ignoreWarnings/" + i3, schemaPath: "#/definitions/IgnoreWarnings/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
9917
10348
  if (vErrors === null) {
9918
10349
  vErrors = [err26];
9919
10350
  }
@@ -9942,7 +10373,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
9942
10373
  }
9943
10374
  }
9944
10375
  else {
9945
- validate10.errors = [{ instancePath: instancePath + "/ignoreWarnings", schemaPath: "#/definitions/ignoreWarnings/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
10376
+ validate10.errors = [{ instancePath: instancePath + "/ignoreWarnings", schemaPath: "#/definitions/IgnoreWarnings/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
9946
10377
  return false;
9947
10378
  }
9948
10379
  }