@rspack/core 0.1.4 → 0.1.5
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.
- package/dist/compiler.d.ts.map +1 -1
- package/dist/compiler.js +20 -0
- package/dist/compiler.js.map +1 -1
- package/dist/config/adapter.js +7 -17
- package/dist/config/adapter.js.map +1 -1
- package/dist/config/builtins.d.ts +1 -0
- package/dist/config/builtins.d.ts.map +1 -1
- package/dist/config/builtins.js +10 -0
- package/dist/config/builtins.js.map +1 -1
- package/dist/config/defaults.js +40 -23
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/normalization.d.ts.map +1 -1
- package/dist/config/normalization.js +4 -0
- package/dist/config/normalization.js.map +1 -1
- package/dist/config/schema.check.d.ts.map +1 -1
- package/dist/config/schema.check.js +473 -428
- package/dist/config/schema.check.js.map +1 -1
- package/dist/config/schema.d.ts +143 -135
- package/dist/config/schema.js +8 -0
- package/dist/config/schema.js.map +1 -1
- package/dist/config/types.d.ts +8 -3
- package/dist/config/types.d.ts.map +1 -1
- package/package.json +8 -7
|
@@ -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" }] }, "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" }] }, "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" } }, "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" }] } } }, "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" } }] }, "ExternalItemValue": { "description": "The dependency used for the external.", "anyOf": [{ "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" }] }, "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"] }, "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" }, "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" }] } } }, "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" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] } } }, "OptimizationSplitChunksOptions": { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "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" }] } } }, "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" }, "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" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "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" } } }, "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" }] }, "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" } } }, "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": { "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" }] }, "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" }] }, "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" } } }, "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 }] }, "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 }, "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 } } };
|
|
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" }] }, "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" }] }, "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" } }, "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" }] } } }, "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" } }] }, "ExternalItemValue": { "description": "The dependency used for the external.", "anyOf": [{ "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" }] }, "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"] }, "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" }, "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" }] } } }, "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" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] } } }, "OptimizationSplitChunksOptions": { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "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" }] } } }, "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" }, "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" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "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" } } }, "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" }] }, "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" } } }, "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": { "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" }] }, "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" }] }, "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" } } }, "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 }] }, "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 }, "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 } } };
|
|
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" } };
|
|
@@ -1308,7 +1308,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1308
1308
|
} validate28.errors = vErrors; return errors === 0; }
|
|
1309
1309
|
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" }] } } };
|
|
1310
1310
|
const schema40 = { "description": "A list of rules.", "type": "array", "items": { "description": "A rule.", "anyOf": [{ "enum": ["..."] }, { "$ref": "#/definitions/RuleSetRule" }] } };
|
|
1311
|
-
const schema41 = { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "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" }] }, "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" }] }, "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" }] } } };
|
|
1311
|
+
const schema41 = { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "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" }] }, "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" }] }, "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" }] } } };
|
|
1312
1312
|
const schema42 = { "description": "One or multiple rule conditions.", "anyOf": [{ "$ref": "#/definitions/RuleSetCondition" }, { "$ref": "#/definitions/RuleSetConditions" }] };
|
|
1313
1313
|
const schema43 = { "description": "A condition matcher.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }, { "$ref": "#/definitions/RuleSetLogicalConditions" }, { "$ref": "#/definitions/RuleSetConditions" }] };
|
|
1314
1314
|
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" }] } } };
|
|
@@ -1633,13 +1633,13 @@ else {
|
|
|
1633
1633
|
} validate35.errors = vErrors; return errors === 0; }
|
|
1634
1634
|
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" }] }, "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" } } };
|
|
1635
1635
|
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 }] } }] };
|
|
1636
|
-
const wrapper3 = { validate:
|
|
1637
|
-
function
|
|
1636
|
+
const wrapper3 = { validate: validate49 };
|
|
1637
|
+
function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
1638
1638
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
1639
1639
|
const _errs1 = errors;
|
|
1640
1640
|
for (const key0 in data) {
|
|
1641
1641
|
if (!(func2.call(schema46.properties, key0))) {
|
|
1642
|
-
|
|
1642
|
+
validate49.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
1643
1643
|
return false;
|
|
1644
1644
|
break;
|
|
1645
1645
|
}
|
|
@@ -1802,7 +1802,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1802
1802
|
vErrors.push(err8);
|
|
1803
1803
|
}
|
|
1804
1804
|
errors++;
|
|
1805
|
-
|
|
1805
|
+
validate49.errors = vErrors;
|
|
1806
1806
|
return false;
|
|
1807
1807
|
}
|
|
1808
1808
|
else {
|
|
@@ -1825,7 +1825,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1825
1825
|
if (data.browserField !== undefined) {
|
|
1826
1826
|
const _errs17 = errors;
|
|
1827
1827
|
if (typeof data.browserField !== "boolean") {
|
|
1828
|
-
|
|
1828
|
+
validate49.errors = [{ instancePath: instancePath + "/browserField", schemaPath: "#/properties/browserField/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
1829
1829
|
return false;
|
|
1830
1830
|
}
|
|
1831
1831
|
var valid0 = _errs17 === errors;
|
|
@@ -1844,7 +1844,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1844
1844
|
for (let i1 = 0; i1 < len1; i1++) {
|
|
1845
1845
|
const _errs21 = errors;
|
|
1846
1846
|
if (typeof data4[i1] !== "string") {
|
|
1847
|
-
|
|
1847
|
+
validate49.errors = [{ instancePath: instancePath + "/conditionNames/" + i1, schemaPath: "#/properties/conditionNames/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1848
1848
|
return false;
|
|
1849
1849
|
}
|
|
1850
1850
|
var valid6 = _errs21 === errors;
|
|
@@ -1854,7 +1854,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1854
1854
|
}
|
|
1855
1855
|
}
|
|
1856
1856
|
else {
|
|
1857
|
-
|
|
1857
|
+
validate49.errors = [{ instancePath: instancePath + "/conditionNames", schemaPath: "#/properties/conditionNames/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1858
1858
|
return false;
|
|
1859
1859
|
}
|
|
1860
1860
|
}
|
|
@@ -1874,7 +1874,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1874
1874
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
1875
1875
|
const _errs25 = errors;
|
|
1876
1876
|
if (typeof data6[i2] !== "string") {
|
|
1877
|
-
|
|
1877
|
+
validate49.errors = [{ instancePath: instancePath + "/extensions/" + i2, schemaPath: "#/properties/extensions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
1878
1878
|
return false;
|
|
1879
1879
|
}
|
|
1880
1880
|
var valid7 = _errs25 === errors;
|
|
@@ -1884,7 +1884,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
1886
|
else {
|
|
1887
|
-
|
|
1887
|
+
validate49.errors = [{ instancePath: instancePath + "/extensions", schemaPath: "#/properties/extensions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
1888
1888
|
return false;
|
|
1889
1889
|
}
|
|
1890
1890
|
}
|
|
@@ -2081,7 +2081,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2081
2081
|
vErrors.push(err18);
|
|
2082
2082
|
}
|
|
2083
2083
|
errors++;
|
|
2084
|
-
|
|
2084
|
+
validate49.errors = vErrors;
|
|
2085
2085
|
return false;
|
|
2086
2086
|
}
|
|
2087
2087
|
else {
|
|
@@ -2202,7 +2202,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2202
2202
|
vErrors.push(err24);
|
|
2203
2203
|
}
|
|
2204
2204
|
errors++;
|
|
2205
|
-
|
|
2205
|
+
validate49.errors = vErrors;
|
|
2206
2206
|
return false;
|
|
2207
2207
|
}
|
|
2208
2208
|
else {
|
|
@@ -2223,7 +2223,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
2225
2225
|
else {
|
|
2226
|
-
|
|
2226
|
+
validate49.errors = [{ instancePath: instancePath + "/mainFields", schemaPath: "#/properties/mainFields/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2227
2227
|
return false;
|
|
2228
2228
|
}
|
|
2229
2229
|
}
|
|
@@ -2246,12 +2246,12 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2246
2246
|
if (errors === _errs56) {
|
|
2247
2247
|
if (typeof data15 === "string") {
|
|
2248
2248
|
if (data15.length < 1) {
|
|
2249
|
-
|
|
2249
|
+
validate49.errors = [{ instancePath: instancePath + "/mainFiles/" + i6, schemaPath: "#/properties/mainFiles/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
2250
2250
|
return false;
|
|
2251
2251
|
}
|
|
2252
2252
|
}
|
|
2253
2253
|
else {
|
|
2254
|
-
|
|
2254
|
+
validate49.errors = [{ instancePath: instancePath + "/mainFiles/" + i6, schemaPath: "#/properties/mainFiles/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2255
2255
|
return false;
|
|
2256
2256
|
}
|
|
2257
2257
|
}
|
|
@@ -2262,7 +2262,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2262
2262
|
}
|
|
2263
2263
|
}
|
|
2264
2264
|
else {
|
|
2265
|
-
|
|
2265
|
+
validate49.errors = [{ instancePath: instancePath + "/mainFiles", schemaPath: "#/properties/mainFiles/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2266
2266
|
return false;
|
|
2267
2267
|
}
|
|
2268
2268
|
}
|
|
@@ -2285,12 +2285,12 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2285
2285
|
if (errors === _errs60) {
|
|
2286
2286
|
if (typeof data17 === "string") {
|
|
2287
2287
|
if (data17.length < 1) {
|
|
2288
|
-
|
|
2288
|
+
validate49.errors = [{ instancePath: instancePath + "/modules/" + i7, schemaPath: "#/properties/modules/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
2289
2289
|
return false;
|
|
2290
2290
|
}
|
|
2291
2291
|
}
|
|
2292
2292
|
else {
|
|
2293
|
-
|
|
2293
|
+
validate49.errors = [{ instancePath: instancePath + "/modules/" + i7, schemaPath: "#/properties/modules/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2294
2294
|
return false;
|
|
2295
2295
|
}
|
|
2296
2296
|
}
|
|
@@ -2301,7 +2301,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2301
2301
|
}
|
|
2302
2302
|
}
|
|
2303
2303
|
else {
|
|
2304
|
-
|
|
2304
|
+
validate49.errors = [{ instancePath: instancePath + "/modules", schemaPath: "#/properties/modules/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2305
2305
|
return false;
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
@@ -2314,7 +2314,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2314
2314
|
if (data.preferRelative !== undefined) {
|
|
2315
2315
|
const _errs62 = errors;
|
|
2316
2316
|
if (typeof data.preferRelative !== "boolean") {
|
|
2317
|
-
|
|
2317
|
+
validate49.errors = [{ instancePath: instancePath + "/preferRelative", schemaPath: "#/properties/preferRelative/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
2318
2318
|
return false;
|
|
2319
2319
|
}
|
|
2320
2320
|
var valid0 = _errs62 === errors;
|
|
@@ -2352,7 +2352,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2352
2352
|
vErrors.push(err25);
|
|
2353
2353
|
}
|
|
2354
2354
|
errors++;
|
|
2355
|
-
|
|
2355
|
+
validate49.errors = vErrors;
|
|
2356
2356
|
return false;
|
|
2357
2357
|
}
|
|
2358
2358
|
else {
|
|
@@ -2373,7 +2373,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
2375
|
else {
|
|
2376
|
-
|
|
2376
|
+
validate49.errors = [{ instancePath: instancePath + "/byDependency", schemaPath: "#/properties/byDependency/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
2377
2377
|
return false;
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
@@ -2386,7 +2386,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2386
2386
|
if (data.tsConfigPath !== undefined) {
|
|
2387
2387
|
const _errs70 = errors;
|
|
2388
2388
|
if (typeof data.tsConfigPath !== "string") {
|
|
2389
|
-
|
|
2389
|
+
validate49.errors = [{ instancePath: instancePath + "/tsConfigPath", schemaPath: "#/properties/tsConfigPath/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
2390
2390
|
return false;
|
|
2391
2391
|
}
|
|
2392
2392
|
var valid0 = _errs70 === errors;
|
|
@@ -2407,15 +2407,15 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2407
2407
|
}
|
|
2408
2408
|
}
|
|
2409
2409
|
else {
|
|
2410
|
-
|
|
2410
|
+
validate49.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
2411
2411
|
return false;
|
|
2412
2412
|
}
|
|
2413
|
-
}
|
|
2413
|
+
} validate49.errors = vErrors; return errors === 0; }
|
|
2414
2414
|
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" }] };
|
|
2415
2415
|
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" }] };
|
|
2416
2416
|
const schema51 = { "description": "A loader request.", "type": "string", "minLength": 1 };
|
|
2417
2417
|
const schema52 = { "description": "Options passed to a loader.", "anyOf": [{ "type": "string" }, { "type": "object" }] };
|
|
2418
|
-
function
|
|
2418
|
+
function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (errors === _errs1) {
|
|
2419
2419
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
2420
2420
|
const _errs3 = errors;
|
|
2421
2421
|
for (const key0 in data) {
|
|
@@ -2636,7 +2636,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2636
2636
|
vErrors.push(err11);
|
|
2637
2637
|
}
|
|
2638
2638
|
errors++;
|
|
2639
|
-
|
|
2639
|
+
validate56.errors = vErrors;
|
|
2640
2640
|
return false;
|
|
2641
2641
|
}
|
|
2642
2642
|
else {
|
|
@@ -2649,8 +2649,8 @@ else {
|
|
|
2649
2649
|
vErrors = null;
|
|
2650
2650
|
}
|
|
2651
2651
|
}
|
|
2652
|
-
}
|
|
2653
|
-
function
|
|
2652
|
+
} validate56.errors = vErrors; return errors === 0; }
|
|
2653
|
+
function validate55(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (errors === _errs1) {
|
|
2654
2654
|
if (Array.isArray(data)) {
|
|
2655
2655
|
var valid1 = true;
|
|
2656
2656
|
const len0 = data.length;
|
|
@@ -2660,8 +2660,8 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2660
2660
|
let valid2 = false;
|
|
2661
2661
|
let passing0 = null;
|
|
2662
2662
|
const _errs5 = errors;
|
|
2663
|
-
if (!(
|
|
2664
|
-
vErrors = vErrors === null ?
|
|
2663
|
+
if (!(validate56(data[i0], { instancePath: instancePath + "/" + i0, parentData: data, parentDataProperty: i0, rootData }))) {
|
|
2664
|
+
vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
|
|
2665
2665
|
errors = vErrors.length;
|
|
2666
2666
|
}
|
|
2667
2667
|
var _valid1 = _errs5 === errors;
|
|
@@ -2708,8 +2708,8 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2708
2708
|
}
|
|
2709
2709
|
} var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) {
|
|
2710
2710
|
const _errs6 = errors;
|
|
2711
|
-
if (!(
|
|
2712
|
-
vErrors = vErrors === null ?
|
|
2711
|
+
if (!(validate56(data, { instancePath, parentData, parentDataProperty, rootData }))) {
|
|
2712
|
+
vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
|
|
2713
2713
|
errors = vErrors.length;
|
|
2714
2714
|
}
|
|
2715
2715
|
var _valid0 = _errs6 === errors;
|
|
@@ -2723,7 +2723,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2723
2723
|
vErrors.push(err2);
|
|
2724
2724
|
}
|
|
2725
2725
|
errors++;
|
|
2726
|
-
|
|
2726
|
+
validate55.errors = vErrors;
|
|
2727
2727
|
return false;
|
|
2728
2728
|
}
|
|
2729
2729
|
else {
|
|
@@ -2736,7 +2736,7 @@ else {
|
|
|
2736
2736
|
vErrors = null;
|
|
2737
2737
|
}
|
|
2738
2738
|
}
|
|
2739
|
-
}
|
|
2739
|
+
} validate55.errors = vErrors; return errors === 0; }
|
|
2740
2740
|
const wrapper2 = { validate: validate34 };
|
|
2741
2741
|
function validate34(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
2742
2742
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
@@ -2894,60 +2894,42 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2894
2894
|
var valid0 = true;
|
|
2895
2895
|
}
|
|
2896
2896
|
if (valid0) {
|
|
2897
|
-
if (data.
|
|
2898
|
-
let data4 = data.oneOf;
|
|
2897
|
+
if (data.dependency !== undefined) {
|
|
2899
2898
|
const _errs13 = errors;
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
passing3 = 0;
|
|
2918
|
-
}
|
|
2919
|
-
if (!valid5) {
|
|
2920
|
-
const err3 = { instancePath: instancePath + "/oneOf/" + i0, schemaPath: "#/properties/oneOf/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing3 }, message: "must match exactly one schema in oneOf" };
|
|
2921
|
-
if (vErrors === null) {
|
|
2922
|
-
vErrors = [err3];
|
|
2923
|
-
}
|
|
2924
|
-
else {
|
|
2925
|
-
vErrors.push(err3);
|
|
2926
|
-
}
|
|
2927
|
-
errors++;
|
|
2928
|
-
validate34.errors = vErrors;
|
|
2929
|
-
return false;
|
|
2930
|
-
}
|
|
2931
|
-
else {
|
|
2932
|
-
errors = _errs16;
|
|
2933
|
-
if (vErrors !== null) {
|
|
2934
|
-
if (_errs16) {
|
|
2935
|
-
vErrors.length = _errs16;
|
|
2936
|
-
}
|
|
2937
|
-
else {
|
|
2938
|
-
vErrors = null;
|
|
2939
|
-
}
|
|
2940
|
-
}
|
|
2941
|
-
}
|
|
2942
|
-
var valid4 = _errs15 === errors;
|
|
2943
|
-
if (!valid4) {
|
|
2944
|
-
break;
|
|
2945
|
-
}
|
|
2946
|
-
}
|
|
2899
|
+
const _errs14 = errors;
|
|
2900
|
+
let valid4 = false;
|
|
2901
|
+
let passing3 = null;
|
|
2902
|
+
const _errs15 = errors;
|
|
2903
|
+
if (!(validate35(data.dependency, { instancePath: instancePath + "/dependency", parentData: data, parentDataProperty: "dependency", rootData }))) {
|
|
2904
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
2905
|
+
errors = vErrors.length;
|
|
2906
|
+
}
|
|
2907
|
+
var _valid3 = _errs15 === errors;
|
|
2908
|
+
if (_valid3) {
|
|
2909
|
+
valid4 = true;
|
|
2910
|
+
passing3 = 0;
|
|
2911
|
+
}
|
|
2912
|
+
if (!valid4) {
|
|
2913
|
+
const err3 = { instancePath: instancePath + "/dependency", schemaPath: "#/properties/dependency/oneOf", keyword: "oneOf", params: { passingSchemas: passing3 }, message: "must match exactly one schema in oneOf" };
|
|
2914
|
+
if (vErrors === null) {
|
|
2915
|
+
vErrors = [err3];
|
|
2947
2916
|
}
|
|
2948
2917
|
else {
|
|
2949
|
-
|
|
2950
|
-
|
|
2918
|
+
vErrors.push(err3);
|
|
2919
|
+
}
|
|
2920
|
+
errors++;
|
|
2921
|
+
validate34.errors = vErrors;
|
|
2922
|
+
return false;
|
|
2923
|
+
}
|
|
2924
|
+
else {
|
|
2925
|
+
errors = _errs14;
|
|
2926
|
+
if (vErrors !== null) {
|
|
2927
|
+
if (_errs14) {
|
|
2928
|
+
vErrors.length = _errs14;
|
|
2929
|
+
}
|
|
2930
|
+
else {
|
|
2931
|
+
vErrors = null;
|
|
2932
|
+
}
|
|
2951
2933
|
}
|
|
2952
2934
|
}
|
|
2953
2935
|
var valid0 = _errs13 === errors;
|
|
@@ -2956,63 +2938,76 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
2956
2938
|
var valid0 = true;
|
|
2957
2939
|
}
|
|
2958
2940
|
if (valid0) {
|
|
2959
|
-
if (data.
|
|
2960
|
-
let
|
|
2961
|
-
const
|
|
2962
|
-
if (errors ===
|
|
2963
|
-
if (
|
|
2941
|
+
if (data.oneOf !== undefined) {
|
|
2942
|
+
let data5 = data.oneOf;
|
|
2943
|
+
const _errs16 = errors;
|
|
2944
|
+
if (errors === _errs16) {
|
|
2945
|
+
if (Array.isArray(data5)) {
|
|
2946
|
+
var valid5 = true;
|
|
2947
|
+
const len0 = data5.length;
|
|
2948
|
+
for (let i0 = 0; i0 < len0; i0++) {
|
|
2949
|
+
const _errs18 = errors;
|
|
2950
|
+
const _errs19 = errors;
|
|
2951
|
+
let valid6 = false;
|
|
2952
|
+
let passing4 = null;
|
|
2953
|
+
const _errs20 = errors;
|
|
2954
|
+
if (!(wrapper2.validate(data5[i0], { instancePath: instancePath + "/oneOf/" + i0, parentData: data5, parentDataProperty: i0, rootData }))) {
|
|
2955
|
+
vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
|
|
2956
|
+
errors = vErrors.length;
|
|
2957
|
+
}
|
|
2958
|
+
var _valid4 = _errs20 === errors;
|
|
2959
|
+
if (_valid4) {
|
|
2960
|
+
valid6 = true;
|
|
2961
|
+
passing4 = 0;
|
|
2962
|
+
}
|
|
2963
|
+
if (!valid6) {
|
|
2964
|
+
const err4 = { instancePath: instancePath + "/oneOf/" + i0, schemaPath: "#/properties/oneOf/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing4 }, message: "must match exactly one schema in oneOf" };
|
|
2965
|
+
if (vErrors === null) {
|
|
2966
|
+
vErrors = [err4];
|
|
2967
|
+
}
|
|
2968
|
+
else {
|
|
2969
|
+
vErrors.push(err4);
|
|
2970
|
+
}
|
|
2971
|
+
errors++;
|
|
2972
|
+
validate34.errors = vErrors;
|
|
2973
|
+
return false;
|
|
2974
|
+
}
|
|
2975
|
+
else {
|
|
2976
|
+
errors = _errs19;
|
|
2977
|
+
if (vErrors !== null) {
|
|
2978
|
+
if (_errs19) {
|
|
2979
|
+
vErrors.length = _errs19;
|
|
2980
|
+
}
|
|
2981
|
+
else {
|
|
2982
|
+
vErrors = null;
|
|
2983
|
+
}
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
var valid5 = _errs18 === errors;
|
|
2987
|
+
if (!valid5) {
|
|
2988
|
+
break;
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
}
|
|
2964
2992
|
else {
|
|
2965
|
-
validate34.errors = [{ instancePath: instancePath + "/
|
|
2993
|
+
validate34.errors = [{ instancePath: instancePath + "/oneOf", schemaPath: "#/properties/oneOf/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
2966
2994
|
return false;
|
|
2967
2995
|
}
|
|
2968
2996
|
}
|
|
2969
|
-
var valid0 =
|
|
2997
|
+
var valid0 = _errs16 === errors;
|
|
2970
2998
|
}
|
|
2971
2999
|
else {
|
|
2972
3000
|
var valid0 = true;
|
|
2973
3001
|
}
|
|
2974
3002
|
if (valid0) {
|
|
2975
|
-
if (data.
|
|
2976
|
-
let data7 = data.
|
|
3003
|
+
if (data.parser !== undefined) {
|
|
3004
|
+
let data7 = data.parser;
|
|
2977
3005
|
const _errs21 = errors;
|
|
2978
|
-
if (
|
|
2979
|
-
|
|
2980
|
-
return false;
|
|
2981
|
-
}
|
|
2982
|
-
const _errs23 = errors;
|
|
2983
|
-
let valid6 = false;
|
|
2984
|
-
let passing4 = null;
|
|
2985
|
-
const _errs24 = errors;
|
|
2986
|
-
if (!(validate48(data7, { instancePath: instancePath + "/resolve", parentData: data, parentDataProperty: "resolve", rootData }))) {
|
|
2987
|
-
vErrors = vErrors === null ? validate48.errors : vErrors.concat(validate48.errors);
|
|
2988
|
-
errors = vErrors.length;
|
|
2989
|
-
}
|
|
2990
|
-
var _valid4 = _errs24 === errors;
|
|
2991
|
-
if (_valid4) {
|
|
2992
|
-
valid6 = true;
|
|
2993
|
-
passing4 = 0;
|
|
2994
|
-
}
|
|
2995
|
-
if (!valid6) {
|
|
2996
|
-
const err4 = { instancePath: instancePath + "/resolve", schemaPath: "#/properties/resolve/oneOf", keyword: "oneOf", params: { passingSchemas: passing4 }, message: "must match exactly one schema in oneOf" };
|
|
2997
|
-
if (vErrors === null) {
|
|
2998
|
-
vErrors = [err4];
|
|
2999
|
-
}
|
|
3006
|
+
if (errors === _errs21) {
|
|
3007
|
+
if (data7 && typeof data7 == "object" && !Array.isArray(data7)) { }
|
|
3000
3008
|
else {
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
errors++;
|
|
3004
|
-
validate34.errors = vErrors;
|
|
3005
|
-
return false;
|
|
3006
|
-
}
|
|
3007
|
-
else {
|
|
3008
|
-
errors = _errs23;
|
|
3009
|
-
if (vErrors !== null) {
|
|
3010
|
-
if (_errs23) {
|
|
3011
|
-
vErrors.length = _errs23;
|
|
3012
|
-
}
|
|
3013
|
-
else {
|
|
3014
|
-
vErrors = null;
|
|
3015
|
-
}
|
|
3009
|
+
validate34.errors = [{ instancePath: instancePath + "/parser", schemaPath: "#/properties/parser/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3010
|
+
return false;
|
|
3016
3011
|
}
|
|
3017
3012
|
}
|
|
3018
3013
|
var valid0 = _errs21 === errors;
|
|
@@ -3021,14 +3016,19 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3021
3016
|
var valid0 = true;
|
|
3022
3017
|
}
|
|
3023
3018
|
if (valid0) {
|
|
3024
|
-
if (data.
|
|
3025
|
-
|
|
3019
|
+
if (data.resolve !== undefined) {
|
|
3020
|
+
let data8 = data.resolve;
|
|
3021
|
+
const _errs24 = errors;
|
|
3022
|
+
if (!(data8 && typeof data8 == "object" && !Array.isArray(data8))) {
|
|
3023
|
+
validate34.errors = [{ instancePath: instancePath + "/resolve", schemaPath: "#/properties/resolve/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3024
|
+
return false;
|
|
3025
|
+
}
|
|
3026
3026
|
const _errs26 = errors;
|
|
3027
3027
|
let valid7 = false;
|
|
3028
3028
|
let passing5 = null;
|
|
3029
3029
|
const _errs27 = errors;
|
|
3030
|
-
if (!(
|
|
3031
|
-
vErrors = vErrors === null ?
|
|
3030
|
+
if (!(validate49(data8, { instancePath: instancePath + "/resolve", parentData: data, parentDataProperty: "resolve", rootData }))) {
|
|
3031
|
+
vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
|
|
3032
3032
|
errors = vErrors.length;
|
|
3033
3033
|
}
|
|
3034
3034
|
var _valid5 = _errs27 === errors;
|
|
@@ -3037,7 +3037,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3037
3037
|
passing5 = 0;
|
|
3038
3038
|
}
|
|
3039
3039
|
if (!valid7) {
|
|
3040
|
-
const err5 = { instancePath: instancePath + "/
|
|
3040
|
+
const err5 = { instancePath: instancePath + "/resolve", schemaPath: "#/properties/resolve/oneOf", keyword: "oneOf", params: { passingSchemas: passing5 }, message: "must match exactly one schema in oneOf" };
|
|
3041
3041
|
if (vErrors === null) {
|
|
3042
3042
|
vErrors = [err5];
|
|
3043
3043
|
}
|
|
@@ -3059,19 +3059,19 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3059
3059
|
}
|
|
3060
3060
|
}
|
|
3061
3061
|
}
|
|
3062
|
-
var valid0 =
|
|
3062
|
+
var valid0 = _errs24 === errors;
|
|
3063
3063
|
}
|
|
3064
3064
|
else {
|
|
3065
3065
|
var valid0 = true;
|
|
3066
3066
|
}
|
|
3067
3067
|
if (valid0) {
|
|
3068
|
-
if (data.
|
|
3068
|
+
if (data.resource !== undefined) {
|
|
3069
3069
|
const _errs28 = errors;
|
|
3070
3070
|
const _errs29 = errors;
|
|
3071
3071
|
let valid8 = false;
|
|
3072
3072
|
let passing6 = null;
|
|
3073
3073
|
const _errs30 = errors;
|
|
3074
|
-
if (!(validate35(data.
|
|
3074
|
+
if (!(validate35(data.resource, { instancePath: instancePath + "/resource", parentData: data, parentDataProperty: "resource", rootData }))) {
|
|
3075
3075
|
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
3076
3076
|
errors = vErrors.length;
|
|
3077
3077
|
}
|
|
@@ -3081,7 +3081,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3081
3081
|
passing6 = 0;
|
|
3082
3082
|
}
|
|
3083
3083
|
if (!valid8) {
|
|
3084
|
-
const err6 = { instancePath: instancePath + "/
|
|
3084
|
+
const err6 = { instancePath: instancePath + "/resource", schemaPath: "#/properties/resource/oneOf", keyword: "oneOf", params: { passingSchemas: passing6 }, message: "must match exactly one schema in oneOf" };
|
|
3085
3085
|
if (vErrors === null) {
|
|
3086
3086
|
vErrors = [err6];
|
|
3087
3087
|
}
|
|
@@ -3109,13 +3109,13 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3109
3109
|
var valid0 = true;
|
|
3110
3110
|
}
|
|
3111
3111
|
if (valid0) {
|
|
3112
|
-
if (data.
|
|
3112
|
+
if (data.resourceFragment !== undefined) {
|
|
3113
3113
|
const _errs31 = errors;
|
|
3114
3114
|
const _errs32 = errors;
|
|
3115
3115
|
let valid9 = false;
|
|
3116
3116
|
let passing7 = null;
|
|
3117
3117
|
const _errs33 = errors;
|
|
3118
|
-
if (!(validate35(data.
|
|
3118
|
+
if (!(validate35(data.resourceFragment, { instancePath: instancePath + "/resourceFragment", parentData: data, parentDataProperty: "resourceFragment", rootData }))) {
|
|
3119
3119
|
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
3120
3120
|
errors = vErrors.length;
|
|
3121
3121
|
}
|
|
@@ -3125,7 +3125,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3125
3125
|
passing7 = 0;
|
|
3126
3126
|
}
|
|
3127
3127
|
if (!valid9) {
|
|
3128
|
-
const err7 = { instancePath: instancePath + "/
|
|
3128
|
+
const err7 = { instancePath: instancePath + "/resourceFragment", schemaPath: "#/properties/resourceFragment/oneOf", keyword: "oneOf", params: { passingSchemas: passing7 }, message: "must match exactly one schema in oneOf" };
|
|
3129
3129
|
if (vErrors === null) {
|
|
3130
3130
|
vErrors = [err7];
|
|
3131
3131
|
}
|
|
@@ -3153,60 +3153,42 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3153
3153
|
var valid0 = true;
|
|
3154
3154
|
}
|
|
3155
3155
|
if (valid0) {
|
|
3156
|
-
if (data.
|
|
3157
|
-
let data11 = data.rules;
|
|
3156
|
+
if (data.resourceQuery !== undefined) {
|
|
3158
3157
|
const _errs34 = errors;
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
passing8 = 0;
|
|
3177
|
-
}
|
|
3178
|
-
if (!valid11) {
|
|
3179
|
-
const err8 = { instancePath: instancePath + "/rules/" + i1, schemaPath: "#/properties/rules/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing8 }, message: "must match exactly one schema in oneOf" };
|
|
3180
|
-
if (vErrors === null) {
|
|
3181
|
-
vErrors = [err8];
|
|
3182
|
-
}
|
|
3183
|
-
else {
|
|
3184
|
-
vErrors.push(err8);
|
|
3185
|
-
}
|
|
3186
|
-
errors++;
|
|
3187
|
-
validate34.errors = vErrors;
|
|
3188
|
-
return false;
|
|
3189
|
-
}
|
|
3190
|
-
else {
|
|
3191
|
-
errors = _errs37;
|
|
3192
|
-
if (vErrors !== null) {
|
|
3193
|
-
if (_errs37) {
|
|
3194
|
-
vErrors.length = _errs37;
|
|
3195
|
-
}
|
|
3196
|
-
else {
|
|
3197
|
-
vErrors = null;
|
|
3198
|
-
}
|
|
3199
|
-
}
|
|
3200
|
-
}
|
|
3201
|
-
var valid10 = _errs36 === errors;
|
|
3202
|
-
if (!valid10) {
|
|
3203
|
-
break;
|
|
3204
|
-
}
|
|
3205
|
-
}
|
|
3158
|
+
const _errs35 = errors;
|
|
3159
|
+
let valid10 = false;
|
|
3160
|
+
let passing8 = null;
|
|
3161
|
+
const _errs36 = errors;
|
|
3162
|
+
if (!(validate35(data.resourceQuery, { instancePath: instancePath + "/resourceQuery", parentData: data, parentDataProperty: "resourceQuery", rootData }))) {
|
|
3163
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
3164
|
+
errors = vErrors.length;
|
|
3165
|
+
}
|
|
3166
|
+
var _valid8 = _errs36 === errors;
|
|
3167
|
+
if (_valid8) {
|
|
3168
|
+
valid10 = true;
|
|
3169
|
+
passing8 = 0;
|
|
3170
|
+
}
|
|
3171
|
+
if (!valid10) {
|
|
3172
|
+
const err8 = { instancePath: instancePath + "/resourceQuery", schemaPath: "#/properties/resourceQuery/oneOf", keyword: "oneOf", params: { passingSchemas: passing8 }, message: "must match exactly one schema in oneOf" };
|
|
3173
|
+
if (vErrors === null) {
|
|
3174
|
+
vErrors = [err8];
|
|
3206
3175
|
}
|
|
3207
3176
|
else {
|
|
3208
|
-
|
|
3209
|
-
|
|
3177
|
+
vErrors.push(err8);
|
|
3178
|
+
}
|
|
3179
|
+
errors++;
|
|
3180
|
+
validate34.errors = vErrors;
|
|
3181
|
+
return false;
|
|
3182
|
+
}
|
|
3183
|
+
else {
|
|
3184
|
+
errors = _errs35;
|
|
3185
|
+
if (vErrors !== null) {
|
|
3186
|
+
if (_errs35) {
|
|
3187
|
+
vErrors.length = _errs35;
|
|
3188
|
+
}
|
|
3189
|
+
else {
|
|
3190
|
+
vErrors = null;
|
|
3191
|
+
}
|
|
3210
3192
|
}
|
|
3211
3193
|
}
|
|
3212
3194
|
var valid0 = _errs34 === errors;
|
|
@@ -3215,116 +3197,179 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3215
3197
|
var valid0 = true;
|
|
3216
3198
|
}
|
|
3217
3199
|
if (valid0) {
|
|
3218
|
-
if (data.
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3200
|
+
if (data.rules !== undefined) {
|
|
3201
|
+
let data12 = data.rules;
|
|
3202
|
+
const _errs37 = errors;
|
|
3203
|
+
if (errors === _errs37) {
|
|
3204
|
+
if (Array.isArray(data12)) {
|
|
3205
|
+
var valid11 = true;
|
|
3206
|
+
const len1 = data12.length;
|
|
3207
|
+
for (let i1 = 0; i1 < len1; i1++) {
|
|
3208
|
+
const _errs39 = errors;
|
|
3209
|
+
const _errs40 = errors;
|
|
3210
|
+
let valid12 = false;
|
|
3211
|
+
let passing9 = null;
|
|
3212
|
+
const _errs41 = errors;
|
|
3213
|
+
if (!(wrapper2.validate(data12[i1], { instancePath: instancePath + "/rules/" + i1, parentData: data12, parentDataProperty: i1, rootData }))) {
|
|
3214
|
+
vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
|
|
3215
|
+
errors = vErrors.length;
|
|
3216
|
+
}
|
|
3217
|
+
var _valid9 = _errs41 === errors;
|
|
3218
|
+
if (_valid9) {
|
|
3219
|
+
valid12 = true;
|
|
3220
|
+
passing9 = 0;
|
|
3221
|
+
}
|
|
3222
|
+
if (!valid12) {
|
|
3223
|
+
const err9 = { instancePath: instancePath + "/rules/" + i1, schemaPath: "#/properties/rules/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing9 }, message: "must match exactly one schema in oneOf" };
|
|
3224
|
+
if (vErrors === null) {
|
|
3225
|
+
vErrors = [err9];
|
|
3226
|
+
}
|
|
3227
|
+
else {
|
|
3228
|
+
vErrors.push(err9);
|
|
3229
|
+
}
|
|
3230
|
+
errors++;
|
|
3231
|
+
validate34.errors = vErrors;
|
|
3232
|
+
return false;
|
|
3233
|
+
}
|
|
3234
|
+
else {
|
|
3235
|
+
errors = _errs40;
|
|
3236
|
+
if (vErrors !== null) {
|
|
3237
|
+
if (_errs40) {
|
|
3238
|
+
vErrors.length = _errs40;
|
|
3239
|
+
}
|
|
3240
|
+
else {
|
|
3241
|
+
vErrors = null;
|
|
3242
|
+
}
|
|
3243
|
+
}
|
|
3244
|
+
}
|
|
3245
|
+
var valid11 = _errs39 === errors;
|
|
3246
|
+
if (!valid11) {
|
|
3247
|
+
break;
|
|
3248
|
+
}
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3251
|
+
else {
|
|
3252
|
+
validate34.errors = [{ instancePath: instancePath + "/rules", schemaPath: "#/properties/rules/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
3253
|
+
return false;
|
|
3254
|
+
}
|
|
3223
3255
|
}
|
|
3224
|
-
var valid0 =
|
|
3256
|
+
var valid0 = _errs37 === errors;
|
|
3225
3257
|
}
|
|
3226
3258
|
else {
|
|
3227
3259
|
var valid0 = true;
|
|
3228
3260
|
}
|
|
3229
3261
|
if (valid0) {
|
|
3230
|
-
if (data.
|
|
3231
|
-
const _errs41 = errors;
|
|
3262
|
+
if (data.sideEffects !== undefined) {
|
|
3232
3263
|
const _errs42 = errors;
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
const _errs43 = errors;
|
|
3236
|
-
if (!(validate35(data.test, { instancePath: instancePath + "/test", parentData: data, parentDataProperty: "test", rootData }))) {
|
|
3237
|
-
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
3238
|
-
errors = vErrors.length;
|
|
3239
|
-
}
|
|
3240
|
-
var _valid9 = _errs43 === errors;
|
|
3241
|
-
if (_valid9) {
|
|
3242
|
-
valid12 = true;
|
|
3243
|
-
passing9 = 0;
|
|
3244
|
-
}
|
|
3245
|
-
if (!valid12) {
|
|
3246
|
-
const err9 = { instancePath: instancePath + "/test", schemaPath: "#/properties/test/oneOf", keyword: "oneOf", params: { passingSchemas: passing9 }, message: "must match exactly one schema in oneOf" };
|
|
3247
|
-
if (vErrors === null) {
|
|
3248
|
-
vErrors = [err9];
|
|
3249
|
-
}
|
|
3250
|
-
else {
|
|
3251
|
-
vErrors.push(err9);
|
|
3252
|
-
}
|
|
3253
|
-
errors++;
|
|
3254
|
-
validate34.errors = vErrors;
|
|
3264
|
+
if (typeof data.sideEffects !== "boolean") {
|
|
3265
|
+
validate34.errors = [{ instancePath: instancePath + "/sideEffects", schemaPath: "#/properties/sideEffects/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
3255
3266
|
return false;
|
|
3256
3267
|
}
|
|
3257
|
-
|
|
3258
|
-
errors = _errs42;
|
|
3259
|
-
if (vErrors !== null) {
|
|
3260
|
-
if (_errs42) {
|
|
3261
|
-
vErrors.length = _errs42;
|
|
3262
|
-
}
|
|
3263
|
-
else {
|
|
3264
|
-
vErrors = null;
|
|
3265
|
-
}
|
|
3266
|
-
}
|
|
3267
|
-
}
|
|
3268
|
-
var valid0 = _errs41 === errors;
|
|
3268
|
+
var valid0 = _errs42 === errors;
|
|
3269
3269
|
}
|
|
3270
3270
|
else {
|
|
3271
3271
|
var valid0 = true;
|
|
3272
3272
|
}
|
|
3273
3273
|
if (valid0) {
|
|
3274
|
-
if (data.
|
|
3274
|
+
if (data.test !== undefined) {
|
|
3275
3275
|
const _errs44 = errors;
|
|
3276
|
-
|
|
3277
|
-
|
|
3276
|
+
const _errs45 = errors;
|
|
3277
|
+
let valid13 = false;
|
|
3278
|
+
let passing10 = null;
|
|
3279
|
+
const _errs46 = errors;
|
|
3280
|
+
if (!(validate35(data.test, { instancePath: instancePath + "/test", parentData: data, parentDataProperty: "test", rootData }))) {
|
|
3281
|
+
vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
|
|
3282
|
+
errors = vErrors.length;
|
|
3283
|
+
}
|
|
3284
|
+
var _valid10 = _errs46 === errors;
|
|
3285
|
+
if (_valid10) {
|
|
3286
|
+
valid13 = true;
|
|
3287
|
+
passing10 = 0;
|
|
3288
|
+
}
|
|
3289
|
+
if (!valid13) {
|
|
3290
|
+
const err10 = { instancePath: instancePath + "/test", schemaPath: "#/properties/test/oneOf", keyword: "oneOf", params: { passingSchemas: passing10 }, message: "must match exactly one schema in oneOf" };
|
|
3291
|
+
if (vErrors === null) {
|
|
3292
|
+
vErrors = [err10];
|
|
3293
|
+
}
|
|
3294
|
+
else {
|
|
3295
|
+
vErrors.push(err10);
|
|
3296
|
+
}
|
|
3297
|
+
errors++;
|
|
3298
|
+
validate34.errors = vErrors;
|
|
3278
3299
|
return false;
|
|
3279
3300
|
}
|
|
3301
|
+
else {
|
|
3302
|
+
errors = _errs45;
|
|
3303
|
+
if (vErrors !== null) {
|
|
3304
|
+
if (_errs45) {
|
|
3305
|
+
vErrors.length = _errs45;
|
|
3306
|
+
}
|
|
3307
|
+
else {
|
|
3308
|
+
vErrors = null;
|
|
3309
|
+
}
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3280
3312
|
var valid0 = _errs44 === errors;
|
|
3281
3313
|
}
|
|
3282
3314
|
else {
|
|
3283
3315
|
var valid0 = true;
|
|
3284
3316
|
}
|
|
3285
3317
|
if (valid0) {
|
|
3286
|
-
if (data.
|
|
3287
|
-
const _errs46 = errors;
|
|
3318
|
+
if (data.type !== undefined) {
|
|
3288
3319
|
const _errs47 = errors;
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
if (!(validate54(data.use, { instancePath: instancePath + "/use", parentData: data, parentDataProperty: "use", rootData }))) {
|
|
3293
|
-
vErrors = vErrors === null ? validate54.errors : vErrors.concat(validate54.errors);
|
|
3294
|
-
errors = vErrors.length;
|
|
3295
|
-
}
|
|
3296
|
-
var _valid10 = _errs48 === errors;
|
|
3297
|
-
if (_valid10) {
|
|
3298
|
-
valid13 = true;
|
|
3299
|
-
passing10 = 0;
|
|
3320
|
+
if (typeof data.type !== "string") {
|
|
3321
|
+
validate34.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
3322
|
+
return false;
|
|
3300
3323
|
}
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3324
|
+
var valid0 = _errs47 === errors;
|
|
3325
|
+
}
|
|
3326
|
+
else {
|
|
3327
|
+
var valid0 = true;
|
|
3328
|
+
}
|
|
3329
|
+
if (valid0) {
|
|
3330
|
+
if (data.use !== undefined) {
|
|
3331
|
+
const _errs49 = errors;
|
|
3332
|
+
const _errs50 = errors;
|
|
3333
|
+
let valid14 = false;
|
|
3334
|
+
let passing11 = null;
|
|
3335
|
+
const _errs51 = errors;
|
|
3336
|
+
if (!(validate55(data.use, { instancePath: instancePath + "/use", parentData: data, parentDataProperty: "use", rootData }))) {
|
|
3337
|
+
vErrors = vErrors === null ? validate55.errors : vErrors.concat(validate55.errors);
|
|
3338
|
+
errors = vErrors.length;
|
|
3305
3339
|
}
|
|
3306
|
-
|
|
3307
|
-
|
|
3340
|
+
var _valid11 = _errs51 === errors;
|
|
3341
|
+
if (_valid11) {
|
|
3342
|
+
valid14 = true;
|
|
3343
|
+
passing11 = 0;
|
|
3308
3344
|
}
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
else {
|
|
3314
|
-
errors = _errs47;
|
|
3315
|
-
if (vErrors !== null) {
|
|
3316
|
-
if (_errs47) {
|
|
3317
|
-
vErrors.length = _errs47;
|
|
3345
|
+
if (!valid14) {
|
|
3346
|
+
const err11 = { instancePath: instancePath + "/use", schemaPath: "#/properties/use/oneOf", keyword: "oneOf", params: { passingSchemas: passing11 }, message: "must match exactly one schema in oneOf" };
|
|
3347
|
+
if (vErrors === null) {
|
|
3348
|
+
vErrors = [err11];
|
|
3318
3349
|
}
|
|
3319
3350
|
else {
|
|
3320
|
-
vErrors
|
|
3351
|
+
vErrors.push(err11);
|
|
3321
3352
|
}
|
|
3353
|
+
errors++;
|
|
3354
|
+
validate34.errors = vErrors;
|
|
3355
|
+
return false;
|
|
3322
3356
|
}
|
|
3357
|
+
else {
|
|
3358
|
+
errors = _errs50;
|
|
3359
|
+
if (vErrors !== null) {
|
|
3360
|
+
if (_errs50) {
|
|
3361
|
+
vErrors.length = _errs50;
|
|
3362
|
+
}
|
|
3363
|
+
else {
|
|
3364
|
+
vErrors = null;
|
|
3365
|
+
}
|
|
3366
|
+
}
|
|
3367
|
+
}
|
|
3368
|
+
var valid0 = _errs49 === errors;
|
|
3369
|
+
}
|
|
3370
|
+
else {
|
|
3371
|
+
var valid0 = true;
|
|
3323
3372
|
}
|
|
3324
|
-
var valid0 = _errs46 === errors;
|
|
3325
|
-
}
|
|
3326
|
-
else {
|
|
3327
|
-
var valid0 = true;
|
|
3328
3373
|
}
|
|
3329
3374
|
}
|
|
3330
3375
|
}
|
|
@@ -3415,12 +3460,12 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3415
3460
|
const schema54 = { "description": "Specify options for each parser.", "type": "object", "additionalProperties": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "properties": { "asset": { "$ref": "#/definitions/AssetParserOptions" } } };
|
|
3416
3461
|
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" }] } } };
|
|
3417
3462
|
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" } } };
|
|
3418
|
-
function
|
|
3463
|
+
function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
3419
3464
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3420
3465
|
const _errs1 = errors;
|
|
3421
3466
|
for (const key0 in data) {
|
|
3422
3467
|
if (!(key0 === "dataUrlCondition")) {
|
|
3423
|
-
|
|
3468
|
+
validate63.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
3424
3469
|
return false;
|
|
3425
3470
|
break;
|
|
3426
3471
|
}
|
|
@@ -3485,7 +3530,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3485
3530
|
vErrors.push(err3);
|
|
3486
3531
|
}
|
|
3487
3532
|
errors++;
|
|
3488
|
-
|
|
3533
|
+
validate63.errors = vErrors;
|
|
3489
3534
|
return false;
|
|
3490
3535
|
}
|
|
3491
3536
|
else {
|
|
@@ -3503,11 +3548,11 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3503
3548
|
}
|
|
3504
3549
|
}
|
|
3505
3550
|
else {
|
|
3506
|
-
|
|
3551
|
+
validate63.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3507
3552
|
return false;
|
|
3508
3553
|
}
|
|
3509
|
-
}
|
|
3510
|
-
function
|
|
3554
|
+
} validate63.errors = vErrors; return errors === 0; }
|
|
3555
|
+
function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
3511
3556
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3512
3557
|
const _errs1 = errors;
|
|
3513
3558
|
for (const key0 in data) {
|
|
@@ -3517,7 +3562,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3517
3562
|
if (errors === _errs2) {
|
|
3518
3563
|
if (data0 && typeof data0 == "object" && !Array.isArray(data0)) { }
|
|
3519
3564
|
else {
|
|
3520
|
-
|
|
3565
|
+
validate62.errors = [{ instancePath: instancePath + "/" + key0.replace(/~/g, "~0").replace(/\//g, "~1"), schemaPath: "#/additionalProperties/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3521
3566
|
return false;
|
|
3522
3567
|
}
|
|
3523
3568
|
}
|
|
@@ -3529,18 +3574,18 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3529
3574
|
}
|
|
3530
3575
|
if (_errs1 === errors) {
|
|
3531
3576
|
if (data.asset !== undefined) {
|
|
3532
|
-
if (!(
|
|
3533
|
-
vErrors = vErrors === null ?
|
|
3577
|
+
if (!(validate63(data.asset, { instancePath: instancePath + "/asset", parentData: data, parentDataProperty: "asset", rootData }))) {
|
|
3578
|
+
vErrors = vErrors === null ? validate63.errors : vErrors.concat(validate63.errors);
|
|
3534
3579
|
errors = vErrors.length;
|
|
3535
3580
|
}
|
|
3536
3581
|
}
|
|
3537
3582
|
}
|
|
3538
3583
|
}
|
|
3539
3584
|
else {
|
|
3540
|
-
|
|
3585
|
+
validate62.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
3541
3586
|
return false;
|
|
3542
3587
|
}
|
|
3543
|
-
}
|
|
3588
|
+
} validate62.errors = vErrors; return errors === 0; }
|
|
3544
3589
|
function validate32(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
3545
3590
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3546
3591
|
const _errs1 = errors;
|
|
@@ -3598,8 +3643,8 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3598
3643
|
if (valid0) {
|
|
3599
3644
|
if (data.parser !== undefined) {
|
|
3600
3645
|
const _errs5 = errors;
|
|
3601
|
-
if (!(
|
|
3602
|
-
vErrors = vErrors === null ?
|
|
3646
|
+
if (!(validate62(data.parser, { instancePath: instancePath + "/parser", parentData: data, parentDataProperty: "parser", rootData }))) {
|
|
3647
|
+
vErrors = vErrors === null ? validate62.errors : vErrors.concat(validate62.errors);
|
|
3603
3648
|
errors = vErrors.length;
|
|
3604
3649
|
}
|
|
3605
3650
|
var valid0 = _errs5 === errors;
|
|
@@ -3662,7 +3707,7 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3662
3707
|
} validate32.errors = vErrors; return errors === 0; }
|
|
3663
3708
|
const schema58 = { "description": "Include polyfills or mocks for various node stuff.", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/NodeOptions" }] };
|
|
3664
3709
|
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"] } } };
|
|
3665
|
-
function
|
|
3710
|
+
function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== false) {
|
|
3666
3711
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
3667
3712
|
if (vErrors === null) {
|
|
3668
3713
|
vErrors = [err0];
|
|
@@ -3773,7 +3818,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
3773
3818
|
vErrors.push(err6);
|
|
3774
3819
|
}
|
|
3775
3820
|
errors++;
|
|
3776
|
-
|
|
3821
|
+
validate68.errors = vErrors;
|
|
3777
3822
|
return false;
|
|
3778
3823
|
}
|
|
3779
3824
|
else {
|
|
@@ -3786,7 +3831,7 @@ else {
|
|
|
3786
3831
|
vErrors = null;
|
|
3787
3832
|
}
|
|
3788
3833
|
}
|
|
3789
|
-
}
|
|
3834
|
+
} validate68.errors = vErrors; return errors === 0; }
|
|
3790
3835
|
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" }, "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" }] } } };
|
|
3791
3836
|
const schema61 = { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] };
|
|
3792
3837
|
const schema62 = { "description": "Function acting as plugin.", "instanceof": "Function" };
|
|
@@ -3794,12 +3839,12 @@ const schema63 = { "description": "Create an additional chunk which contains onl
|
|
|
3794
3839
|
const schema64 = { "description": "Options object for splitting chunks into smaller chunks.", "type": "object", "additionalProperties": false, "properties": { "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" }] } } };
|
|
3795
3840
|
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" }, "test": { "description": "Assign modules to a cache group by module name.", "anyOf": [{ "instanceof": "RegExp" }] } } };
|
|
3796
3841
|
const schema66 = { "description": "Size description for limits.", "anyOf": [{ "description": "Size of the javascript part of the chunk.", "type": "number", "minimum": 0 }] };
|
|
3797
|
-
function
|
|
3842
|
+
function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
3798
3843
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
3799
3844
|
const _errs1 = errors;
|
|
3800
3845
|
for (const key0 in data) {
|
|
3801
3846
|
if (!((((((((key0 === "cacheGroups") || (key0 === "chunks")) || (key0 === "enforceSizeThreshold")) || (key0 === "maxAsyncRequests")) || (key0 === "maxInitialRequests")) || (key0 === "minChunks")) || (key0 === "minRemainingSize")) || (key0 === "minSize"))) {
|
|
3802
|
-
|
|
3847
|
+
validate71.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
3803
3848
|
return false;
|
|
3804
3849
|
break;
|
|
3805
3850
|
}
|
|
@@ -4110,7 +4155,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4110
4155
|
vErrors.push(err15);
|
|
4111
4156
|
}
|
|
4112
4157
|
errors++;
|
|
4113
|
-
|
|
4158
|
+
validate71.errors = vErrors;
|
|
4114
4159
|
return false;
|
|
4115
4160
|
}
|
|
4116
4161
|
else {
|
|
@@ -4131,7 +4176,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4131
4176
|
}
|
|
4132
4177
|
}
|
|
4133
4178
|
else {
|
|
4134
|
-
|
|
4179
|
+
validate71.errors = [{ instancePath: instancePath + "/cacheGroups", schemaPath: "#/properties/cacheGroups/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
4135
4180
|
return false;
|
|
4136
4181
|
}
|
|
4137
4182
|
}
|
|
@@ -4168,7 +4213,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4168
4213
|
vErrors.push(err17);
|
|
4169
4214
|
}
|
|
4170
4215
|
errors++;
|
|
4171
|
-
|
|
4216
|
+
validate71.errors = vErrors;
|
|
4172
4217
|
return false;
|
|
4173
4218
|
}
|
|
4174
4219
|
else {
|
|
@@ -4259,7 +4304,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4259
4304
|
vErrors.push(err21);
|
|
4260
4305
|
}
|
|
4261
4306
|
errors++;
|
|
4262
|
-
|
|
4307
|
+
validate71.errors = vErrors;
|
|
4263
4308
|
return false;
|
|
4264
4309
|
}
|
|
4265
4310
|
else {
|
|
@@ -4285,12 +4330,12 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4285
4330
|
if (errors === _errs40) {
|
|
4286
4331
|
if (typeof data10 == "number") {
|
|
4287
4332
|
if (data10 < 1 || isNaN(data10)) {
|
|
4288
|
-
|
|
4333
|
+
validate71.errors = [{ instancePath: instancePath + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4289
4334
|
return false;
|
|
4290
4335
|
}
|
|
4291
4336
|
}
|
|
4292
4337
|
else {
|
|
4293
|
-
|
|
4338
|
+
validate71.errors = [{ instancePath: instancePath + "/maxAsyncRequests", schemaPath: "#/properties/maxAsyncRequests/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4294
4339
|
return false;
|
|
4295
4340
|
}
|
|
4296
4341
|
}
|
|
@@ -4306,12 +4351,12 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4306
4351
|
if (errors === _errs42) {
|
|
4307
4352
|
if (typeof data11 == "number") {
|
|
4308
4353
|
if (data11 < 1 || isNaN(data11)) {
|
|
4309
|
-
|
|
4354
|
+
validate71.errors = [{ instancePath: instancePath + "/maxInitialRequests", schemaPath: "#/properties/maxInitialRequests/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4310
4355
|
return false;
|
|
4311
4356
|
}
|
|
4312
4357
|
}
|
|
4313
4358
|
else {
|
|
4314
|
-
|
|
4359
|
+
validate71.errors = [{ instancePath: instancePath + "/maxInitialRequests", schemaPath: "#/properties/maxInitialRequests/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4315
4360
|
return false;
|
|
4316
4361
|
}
|
|
4317
4362
|
}
|
|
@@ -4327,12 +4372,12 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4327
4372
|
if (errors === _errs44) {
|
|
4328
4373
|
if (typeof data12 == "number") {
|
|
4329
4374
|
if (data12 < 1 || isNaN(data12)) {
|
|
4330
|
-
|
|
4375
|
+
validate71.errors = [{ instancePath: instancePath + "/minChunks", schemaPath: "#/properties/minChunks/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
|
|
4331
4376
|
return false;
|
|
4332
4377
|
}
|
|
4333
4378
|
}
|
|
4334
4379
|
else {
|
|
4335
|
-
|
|
4380
|
+
validate71.errors = [{ instancePath: instancePath + "/minChunks", schemaPath: "#/properties/minChunks/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
|
|
4336
4381
|
return false;
|
|
4337
4382
|
}
|
|
4338
4383
|
}
|
|
@@ -4413,7 +4458,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4413
4458
|
vErrors.push(err25);
|
|
4414
4459
|
}
|
|
4415
4460
|
errors++;
|
|
4416
|
-
|
|
4461
|
+
validate71.errors = vErrors;
|
|
4417
4462
|
return false;
|
|
4418
4463
|
}
|
|
4419
4464
|
else {
|
|
@@ -4504,7 +4549,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4504
4549
|
vErrors.push(err29);
|
|
4505
4550
|
}
|
|
4506
4551
|
errors++;
|
|
4507
|
-
|
|
4552
|
+
validate71.errors = vErrors;
|
|
4508
4553
|
return false;
|
|
4509
4554
|
}
|
|
4510
4555
|
else {
|
|
@@ -4533,16 +4578,16 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4533
4578
|
}
|
|
4534
4579
|
}
|
|
4535
4580
|
else {
|
|
4536
|
-
|
|
4581
|
+
validate71.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
4537
4582
|
return false;
|
|
4538
4583
|
}
|
|
4539
|
-
}
|
|
4540
|
-
function
|
|
4584
|
+
} validate71.errors = vErrors; return errors === 0; }
|
|
4585
|
+
function validate70(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
4541
4586
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
4542
4587
|
const _errs1 = errors;
|
|
4543
4588
|
for (const key0 in data) {
|
|
4544
4589
|
if (!((((((((key0 === "chunkIds") || (key0 === "minimize")) || (key0 === "minimizer")) || (key0 === "moduleIds")) || (key0 === "removeAvailableModules")) || (key0 === "runtimeChunk")) || (key0 === "sideEffects")) || (key0 === "splitChunks"))) {
|
|
4545
|
-
|
|
4590
|
+
validate70.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
4546
4591
|
return false;
|
|
4547
4592
|
break;
|
|
4548
4593
|
}
|
|
@@ -4552,7 +4597,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4552
4597
|
let data0 = data.chunkIds;
|
|
4553
4598
|
const _errs2 = errors;
|
|
4554
4599
|
if (data0 !== "named" && data0 !== "deterministic") {
|
|
4555
|
-
|
|
4600
|
+
validate70.errors = [{ instancePath: instancePath + "/chunkIds", schemaPath: "#/properties/chunkIds/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
|
|
4556
4601
|
return false;
|
|
4557
4602
|
}
|
|
4558
4603
|
var valid0 = _errs2 === errors;
|
|
@@ -4564,7 +4609,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4564
4609
|
if (data.minimize !== undefined) {
|
|
4565
4610
|
const _errs3 = errors;
|
|
4566
4611
|
if (typeof data.minimize !== "boolean") {
|
|
4567
|
-
|
|
4612
|
+
validate70.errors = [{ instancePath: instancePath + "/minimize", schemaPath: "#/properties/minimize/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
4568
4613
|
return false;
|
|
4569
4614
|
}
|
|
4570
4615
|
var valid0 = _errs3 === errors;
|
|
@@ -4667,7 +4712,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4667
4712
|
vErrors.push(err5);
|
|
4668
4713
|
}
|
|
4669
4714
|
errors++;
|
|
4670
|
-
|
|
4715
|
+
validate70.errors = vErrors;
|
|
4671
4716
|
return false;
|
|
4672
4717
|
}
|
|
4673
4718
|
else {
|
|
@@ -4688,7 +4733,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4688
4733
|
}
|
|
4689
4734
|
}
|
|
4690
4735
|
else {
|
|
4691
|
-
|
|
4736
|
+
validate70.errors = [{ instancePath: instancePath + "/minimizer", schemaPath: "#/properties/minimizer/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
4692
4737
|
return false;
|
|
4693
4738
|
}
|
|
4694
4739
|
}
|
|
@@ -4702,7 +4747,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4702
4747
|
let data5 = data.moduleIds;
|
|
4703
4748
|
const _errs17 = errors;
|
|
4704
4749
|
if (data5 !== "named" && data5 !== "deterministic") {
|
|
4705
|
-
|
|
4750
|
+
validate70.errors = [{ instancePath: instancePath + "/moduleIds", schemaPath: "#/properties/moduleIds/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
|
|
4706
4751
|
return false;
|
|
4707
4752
|
}
|
|
4708
4753
|
var valid0 = _errs17 === errors;
|
|
@@ -4714,7 +4759,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4714
4759
|
if (data.removeAvailableModules !== undefined) {
|
|
4715
4760
|
const _errs18 = errors;
|
|
4716
4761
|
if (typeof data.removeAvailableModules !== "boolean") {
|
|
4717
|
-
|
|
4762
|
+
validate70.errors = [{ instancePath: instancePath + "/removeAvailableModules", schemaPath: "#/properties/removeAvailableModules/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
4718
4763
|
return false;
|
|
4719
4764
|
}
|
|
4720
4765
|
var valid0 = _errs18 === errors;
|
|
@@ -4854,7 +4899,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4854
4899
|
vErrors.push(err13);
|
|
4855
4900
|
}
|
|
4856
4901
|
errors++;
|
|
4857
|
-
|
|
4902
|
+
validate70.errors = vErrors;
|
|
4858
4903
|
return false;
|
|
4859
4904
|
}
|
|
4860
4905
|
else {
|
|
@@ -4916,7 +4961,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4916
4961
|
vErrors.push(err16);
|
|
4917
4962
|
}
|
|
4918
4963
|
errors++;
|
|
4919
|
-
|
|
4964
|
+
validate70.errors = vErrors;
|
|
4920
4965
|
return false;
|
|
4921
4966
|
}
|
|
4922
4967
|
else {
|
|
@@ -4956,8 +5001,8 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4956
5001
|
valid11 = valid11 || _valid4;
|
|
4957
5002
|
if (!valid11) {
|
|
4958
5003
|
const _errs42 = errors;
|
|
4959
|
-
if (!(
|
|
4960
|
-
vErrors = vErrors === null ?
|
|
5004
|
+
if (!(validate71(data10, { instancePath: instancePath + "/splitChunks", parentData: data, parentDataProperty: "splitChunks", rootData }))) {
|
|
5005
|
+
vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
|
|
4961
5006
|
errors = vErrors.length;
|
|
4962
5007
|
}
|
|
4963
5008
|
var _valid4 = _errs42 === errors;
|
|
@@ -4972,7 +5017,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4972
5017
|
vErrors.push(err18);
|
|
4973
5018
|
}
|
|
4974
5019
|
errors++;
|
|
4975
|
-
|
|
5020
|
+
validate70.errors = vErrors;
|
|
4976
5021
|
return false;
|
|
4977
5022
|
}
|
|
4978
5023
|
else {
|
|
@@ -5001,10 +5046,10 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5001
5046
|
}
|
|
5002
5047
|
}
|
|
5003
5048
|
else {
|
|
5004
|
-
|
|
5049
|
+
validate70.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
5005
5050
|
return false;
|
|
5006
5051
|
}
|
|
5007
|
-
}
|
|
5052
|
+
} validate70.errors = vErrors; return errors === 0; }
|
|
5008
5053
|
const schema69 = { "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" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "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" } } };
|
|
5009
5054
|
const schema70 = { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" };
|
|
5010
5055
|
const schema71 = { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] };
|
|
@@ -5020,7 +5065,7 @@ const schema95 = { "description": "If `output.libraryTarget` is set to umd and `
|
|
|
5020
5065
|
const schema104 = { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 };
|
|
5021
5066
|
const schema72 = { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] };
|
|
5022
5067
|
const schema73 = { "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" } } };
|
|
5023
|
-
function
|
|
5068
|
+
function validate75(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") {
|
|
5024
5069
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
|
|
5025
5070
|
if (vErrors === null) {
|
|
5026
5071
|
vErrors = [err0];
|
|
@@ -5147,7 +5192,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5147
5192
|
vErrors.push(err7);
|
|
5148
5193
|
}
|
|
5149
5194
|
errors++;
|
|
5150
|
-
|
|
5195
|
+
validate75.errors = vErrors;
|
|
5151
5196
|
return false;
|
|
5152
5197
|
}
|
|
5153
5198
|
else {
|
|
@@ -5160,10 +5205,10 @@ else {
|
|
|
5160
5205
|
vErrors = null;
|
|
5161
5206
|
}
|
|
5162
5207
|
}
|
|
5163
|
-
}
|
|
5208
|
+
} validate75.errors = vErrors; return errors === 0; }
|
|
5164
5209
|
const schema74 = { "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" }] };
|
|
5165
5210
|
const schema75 = { "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" }] };
|
|
5166
|
-
function
|
|
5211
|
+
function validate77(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) {
|
|
5167
5212
|
if (typeof data === "string") {
|
|
5168
5213
|
if (data.length < 1) {
|
|
5169
5214
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5232,7 +5277,7 @@ else {
|
|
|
5232
5277
|
vErrors.push(err4);
|
|
5233
5278
|
}
|
|
5234
5279
|
errors++;
|
|
5235
|
-
|
|
5280
|
+
validate77.errors = vErrors;
|
|
5236
5281
|
return false;
|
|
5237
5282
|
}
|
|
5238
5283
|
else {
|
|
@@ -5245,9 +5290,9 @@ else {
|
|
|
5245
5290
|
vErrors = null;
|
|
5246
5291
|
}
|
|
5247
5292
|
}
|
|
5248
|
-
}
|
|
5293
|
+
} validate77.errors = vErrors; return errors === 0; }
|
|
5249
5294
|
const schema76 = { "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" }] };
|
|
5250
|
-
function
|
|
5295
|
+
function validate79(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) {
|
|
5251
5296
|
if (typeof data === "string") {
|
|
5252
5297
|
if (data.length < 1) {
|
|
5253
5298
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5316,7 +5361,7 @@ else {
|
|
|
5316
5361
|
vErrors.push(err4);
|
|
5317
5362
|
}
|
|
5318
5363
|
errors++;
|
|
5319
|
-
|
|
5364
|
+
validate79.errors = vErrors;
|
|
5320
5365
|
return false;
|
|
5321
5366
|
}
|
|
5322
5367
|
else {
|
|
@@ -5329,9 +5374,9 @@ else {
|
|
|
5329
5374
|
vErrors = null;
|
|
5330
5375
|
}
|
|
5331
5376
|
}
|
|
5332
|
-
}
|
|
5377
|
+
} validate79.errors = vErrors; return errors === 0; }
|
|
5333
5378
|
const schema78 = { "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" }] };
|
|
5334
|
-
function
|
|
5379
|
+
function validate81(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) {
|
|
5335
5380
|
if (typeof data === "string") {
|
|
5336
5381
|
if (data.length < 1) {
|
|
5337
5382
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5400,7 +5445,7 @@ else {
|
|
|
5400
5445
|
vErrors.push(err4);
|
|
5401
5446
|
}
|
|
5402
5447
|
errors++;
|
|
5403
|
-
|
|
5448
|
+
validate81.errors = vErrors;
|
|
5404
5449
|
return false;
|
|
5405
5450
|
}
|
|
5406
5451
|
else {
|
|
@@ -5413,9 +5458,9 @@ else {
|
|
|
5413
5458
|
vErrors = null;
|
|
5414
5459
|
}
|
|
5415
5460
|
}
|
|
5416
|
-
}
|
|
5461
|
+
} validate81.errors = vErrors; return errors === 0; }
|
|
5417
5462
|
const schema80 = { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } };
|
|
5418
|
-
function
|
|
5463
|
+
function validate83(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
5419
5464
|
if (Array.isArray(data)) {
|
|
5420
5465
|
var valid0 = true;
|
|
5421
5466
|
const len0 = data.length;
|
|
@@ -5461,7 +5506,7 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5461
5506
|
vErrors.push(err2);
|
|
5462
5507
|
}
|
|
5463
5508
|
errors++;
|
|
5464
|
-
|
|
5509
|
+
validate83.errors = vErrors;
|
|
5465
5510
|
return false;
|
|
5466
5511
|
}
|
|
5467
5512
|
else {
|
|
@@ -5482,12 +5527,12 @@ function validate82(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5482
5527
|
}
|
|
5483
5528
|
}
|
|
5484
5529
|
else {
|
|
5485
|
-
|
|
5530
|
+
validate83.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
5486
5531
|
return false;
|
|
5487
5532
|
}
|
|
5488
|
-
}
|
|
5533
|
+
} validate83.errors = vErrors; return errors === 0; }
|
|
5489
5534
|
const schema83 = { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } };
|
|
5490
|
-
function
|
|
5535
|
+
function validate86(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
5491
5536
|
if (Array.isArray(data)) {
|
|
5492
5537
|
var valid0 = true;
|
|
5493
5538
|
const len0 = data.length;
|
|
@@ -5533,7 +5578,7 @@ function validate85(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5533
5578
|
vErrors.push(err2);
|
|
5534
5579
|
}
|
|
5535
5580
|
errors++;
|
|
5536
|
-
|
|
5581
|
+
validate86.errors = vErrors;
|
|
5537
5582
|
return false;
|
|
5538
5583
|
}
|
|
5539
5584
|
else {
|
|
@@ -5554,12 +5599,12 @@ function validate85(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5554
5599
|
}
|
|
5555
5600
|
}
|
|
5556
5601
|
else {
|
|
5557
|
-
|
|
5602
|
+
validate86.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
5558
5603
|
return false;
|
|
5559
5604
|
}
|
|
5560
|
-
}
|
|
5605
|
+
} validate86.errors = vErrors; return errors === 0; }
|
|
5561
5606
|
const schema85 = { "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" }] };
|
|
5562
|
-
function
|
|
5607
|
+
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) {
|
|
5563
5608
|
if (typeof data === "string") {
|
|
5564
5609
|
if (data.length < 1) {
|
|
5565
5610
|
const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
|
|
@@ -5628,7 +5673,7 @@ else {
|
|
|
5628
5673
|
vErrors.push(err4);
|
|
5629
5674
|
}
|
|
5630
5675
|
errors++;
|
|
5631
|
-
|
|
5676
|
+
validate88.errors = vErrors;
|
|
5632
5677
|
return false;
|
|
5633
5678
|
}
|
|
5634
5679
|
else {
|
|
@@ -5641,11 +5686,11 @@ else {
|
|
|
5641
5686
|
vErrors = null;
|
|
5642
5687
|
}
|
|
5643
5688
|
}
|
|
5644
|
-
}
|
|
5689
|
+
} validate88.errors = vErrors; return errors === 0; }
|
|
5645
5690
|
const schema89 = { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] };
|
|
5646
5691
|
const schema90 = { "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" }] };
|
|
5647
5692
|
const schema91 = { "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 }] } } };
|
|
5648
|
-
function
|
|
5693
|
+
function validate91(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (errors === _errs1) {
|
|
5649
5694
|
if (Array.isArray(data)) {
|
|
5650
5695
|
if (data.length < 1) {
|
|
5651
5696
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
|
|
@@ -5956,7 +6001,7 @@ function validate90(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5956
6001
|
vErrors.push(err18);
|
|
5957
6002
|
}
|
|
5958
6003
|
errors++;
|
|
5959
|
-
|
|
6004
|
+
validate91.errors = vErrors;
|
|
5960
6005
|
return false;
|
|
5961
6006
|
}
|
|
5962
6007
|
else {
|
|
@@ -5969,20 +6014,20 @@ else {
|
|
|
5969
6014
|
vErrors = null;
|
|
5970
6015
|
}
|
|
5971
6016
|
}
|
|
5972
|
-
}
|
|
6017
|
+
} validate91.errors = vErrors; return errors === 0; }
|
|
5973
6018
|
const schema92 = { "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"] };
|
|
5974
|
-
function
|
|
6019
|
+
function validate93(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
5975
6020
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
5976
6021
|
let missing0;
|
|
5977
6022
|
if ((data.type === undefined) && (missing0 = "type")) {
|
|
5978
|
-
|
|
6023
|
+
validate93.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
|
|
5979
6024
|
return false;
|
|
5980
6025
|
}
|
|
5981
6026
|
else {
|
|
5982
6027
|
const _errs1 = errors;
|
|
5983
6028
|
for (const key0 in data) {
|
|
5984
6029
|
if (!(((((key0 === "auxiliaryComment") || (key0 === "export")) || (key0 === "name")) || (key0 === "type")) || (key0 === "umdNamedDefine"))) {
|
|
5985
|
-
|
|
6030
|
+
validate93.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
5986
6031
|
return false;
|
|
5987
6032
|
break;
|
|
5988
6033
|
}
|
|
@@ -5990,8 +6035,8 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5990
6035
|
if (_errs1 === errors) {
|
|
5991
6036
|
if (data.auxiliaryComment !== undefined) {
|
|
5992
6037
|
const _errs2 = errors;
|
|
5993
|
-
if (!(
|
|
5994
|
-
vErrors = vErrors === null ?
|
|
6038
|
+
if (!(validate75(data.auxiliaryComment, { instancePath: instancePath + "/auxiliaryComment", parentData: data, parentDataProperty: "auxiliaryComment", rootData }))) {
|
|
6039
|
+
vErrors = vErrors === null ? validate75.errors : vErrors.concat(validate75.errors);
|
|
5995
6040
|
errors = vErrors.length;
|
|
5996
6041
|
}
|
|
5997
6042
|
var valid0 = _errs2 === errors;
|
|
@@ -6094,7 +6139,7 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6094
6139
|
vErrors.push(err5);
|
|
6095
6140
|
}
|
|
6096
6141
|
errors++;
|
|
6097
|
-
|
|
6142
|
+
validate93.errors = vErrors;
|
|
6098
6143
|
return false;
|
|
6099
6144
|
}
|
|
6100
6145
|
else {
|
|
@@ -6116,8 +6161,8 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6116
6161
|
if (valid0) {
|
|
6117
6162
|
if (data.name !== undefined) {
|
|
6118
6163
|
const _errs12 = errors;
|
|
6119
|
-
if (!(
|
|
6120
|
-
vErrors = vErrors === null ?
|
|
6164
|
+
if (!(validate91(data.name, { instancePath: instancePath + "/name", parentData: data, parentDataProperty: "name", rootData }))) {
|
|
6165
|
+
vErrors = vErrors === null ? validate91.errors : vErrors.concat(validate91.errors);
|
|
6121
6166
|
errors = vErrors.length;
|
|
6122
6167
|
}
|
|
6123
6168
|
var valid0 = _errs12 === errors;
|
|
@@ -6168,7 +6213,7 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6168
6213
|
vErrors.push(err8);
|
|
6169
6214
|
}
|
|
6170
6215
|
errors++;
|
|
6171
|
-
|
|
6216
|
+
validate93.errors = vErrors;
|
|
6172
6217
|
return false;
|
|
6173
6218
|
}
|
|
6174
6219
|
else {
|
|
@@ -6191,7 +6236,7 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6191
6236
|
if (data.umdNamedDefine !== undefined) {
|
|
6192
6237
|
const _errs19 = errors;
|
|
6193
6238
|
if (typeof data.umdNamedDefine !== "boolean") {
|
|
6194
|
-
|
|
6239
|
+
validate93.errors = [{ instancePath: instancePath + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6195
6240
|
return false;
|
|
6196
6241
|
}
|
|
6197
6242
|
var valid0 = _errs19 === errors;
|
|
@@ -6207,17 +6252,17 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6207
6252
|
}
|
|
6208
6253
|
}
|
|
6209
6254
|
else {
|
|
6210
|
-
|
|
6255
|
+
validate93.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
6211
6256
|
return false;
|
|
6212
6257
|
}
|
|
6213
|
-
}
|
|
6214
|
-
function
|
|
6215
|
-
vErrors = vErrors === null ?
|
|
6258
|
+
} validate93.errors = vErrors; return errors === 0; }
|
|
6259
|
+
function validate90(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (!(validate91(data, { instancePath, parentData, parentDataProperty, rootData }))) {
|
|
6260
|
+
vErrors = vErrors === null ? validate91.errors : vErrors.concat(validate91.errors);
|
|
6216
6261
|
errors = vErrors.length;
|
|
6217
6262
|
} var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) {
|
|
6218
6263
|
const _errs2 = errors;
|
|
6219
|
-
if (!(
|
|
6220
|
-
vErrors = vErrors === null ?
|
|
6264
|
+
if (!(validate93(data, { instancePath, parentData, parentDataProperty, rootData }))) {
|
|
6265
|
+
vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors);
|
|
6221
6266
|
errors = vErrors.length;
|
|
6222
6267
|
}
|
|
6223
6268
|
var _valid0 = _errs2 === errors;
|
|
@@ -6231,7 +6276,7 @@ function validate89(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6231
6276
|
vErrors.push(err0);
|
|
6232
6277
|
}
|
|
6233
6278
|
errors++;
|
|
6234
|
-
|
|
6279
|
+
validate90.errors = vErrors;
|
|
6235
6280
|
return false;
|
|
6236
6281
|
}
|
|
6237
6282
|
else {
|
|
@@ -6244,10 +6289,10 @@ else {
|
|
|
6244
6289
|
vErrors = null;
|
|
6245
6290
|
}
|
|
6246
6291
|
}
|
|
6247
|
-
}
|
|
6292
|
+
} validate90.errors = vErrors; return errors === 0; }
|
|
6248
6293
|
const schema100 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] };
|
|
6249
6294
|
const schema101 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] };
|
|
6250
|
-
function
|
|
6295
|
+
function validate98(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== "auto") {
|
|
6251
6296
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
6252
6297
|
if (vErrors === null) {
|
|
6253
6298
|
vErrors = [err0];
|
|
@@ -6305,7 +6350,7 @@ function validate97(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6305
6350
|
vErrors.push(err3);
|
|
6306
6351
|
}
|
|
6307
6352
|
errors++;
|
|
6308
|
-
|
|
6353
|
+
validate98.errors = vErrors;
|
|
6309
6354
|
return false;
|
|
6310
6355
|
}
|
|
6311
6356
|
else {
|
|
@@ -6318,13 +6363,13 @@ else {
|
|
|
6318
6363
|
vErrors = null;
|
|
6319
6364
|
}
|
|
6320
6365
|
}
|
|
6321
|
-
}
|
|
6322
|
-
function
|
|
6366
|
+
} validate98.errors = vErrors; return errors === 0; }
|
|
6367
|
+
function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
6323
6368
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
6324
6369
|
const _errs1 = errors;
|
|
6325
6370
|
for (const key0 in data) {
|
|
6326
6371
|
if (!(func2.call(schema69.properties, key0))) {
|
|
6327
|
-
|
|
6372
|
+
validate74.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
|
|
6328
6373
|
return false;
|
|
6329
6374
|
break;
|
|
6330
6375
|
}
|
|
@@ -6333,7 +6378,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6333
6378
|
if (data.iife !== undefined) {
|
|
6334
6379
|
const _errs2 = errors;
|
|
6335
6380
|
if (typeof data.iife !== "boolean") {
|
|
6336
|
-
|
|
6381
|
+
validate74.errors = [{ instancePath: instancePath + "/iife", schemaPath: "#/definitions/Iife/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6337
6382
|
return false;
|
|
6338
6383
|
}
|
|
6339
6384
|
var valid0 = _errs2 === errors;
|
|
@@ -6368,7 +6413,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6368
6413
|
vErrors.push(err1);
|
|
6369
6414
|
}
|
|
6370
6415
|
errors++;
|
|
6371
|
-
|
|
6416
|
+
validate74.errors = vErrors;
|
|
6372
6417
|
return false;
|
|
6373
6418
|
}
|
|
6374
6419
|
else {
|
|
@@ -6394,8 +6439,8 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6394
6439
|
let valid4 = false;
|
|
6395
6440
|
let passing0 = null;
|
|
6396
6441
|
const _errs12 = errors;
|
|
6397
|
-
if (!(
|
|
6398
|
-
vErrors = vErrors === null ?
|
|
6442
|
+
if (!(validate75(data.auxiliaryComment, { instancePath: instancePath + "/auxiliaryComment", parentData: data, parentDataProperty: "auxiliaryComment", rootData }))) {
|
|
6443
|
+
vErrors = vErrors === null ? validate75.errors : vErrors.concat(validate75.errors);
|
|
6399
6444
|
errors = vErrors.length;
|
|
6400
6445
|
}
|
|
6401
6446
|
var _valid1 = _errs12 === errors;
|
|
@@ -6412,7 +6457,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6412
6457
|
vErrors.push(err2);
|
|
6413
6458
|
}
|
|
6414
6459
|
errors++;
|
|
6415
|
-
|
|
6460
|
+
validate74.errors = vErrors;
|
|
6416
6461
|
return false;
|
|
6417
6462
|
}
|
|
6418
6463
|
else {
|
|
@@ -6434,8 +6479,8 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6434
6479
|
if (valid0) {
|
|
6435
6480
|
if (data.chunkFilename !== undefined) {
|
|
6436
6481
|
const _errs13 = errors;
|
|
6437
|
-
if (!(
|
|
6438
|
-
vErrors = vErrors === null ?
|
|
6482
|
+
if (!(validate77(data.chunkFilename, { instancePath: instancePath + "/chunkFilename", parentData: data, parentDataProperty: "chunkFilename", rootData }))) {
|
|
6483
|
+
vErrors = vErrors === null ? validate77.errors : vErrors.concat(validate77.errors);
|
|
6439
6484
|
errors = vErrors.length;
|
|
6440
6485
|
}
|
|
6441
6486
|
var valid0 = _errs13 === errors;
|
|
@@ -6446,8 +6491,8 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6446
6491
|
if (valid0) {
|
|
6447
6492
|
if (data.cssChunkFilename !== undefined) {
|
|
6448
6493
|
const _errs14 = errors;
|
|
6449
|
-
if (!(
|
|
6450
|
-
vErrors = vErrors === null ?
|
|
6494
|
+
if (!(validate79(data.cssChunkFilename, { instancePath: instancePath + "/cssChunkFilename", parentData: data, parentDataProperty: "cssChunkFilename", rootData }))) {
|
|
6495
|
+
vErrors = vErrors === null ? validate79.errors : vErrors.concat(validate79.errors);
|
|
6451
6496
|
errors = vErrors.length;
|
|
6452
6497
|
}
|
|
6453
6498
|
var valid0 = _errs14 === errors;
|
|
@@ -6458,8 +6503,8 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6458
6503
|
if (valid0) {
|
|
6459
6504
|
if (data.cssFilename !== undefined) {
|
|
6460
6505
|
const _errs15 = errors;
|
|
6461
|
-
if (!(
|
|
6462
|
-
vErrors = vErrors === null ?
|
|
6506
|
+
if (!(validate81(data.cssFilename, { instancePath: instancePath + "/cssFilename", parentData: data, parentDataProperty: "cssFilename", rootData }))) {
|
|
6507
|
+
vErrors = vErrors === null ? validate81.errors : vErrors.concat(validate81.errors);
|
|
6463
6508
|
errors = vErrors.length;
|
|
6464
6509
|
}
|
|
6465
6510
|
var valid0 = _errs15 === errors;
|
|
@@ -6470,8 +6515,8 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6470
6515
|
if (valid0) {
|
|
6471
6516
|
if (data.enabledWasmLoadingTypes !== undefined) {
|
|
6472
6517
|
const _errs16 = errors;
|
|
6473
|
-
if (!(
|
|
6474
|
-
vErrors = vErrors === null ?
|
|
6518
|
+
if (!(validate83(data.enabledWasmLoadingTypes, { instancePath: instancePath + "/enabledWasmLoadingTypes", parentData: data, parentDataProperty: "enabledWasmLoadingTypes", rootData }))) {
|
|
6519
|
+
vErrors = vErrors === null ? validate83.errors : vErrors.concat(validate83.errors);
|
|
6475
6520
|
errors = vErrors.length;
|
|
6476
6521
|
}
|
|
6477
6522
|
var valid0 = _errs16 === errors;
|
|
@@ -6495,7 +6540,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6495
6540
|
if (data.webassemblyModuleFilename !== undefined) {
|
|
6496
6541
|
const _errs18 = errors;
|
|
6497
6542
|
if (typeof data.webassemblyModuleFilename !== "string") {
|
|
6498
|
-
|
|
6543
|
+
validate74.errors = [{ instancePath: instancePath + "/webassemblyModuleFilename", schemaPath: "#/definitions/WebassemblyModuleFilename/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6499
6544
|
return false;
|
|
6500
6545
|
}
|
|
6501
6546
|
var valid0 = _errs18 === errors;
|
|
@@ -6506,8 +6551,8 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6506
6551
|
if (valid0) {
|
|
6507
6552
|
if (data.enabledLibraryTypes !== undefined) {
|
|
6508
6553
|
const _errs21 = errors;
|
|
6509
|
-
if (!(
|
|
6510
|
-
vErrors = vErrors === null ?
|
|
6554
|
+
if (!(validate86(data.enabledLibraryTypes, { instancePath: instancePath + "/enabledLibraryTypes", parentData: data, parentDataProperty: "enabledLibraryTypes", rootData }))) {
|
|
6555
|
+
vErrors = vErrors === null ? validate86.errors : vErrors.concat(validate86.errors);
|
|
6511
6556
|
errors = vErrors.length;
|
|
6512
6557
|
}
|
|
6513
6558
|
var valid0 = _errs21 === errors;
|
|
@@ -6518,8 +6563,8 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6518
6563
|
if (valid0) {
|
|
6519
6564
|
if (data.filename !== undefined) {
|
|
6520
6565
|
const _errs22 = errors;
|
|
6521
|
-
if (!(
|
|
6522
|
-
vErrors = vErrors === null ?
|
|
6566
|
+
if (!(validate88(data.filename, { instancePath: instancePath + "/filename", parentData: data, parentDataProperty: "filename", rootData }))) {
|
|
6567
|
+
vErrors = vErrors === null ? validate88.errors : vErrors.concat(validate88.errors);
|
|
6523
6568
|
errors = vErrors.length;
|
|
6524
6569
|
}
|
|
6525
6570
|
var valid0 = _errs22 === errors;
|
|
@@ -6535,12 +6580,12 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6535
6580
|
if (errors === _errs24) {
|
|
6536
6581
|
if (typeof data11 === "string") {
|
|
6537
6582
|
if (data11.length < 1) {
|
|
6538
|
-
|
|
6583
|
+
validate74.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
6539
6584
|
return false;
|
|
6540
6585
|
}
|
|
6541
6586
|
}
|
|
6542
6587
|
else {
|
|
6543
|
-
|
|
6588
|
+
validate74.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6544
6589
|
return false;
|
|
6545
6590
|
}
|
|
6546
6591
|
}
|
|
@@ -6553,7 +6598,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6553
6598
|
if (data.importFunctionName !== undefined) {
|
|
6554
6599
|
const _errs26 = errors;
|
|
6555
6600
|
if (typeof data.importFunctionName !== "string") {
|
|
6556
|
-
|
|
6601
|
+
validate74.errors = [{ instancePath: instancePath + "/importFunctionName", schemaPath: "#/definitions/ImportFunctionName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6557
6602
|
return false;
|
|
6558
6603
|
}
|
|
6559
6604
|
var valid0 = _errs26 === errors;
|
|
@@ -6564,8 +6609,8 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6564
6609
|
if (valid0) {
|
|
6565
6610
|
if (data.library !== undefined) {
|
|
6566
6611
|
const _errs29 = errors;
|
|
6567
|
-
if (!(
|
|
6568
|
-
vErrors = vErrors === null ?
|
|
6612
|
+
if (!(validate90(data.library, { instancePath: instancePath + "/library", parentData: data, parentDataProperty: "library", rootData }))) {
|
|
6613
|
+
vErrors = vErrors === null ? validate90.errors : vErrors.concat(validate90.errors);
|
|
6569
6614
|
errors = vErrors.length;
|
|
6570
6615
|
}
|
|
6571
6616
|
var valid0 = _errs29 === errors;
|
|
@@ -6698,7 +6743,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6698
6743
|
vErrors.push(err9);
|
|
6699
6744
|
}
|
|
6700
6745
|
errors++;
|
|
6701
|
-
|
|
6746
|
+
validate74.errors = vErrors;
|
|
6702
6747
|
return false;
|
|
6703
6748
|
}
|
|
6704
6749
|
else {
|
|
@@ -6790,7 +6835,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6790
6835
|
vErrors.push(err13);
|
|
6791
6836
|
}
|
|
6792
6837
|
errors++;
|
|
6793
|
-
|
|
6838
|
+
validate74.errors = vErrors;
|
|
6794
6839
|
return false;
|
|
6795
6840
|
}
|
|
6796
6841
|
else {
|
|
@@ -6813,7 +6858,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6813
6858
|
if (data.module !== undefined) {
|
|
6814
6859
|
const _errs49 = errors;
|
|
6815
6860
|
if (typeof data.module !== "boolean") {
|
|
6816
|
-
|
|
6861
|
+
validate74.errors = [{ instancePath: instancePath + "/module", schemaPath: "#/definitions/OutputModule/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6817
6862
|
return false;
|
|
6818
6863
|
}
|
|
6819
6864
|
var valid0 = _errs49 === errors;
|
|
@@ -6825,7 +6870,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6825
6870
|
if (data.path !== undefined) {
|
|
6826
6871
|
const _errs52 = errors;
|
|
6827
6872
|
if (typeof data.path !== "string") {
|
|
6828
|
-
|
|
6873
|
+
validate74.errors = [{ instancePath: instancePath + "/path", schemaPath: "#/definitions/Path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6829
6874
|
return false;
|
|
6830
6875
|
}
|
|
6831
6876
|
var valid0 = _errs52 === errors;
|
|
@@ -6836,8 +6881,8 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6836
6881
|
if (valid0) {
|
|
6837
6882
|
if (data.publicPath !== undefined) {
|
|
6838
6883
|
const _errs55 = errors;
|
|
6839
|
-
if (!(
|
|
6840
|
-
vErrors = vErrors === null ?
|
|
6884
|
+
if (!(validate98(data.publicPath, { instancePath: instancePath + "/publicPath", parentData: data, parentDataProperty: "publicPath", rootData }))) {
|
|
6885
|
+
vErrors = vErrors === null ? validate98.errors : vErrors.concat(validate98.errors);
|
|
6841
6886
|
errors = vErrors.length;
|
|
6842
6887
|
}
|
|
6843
6888
|
var valid0 = _errs55 === errors;
|
|
@@ -6849,7 +6894,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6849
6894
|
if (data.strictModuleErrorHandling !== undefined) {
|
|
6850
6895
|
const _errs56 = errors;
|
|
6851
6896
|
if (typeof data.strictModuleErrorHandling !== "boolean") {
|
|
6852
|
-
|
|
6897
|
+
validate74.errors = [{ instancePath: instancePath + "/strictModuleErrorHandling", schemaPath: "#/definitions/StrictModuleErrorHandling/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
|
|
6853
6898
|
return false;
|
|
6854
6899
|
}
|
|
6855
6900
|
var valid0 = _errs56 === errors;
|
|
@@ -6888,7 +6933,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6888
6933
|
vErrors.push(err15);
|
|
6889
6934
|
}
|
|
6890
6935
|
errors++;
|
|
6891
|
-
|
|
6936
|
+
validate74.errors = vErrors;
|
|
6892
6937
|
return false;
|
|
6893
6938
|
}
|
|
6894
6939
|
else {
|
|
@@ -6915,12 +6960,12 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6915
6960
|
if (errors === _errs65) {
|
|
6916
6961
|
if (typeof data22 === "string") {
|
|
6917
6962
|
if (data22.length < 1) {
|
|
6918
|
-
|
|
6963
|
+
validate74.errors = [{ instancePath: instancePath + "/uniqueName", schemaPath: "#/definitions/UniqueName/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
|
|
6919
6964
|
return false;
|
|
6920
6965
|
}
|
|
6921
6966
|
}
|
|
6922
6967
|
else {
|
|
6923
|
-
|
|
6968
|
+
validate74.errors = [{ instancePath: instancePath + "/uniqueName", schemaPath: "#/definitions/UniqueName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
|
|
6924
6969
|
return false;
|
|
6925
6970
|
}
|
|
6926
6971
|
}
|
|
@@ -6953,12 +6998,12 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
6953
6998
|
}
|
|
6954
6999
|
}
|
|
6955
7000
|
else {
|
|
6956
|
-
|
|
7001
|
+
validate74.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
|
|
6957
7002
|
return false;
|
|
6958
7003
|
}
|
|
6959
|
-
}
|
|
7004
|
+
} validate74.errors = vErrors; return errors === 0; }
|
|
6960
7005
|
const schema105 = { "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" }] } };
|
|
6961
|
-
function
|
|
7006
|
+
function validate101(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
6962
7007
|
if (Array.isArray(data)) {
|
|
6963
7008
|
var valid0 = true;
|
|
6964
7009
|
const len0 = data.length;
|
|
@@ -7034,7 +7079,7 @@ function validate100(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7034
7079
|
vErrors.push(err4);
|
|
7035
7080
|
}
|
|
7036
7081
|
errors++;
|
|
7037
|
-
|
|
7082
|
+
validate101.errors = vErrors;
|
|
7038
7083
|
return false;
|
|
7039
7084
|
}
|
|
7040
7085
|
else {
|
|
@@ -7055,13 +7100,13 @@ function validate100(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7055
7100
|
}
|
|
7056
7101
|
}
|
|
7057
7102
|
else {
|
|
7058
|
-
|
|
7103
|
+
validate101.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
|
|
7059
7104
|
return false;
|
|
7060
7105
|
}
|
|
7061
|
-
}
|
|
7106
|
+
} validate101.errors = vErrors; return errors === 0; }
|
|
7062
7107
|
const schema108 = { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] };
|
|
7063
|
-
function
|
|
7064
|
-
vErrors = vErrors === null ?
|
|
7108
|
+
function validate103(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 (!(validate49(data, { instancePath, parentData, parentDataProperty, rootData }))) {
|
|
7109
|
+
vErrors = vErrors === null ? validate49.errors : vErrors.concat(validate49.errors);
|
|
7065
7110
|
errors = vErrors.length;
|
|
7066
7111
|
} var _valid0 = _errs1 === errors; if (_valid0) {
|
|
7067
7112
|
valid0 = true;
|
|
@@ -7075,7 +7120,7 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7075
7120
|
vErrors.push(err0);
|
|
7076
7121
|
}
|
|
7077
7122
|
errors++;
|
|
7078
|
-
|
|
7123
|
+
validate103.errors = vErrors;
|
|
7079
7124
|
return false;
|
|
7080
7125
|
}
|
|
7081
7126
|
else {
|
|
@@ -7088,10 +7133,10 @@ else {
|
|
|
7088
7133
|
vErrors = null;
|
|
7089
7134
|
}
|
|
7090
7135
|
}
|
|
7091
|
-
}
|
|
7136
|
+
} validate103.errors = vErrors; return errors === 0; }
|
|
7092
7137
|
const schema110 = { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] };
|
|
7093
7138
|
const schema111 = { "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" } } };
|
|
7094
|
-
function
|
|
7139
|
+
function validate106(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") {
|
|
7095
7140
|
const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
|
|
7096
7141
|
if (vErrors === null) {
|
|
7097
7142
|
vErrors = [err0];
|
|
@@ -7605,7 +7650,7 @@ function validate105(data, { instancePath = "", parentData, parentDataProperty,
|
|
|
7605
7650
|
vErrors.push(err27);
|
|
7606
7651
|
}
|
|
7607
7652
|
errors++;
|
|
7608
|
-
|
|
7653
|
+
validate106.errors = vErrors;
|
|
7609
7654
|
return false;
|
|
7610
7655
|
}
|
|
7611
7656
|
else {
|
|
@@ -7618,7 +7663,7 @@ else {
|
|
|
7618
7663
|
vErrors = null;
|
|
7619
7664
|
}
|
|
7620
7665
|
}
|
|
7621
|
-
}
|
|
7666
|
+
} validate106.errors = vErrors; return errors === 0; }
|
|
7622
7667
|
function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
|
|
7623
7668
|
if (data && typeof data == "object" && !Array.isArray(data)) {
|
|
7624
7669
|
const _errs1 = errors;
|
|
@@ -7995,8 +8040,8 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
7995
8040
|
if (valid0) {
|
|
7996
8041
|
if (data.node !== undefined) {
|
|
7997
8042
|
const _errs51 = errors;
|
|
7998
|
-
if (!(
|
|
7999
|
-
vErrors = vErrors === null ?
|
|
8043
|
+
if (!(validate68(data.node, { instancePath: instancePath + "/node", parentData: data, parentDataProperty: "node", rootData }))) {
|
|
8044
|
+
vErrors = vErrors === null ? validate68.errors : vErrors.concat(validate68.errors);
|
|
8000
8045
|
errors = vErrors.length;
|
|
8001
8046
|
}
|
|
8002
8047
|
var valid0 = _errs51 === errors;
|
|
@@ -8007,8 +8052,8 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8007
8052
|
if (valid0) {
|
|
8008
8053
|
if (data.optimization !== undefined) {
|
|
8009
8054
|
const _errs52 = errors;
|
|
8010
|
-
if (!(
|
|
8011
|
-
vErrors = vErrors === null ?
|
|
8055
|
+
if (!(validate70(data.optimization, { instancePath: instancePath + "/optimization", parentData: data, parentDataProperty: "optimization", rootData }))) {
|
|
8056
|
+
vErrors = vErrors === null ? validate70.errors : vErrors.concat(validate70.errors);
|
|
8012
8057
|
errors = vErrors.length;
|
|
8013
8058
|
}
|
|
8014
8059
|
var valid0 = _errs52 === errors;
|
|
@@ -8019,8 +8064,8 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8019
8064
|
if (valid0) {
|
|
8020
8065
|
if (data.output !== undefined) {
|
|
8021
8066
|
const _errs53 = errors;
|
|
8022
|
-
if (!(
|
|
8023
|
-
vErrors = vErrors === null ?
|
|
8067
|
+
if (!(validate74(data.output, { instancePath: instancePath + "/output", parentData: data, parentDataProperty: "output", rootData }))) {
|
|
8068
|
+
vErrors = vErrors === null ? validate74.errors : vErrors.concat(validate74.errors);
|
|
8024
8069
|
errors = vErrors.length;
|
|
8025
8070
|
}
|
|
8026
8071
|
var valid0 = _errs53 === errors;
|
|
@@ -8031,8 +8076,8 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8031
8076
|
if (valid0) {
|
|
8032
8077
|
if (data.plugins !== undefined) {
|
|
8033
8078
|
const _errs54 = errors;
|
|
8034
|
-
if (!(
|
|
8035
|
-
vErrors = vErrors === null ?
|
|
8079
|
+
if (!(validate101(data.plugins, { instancePath: instancePath + "/plugins", parentData: data, parentDataProperty: "plugins", rootData }))) {
|
|
8080
|
+
vErrors = vErrors === null ? validate101.errors : vErrors.concat(validate101.errors);
|
|
8036
8081
|
errors = vErrors.length;
|
|
8037
8082
|
}
|
|
8038
8083
|
var valid0 = _errs54 === errors;
|
|
@@ -8043,8 +8088,8 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8043
8088
|
if (valid0) {
|
|
8044
8089
|
if (data.resolve !== undefined) {
|
|
8045
8090
|
const _errs55 = errors;
|
|
8046
|
-
if (!(
|
|
8047
|
-
vErrors = vErrors === null ?
|
|
8091
|
+
if (!(validate103(data.resolve, { instancePath: instancePath + "/resolve", parentData: data, parentDataProperty: "resolve", rootData }))) {
|
|
8092
|
+
vErrors = vErrors === null ? validate103.errors : vErrors.concat(validate103.errors);
|
|
8048
8093
|
errors = vErrors.length;
|
|
8049
8094
|
}
|
|
8050
8095
|
var valid0 = _errs55 === errors;
|
|
@@ -8185,8 +8230,8 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
8185
8230
|
if (valid0) {
|
|
8186
8231
|
if (data.stats !== undefined) {
|
|
8187
8232
|
const _errs74 = errors;
|
|
8188
|
-
if (!(
|
|
8189
|
-
vErrors = vErrors === null ?
|
|
8233
|
+
if (!(validate106(data.stats, { instancePath: instancePath + "/stats", parentData: data, parentDataProperty: "stats", rootData }))) {
|
|
8234
|
+
vErrors = vErrors === null ? validate106.errors : vErrors.concat(validate106.errors);
|
|
8190
8235
|
errors = vErrors.length;
|
|
8191
8236
|
}
|
|
8192
8237
|
var valid0 = _errs74 === errors;
|