@rspack/core 0.1.7 → 0.1.9

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.
Files changed (89) hide show
  1. package/dist/RuleSetCompiler.d.ts +6 -0
  2. package/dist/RuleSetCompiler.d.ts.map +1 -0
  3. package/dist/RuleSetCompiler.js +10 -0
  4. package/dist/RuleSetCompiler.js.map +1 -0
  5. package/dist/compilation.d.ts +5 -0
  6. package/dist/compilation.d.ts.map +1 -1
  7. package/dist/compilation.js +11 -2
  8. package/dist/compilation.js.map +1 -1
  9. package/dist/compiler.d.ts +11 -0
  10. package/dist/compiler.d.ts.map +1 -1
  11. package/dist/compiler.js +28 -5
  12. package/dist/compiler.js.map +1 -1
  13. package/dist/config/adapter-rule-use.d.ts +64 -6
  14. package/dist/config/adapter-rule-use.d.ts.map +1 -1
  15. package/dist/config/adapter-rule-use.js +45 -392
  16. package/dist/config/adapter-rule-use.js.map +1 -1
  17. package/dist/config/adapter.d.ts +4 -2
  18. package/dist/config/adapter.d.ts.map +1 -1
  19. package/dist/config/adapter.js +69 -9
  20. package/dist/config/adapter.js.map +1 -1
  21. package/dist/config/builtins.d.ts +14 -0
  22. package/dist/config/builtins.d.ts.map +1 -1
  23. package/dist/config/builtins.js +24 -0
  24. package/dist/config/builtins.js.map +1 -1
  25. package/dist/config/defaults.d.ts.map +1 -1
  26. package/dist/config/defaults.js +92 -14
  27. package/dist/config/defaults.js.map +1 -1
  28. package/dist/config/normalization.d.ts.map +1 -1
  29. package/dist/config/normalization.js +13 -1
  30. package/dist/config/normalization.js.map +1 -1
  31. package/dist/config/schema.check.d.ts.map +1 -1
  32. package/dist/config/schema.check.js +1555 -1120
  33. package/dist/config/schema.check.js.map +1 -1
  34. package/dist/config/schema.d.ts +1001 -887
  35. package/dist/config/schema.js +91 -0
  36. package/dist/config/schema.js.map +1 -1
  37. package/dist/config/types.d.ts +49 -3
  38. package/dist/config/types.d.ts.map +1 -1
  39. package/dist/lib/Cache.d.ts +72 -0
  40. package/dist/lib/Cache.d.ts.map +1 -0
  41. package/dist/lib/Cache.js +131 -0
  42. package/dist/lib/Cache.js.map +1 -0
  43. package/dist/lib/CacheFacade.d.ts +192 -0
  44. package/dist/lib/CacheFacade.d.ts.map +1 -0
  45. package/dist/lib/CacheFacade.js +320 -0
  46. package/dist/lib/CacheFacade.js.map +1 -0
  47. package/dist/lib/HookWebpackError.d.ts +47 -0
  48. package/dist/lib/HookWebpackError.d.ts.map +1 -0
  49. package/dist/lib/HookWebpackError.js +83 -0
  50. package/dist/lib/HookWebpackError.js.map +1 -0
  51. package/dist/lib/WebpackError.d.ts +24 -0
  52. package/dist/lib/WebpackError.d.ts.map +1 -0
  53. package/dist/lib/WebpackError.js +35 -0
  54. package/dist/lib/WebpackError.js.map +1 -0
  55. package/dist/lib/cache/getLazyHashedEtag.d.ts +36 -0
  56. package/dist/lib/cache/getLazyHashedEtag.d.ts.map +1 -0
  57. package/dist/lib/cache/getLazyHashedEtag.js +74 -0
  58. package/dist/lib/cache/getLazyHashedEtag.js.map +1 -0
  59. package/dist/lib/cache/mergeEtags.d.ts +12 -0
  60. package/dist/lib/cache/mergeEtags.d.ts.map +1 -0
  61. package/dist/lib/cache/mergeEtags.js +72 -0
  62. package/dist/lib/cache/mergeEtags.js.map +1 -0
  63. package/dist/loader-runner/LoaderLoadingError.d.ts +5 -0
  64. package/dist/loader-runner/LoaderLoadingError.d.ts.map +1 -0
  65. package/dist/loader-runner/LoaderLoadingError.js +19 -0
  66. package/dist/loader-runner/LoaderLoadingError.js.map +1 -0
  67. package/dist/loader-runner/index.d.ts +18 -0
  68. package/dist/loader-runner/index.d.ts.map +1 -0
  69. package/dist/loader-runner/index.js +667 -0
  70. package/dist/loader-runner/index.js.map +1 -0
  71. package/dist/loader-runner/loadLoader.d.ts +3 -0
  72. package/dist/loader-runner/loadLoader.d.ts.map +1 -0
  73. package/dist/loader-runner/loadLoader.js +69 -0
  74. package/dist/loader-runner/loadLoader.js.map +1 -0
  75. package/dist/stats.d.ts.map +1 -1
  76. package/dist/stats.js +2 -2
  77. package/dist/stats.js.map +1 -1
  78. package/dist/util/fake.d.ts +1 -0
  79. package/dist/util/fake.d.ts.map +1 -1
  80. package/dist/util/fake.js +1 -0
  81. package/dist/util/fake.js.map +1 -1
  82. package/dist/util/index.d.ts +3 -0
  83. package/dist/util/index.d.ts.map +1 -1
  84. package/dist/util/index.js +28 -1
  85. package/dist/util/index.js.map +1 -1
  86. package/dist/web/ResolveSwcPlugin.d.ts.map +1 -1
  87. package/dist/web/ResolveSwcPlugin.js +5 -0
  88. package/dist/web/ResolveSwcPlugin.js.map +1 -1
  89. package/package.json +11 -10
@@ -2,21 +2,21 @@
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" }] }, "CrossOriginLoading": { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] }, "Context": { "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.", "type": "string" }, "CssChunkFilename": { "description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "CssFilename": { "description": "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "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" }, "Clean": { "description": "Clears the output build directory", "type": "boolean" }, "Output": { "description": "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.", "type": "object", "additionalProperties": false, "properties": { "iife": { "$ref": "#/definitions/Iife" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "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" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" } } }, "OutputModule": { "description": "Output javascript files as module source type.", "type": "boolean" }, "ParserOptionsByModuleType": { "description": "Specify options for each parser.", "type": "object", "additionalProperties": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "properties": { "asset": { "$ref": "#/definitions/AssetParserOptions" } } }, "Path": { "description": "The output directory as **absolute path** (required).", "type": "string" }, "Plugins": { "description": "Add additional plugins to the compiler.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "PublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] }, "RawPublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] }, "Resolve": { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "ResolveAlias": { "description": "Redirect module requests.", "anyOf": [{ "type": "object", "additionalProperties": { "description": "New request.", "anyOf": [{ "description": "Multiple alternative requests.", "type": "array", "items": { "description": "One choice of request.", "type": "string", "minLength": 1 } }, { "description": "Ignore request (replace with empty module).", "enum": [false] }, { "description": "New request.", "type": "string", "minLength": 1 }] } }] }, "ResolveOptions": { "description": "Options object for resolving requests.", "type": "object", "additionalProperties": false, "properties": { "alias": { "$ref": "#/definitions/ResolveAlias" }, "browserField": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "boolean" }, "conditionNames": { "description": "Condition names for exports field entry point.", "type": "array", "items": { "description": "Condition names for exports field entry point.", "type": "string" } }, "extensions": { "description": "Extensions added to the request when trying to find the file.", "type": "array", "items": { "description": "Extension added to the request when trying to find the file.", "type": "string" } }, "fallback": { "description": "Redirect module requests when normal resolving fails.", "oneOf": [{ "$ref": "#/definitions/ResolveAlias" }] }, "fullySpecified": { "description": "Treats the request specified by the user as fully specified, meaning no extensions are added and the mainFiles in directories are not resolved (This doesn't affect requests from mainFields, aliasFields or aliases).", "type": "boolean" }, "mainFields": { "description": "Field names from the description file (package.json) which are used to find the default entry point.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "anyOf": [{ "type": "array", "items": { "description": "Part of the field path from the description file (package.json) which are used to find the default entry point.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } }, "mainFiles": { "description": "Filenames used to find the default entry point if there is no description file or main field.", "type": "array", "items": { "description": "Filename used to find the default entry point if there is no description file or main field.", "type": "string", "minLength": 1 } }, "modules": { "description": "Folder names or directory paths where to find modules.", "type": "array", "items": { "description": "Folder name or directory path where to find modules.", "type": "string", "minLength": 1 } }, "preferRelative": { "description": "Prefer to resolve module requests as relative request and fallback to resolving as module.", "type": "boolean" }, "byDependency": { "description": "Extra resolve options per dependency category. Typical categories are \"commonjs\", \"amd\", \"esm\".", "type": "object", "additionalProperties": { "description": "Options object for resolving requests.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] } }, "tsConfigPath": { "description": "Path to tsconfig.json", "type": "string" } } }, "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" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "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 }, "ChunkLoadingGlobal": { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 }, "Watch": { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" }, "WatchOptions": { "description": "Options for the watcher.", "type": "object", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "followSymlinks": { "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').", "type": "boolean" }, "ignored": { "description": "Ignore some files from watching (glob pattern or regexp).", "anyOf": [{ "type": "array", "items": { "description": "A glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 } }, { "instanceof": "RegExp" }, { "description": "A single glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 }] }, "poll": { "description": "Enable polling mode for watching.", "anyOf": [{ "description": "`number`: use polling with specified interval.", "type": "number" }, { "description": "`true`: use polling.", "type": "boolean" }] }, "stdin": { "description": "Stop watching when stdin stream has ended.", "type": "boolean" } } }, "RspackPluginFunction": { "description": "Function acting as plugin.", "instanceof": "Function" }, "RspackPluginInstance": { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] } }, "title": "RspackOptions", "description": "Options object as provided by the user.", "type": "object", "additionalProperties": false, "properties": { "cache": { "$ref": "#/definitions/CacheOptions" }, "context": { "$ref": "#/definitions/Context" }, "dependencies": { "$ref": "#/definitions/Dependencies" }, "devServer": { "$ref": "#/definitions/DevServer" }, "devtool": { "$ref": "#/definitions/DevTool" }, "entry": { "$ref": "#/definitions/Entry" }, "experiments": { "$ref": "#/definitions/Experiments" }, "externals": { "$ref": "#/definitions/Externals" }, "externalsType": { "$ref": "#/definitions/ExternalsType" }, "externalsPresets": { "$ref": "#/definitions/ExternalsPresets" }, "infrastructureLogging": { "$ref": "#/definitions/InfrastructureLogging" }, "mode": { "$ref": "#/definitions/Mode" }, "module": { "$ref": "#/definitions/ModuleOptions" }, "name": { "$ref": "#/definitions/Name" }, "node": { "$ref": "#/definitions/Node" }, "optimization": { "$ref": "#/definitions/Optimization" }, "output": { "$ref": "#/definitions/Output" }, "plugins": { "$ref": "#/definitions/Plugins" }, "resolve": { "$ref": "#/definitions/Resolve" }, "snapshot": { "$ref": "#/definitions/SnapshotOptions" }, "stats": { "$ref": "#/definitions/StatsValue" }, "target": { "$ref": "#/definitions/Target" }, "watch": { "$ref": "#/definitions/Watch" }, "watchOptions": { "$ref": "#/definitions/WatchOptions" }, "builtins": { "description": "Builtins features in rspack", "type": "object", "additionalProperties": true } } };
5
+ const schema11 = { "definitions": { "AssetModuleFilename": { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] }, "AssetParserDataUrlOptions": { "description": "Options object for DataUrl condition.", "type": "object", "additionalProperties": false, "properties": { "maxSize": { "description": "Maximum size of asset that should be inline as modules. Default: 8kb.", "type": "number" } } }, "AssetParserOptions": { "description": "Parser options for asset modules.", "type": "object", "additionalProperties": false, "properties": { "dataUrlCondition": { "description": "The condition for inlining the asset as DataUrl.", "anyOf": [{ "$ref": "#/definitions/AssetParserDataUrlOptions" }] } } }, "AuxiliaryComment": { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] }, "CacheOptions": { "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.", "type": "boolean" }, "ChunkFilename": { "description": "Specifies the filename template of output files of non-initial chunks on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "ChunkFormat": { "description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).", "anyOf": [{ "enum": ["array-push", "commonjs", "module", false] }, { "type": "string" }] }, "ChunkLoading": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/ChunkLoadingType" }] }, "ChunkLoadingType": { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["jsonp", "import-scripts", "require", "async-node", "import"] }, { "type": "string" }] }, "CrossOriginLoading": { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] }, "Context": { "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.", "type": "string" }, "CssChunkFilename": { "description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "CssFilename": { "description": "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "WebassemblyModuleFilename": { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" }, "EnabledWasmLoadingTypes": { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } }, "EnabledChunkLoadingTypes": { "description": "List of chunk loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/ChunkLoadingType" } }, "WasmLoading": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/WasmLoadingType" }] }, "WasmLoadingType": { "description": "The method of loading WebAssembly Modules (methods included by default are 'fetch' (web/WebWorker), 'async-node' (node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["fetch-streaming", "fetch", "async-node"] }, { "type": "string" }] }, "Dependencies": { "description": "References to other configurations to depend on.", "type": "array", "items": { "description": "References to another configuration to depend on.", "type": "string" } }, "DevServer": { "description": "Options for the rspack-dev-server.", "type": "object" }, "DevTool": { "description": "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).", "anyOf": [{ "enum": [false] }, { "type": "string", "pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$" }] }, "EnabledLibraryTypes": { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } }, "Entry": { "description": "The entry point(s) of the compilation.", "anyOf": [{ "$ref": "#/definitions/EntryStatic" }] }, "EntryDescription": { "description": "An object with entry point description.", "type": "object", "additionalProperties": false, "properties": { "import": { "$ref": "#/definitions/EntryItem" }, "runtime": { "$ref": "#/definitions/EntryRuntime" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" } }, "required": ["import"] }, "EntryFilename": { "description": "Specifies the filename of the output file on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.", "oneOf": [{ "$ref": "#/definitions/FilenameTemplate" }] }, "EntryItem": { "description": "Module(s) that are loaded upon startup.", "anyOf": [{ "description": "All modules are loaded upon startup. The last one is exported.", "type": "array", "items": { "description": "A module that is loaded upon startup. Only the last one is exported.", "type": "string", "minLength": 1 }, "minItems": 1, "uniqueItems": true }, { "description": "The string is resolved to a module which is loaded upon startup.", "type": "string", "minLength": 1 }] }, "EntryObject": { "description": "Multiple entry bundles are created. The key is the entry name. The value can be a string, an array or an entry description object.", "type": "object", "additionalProperties": { "description": "An entry point with name.", "anyOf": [{ "$ref": "#/definitions/EntryItem" }, { "$ref": "#/definitions/EntryDescription" }] } }, "EntryRuntime": { "description": "The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.", "anyOf": [{ "enum": [false] }, { "type": "string", "minLength": 1 }] }, "EntryStatic": { "description": "A static entry description.", "anyOf": [{ "$ref": "#/definitions/EntryObject" }, { "$ref": "#/definitions/EntryUnnamed" }] }, "EntryUnnamed": { "description": "An entry point without name.", "oneOf": [{ "$ref": "#/definitions/EntryItem" }] }, "Experiments": { "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).", "type": "object", "additionalProperties": false, "properties": { "asyncWebAssembly": { "description": "Support WebAssembly as asynchronous EcmaScript Module.", "type": "boolean" }, "incrementalRebuild": { "description": "Rebuild incrementally", "type": "boolean" }, "lazyCompilation": { "description": "Compile entrypoints and import()s only when they are accessed.", "anyOf": [{ "type": "boolean" }] }, "outputModule": { "description": "Allow output javascript files as module source type.", "type": "boolean" } } }, "ExternalItem": { "description": "Specify dependency that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "description": "Every matched dependency becomes external.", "instanceof": "RegExp" }, { "description": "An exact matched dependency becomes external. The same string is used as external dependency.", "type": "string" }, { "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.", "type": "object", "additionalProperties": { "$ref": "#/definitions/ExternalItemValue" } }, { "description": "The function is called on each dependency (`function(context, request, callback(err, result))`).", "instanceof": "Function" }] }, "ExternalItemValue": { "description": "The dependency used for the external.", "anyOf": [{ "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" }, "Clean": { "description": "Clears the output build directory", "type": "boolean" }, "Output": { "description": "Options affecting the output of the compilation. `output` options tell rspack how to write the compiled files to disk.", "type": "object", "additionalProperties": false, "properties": { "iife": { "$ref": "#/definitions/Iife" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFormat": { "$ref": "#/definitions/ChunkFormat" }, "chunkLoading": { "$ref": "#/definitions/ChunkLoading" }, "enabledChunkLoadingTypes": { "$ref": "#/definitions/EnabledChunkLoadingTypes" }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "enabledWasmLoadingTypes": { "$ref": "#/definitions/EnabledWasmLoadingTypes" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" }, "webassemblyModuleFilename": { "$ref": "#/definitions/WebassemblyModuleFilename" }, "enabledLibraryTypes": { "$ref": "#/definitions/EnabledLibraryTypes" }, "filename": { "$ref": "#/definitions/Filename" }, "globalObject": { "$ref": "#/definitions/GlobalObject" }, "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, "library": { "$ref": "#/definitions/Library" }, "libraryExport": { "oneOf": [{ "$ref": "#/definitions/LibraryExport" }] }, "libraryTarget": { "oneOf": [{ "$ref": "#/definitions/LibraryType" }] }, "module": { "$ref": "#/definitions/OutputModule" }, "path": { "$ref": "#/definitions/Path" }, "publicPath": { "$ref": "#/definitions/PublicPath" }, "strictModuleErrorHandling": { "$ref": "#/definitions/StrictModuleErrorHandling" }, "umdNamedDefine": { "oneOf": [{ "$ref": "#/definitions/UmdNamedDefine" }] }, "uniqueName": { "$ref": "#/definitions/UniqueName" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" }, "trustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.", "anyOf": [{ "enum": [true] }, { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 }, { "$ref": "#/definitions/TrustedTypes" }] } } }, "OutputModule": { "description": "Output javascript files as module source type.", "type": "boolean" }, "ParserOptionsByModuleType": { "description": "Specify options for each parser.", "type": "object", "additionalProperties": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "properties": { "asset": { "$ref": "#/definitions/AssetParserOptions" } } }, "Path": { "description": "The output directory as **absolute path** (required).", "type": "string" }, "Plugins": { "description": "Add additional plugins to the compiler.", "type": "array", "items": { "description": "Plugin of type object or instanceof Function.", "anyOf": [{ "$ref": "#/definitions/RspackPluginInstance" }, { "$ref": "#/definitions/RspackPluginFunction" }] } }, "PublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] }, "RawPublicPath": { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] }, "Resolve": { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "ResolveAlias": { "description": "Redirect module requests.", "anyOf": [{ "type": "object", "additionalProperties": { "description": "New request.", "anyOf": [{ "description": "Multiple alternative requests.", "type": "array", "items": { "description": "One choice of request.", "type": "string", "minLength": 1 } }, { "description": "Ignore request (replace with empty module).", "enum": [false] }, { "description": "New request.", "type": "string", "minLength": 1 }] } }] }, "ResolveOptions": { "description": "Options object for resolving requests.", "type": "object", "additionalProperties": false, "properties": { "alias": { "$ref": "#/definitions/ResolveAlias" }, "browserField": { "description": "Fields in the description file (usually package.json) which are used to redirect requests inside the module.", "type": "boolean" }, "conditionNames": { "description": "Condition names for exports field entry point.", "type": "array", "items": { "description": "Condition names for exports field entry point.", "type": "string" } }, "extensions": { "description": "Extensions added to the request when trying to find the file.", "type": "array", "items": { "description": "Extension added to the request when trying to find the file.", "type": "string" } }, "fallback": { "description": "Redirect module requests when normal resolving fails.", "oneOf": [{ "$ref": "#/definitions/ResolveAlias" }] }, "fullySpecified": { "description": "Treats the request specified by the user as fully specified, meaning no extensions are added and the mainFiles in directories are not resolved (This doesn't affect requests from mainFields, aliasFields or aliases).", "type": "boolean" }, "mainFields": { "description": "Field names from the description file (package.json) which are used to find the default entry point.", "type": "array", "items": { "description": "Field name from the description file (package.json) which are used to find the default entry point.", "anyOf": [{ "type": "array", "items": { "description": "Part of the field path from the description file (package.json) which are used to find the default entry point.", "type": "string", "minLength": 1 } }, { "type": "string", "minLength": 1 }] } }, "mainFiles": { "description": "Filenames used to find the default entry point if there is no description file or main field.", "type": "array", "items": { "description": "Filename used to find the default entry point if there is no description file or main field.", "type": "string", "minLength": 1 } }, "modules": { "description": "Folder names or directory paths where to find modules.", "type": "array", "items": { "description": "Folder name or directory path where to find modules.", "type": "string", "minLength": 1 } }, "preferRelative": { "description": "Prefer to resolve module requests as relative request and fallback to resolving as module.", "type": "boolean" }, "byDependency": { "description": "Extra resolve options per dependency category. Typical categories are \"commonjs\", \"amd\", \"esm\".", "type": "object", "additionalProperties": { "description": "Options object for resolving requests.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] } }, "tsConfigPath": { "description": "Path to tsconfig.json", "type": "string" } } }, "RuleSetCondition": { "description": "A condition matcher.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }, { "$ref": "#/definitions/RuleSetLogicalConditions" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditionOrConditions": { "description": "One or multiple rule conditions.", "anyOf": [{ "$ref": "#/definitions/RuleSetCondition" }, { "$ref": "#/definitions/RuleSetConditions" }] }, "RuleSetConditions": { "description": "A list of rule conditions.", "type": "array", "items": { "description": "A rule condition.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] } }, "RuleSetLoader": { "description": "A loader request.", "type": "string", "minLength": 1 }, "RuleSetLoaderOptions": { "description": "Options passed to a loader.", "anyOf": [{ "type": "string" }, { "type": "object" }] }, "RuleSetLogicalConditions": { "description": "Logic operators used in a condition matcher.", "type": "object", "additionalProperties": false, "properties": { "and": { "description": "Logical AND.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] }, "not": { "description": "Logical NOT.", "oneOf": [{ "$ref": "#/definitions/RuleSetCondition" }] }, "or": { "description": "Logical OR.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditions" }] } } }, "RuleSetRule": { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "enforce": { "description": "Enforce this rule as pre or post step.", "enum": ["pre", "post"] }, "exclude": { "description": "Shortcut for resource.exclude.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "generator": { "description": "The options for the module generator.", "type": "object" }, "include": { "description": "Shortcut for resource.include.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "issuer": { "description": "Match the issuer of the module (The module pointing to this module).", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "dependency": { "description": "Match dependency type.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "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 }] }, "TrustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks.", "type": "object", "additionalProperties": false, "properties": { "policyName": { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 } } }, "UmdNamedDefine": { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" }, "UniqueName": { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 }, "ChunkLoadingGlobal": { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 }, "Watch": { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" }, "WatchOptions": { "description": "Options for the watcher.", "type": "object", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "followSymlinks": { "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').", "type": "boolean" }, "ignored": { "description": "Ignore some files from watching (glob pattern or regexp).", "anyOf": [{ "type": "array", "items": { "description": "A glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 } }, { "instanceof": "RegExp" }, { "description": "A single glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 }] }, "poll": { "description": "Enable polling mode for watching.", "anyOf": [{ "description": "`number`: use polling with specified interval.", "type": "number" }, { "description": "`true`: use polling.", "type": "boolean" }] }, "stdin": { "description": "Stop watching when stdin stream has ended.", "type": "boolean" } } }, "RspackPluginFunction": { "description": "Function acting as plugin.", "instanceof": "Function" }, "RspackPluginInstance": { "description": "Plugin instance.", "type": "object", "additionalProperties": true, "properties": { "apply": { "description": "The run point of the plugin, required method.", "instanceof": "Function" } }, "required": ["apply"] } }, "title": "RspackOptions", "description": "Options object as provided by the user.", "type": "object", "additionalProperties": false, "properties": { "cache": { "$ref": "#/definitions/CacheOptions" }, "context": { "$ref": "#/definitions/Context" }, "dependencies": { "$ref": "#/definitions/Dependencies" }, "devServer": { "$ref": "#/definitions/DevServer" }, "devtool": { "$ref": "#/definitions/DevTool" }, "entry": { "$ref": "#/definitions/Entry" }, "experiments": { "$ref": "#/definitions/Experiments" }, "externals": { "$ref": "#/definitions/Externals" }, "externalsType": { "$ref": "#/definitions/ExternalsType" }, "externalsPresets": { "$ref": "#/definitions/ExternalsPresets" }, "infrastructureLogging": { "$ref": "#/definitions/InfrastructureLogging" }, "mode": { "$ref": "#/definitions/Mode" }, "module": { "$ref": "#/definitions/ModuleOptions" }, "name": { "$ref": "#/definitions/Name" }, "node": { "$ref": "#/definitions/Node" }, "optimization": { "$ref": "#/definitions/Optimization" }, "output": { "$ref": "#/definitions/Output" }, "plugins": { "$ref": "#/definitions/Plugins" }, "resolve": { "$ref": "#/definitions/Resolve" }, "snapshot": { "$ref": "#/definitions/SnapshotOptions" }, "stats": { "$ref": "#/definitions/StatsValue" }, "target": { "$ref": "#/definitions/Target" }, "watch": { "$ref": "#/definitions/Watch" }, "watchOptions": { "$ref": "#/definitions/WatchOptions" }, "builtins": { "description": "Builtins features in rspack", "type": "object", "additionalProperties": true } } };
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" } };
9
9
  const schema15 = { "description": "Options for the rspack-dev-server.", "type": "object" };
10
10
  const schema16 = { "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$" }] };
11
- const schema28 = { "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" }] } } };
11
+ const schema28 = { "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).", "type": "object", "additionalProperties": false, "properties": { "asyncWebAssembly": { "description": "Support WebAssembly as asynchronous EcmaScript Module.", "type": "boolean" }, "incrementalRebuild": { "description": "Rebuild incrementally", "type": "boolean" }, "lazyCompilation": { "description": "Compile entrypoints and import()s only when they are accessed.", "anyOf": [{ "type": "boolean" }] }, "outputModule": { "description": "Allow output javascript files as module source type.", "type": "boolean" } } };
12
12
  const schema32 = { "description": "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).", "enum": ["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "script", "node-commonjs"] };
13
13
  const schema33 = { "description": "Enable presets of externals for specific targets.", "type": "object", "additionalProperties": false, "properties": { "node": { "description": "Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.", "type": "boolean" } } };
14
14
  const schema38 = { "description": "Enable production optimizations or development hints.", "enum": ["development", "production", "none"] };
15
15
  const schema57 = { "description": "Name of the configuration. Used when loading multiple configurations.", "type": "string" };
16
- const schema112 = { "description": "Options affecting how file system snapshots are created and validated.", "type": "object", "additionalProperties": false, "properties": { "module": { "description": "Options for snapshotting dependencies of modules to determine if they need to be built again.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } }, "resolve": { "description": "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } } } };
17
- const schema115 = { "description": "Environment to build for. An array of environments to build for all of them when possible.", "anyOf": [{ "type": "array", "items": { "description": "Environment to build for.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "enum": [false] }, { "type": "string", "minLength": 1 }] };
18
- const schema116 = { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" };
19
- const schema117 = { "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" } } };
16
+ const schema118 = { "description": "Options affecting how file system snapshots are created and validated.", "type": "object", "additionalProperties": false, "properties": { "module": { "description": "Options for snapshotting dependencies of modules to determine if they need to be built again.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } }, "resolve": { "description": "Options for snapshotting dependencies of request resolving to determine if requests need to be re-resolved.", "type": "object", "additionalProperties": false, "properties": { "hash": { "description": "Use hashes of the content of the files/directories to determine invalidation.", "type": "boolean" }, "timestamp": { "description": "Use timestamps of the files/directories to determine invalidation.", "type": "boolean" } } } } };
17
+ const schema121 = { "description": "Environment to build for. An array of environments to build for all of them when possible.", "anyOf": [{ "type": "array", "items": { "description": "Environment to build for.", "type": "string", "minLength": 1 }, "minItems": 1 }, { "enum": [false] }, { "type": "string", "minLength": 1 }] };
18
+ const schema122 = { "description": "Enter watch mode, which rebuilds on file change.", "type": "boolean" };
19
+ const schema123 = { "description": "Options for the watcher.", "type": "object", "additionalProperties": false, "properties": { "aggregateTimeout": { "description": "Delay the rebuilt after the first change. Value is a time in ms.", "type": "number" }, "followSymlinks": { "description": "Resolve symlinks and watch symlink and real file. This is usually not needed as rspack already resolves symlinks ('resolve.symlinks').", "type": "boolean" }, "ignored": { "description": "Ignore some files from watching (glob pattern or regexp).", "anyOf": [{ "type": "array", "items": { "description": "A glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 } }, { "instanceof": "RegExp" }, { "description": "A single glob pattern for files that should be ignored from watching.", "type": "string", "minLength": 1 }] }, "poll": { "description": "Enable polling mode for watching.", "anyOf": [{ "description": "`number`: use polling with specified interval.", "type": "number" }, { "description": "`true`: use polling.", "type": "boolean" }] }, "stdin": { "description": "Stop watching when stdin stream has ended.", "type": "boolean" } } };
20
20
  const func2 = Object.prototype.hasOwnProperty;
21
21
  const pattern0 = new RegExp("^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$", "u");
22
22
  const schema17 = { "description": "The entry point(s) of the compilation.", "anyOf": [{ "$ref": "#/definitions/EntryStatic" }] };
@@ -795,7 +795,7 @@ else {
795
795
  }
796
796
  } validate11.errors = vErrors; return errors === 0; }
797
797
  const schema29 = { "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" }] };
798
- const schema30 = { "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" } }] };
798
+ const schema30 = { "description": "Specify dependency that shouldn't be resolved by rspack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.", "anyOf": [{ "description": "Every matched dependency becomes external.", "instanceof": "RegExp" }, { "description": "An exact matched dependency becomes external. The same string is used as external dependency.", "type": "string" }, { "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.", "type": "object", "additionalProperties": { "$ref": "#/definitions/ExternalItemValue" } }, { "description": "The function is called on each dependency (`function(context, request, callback(err, result))`).", "instanceof": "Function" }] };
799
799
  const schema31 = { "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" }] };
800
800
  function validate24(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (!(data instanceof RegExp)) {
801
801
  const err0 = { instancePath, schemaPath: "#/anyOf/0/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
@@ -897,14 +897,29 @@ function validate24(data, { instancePath = "", parentData, parentDataProperty, r
897
897
  }
898
898
  var _valid0 = _errs4 === errors;
899
899
  valid0 = valid0 || _valid0;
900
+ if (!valid0) {
901
+ const _errs14 = errors;
902
+ if (!(data instanceof Function)) {
903
+ const err6 = { instancePath, schemaPath: "#/anyOf/3/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
904
+ if (vErrors === null) {
905
+ vErrors = [err6];
906
+ }
907
+ else {
908
+ vErrors.push(err6);
909
+ }
910
+ errors++;
911
+ }
912
+ var _valid0 = _errs14 === errors;
913
+ valid0 = valid0 || _valid0;
914
+ }
900
915
  }
901
916
  } if (!valid0) {
902
- const err6 = { instancePath, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
917
+ const err7 = { instancePath, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
903
918
  if (vErrors === null) {
904
- vErrors = [err6];
919
+ vErrors = [err7];
905
920
  }
906
921
  else {
907
- vErrors.push(err6);
922
+ vErrors.push(err7);
908
923
  }
909
924
  errors++;
910
925
  validate24.errors = vErrors;
@@ -1308,7 +1323,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
1308
1323
  } validate28.errors = vErrors; return errors === 0; }
1309
1324
  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
1325
  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" }] }, "dependency": { "description": "Match dependency type.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "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" }] } } };
1326
+ const schema41 = { "description": "A rule description with conditions and effects for modules.", "type": "object", "additionalProperties": false, "properties": { "enforce": { "description": "Enforce this rule as pre or post step.", "enum": ["pre", "post"] }, "exclude": { "description": "Shortcut for resource.exclude.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "generator": { "description": "The options for the module generator.", "type": "object" }, "include": { "description": "Shortcut for resource.include.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "issuer": { "description": "Match the issuer of the module (The module pointing to this module).", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "dependency": { "description": "Match dependency type.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "descriptionData": { "description": "Match values of properties in the description file (usually package.json).", "type": "object", "additionalProperties": { "$ref": "#/definitions/RuleSetConditionOrConditions" } }, "oneOf": { "description": "Only execute the first matching rule in this array.", "type": "array", "items": { "description": "A rule.", "oneOf": [{ "$ref": "#/definitions/RuleSetRule" }] } }, "parser": { "description": "Options for parsing.", "type": "object", "additionalProperties": true }, "resolve": { "description": "Options for the resolver.", "type": "object", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] }, "resource": { "description": "Match the resource path of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceFragment": { "description": "Match the resource fragment of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "resourceQuery": { "description": "Match the resource query of the module.", "oneOf": [{ "$ref": "#/definitions/RuleSetConditionOrConditions" }] }, "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
1327
  const schema42 = { "description": "One or multiple rule conditions.", "anyOf": [{ "$ref": "#/definitions/RuleSetCondition" }, { "$ref": "#/definitions/RuleSetConditions" }] };
1313
1328
  const schema43 = { "description": "A condition matcher.", "anyOf": [{ "instanceof": "RegExp" }, { "type": "string" }, { "instanceof": "Function" }, { "$ref": "#/definitions/RuleSetLogicalConditions" }, { "$ref": "#/definitions/RuleSetConditions" }] };
1314
1329
  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" }] } } };
@@ -2762,654 +2777,668 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
2762
2777
  }
2763
2778
  }
2764
2779
  if (_errs1 === errors) {
2765
- if (data.exclude !== undefined) {
2780
+ if (data.enforce !== undefined) {
2781
+ let data0 = data.enforce;
2766
2782
  const _errs2 = errors;
2767
- const _errs3 = errors;
2768
- let valid1 = false;
2769
- let passing0 = null;
2770
- const _errs4 = errors;
2771
- if (!(validate35(data.exclude, { instancePath: instancePath + "/exclude", parentData: data, parentDataProperty: "exclude", rootData }))) {
2772
- vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
2773
- errors = vErrors.length;
2774
- }
2775
- var _valid0 = _errs4 === errors;
2776
- if (_valid0) {
2777
- valid1 = true;
2778
- passing0 = 0;
2779
- }
2780
- if (!valid1) {
2781
- const err0 = { instancePath: instancePath + "/exclude", schemaPath: "#/properties/exclude/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
2782
- if (vErrors === null) {
2783
- vErrors = [err0];
2784
- }
2785
- else {
2786
- vErrors.push(err0);
2787
- }
2788
- errors++;
2789
- validate34.errors = vErrors;
2783
+ if (data0 !== "pre" && data0 !== "post") {
2784
+ validate34.errors = [{ instancePath: instancePath + "/enforce", schemaPath: "#/properties/enforce/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
2790
2785
  return false;
2791
2786
  }
2792
- else {
2793
- errors = _errs3;
2794
- if (vErrors !== null) {
2795
- if (_errs3) {
2796
- vErrors.length = _errs3;
2797
- }
2798
- else {
2799
- vErrors = null;
2800
- }
2801
- }
2802
- }
2803
2787
  var valid0 = _errs2 === errors;
2804
2788
  }
2805
2789
  else {
2806
2790
  var valid0 = true;
2807
2791
  }
2808
2792
  if (valid0) {
2809
- if (data.generator !== undefined) {
2810
- let data1 = data.generator;
2793
+ if (data.exclude !== undefined) {
2794
+ const _errs3 = errors;
2795
+ const _errs4 = errors;
2796
+ let valid1 = false;
2797
+ let passing0 = null;
2811
2798
  const _errs5 = errors;
2812
- if (!(data1 && typeof data1 == "object" && !Array.isArray(data1))) {
2813
- validate34.errors = [{ instancePath: instancePath + "/generator", schemaPath: "#/properties/generator/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
2799
+ if (!(validate35(data.exclude, { instancePath: instancePath + "/exclude", parentData: data, parentDataProperty: "exclude", rootData }))) {
2800
+ vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
2801
+ errors = vErrors.length;
2802
+ }
2803
+ var _valid0 = _errs5 === errors;
2804
+ if (_valid0) {
2805
+ valid1 = true;
2806
+ passing0 = 0;
2807
+ }
2808
+ if (!valid1) {
2809
+ const err0 = { instancePath: instancePath + "/exclude", schemaPath: "#/properties/exclude/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
2810
+ if (vErrors === null) {
2811
+ vErrors = [err0];
2812
+ }
2813
+ else {
2814
+ vErrors.push(err0);
2815
+ }
2816
+ errors++;
2817
+ validate34.errors = vErrors;
2814
2818
  return false;
2815
2819
  }
2816
- var valid0 = _errs5 === errors;
2820
+ else {
2821
+ errors = _errs4;
2822
+ if (vErrors !== null) {
2823
+ if (_errs4) {
2824
+ vErrors.length = _errs4;
2825
+ }
2826
+ else {
2827
+ vErrors = null;
2828
+ }
2829
+ }
2830
+ }
2831
+ var valid0 = _errs3 === errors;
2817
2832
  }
2818
2833
  else {
2819
2834
  var valid0 = true;
2820
2835
  }
2821
2836
  if (valid0) {
2822
- if (data.include !== undefined) {
2823
- const _errs7 = errors;
2824
- const _errs8 = errors;
2825
- let valid2 = false;
2826
- let passing1 = null;
2827
- const _errs9 = errors;
2828
- if (!(validate35(data.include, { instancePath: instancePath + "/include", parentData: data, parentDataProperty: "include", rootData }))) {
2829
- vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
2830
- errors = vErrors.length;
2831
- }
2832
- var _valid1 = _errs9 === errors;
2833
- if (_valid1) {
2834
- valid2 = true;
2835
- passing1 = 0;
2836
- }
2837
- if (!valid2) {
2838
- const err1 = { instancePath: instancePath + "/include", schemaPath: "#/properties/include/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
2839
- if (vErrors === null) {
2840
- vErrors = [err1];
2841
- }
2842
- else {
2843
- vErrors.push(err1);
2844
- }
2845
- errors++;
2846
- validate34.errors = vErrors;
2837
+ if (data.generator !== undefined) {
2838
+ let data2 = data.generator;
2839
+ const _errs6 = errors;
2840
+ if (!(data2 && typeof data2 == "object" && !Array.isArray(data2))) {
2841
+ validate34.errors = [{ instancePath: instancePath + "/generator", schemaPath: "#/properties/generator/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
2847
2842
  return false;
2848
2843
  }
2849
- else {
2850
- errors = _errs8;
2851
- if (vErrors !== null) {
2852
- if (_errs8) {
2853
- vErrors.length = _errs8;
2854
- }
2855
- else {
2856
- vErrors = null;
2857
- }
2858
- }
2859
- }
2860
- var valid0 = _errs7 === errors;
2844
+ var valid0 = _errs6 === errors;
2861
2845
  }
2862
2846
  else {
2863
2847
  var valid0 = true;
2864
2848
  }
2865
2849
  if (valid0) {
2866
- if (data.issuer !== undefined) {
2850
+ if (data.include !== undefined) {
2851
+ const _errs8 = errors;
2852
+ const _errs9 = errors;
2853
+ let valid2 = false;
2854
+ let passing1 = null;
2867
2855
  const _errs10 = errors;
2868
- const _errs11 = errors;
2869
- let valid3 = false;
2870
- let passing2 = null;
2871
- const _errs12 = errors;
2872
- if (!(validate35(data.issuer, { instancePath: instancePath + "/issuer", parentData: data, parentDataProperty: "issuer", rootData }))) {
2856
+ if (!(validate35(data.include, { instancePath: instancePath + "/include", parentData: data, parentDataProperty: "include", rootData }))) {
2873
2857
  vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
2874
2858
  errors = vErrors.length;
2875
2859
  }
2876
- var _valid2 = _errs12 === errors;
2877
- if (_valid2) {
2878
- valid3 = true;
2879
- passing2 = 0;
2860
+ var _valid1 = _errs10 === errors;
2861
+ if (_valid1) {
2862
+ valid2 = true;
2863
+ passing1 = 0;
2880
2864
  }
2881
- if (!valid3) {
2882
- const err2 = { instancePath: instancePath + "/issuer", schemaPath: "#/properties/issuer/oneOf", keyword: "oneOf", params: { passingSchemas: passing2 }, message: "must match exactly one schema in oneOf" };
2865
+ if (!valid2) {
2866
+ const err1 = { instancePath: instancePath + "/include", schemaPath: "#/properties/include/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
2883
2867
  if (vErrors === null) {
2884
- vErrors = [err2];
2868
+ vErrors = [err1];
2885
2869
  }
2886
2870
  else {
2887
- vErrors.push(err2);
2871
+ vErrors.push(err1);
2888
2872
  }
2889
2873
  errors++;
2890
2874
  validate34.errors = vErrors;
2891
2875
  return false;
2892
2876
  }
2893
2877
  else {
2894
- errors = _errs11;
2878
+ errors = _errs9;
2895
2879
  if (vErrors !== null) {
2896
- if (_errs11) {
2897
- vErrors.length = _errs11;
2880
+ if (_errs9) {
2881
+ vErrors.length = _errs9;
2898
2882
  }
2899
2883
  else {
2900
2884
  vErrors = null;
2901
2885
  }
2902
2886
  }
2903
2887
  }
2904
- var valid0 = _errs10 === errors;
2888
+ var valid0 = _errs8 === errors;
2905
2889
  }
2906
2890
  else {
2907
2891
  var valid0 = true;
2908
2892
  }
2909
2893
  if (valid0) {
2910
- if (data.dependency !== undefined) {
2894
+ if (data.issuer !== undefined) {
2895
+ const _errs11 = errors;
2896
+ const _errs12 = errors;
2897
+ let valid3 = false;
2898
+ let passing2 = null;
2911
2899
  const _errs13 = errors;
2912
- const _errs14 = errors;
2913
- let valid4 = false;
2914
- let passing3 = null;
2915
- const _errs15 = errors;
2916
- if (!(validate35(data.dependency, { instancePath: instancePath + "/dependency", parentData: data, parentDataProperty: "dependency", rootData }))) {
2900
+ if (!(validate35(data.issuer, { instancePath: instancePath + "/issuer", parentData: data, parentDataProperty: "issuer", rootData }))) {
2917
2901
  vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
2918
2902
  errors = vErrors.length;
2919
2903
  }
2920
- var _valid3 = _errs15 === errors;
2921
- if (_valid3) {
2922
- valid4 = true;
2923
- passing3 = 0;
2904
+ var _valid2 = _errs13 === errors;
2905
+ if (_valid2) {
2906
+ valid3 = true;
2907
+ passing2 = 0;
2924
2908
  }
2925
- if (!valid4) {
2926
- const err3 = { instancePath: instancePath + "/dependency", schemaPath: "#/properties/dependency/oneOf", keyword: "oneOf", params: { passingSchemas: passing3 }, message: "must match exactly one schema in oneOf" };
2909
+ if (!valid3) {
2910
+ const err2 = { instancePath: instancePath + "/issuer", schemaPath: "#/properties/issuer/oneOf", keyword: "oneOf", params: { passingSchemas: passing2 }, message: "must match exactly one schema in oneOf" };
2927
2911
  if (vErrors === null) {
2928
- vErrors = [err3];
2912
+ vErrors = [err2];
2929
2913
  }
2930
2914
  else {
2931
- vErrors.push(err3);
2915
+ vErrors.push(err2);
2932
2916
  }
2933
2917
  errors++;
2934
2918
  validate34.errors = vErrors;
2935
2919
  return false;
2936
2920
  }
2937
2921
  else {
2938
- errors = _errs14;
2922
+ errors = _errs12;
2939
2923
  if (vErrors !== null) {
2940
- if (_errs14) {
2941
- vErrors.length = _errs14;
2924
+ if (_errs12) {
2925
+ vErrors.length = _errs12;
2942
2926
  }
2943
2927
  else {
2944
2928
  vErrors = null;
2945
2929
  }
2946
2930
  }
2947
2931
  }
2948
- var valid0 = _errs13 === errors;
2932
+ var valid0 = _errs11 === errors;
2949
2933
  }
2950
2934
  else {
2951
2935
  var valid0 = true;
2952
2936
  }
2953
2937
  if (valid0) {
2954
- if (data.descriptionData !== undefined) {
2955
- let data5 = data.descriptionData;
2938
+ if (data.dependency !== undefined) {
2939
+ const _errs14 = errors;
2940
+ const _errs15 = errors;
2941
+ let valid4 = false;
2942
+ let passing3 = null;
2956
2943
  const _errs16 = errors;
2957
- if (errors === _errs16) {
2958
- if (data5 && typeof data5 == "object" && !Array.isArray(data5)) {
2959
- for (const key1 in data5) {
2960
- const _errs19 = errors;
2961
- if (!(validate35(data5[key1], { instancePath: instancePath + "/descriptionData/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data5, parentDataProperty: key1, rootData }))) {
2962
- vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
2963
- errors = vErrors.length;
2964
- }
2965
- var valid5 = _errs19 === errors;
2966
- if (!valid5) {
2967
- break;
2968
- }
2969
- }
2944
+ if (!(validate35(data.dependency, { instancePath: instancePath + "/dependency", parentData: data, parentDataProperty: "dependency", rootData }))) {
2945
+ vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
2946
+ errors = vErrors.length;
2947
+ }
2948
+ var _valid3 = _errs16 === errors;
2949
+ if (_valid3) {
2950
+ valid4 = true;
2951
+ passing3 = 0;
2952
+ }
2953
+ if (!valid4) {
2954
+ const err3 = { instancePath: instancePath + "/dependency", schemaPath: "#/properties/dependency/oneOf", keyword: "oneOf", params: { passingSchemas: passing3 }, message: "must match exactly one schema in oneOf" };
2955
+ if (vErrors === null) {
2956
+ vErrors = [err3];
2970
2957
  }
2971
2958
  else {
2972
- validate34.errors = [{ instancePath: instancePath + "/descriptionData", schemaPath: "#/properties/descriptionData/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
2973
- return false;
2959
+ vErrors.push(err3);
2960
+ }
2961
+ errors++;
2962
+ validate34.errors = vErrors;
2963
+ return false;
2964
+ }
2965
+ else {
2966
+ errors = _errs15;
2967
+ if (vErrors !== null) {
2968
+ if (_errs15) {
2969
+ vErrors.length = _errs15;
2970
+ }
2971
+ else {
2972
+ vErrors = null;
2973
+ }
2974
2974
  }
2975
2975
  }
2976
- var valid0 = _errs16 === errors;
2976
+ var valid0 = _errs14 === errors;
2977
2977
  }
2978
2978
  else {
2979
2979
  var valid0 = true;
2980
2980
  }
2981
2981
  if (valid0) {
2982
- if (data.oneOf !== undefined) {
2983
- let data7 = data.oneOf;
2984
- const _errs20 = errors;
2985
- if (errors === _errs20) {
2986
- if (Array.isArray(data7)) {
2987
- var valid6 = true;
2988
- const len0 = data7.length;
2989
- for (let i0 = 0; i0 < len0; i0++) {
2990
- const _errs22 = errors;
2991
- const _errs23 = errors;
2992
- let valid7 = false;
2993
- let passing4 = null;
2994
- const _errs24 = errors;
2995
- if (!(wrapper2.validate(data7[i0], { instancePath: instancePath + "/oneOf/" + i0, parentData: data7, parentDataProperty: i0, rootData }))) {
2996
- vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
2982
+ if (data.descriptionData !== undefined) {
2983
+ let data6 = data.descriptionData;
2984
+ const _errs17 = errors;
2985
+ if (errors === _errs17) {
2986
+ if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
2987
+ for (const key1 in data6) {
2988
+ const _errs20 = errors;
2989
+ if (!(validate35(data6[key1], { instancePath: instancePath + "/descriptionData/" + key1.replace(/~/g, "~0").replace(/\//g, "~1"), parentData: data6, parentDataProperty: key1, rootData }))) {
2990
+ vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
2997
2991
  errors = vErrors.length;
2998
2992
  }
2999
- var _valid4 = _errs24 === errors;
3000
- if (_valid4) {
3001
- valid7 = true;
3002
- passing4 = 0;
3003
- }
3004
- if (!valid7) {
3005
- const err4 = { instancePath: instancePath + "/oneOf/" + i0, schemaPath: "#/properties/oneOf/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing4 }, message: "must match exactly one schema in oneOf" };
3006
- if (vErrors === null) {
3007
- vErrors = [err4];
3008
- }
3009
- else {
3010
- vErrors.push(err4);
3011
- }
3012
- errors++;
3013
- validate34.errors = vErrors;
3014
- return false;
3015
- }
3016
- else {
3017
- errors = _errs23;
3018
- if (vErrors !== null) {
3019
- if (_errs23) {
3020
- vErrors.length = _errs23;
3021
- }
3022
- else {
3023
- vErrors = null;
3024
- }
3025
- }
3026
- }
3027
- var valid6 = _errs22 === errors;
3028
- if (!valid6) {
2993
+ var valid5 = _errs20 === errors;
2994
+ if (!valid5) {
3029
2995
  break;
3030
2996
  }
3031
2997
  }
3032
2998
  }
3033
2999
  else {
3034
- validate34.errors = [{ instancePath: instancePath + "/oneOf", schemaPath: "#/properties/oneOf/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
3000
+ validate34.errors = [{ instancePath: instancePath + "/descriptionData", schemaPath: "#/properties/descriptionData/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
3035
3001
  return false;
3036
3002
  }
3037
3003
  }
3038
- var valid0 = _errs20 === errors;
3004
+ var valid0 = _errs17 === errors;
3039
3005
  }
3040
3006
  else {
3041
3007
  var valid0 = true;
3042
3008
  }
3043
3009
  if (valid0) {
3044
- if (data.parser !== undefined) {
3045
- let data9 = data.parser;
3046
- const _errs25 = errors;
3047
- if (errors === _errs25) {
3048
- if (data9 && typeof data9 == "object" && !Array.isArray(data9)) { }
3010
+ if (data.oneOf !== undefined) {
3011
+ let data8 = data.oneOf;
3012
+ const _errs21 = errors;
3013
+ if (errors === _errs21) {
3014
+ if (Array.isArray(data8)) {
3015
+ var valid6 = true;
3016
+ const len0 = data8.length;
3017
+ for (let i0 = 0; i0 < len0; i0++) {
3018
+ const _errs23 = errors;
3019
+ const _errs24 = errors;
3020
+ let valid7 = false;
3021
+ let passing4 = null;
3022
+ const _errs25 = errors;
3023
+ if (!(wrapper2.validate(data8[i0], { instancePath: instancePath + "/oneOf/" + i0, parentData: data8, parentDataProperty: i0, rootData }))) {
3024
+ vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
3025
+ errors = vErrors.length;
3026
+ }
3027
+ var _valid4 = _errs25 === errors;
3028
+ if (_valid4) {
3029
+ valid7 = true;
3030
+ passing4 = 0;
3031
+ }
3032
+ if (!valid7) {
3033
+ const err4 = { instancePath: instancePath + "/oneOf/" + i0, schemaPath: "#/properties/oneOf/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing4 }, message: "must match exactly one schema in oneOf" };
3034
+ if (vErrors === null) {
3035
+ vErrors = [err4];
3036
+ }
3037
+ else {
3038
+ vErrors.push(err4);
3039
+ }
3040
+ errors++;
3041
+ validate34.errors = vErrors;
3042
+ return false;
3043
+ }
3044
+ else {
3045
+ errors = _errs24;
3046
+ if (vErrors !== null) {
3047
+ if (_errs24) {
3048
+ vErrors.length = _errs24;
3049
+ }
3050
+ else {
3051
+ vErrors = null;
3052
+ }
3053
+ }
3054
+ }
3055
+ var valid6 = _errs23 === errors;
3056
+ if (!valid6) {
3057
+ break;
3058
+ }
3059
+ }
3060
+ }
3049
3061
  else {
3050
- validate34.errors = [{ instancePath: instancePath + "/parser", schemaPath: "#/properties/parser/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
3062
+ validate34.errors = [{ instancePath: instancePath + "/oneOf", schemaPath: "#/properties/oneOf/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
3051
3063
  return false;
3052
3064
  }
3053
3065
  }
3054
- var valid0 = _errs25 === errors;
3066
+ var valid0 = _errs21 === errors;
3055
3067
  }
3056
3068
  else {
3057
3069
  var valid0 = true;
3058
3070
  }
3059
3071
  if (valid0) {
3060
- if (data.resolve !== undefined) {
3061
- let data10 = data.resolve;
3062
- const _errs28 = errors;
3063
- if (!(data10 && typeof data10 == "object" && !Array.isArray(data10))) {
3064
- validate34.errors = [{ instancePath: instancePath + "/resolve", schemaPath: "#/properties/resolve/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
3065
- return false;
3066
- }
3067
- const _errs30 = errors;
3068
- let valid8 = false;
3069
- let passing5 = null;
3070
- const _errs31 = errors;
3071
- if (!(validate50(data10, { instancePath: instancePath + "/resolve", parentData: data, parentDataProperty: "resolve", rootData }))) {
3072
- vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
3073
- errors = vErrors.length;
3074
- }
3075
- var _valid5 = _errs31 === errors;
3076
- if (_valid5) {
3077
- valid8 = true;
3078
- passing5 = 0;
3079
- }
3080
- if (!valid8) {
3081
- const err5 = { instancePath: instancePath + "/resolve", schemaPath: "#/properties/resolve/oneOf", keyword: "oneOf", params: { passingSchemas: passing5 }, message: "must match exactly one schema in oneOf" };
3082
- if (vErrors === null) {
3083
- vErrors = [err5];
3084
- }
3072
+ if (data.parser !== undefined) {
3073
+ let data10 = data.parser;
3074
+ const _errs26 = errors;
3075
+ if (errors === _errs26) {
3076
+ if (data10 && typeof data10 == "object" && !Array.isArray(data10)) { }
3085
3077
  else {
3086
- vErrors.push(err5);
3087
- }
3088
- errors++;
3089
- validate34.errors = vErrors;
3090
- return false;
3091
- }
3092
- else {
3093
- errors = _errs30;
3094
- if (vErrors !== null) {
3095
- if (_errs30) {
3096
- vErrors.length = _errs30;
3097
- }
3098
- else {
3099
- vErrors = null;
3100
- }
3078
+ validate34.errors = [{ instancePath: instancePath + "/parser", schemaPath: "#/properties/parser/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
3079
+ return false;
3101
3080
  }
3102
3081
  }
3103
- var valid0 = _errs28 === errors;
3082
+ var valid0 = _errs26 === errors;
3104
3083
  }
3105
3084
  else {
3106
3085
  var valid0 = true;
3107
3086
  }
3108
3087
  if (valid0) {
3109
- if (data.resource !== undefined) {
3088
+ if (data.resolve !== undefined) {
3089
+ let data11 = data.resolve;
3090
+ const _errs29 = errors;
3091
+ if (!(data11 && typeof data11 == "object" && !Array.isArray(data11))) {
3092
+ validate34.errors = [{ instancePath: instancePath + "/resolve", schemaPath: "#/properties/resolve/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
3093
+ return false;
3094
+ }
3095
+ const _errs31 = errors;
3096
+ let valid8 = false;
3097
+ let passing5 = null;
3110
3098
  const _errs32 = errors;
3111
- const _errs33 = errors;
3112
- let valid9 = false;
3113
- let passing6 = null;
3114
- const _errs34 = errors;
3115
- if (!(validate35(data.resource, { instancePath: instancePath + "/resource", parentData: data, parentDataProperty: "resource", rootData }))) {
3116
- vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
3099
+ if (!(validate50(data11, { instancePath: instancePath + "/resolve", parentData: data, parentDataProperty: "resolve", rootData }))) {
3100
+ vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
3117
3101
  errors = vErrors.length;
3118
3102
  }
3119
- var _valid6 = _errs34 === errors;
3120
- if (_valid6) {
3121
- valid9 = true;
3122
- passing6 = 0;
3103
+ var _valid5 = _errs32 === errors;
3104
+ if (_valid5) {
3105
+ valid8 = true;
3106
+ passing5 = 0;
3123
3107
  }
3124
- if (!valid9) {
3125
- const err6 = { instancePath: instancePath + "/resource", schemaPath: "#/properties/resource/oneOf", keyword: "oneOf", params: { passingSchemas: passing6 }, message: "must match exactly one schema in oneOf" };
3108
+ if (!valid8) {
3109
+ const err5 = { instancePath: instancePath + "/resolve", schemaPath: "#/properties/resolve/oneOf", keyword: "oneOf", params: { passingSchemas: passing5 }, message: "must match exactly one schema in oneOf" };
3126
3110
  if (vErrors === null) {
3127
- vErrors = [err6];
3111
+ vErrors = [err5];
3128
3112
  }
3129
3113
  else {
3130
- vErrors.push(err6);
3114
+ vErrors.push(err5);
3131
3115
  }
3132
3116
  errors++;
3133
3117
  validate34.errors = vErrors;
3134
3118
  return false;
3135
3119
  }
3136
3120
  else {
3137
- errors = _errs33;
3121
+ errors = _errs31;
3138
3122
  if (vErrors !== null) {
3139
- if (_errs33) {
3140
- vErrors.length = _errs33;
3123
+ if (_errs31) {
3124
+ vErrors.length = _errs31;
3141
3125
  }
3142
3126
  else {
3143
3127
  vErrors = null;
3144
3128
  }
3145
3129
  }
3146
3130
  }
3147
- var valid0 = _errs32 === errors;
3131
+ var valid0 = _errs29 === errors;
3148
3132
  }
3149
3133
  else {
3150
3134
  var valid0 = true;
3151
3135
  }
3152
3136
  if (valid0) {
3153
- if (data.resourceFragment !== undefined) {
3137
+ if (data.resource !== undefined) {
3138
+ const _errs33 = errors;
3139
+ const _errs34 = errors;
3140
+ let valid9 = false;
3141
+ let passing6 = null;
3154
3142
  const _errs35 = errors;
3155
- const _errs36 = errors;
3156
- let valid10 = false;
3157
- let passing7 = null;
3158
- const _errs37 = errors;
3159
- if (!(validate35(data.resourceFragment, { instancePath: instancePath + "/resourceFragment", parentData: data, parentDataProperty: "resourceFragment", rootData }))) {
3143
+ if (!(validate35(data.resource, { instancePath: instancePath + "/resource", parentData: data, parentDataProperty: "resource", rootData }))) {
3160
3144
  vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
3161
3145
  errors = vErrors.length;
3162
3146
  }
3163
- var _valid7 = _errs37 === errors;
3164
- if (_valid7) {
3165
- valid10 = true;
3166
- passing7 = 0;
3147
+ var _valid6 = _errs35 === errors;
3148
+ if (_valid6) {
3149
+ valid9 = true;
3150
+ passing6 = 0;
3167
3151
  }
3168
- if (!valid10) {
3169
- const err7 = { instancePath: instancePath + "/resourceFragment", schemaPath: "#/properties/resourceFragment/oneOf", keyword: "oneOf", params: { passingSchemas: passing7 }, message: "must match exactly one schema in oneOf" };
3152
+ if (!valid9) {
3153
+ const err6 = { instancePath: instancePath + "/resource", schemaPath: "#/properties/resource/oneOf", keyword: "oneOf", params: { passingSchemas: passing6 }, message: "must match exactly one schema in oneOf" };
3170
3154
  if (vErrors === null) {
3171
- vErrors = [err7];
3155
+ vErrors = [err6];
3172
3156
  }
3173
3157
  else {
3174
- vErrors.push(err7);
3158
+ vErrors.push(err6);
3175
3159
  }
3176
3160
  errors++;
3177
3161
  validate34.errors = vErrors;
3178
3162
  return false;
3179
3163
  }
3180
3164
  else {
3181
- errors = _errs36;
3165
+ errors = _errs34;
3182
3166
  if (vErrors !== null) {
3183
- if (_errs36) {
3184
- vErrors.length = _errs36;
3167
+ if (_errs34) {
3168
+ vErrors.length = _errs34;
3185
3169
  }
3186
3170
  else {
3187
3171
  vErrors = null;
3188
3172
  }
3189
3173
  }
3190
3174
  }
3191
- var valid0 = _errs35 === errors;
3175
+ var valid0 = _errs33 === errors;
3192
3176
  }
3193
3177
  else {
3194
3178
  var valid0 = true;
3195
3179
  }
3196
3180
  if (valid0) {
3197
- if (data.resourceQuery !== undefined) {
3181
+ if (data.resourceFragment !== undefined) {
3182
+ const _errs36 = errors;
3183
+ const _errs37 = errors;
3184
+ let valid10 = false;
3185
+ let passing7 = null;
3198
3186
  const _errs38 = errors;
3199
- const _errs39 = errors;
3200
- let valid11 = false;
3201
- let passing8 = null;
3202
- const _errs40 = errors;
3203
- if (!(validate35(data.resourceQuery, { instancePath: instancePath + "/resourceQuery", parentData: data, parentDataProperty: "resourceQuery", rootData }))) {
3187
+ if (!(validate35(data.resourceFragment, { instancePath: instancePath + "/resourceFragment", parentData: data, parentDataProperty: "resourceFragment", rootData }))) {
3204
3188
  vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
3205
3189
  errors = vErrors.length;
3206
3190
  }
3207
- var _valid8 = _errs40 === errors;
3208
- if (_valid8) {
3209
- valid11 = true;
3210
- passing8 = 0;
3191
+ var _valid7 = _errs38 === errors;
3192
+ if (_valid7) {
3193
+ valid10 = true;
3194
+ passing7 = 0;
3211
3195
  }
3212
- if (!valid11) {
3213
- const err8 = { instancePath: instancePath + "/resourceQuery", schemaPath: "#/properties/resourceQuery/oneOf", keyword: "oneOf", params: { passingSchemas: passing8 }, message: "must match exactly one schema in oneOf" };
3196
+ if (!valid10) {
3197
+ const err7 = { instancePath: instancePath + "/resourceFragment", schemaPath: "#/properties/resourceFragment/oneOf", keyword: "oneOf", params: { passingSchemas: passing7 }, message: "must match exactly one schema in oneOf" };
3214
3198
  if (vErrors === null) {
3215
- vErrors = [err8];
3199
+ vErrors = [err7];
3216
3200
  }
3217
3201
  else {
3218
- vErrors.push(err8);
3202
+ vErrors.push(err7);
3219
3203
  }
3220
3204
  errors++;
3221
3205
  validate34.errors = vErrors;
3222
3206
  return false;
3223
3207
  }
3224
3208
  else {
3225
- errors = _errs39;
3209
+ errors = _errs37;
3226
3210
  if (vErrors !== null) {
3227
- if (_errs39) {
3228
- vErrors.length = _errs39;
3211
+ if (_errs37) {
3212
+ vErrors.length = _errs37;
3229
3213
  }
3230
3214
  else {
3231
3215
  vErrors = null;
3232
3216
  }
3233
3217
  }
3234
3218
  }
3235
- var valid0 = _errs38 === errors;
3219
+ var valid0 = _errs36 === errors;
3236
3220
  }
3237
3221
  else {
3238
3222
  var valid0 = true;
3239
3223
  }
3240
3224
  if (valid0) {
3241
- if (data.rules !== undefined) {
3242
- let data14 = data.rules;
3225
+ if (data.resourceQuery !== undefined) {
3226
+ const _errs39 = errors;
3227
+ const _errs40 = errors;
3228
+ let valid11 = false;
3229
+ let passing8 = null;
3243
3230
  const _errs41 = errors;
3244
- if (errors === _errs41) {
3245
- if (Array.isArray(data14)) {
3246
- var valid12 = true;
3247
- const len1 = data14.length;
3248
- for (let i1 = 0; i1 < len1; i1++) {
3249
- const _errs43 = errors;
3250
- const _errs44 = errors;
3251
- let valid13 = false;
3252
- let passing9 = null;
3253
- const _errs45 = errors;
3254
- if (!(wrapper2.validate(data14[i1], { instancePath: instancePath + "/rules/" + i1, parentData: data14, parentDataProperty: i1, rootData }))) {
3255
- vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
3256
- errors = vErrors.length;
3257
- }
3258
- var _valid9 = _errs45 === errors;
3259
- if (_valid9) {
3260
- valid13 = true;
3261
- passing9 = 0;
3262
- }
3263
- if (!valid13) {
3264
- const err9 = { instancePath: instancePath + "/rules/" + i1, schemaPath: "#/properties/rules/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing9 }, message: "must match exactly one schema in oneOf" };
3265
- if (vErrors === null) {
3266
- vErrors = [err9];
3267
- }
3268
- else {
3269
- vErrors.push(err9);
3270
- }
3271
- errors++;
3272
- validate34.errors = vErrors;
3273
- return false;
3274
- }
3275
- else {
3276
- errors = _errs44;
3277
- if (vErrors !== null) {
3278
- if (_errs44) {
3279
- vErrors.length = _errs44;
3280
- }
3281
- else {
3282
- vErrors = null;
3283
- }
3284
- }
3285
- }
3286
- var valid12 = _errs43 === errors;
3287
- if (!valid12) {
3288
- break;
3289
- }
3290
- }
3231
+ if (!(validate35(data.resourceQuery, { instancePath: instancePath + "/resourceQuery", parentData: data, parentDataProperty: "resourceQuery", rootData }))) {
3232
+ vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
3233
+ errors = vErrors.length;
3234
+ }
3235
+ var _valid8 = _errs41 === errors;
3236
+ if (_valid8) {
3237
+ valid11 = true;
3238
+ passing8 = 0;
3239
+ }
3240
+ if (!valid11) {
3241
+ const err8 = { instancePath: instancePath + "/resourceQuery", schemaPath: "#/properties/resourceQuery/oneOf", keyword: "oneOf", params: { passingSchemas: passing8 }, message: "must match exactly one schema in oneOf" };
3242
+ if (vErrors === null) {
3243
+ vErrors = [err8];
3291
3244
  }
3292
3245
  else {
3293
- validate34.errors = [{ instancePath: instancePath + "/rules", schemaPath: "#/properties/rules/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
3294
- return false;
3246
+ vErrors.push(err8);
3295
3247
  }
3248
+ errors++;
3249
+ validate34.errors = vErrors;
3250
+ return false;
3296
3251
  }
3297
- var valid0 = _errs41 === errors;
3252
+ else {
3253
+ errors = _errs40;
3254
+ if (vErrors !== null) {
3255
+ if (_errs40) {
3256
+ vErrors.length = _errs40;
3257
+ }
3258
+ else {
3259
+ vErrors = null;
3260
+ }
3261
+ }
3262
+ }
3263
+ var valid0 = _errs39 === errors;
3298
3264
  }
3299
3265
  else {
3300
3266
  var valid0 = true;
3301
3267
  }
3302
3268
  if (valid0) {
3303
- if (data.sideEffects !== undefined) {
3304
- const _errs46 = errors;
3305
- if (typeof data.sideEffects !== "boolean") {
3306
- validate34.errors = [{ instancePath: instancePath + "/sideEffects", schemaPath: "#/properties/sideEffects/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
3307
- return false;
3269
+ if (data.rules !== undefined) {
3270
+ let data15 = data.rules;
3271
+ const _errs42 = errors;
3272
+ if (errors === _errs42) {
3273
+ if (Array.isArray(data15)) {
3274
+ var valid12 = true;
3275
+ const len1 = data15.length;
3276
+ for (let i1 = 0; i1 < len1; i1++) {
3277
+ const _errs44 = errors;
3278
+ const _errs45 = errors;
3279
+ let valid13 = false;
3280
+ let passing9 = null;
3281
+ const _errs46 = errors;
3282
+ if (!(wrapper2.validate(data15[i1], { instancePath: instancePath + "/rules/" + i1, parentData: data15, parentDataProperty: i1, rootData }))) {
3283
+ vErrors = vErrors === null ? wrapper2.validate.errors : vErrors.concat(wrapper2.validate.errors);
3284
+ errors = vErrors.length;
3285
+ }
3286
+ var _valid9 = _errs46 === errors;
3287
+ if (_valid9) {
3288
+ valid13 = true;
3289
+ passing9 = 0;
3290
+ }
3291
+ if (!valid13) {
3292
+ const err9 = { instancePath: instancePath + "/rules/" + i1, schemaPath: "#/properties/rules/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing9 }, message: "must match exactly one schema in oneOf" };
3293
+ if (vErrors === null) {
3294
+ vErrors = [err9];
3295
+ }
3296
+ else {
3297
+ vErrors.push(err9);
3298
+ }
3299
+ errors++;
3300
+ validate34.errors = vErrors;
3301
+ return false;
3302
+ }
3303
+ else {
3304
+ errors = _errs45;
3305
+ if (vErrors !== null) {
3306
+ if (_errs45) {
3307
+ vErrors.length = _errs45;
3308
+ }
3309
+ else {
3310
+ vErrors = null;
3311
+ }
3312
+ }
3313
+ }
3314
+ var valid12 = _errs44 === errors;
3315
+ if (!valid12) {
3316
+ break;
3317
+ }
3318
+ }
3319
+ }
3320
+ else {
3321
+ validate34.errors = [{ instancePath: instancePath + "/rules", schemaPath: "#/properties/rules/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
3322
+ return false;
3323
+ }
3308
3324
  }
3309
- var valid0 = _errs46 === errors;
3325
+ var valid0 = _errs42 === errors;
3310
3326
  }
3311
3327
  else {
3312
3328
  var valid0 = true;
3313
3329
  }
3314
3330
  if (valid0) {
3315
- if (data.test !== undefined) {
3316
- const _errs48 = errors;
3317
- const _errs49 = errors;
3318
- let valid14 = false;
3319
- let passing10 = null;
3320
- const _errs50 = errors;
3321
- if (!(validate35(data.test, { instancePath: instancePath + "/test", parentData: data, parentDataProperty: "test", rootData }))) {
3322
- vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
3323
- errors = vErrors.length;
3324
- }
3325
- var _valid10 = _errs50 === errors;
3326
- if (_valid10) {
3327
- valid14 = true;
3328
- passing10 = 0;
3329
- }
3330
- if (!valid14) {
3331
- const err10 = { instancePath: instancePath + "/test", schemaPath: "#/properties/test/oneOf", keyword: "oneOf", params: { passingSchemas: passing10 }, message: "must match exactly one schema in oneOf" };
3332
- if (vErrors === null) {
3333
- vErrors = [err10];
3334
- }
3335
- else {
3336
- vErrors.push(err10);
3337
- }
3338
- errors++;
3339
- validate34.errors = vErrors;
3331
+ if (data.sideEffects !== undefined) {
3332
+ const _errs47 = errors;
3333
+ if (typeof data.sideEffects !== "boolean") {
3334
+ validate34.errors = [{ instancePath: instancePath + "/sideEffects", schemaPath: "#/properties/sideEffects/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
3340
3335
  return false;
3341
3336
  }
3342
- else {
3343
- errors = _errs49;
3344
- if (vErrors !== null) {
3345
- if (_errs49) {
3346
- vErrors.length = _errs49;
3347
- }
3348
- else {
3349
- vErrors = null;
3350
- }
3351
- }
3352
- }
3353
- var valid0 = _errs48 === errors;
3337
+ var valid0 = _errs47 === errors;
3354
3338
  }
3355
3339
  else {
3356
3340
  var valid0 = true;
3357
3341
  }
3358
3342
  if (valid0) {
3359
- if (data.type !== undefined) {
3343
+ if (data.test !== undefined) {
3344
+ const _errs49 = errors;
3345
+ const _errs50 = errors;
3346
+ let valid14 = false;
3347
+ let passing10 = null;
3360
3348
  const _errs51 = errors;
3361
- if (typeof data.type !== "string") {
3362
- validate34.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
3349
+ if (!(validate35(data.test, { instancePath: instancePath + "/test", parentData: data, parentDataProperty: "test", rootData }))) {
3350
+ vErrors = vErrors === null ? validate35.errors : vErrors.concat(validate35.errors);
3351
+ errors = vErrors.length;
3352
+ }
3353
+ var _valid10 = _errs51 === errors;
3354
+ if (_valid10) {
3355
+ valid14 = true;
3356
+ passing10 = 0;
3357
+ }
3358
+ if (!valid14) {
3359
+ const err10 = { instancePath: instancePath + "/test", schemaPath: "#/properties/test/oneOf", keyword: "oneOf", params: { passingSchemas: passing10 }, message: "must match exactly one schema in oneOf" };
3360
+ if (vErrors === null) {
3361
+ vErrors = [err10];
3362
+ }
3363
+ else {
3364
+ vErrors.push(err10);
3365
+ }
3366
+ errors++;
3367
+ validate34.errors = vErrors;
3363
3368
  return false;
3364
3369
  }
3365
- var valid0 = _errs51 === errors;
3370
+ else {
3371
+ errors = _errs50;
3372
+ if (vErrors !== null) {
3373
+ if (_errs50) {
3374
+ vErrors.length = _errs50;
3375
+ }
3376
+ else {
3377
+ vErrors = null;
3378
+ }
3379
+ }
3380
+ }
3381
+ var valid0 = _errs49 === errors;
3366
3382
  }
3367
3383
  else {
3368
3384
  var valid0 = true;
3369
3385
  }
3370
3386
  if (valid0) {
3371
- if (data.use !== undefined) {
3372
- const _errs53 = errors;
3373
- const _errs54 = errors;
3374
- let valid15 = false;
3375
- let passing11 = null;
3376
- const _errs55 = errors;
3377
- if (!(validate56(data.use, { instancePath: instancePath + "/use", parentData: data, parentDataProperty: "use", rootData }))) {
3378
- vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
3379
- errors = vErrors.length;
3380
- }
3381
- var _valid11 = _errs55 === errors;
3382
- if (_valid11) {
3383
- valid15 = true;
3384
- passing11 = 0;
3387
+ if (data.type !== undefined) {
3388
+ const _errs52 = errors;
3389
+ if (typeof data.type !== "string") {
3390
+ validate34.errors = [{ instancePath: instancePath + "/type", schemaPath: "#/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
3391
+ return false;
3385
3392
  }
3386
- if (!valid15) {
3387
- const err11 = { instancePath: instancePath + "/use", schemaPath: "#/properties/use/oneOf", keyword: "oneOf", params: { passingSchemas: passing11 }, message: "must match exactly one schema in oneOf" };
3388
- if (vErrors === null) {
3389
- vErrors = [err11];
3393
+ var valid0 = _errs52 === errors;
3394
+ }
3395
+ else {
3396
+ var valid0 = true;
3397
+ }
3398
+ if (valid0) {
3399
+ if (data.use !== undefined) {
3400
+ const _errs54 = errors;
3401
+ const _errs55 = errors;
3402
+ let valid15 = false;
3403
+ let passing11 = null;
3404
+ const _errs56 = errors;
3405
+ if (!(validate56(data.use, { instancePath: instancePath + "/use", parentData: data, parentDataProperty: "use", rootData }))) {
3406
+ vErrors = vErrors === null ? validate56.errors : vErrors.concat(validate56.errors);
3407
+ errors = vErrors.length;
3390
3408
  }
3391
- else {
3392
- vErrors.push(err11);
3409
+ var _valid11 = _errs56 === errors;
3410
+ if (_valid11) {
3411
+ valid15 = true;
3412
+ passing11 = 0;
3393
3413
  }
3394
- errors++;
3395
- validate34.errors = vErrors;
3396
- return false;
3397
- }
3398
- else {
3399
- errors = _errs54;
3400
- if (vErrors !== null) {
3401
- if (_errs54) {
3402
- vErrors.length = _errs54;
3414
+ if (!valid15) {
3415
+ const err11 = { instancePath: instancePath + "/use", schemaPath: "#/properties/use/oneOf", keyword: "oneOf", params: { passingSchemas: passing11 }, message: "must match exactly one schema in oneOf" };
3416
+ if (vErrors === null) {
3417
+ vErrors = [err11];
3403
3418
  }
3404
3419
  else {
3405
- vErrors = null;
3420
+ vErrors.push(err11);
3421
+ }
3422
+ errors++;
3423
+ validate34.errors = vErrors;
3424
+ return false;
3425
+ }
3426
+ else {
3427
+ errors = _errs55;
3428
+ if (vErrors !== null) {
3429
+ if (_errs55) {
3430
+ vErrors.length = _errs55;
3431
+ }
3432
+ else {
3433
+ vErrors = null;
3434
+ }
3406
3435
  }
3407
3436
  }
3437
+ var valid0 = _errs54 === errors;
3438
+ }
3439
+ else {
3440
+ var valid0 = true;
3408
3441
  }
3409
- var valid0 = _errs53 === errors;
3410
- }
3411
- else {
3412
- var valid0 = true;
3413
3442
  }
3414
3443
  }
3415
3444
  }
@@ -5092,22 +5121,24 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
5092
5121
  return false;
5093
5122
  }
5094
5123
  } validate71.errors = vErrors; return errors === 0; }
5095
- 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" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "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" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" } } };
5124
+ 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" }, "clean": { "$ref": "#/definitions/Clean" }, "assetModuleFilename": { "$ref": "#/definitions/AssetModuleFilename" }, "auxiliaryComment": { "oneOf": [{ "$ref": "#/definitions/AuxiliaryComment" }] }, "chunkFormat": { "$ref": "#/definitions/ChunkFormat" }, "chunkLoading": { "$ref": "#/definitions/ChunkLoading" }, "enabledChunkLoadingTypes": { "$ref": "#/definitions/EnabledChunkLoadingTypes" }, "chunkFilename": { "$ref": "#/definitions/ChunkFilename" }, "crossOriginLoading": { "$ref": "#/definitions/CrossOriginLoading" }, "cssChunkFilename": { "$ref": "#/definitions/CssChunkFilename" }, "cssFilename": { "$ref": "#/definitions/CssFilename" }, "enabledWasmLoadingTypes": { "$ref": "#/definitions/EnabledWasmLoadingTypes" }, "wasmLoading": { "$ref": "#/definitions/WasmLoading" }, "webassemblyModuleFilename": { "$ref": "#/definitions/WebassemblyModuleFilename" }, "enabledLibraryTypes": { "$ref": "#/definitions/EnabledLibraryTypes" }, "filename": { "$ref": "#/definitions/Filename" }, "globalObject": { "$ref": "#/definitions/GlobalObject" }, "importFunctionName": { "$ref": "#/definitions/ImportFunctionName" }, "library": { "$ref": "#/definitions/Library" }, "libraryExport": { "oneOf": [{ "$ref": "#/definitions/LibraryExport" }] }, "libraryTarget": { "oneOf": [{ "$ref": "#/definitions/LibraryType" }] }, "module": { "$ref": "#/definitions/OutputModule" }, "path": { "$ref": "#/definitions/Path" }, "publicPath": { "$ref": "#/definitions/PublicPath" }, "strictModuleErrorHandling": { "$ref": "#/definitions/StrictModuleErrorHandling" }, "umdNamedDefine": { "oneOf": [{ "$ref": "#/definitions/UmdNamedDefine" }] }, "uniqueName": { "$ref": "#/definitions/UniqueName" }, "chunkLoadingGlobal": { "$ref": "#/definitions/ChunkLoadingGlobal" }, "trustedTypes": { "description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.", "anyOf": [{ "enum": [true] }, { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 }, { "$ref": "#/definitions/TrustedTypes" }] } } };
5096
5125
  const schema70 = { "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.", "type": "boolean" };
5097
5126
  const schema71 = { "description": "Clears the output build directory", "type": "boolean" };
5098
5127
  const schema72 = { "description": "The filename of asset modules as relative path inside the 'output.path' directory.", "anyOf": [{ "type": "string" }] };
5099
- const schema77 = { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] };
5100
- const schema84 = { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" };
5101
- const schema89 = { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 };
5102
- const schema90 = { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" };
5103
- const schema95 = { "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 }] };
5104
- const schema86 = { "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" }] };
5105
- const schema100 = { "description": "Output javascript files as module source type.", "type": "boolean" };
5106
- const schema101 = { "description": "The output directory as **absolute path** (required).", "type": "string" };
5107
- const schema104 = { "description": "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.", "type": "boolean" };
5108
- const schema97 = { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" };
5109
- const schema106 = { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 };
5110
- const schema107 = { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 };
5128
+ const schema75 = { "description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).", "anyOf": [{ "enum": ["array-push", "commonjs", "module", false] }, { "type": "string" }] };
5129
+ const schema82 = { "description": "This option enables cross-origin loading of chunks.", "enum": [false, "anonymous", "use-credentials"] };
5130
+ const schema89 = { "description": "The filename of WebAssembly modules as relative path inside the 'output.path' directory.", "type": "string" };
5131
+ const schema94 = { "description": "An expression which is used to address the global object/scope in runtime code.", "type": "string", "minLength": 1 };
5132
+ const schema95 = { "description": "The name of the native import() function (can be exchanged for a polyfill).", "type": "string" };
5133
+ const schema100 = { "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 }] };
5134
+ const schema91 = { "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" }] };
5135
+ const schema105 = { "description": "Output javascript files as module source type.", "type": "boolean" };
5136
+ const schema106 = { "description": "The output directory as **absolute path** (required).", "type": "string" };
5137
+ const schema109 = { "description": "Handles error in module loading correctly at a performance cost. This will handle module error compatible with the EcmaScript Modules spec.", "type": "boolean" };
5138
+ const schema102 = { "description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.", "type": "boolean" };
5139
+ const schema111 = { "description": "A unique name of the rspack build to avoid multiple rspack runtimes to conflict when using globals.", "type": "string", "minLength": 1 };
5140
+ const schema112 = { "description": "The global variable used by rspack for loading of chunks.", "type": "string", "minLength": 1 };
5141
+ const schema113 = { "description": "Use a Trusted Types policy to create urls for chunks.", "type": "object", "additionalProperties": false, "properties": { "policyName": { "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.", "type": "string", "minLength": 1 } } };
5111
5142
  const schema73 = { "description": "Add a comment in the UMD wrapper.", "anyOf": [{ "description": "Append the same comment above each import style.", "type": "string" }, { "$ref": "#/definitions/LibraryCustomUmdCommentObject" }] };
5112
5143
  const schema74 = { "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" } } };
5113
5144
  function validate76(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") {
@@ -5251,23 +5282,24 @@ else {
5251
5282
  }
5252
5283
  }
5253
5284
  } validate76.errors = vErrors; return errors === 0; }
5254
- const schema75 = { "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" }] };
5255
- const schema76 = { "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" }] };
5256
- function validate78(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) {
5257
- if (typeof data === "string") {
5258
- if (data.length < 1) {
5259
- const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
5260
- if (vErrors === null) {
5261
- vErrors = [err0];
5262
- }
5263
- else {
5264
- vErrors.push(err0);
5265
- }
5266
- errors++;
5267
- }
5285
+ const schema76 = { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": [false] }, { "$ref": "#/definitions/ChunkLoadingType" }] };
5286
+ const schema77 = { "description": "The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).", "anyOf": [{ "enum": ["jsonp", "import-scripts", "require", "async-node", "import"] }, { "type": "string" }] };
5287
+ function validate78(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== false) {
5288
+ const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
5289
+ if (vErrors === null) {
5290
+ vErrors = [err0];
5268
5291
  }
5269
5292
  else {
5270
- const err1 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5293
+ vErrors.push(err0);
5294
+ }
5295
+ errors++;
5296
+ } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) {
5297
+ const _errs2 = errors;
5298
+ const _errs4 = errors;
5299
+ let valid2 = false;
5300
+ const _errs5 = errors;
5301
+ if (data !== "jsonp" && data !== "import-scripts" && data !== "require" && data !== "async-node" && data !== "import") {
5302
+ const err1 = { instancePath, schemaPath: "#/definitions/ChunkLoadingType/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
5271
5303
  if (vErrors === null) {
5272
5304
  vErrors = [err1];
5273
5305
  }
@@ -5276,45 +5308,48 @@ function validate78(data, { instancePath = "", parentData, parentDataProperty, r
5276
5308
  }
5277
5309
  errors++;
5278
5310
  }
5279
- } var _valid1 = _errs4 === errors; valid2 = valid2 || _valid1; if (!valid2) {
5280
- const _errs6 = errors;
5281
- if (!(data instanceof Function)) {
5282
- const err2 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
5311
+ var _valid1 = _errs5 === errors;
5312
+ valid2 = valid2 || _valid1;
5313
+ if (!valid2) {
5314
+ const _errs6 = errors;
5315
+ if (typeof data !== "string") {
5316
+ const err2 = { instancePath, schemaPath: "#/definitions/ChunkLoadingType/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5317
+ if (vErrors === null) {
5318
+ vErrors = [err2];
5319
+ }
5320
+ else {
5321
+ vErrors.push(err2);
5322
+ }
5323
+ errors++;
5324
+ }
5325
+ var _valid1 = _errs6 === errors;
5326
+ valid2 = valid2 || _valid1;
5327
+ }
5328
+ if (!valid2) {
5329
+ const err3 = { instancePath, schemaPath: "#/definitions/ChunkLoadingType/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
5283
5330
  if (vErrors === null) {
5284
- vErrors = [err2];
5331
+ vErrors = [err3];
5285
5332
  }
5286
5333
  else {
5287
- vErrors.push(err2);
5334
+ vErrors.push(err3);
5288
5335
  }
5289
5336
  errors++;
5290
5337
  }
5291
- var _valid1 = _errs6 === errors;
5292
- valid2 = valid2 || _valid1;
5293
- } if (!valid2) {
5294
- const err3 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
5295
- if (vErrors === null) {
5296
- vErrors = [err3];
5297
- }
5298
5338
  else {
5299
- vErrors.push(err3);
5300
- }
5301
- errors++;
5302
- }
5303
- else {
5304
- errors = _errs3;
5305
- if (vErrors !== null) {
5306
- if (_errs3) {
5307
- vErrors.length = _errs3;
5308
- }
5309
- else {
5310
- vErrors = null;
5339
+ errors = _errs4;
5340
+ if (vErrors !== null) {
5341
+ if (_errs4) {
5342
+ vErrors.length = _errs4;
5343
+ }
5344
+ else {
5345
+ vErrors = null;
5346
+ }
5311
5347
  }
5312
5348
  }
5313
- } var _valid0 = _errs1 === errors; if (_valid0) {
5314
- valid0 = true;
5315
- passing0 = 0;
5349
+ var _valid0 = _errs2 === errors;
5350
+ valid0 = valid0 || _valid0;
5316
5351
  } if (!valid0) {
5317
- const err4 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
5352
+ const err4 = { instancePath, schemaPath: "#/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
5318
5353
  if (vErrors === null) {
5319
5354
  vErrors = [err4];
5320
5355
  }
@@ -5336,8 +5371,81 @@ else {
5336
5371
  }
5337
5372
  }
5338
5373
  } validate78.errors = vErrors; return errors === 0; }
5339
- const schema78 = { "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" }] };
5340
- function validate80(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) {
5374
+ const schema78 = { "description": "List of chunk loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/ChunkLoadingType" } };
5375
+ function validate80(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
5376
+ if (Array.isArray(data)) {
5377
+ var valid0 = true;
5378
+ const len0 = data.length;
5379
+ for (let i0 = 0; i0 < len0; i0++) {
5380
+ let data0 = data[i0];
5381
+ const _errs1 = errors;
5382
+ const _errs3 = errors;
5383
+ let valid2 = false;
5384
+ const _errs4 = errors;
5385
+ if (data0 !== "jsonp" && data0 !== "import-scripts" && data0 !== "require" && data0 !== "async-node" && data0 !== "import") {
5386
+ const err0 = { instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/ChunkLoadingType/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
5387
+ if (vErrors === null) {
5388
+ vErrors = [err0];
5389
+ }
5390
+ else {
5391
+ vErrors.push(err0);
5392
+ }
5393
+ errors++;
5394
+ }
5395
+ var _valid0 = _errs4 === errors;
5396
+ valid2 = valid2 || _valid0;
5397
+ if (!valid2) {
5398
+ const _errs5 = errors;
5399
+ if (typeof data0 !== "string") {
5400
+ const err1 = { instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/ChunkLoadingType/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5401
+ if (vErrors === null) {
5402
+ vErrors = [err1];
5403
+ }
5404
+ else {
5405
+ vErrors.push(err1);
5406
+ }
5407
+ errors++;
5408
+ }
5409
+ var _valid0 = _errs5 === errors;
5410
+ valid2 = valid2 || _valid0;
5411
+ }
5412
+ if (!valid2) {
5413
+ const err2 = { instancePath: instancePath + "/" + i0, schemaPath: "#/definitions/ChunkLoadingType/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
5414
+ if (vErrors === null) {
5415
+ vErrors = [err2];
5416
+ }
5417
+ else {
5418
+ vErrors.push(err2);
5419
+ }
5420
+ errors++;
5421
+ validate80.errors = vErrors;
5422
+ return false;
5423
+ }
5424
+ else {
5425
+ errors = _errs3;
5426
+ if (vErrors !== null) {
5427
+ if (_errs3) {
5428
+ vErrors.length = _errs3;
5429
+ }
5430
+ else {
5431
+ vErrors = null;
5432
+ }
5433
+ }
5434
+ }
5435
+ var valid0 = _errs1 === errors;
5436
+ if (!valid0) {
5437
+ break;
5438
+ }
5439
+ }
5440
+ }
5441
+ else {
5442
+ validate80.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
5443
+ return false;
5444
+ }
5445
+ } validate80.errors = vErrors; return errors === 0; }
5446
+ const schema80 = { "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" }] };
5447
+ const schema81 = { "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" }] };
5448
+ function validate82(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) {
5341
5449
  if (typeof data === "string") {
5342
5450
  if (data.length < 1) {
5343
5451
  const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
@@ -5406,7 +5514,7 @@ else {
5406
5514
  vErrors.push(err4);
5407
5515
  }
5408
5516
  errors++;
5409
- validate80.errors = vErrors;
5517
+ validate82.errors = vErrors;
5410
5518
  return false;
5411
5519
  }
5412
5520
  else {
@@ -5419,9 +5527,9 @@ else {
5419
5527
  vErrors = null;
5420
5528
  }
5421
5529
  }
5422
- } validate80.errors = vErrors; return errors === 0; }
5423
- const schema80 = { "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" }] };
5424
- function validate82(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) {
5530
+ } validate82.errors = vErrors; return errors === 0; }
5531
+ const schema83 = { "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" }] };
5532
+ function validate84(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) {
5425
5533
  if (typeof data === "string") {
5426
5534
  if (data.length < 1) {
5427
5535
  const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
@@ -5490,7 +5598,7 @@ else {
5490
5598
  vErrors.push(err4);
5491
5599
  }
5492
5600
  errors++;
5493
- validate82.errors = vErrors;
5601
+ validate84.errors = vErrors;
5494
5602
  return false;
5495
5603
  }
5496
5604
  else {
@@ -5503,9 +5611,93 @@ else {
5503
5611
  vErrors = null;
5504
5612
  }
5505
5613
  }
5506
- } validate82.errors = vErrors; return errors === 0; }
5507
- const schema82 = { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } };
5508
- function validate84(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
5614
+ } validate84.errors = vErrors; return errors === 0; }
5615
+ const schema85 = { "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" }] };
5616
+ function validate86(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; const _errs3 = errors; let valid2 = false; const _errs4 = errors; if (errors === _errs4) {
5617
+ if (typeof data === "string") {
5618
+ if (data.length < 1) {
5619
+ const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
5620
+ if (vErrors === null) {
5621
+ vErrors = [err0];
5622
+ }
5623
+ else {
5624
+ vErrors.push(err0);
5625
+ }
5626
+ errors++;
5627
+ }
5628
+ }
5629
+ else {
5630
+ const err1 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5631
+ if (vErrors === null) {
5632
+ vErrors = [err1];
5633
+ }
5634
+ else {
5635
+ vErrors.push(err1);
5636
+ }
5637
+ errors++;
5638
+ }
5639
+ } var _valid1 = _errs4 === errors; valid2 = valid2 || _valid1; if (!valid2) {
5640
+ const _errs6 = errors;
5641
+ if (!(data instanceof Function)) {
5642
+ const err2 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
5643
+ if (vErrors === null) {
5644
+ vErrors = [err2];
5645
+ }
5646
+ else {
5647
+ vErrors.push(err2);
5648
+ }
5649
+ errors++;
5650
+ }
5651
+ var _valid1 = _errs6 === errors;
5652
+ valid2 = valid2 || _valid1;
5653
+ } if (!valid2) {
5654
+ const err3 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
5655
+ if (vErrors === null) {
5656
+ vErrors = [err3];
5657
+ }
5658
+ else {
5659
+ vErrors.push(err3);
5660
+ }
5661
+ errors++;
5662
+ }
5663
+ else {
5664
+ errors = _errs3;
5665
+ if (vErrors !== null) {
5666
+ if (_errs3) {
5667
+ vErrors.length = _errs3;
5668
+ }
5669
+ else {
5670
+ vErrors = null;
5671
+ }
5672
+ }
5673
+ } var _valid0 = _errs1 === errors; if (_valid0) {
5674
+ valid0 = true;
5675
+ passing0 = 0;
5676
+ } if (!valid0) {
5677
+ const err4 = { instancePath, schemaPath: "#/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
5678
+ if (vErrors === null) {
5679
+ vErrors = [err4];
5680
+ }
5681
+ else {
5682
+ vErrors.push(err4);
5683
+ }
5684
+ errors++;
5685
+ validate86.errors = vErrors;
5686
+ return false;
5687
+ }
5688
+ else {
5689
+ errors = _errs0;
5690
+ if (vErrors !== null) {
5691
+ if (_errs0) {
5692
+ vErrors.length = _errs0;
5693
+ }
5694
+ else {
5695
+ vErrors = null;
5696
+ }
5697
+ }
5698
+ } validate86.errors = vErrors; return errors === 0; }
5699
+ const schema87 = { "description": "List of wasm loading types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/WasmLoadingType" } };
5700
+ function validate88(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
5509
5701
  if (Array.isArray(data)) {
5510
5702
  var valid0 = true;
5511
5703
  const len0 = data.length;
@@ -5551,7 +5743,7 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
5551
5743
  vErrors.push(err2);
5552
5744
  }
5553
5745
  errors++;
5554
- validate84.errors = vErrors;
5746
+ validate88.errors = vErrors;
5555
5747
  return false;
5556
5748
  }
5557
5749
  else {
@@ -5572,12 +5764,12 @@ function validate84(data, { instancePath = "", parentData, parentDataProperty, r
5572
5764
  }
5573
5765
  }
5574
5766
  else {
5575
- validate84.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
5767
+ validate88.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
5576
5768
  return false;
5577
5769
  }
5578
- } validate84.errors = vErrors; return errors === 0; }
5579
- const schema85 = { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } };
5580
- function validate87(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
5770
+ } validate88.errors = vErrors; return errors === 0; }
5771
+ const schema90 = { "description": "List of library types enabled for use by entry points.", "type": "array", "items": { "$ref": "#/definitions/LibraryType" } };
5772
+ function validate91(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
5581
5773
  if (Array.isArray(data)) {
5582
5774
  var valid0 = true;
5583
5775
  const len0 = data.length;
@@ -5623,7 +5815,7 @@ function validate87(data, { instancePath = "", parentData, parentDataProperty, r
5623
5815
  vErrors.push(err2);
5624
5816
  }
5625
5817
  errors++;
5626
- validate87.errors = vErrors;
5818
+ validate91.errors = vErrors;
5627
5819
  return false;
5628
5820
  }
5629
5821
  else {
@@ -5644,12 +5836,12 @@ function validate87(data, { instancePath = "", parentData, parentDataProperty, r
5644
5836
  }
5645
5837
  }
5646
5838
  else {
5647
- validate87.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
5839
+ validate91.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
5648
5840
  return false;
5649
5841
  }
5650
- } validate87.errors = vErrors; return errors === 0; }
5651
- const schema87 = { "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" }] };
5652
- function validate89(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) {
5842
+ } validate91.errors = vErrors; return errors === 0; }
5843
+ const schema92 = { "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" }] };
5844
+ function validate93(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) {
5653
5845
  if (typeof data === "string") {
5654
5846
  if (data.length < 1) {
5655
5847
  const err0 = { instancePath, schemaPath: "#/definitions/FilenameTemplate/anyOf/0/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
@@ -5718,7 +5910,7 @@ else {
5718
5910
  vErrors.push(err4);
5719
5911
  }
5720
5912
  errors++;
5721
- validate89.errors = vErrors;
5913
+ validate93.errors = vErrors;
5722
5914
  return false;
5723
5915
  }
5724
5916
  else {
@@ -5731,11 +5923,11 @@ else {
5731
5923
  vErrors = null;
5732
5924
  }
5733
5925
  }
5734
- } validate89.errors = vErrors; return errors === 0; }
5735
- const schema91 = { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] };
5736
- const schema92 = { "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" }] };
5737
- const schema93 = { "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 }] } } };
5738
- function validate92(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (errors === _errs1) {
5926
+ } validate93.errors = vErrors; return errors === 0; }
5927
+ const schema96 = { "description": "Make the output files a library, exporting the exports of the entry point.", "anyOf": [{ "$ref": "#/definitions/LibraryName" }, { "$ref": "#/definitions/LibraryOptions" }] };
5928
+ const schema97 = { "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" }] };
5929
+ const schema98 = { "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 }] } } };
5930
+ function validate96(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (errors === _errs1) {
5739
5931
  if (Array.isArray(data)) {
5740
5932
  if (data.length < 1) {
5741
5933
  const err0 = { instancePath, schemaPath: "#/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
@@ -6046,7 +6238,7 @@ function validate92(data, { instancePath = "", parentData, parentDataProperty, r
6046
6238
  vErrors.push(err18);
6047
6239
  }
6048
6240
  errors++;
6049
- validate92.errors = vErrors;
6241
+ validate96.errors = vErrors;
6050
6242
  return false;
6051
6243
  }
6052
6244
  else {
@@ -6059,20 +6251,20 @@ else {
6059
6251
  vErrors = null;
6060
6252
  }
6061
6253
  }
6062
- } validate92.errors = vErrors; return errors === 0; }
6063
- const schema94 = { "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"] };
6064
- function validate94(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
6254
+ } validate96.errors = vErrors; return errors === 0; }
6255
+ const schema99 = { "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"] };
6256
+ function validate98(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
6065
6257
  if (data && typeof data == "object" && !Array.isArray(data)) {
6066
6258
  let missing0;
6067
6259
  if ((data.type === undefined) && (missing0 = "type")) {
6068
- validate94.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
6260
+ validate98.errors = [{ instancePath, schemaPath: "#/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
6069
6261
  return false;
6070
6262
  }
6071
6263
  else {
6072
6264
  const _errs1 = errors;
6073
6265
  for (const key0 in data) {
6074
6266
  if (!(((((key0 === "auxiliaryComment") || (key0 === "export")) || (key0 === "name")) || (key0 === "type")) || (key0 === "umdNamedDefine"))) {
6075
- validate94.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
6267
+ validate98.errors = [{ instancePath, schemaPath: "#/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
6076
6268
  return false;
6077
6269
  break;
6078
6270
  }
@@ -6184,7 +6376,7 @@ function validate94(data, { instancePath = "", parentData, parentDataProperty, r
6184
6376
  vErrors.push(err5);
6185
6377
  }
6186
6378
  errors++;
6187
- validate94.errors = vErrors;
6379
+ validate98.errors = vErrors;
6188
6380
  return false;
6189
6381
  }
6190
6382
  else {
@@ -6206,8 +6398,8 @@ function validate94(data, { instancePath = "", parentData, parentDataProperty, r
6206
6398
  if (valid0) {
6207
6399
  if (data.name !== undefined) {
6208
6400
  const _errs12 = errors;
6209
- if (!(validate92(data.name, { instancePath: instancePath + "/name", parentData: data, parentDataProperty: "name", rootData }))) {
6210
- vErrors = vErrors === null ? validate92.errors : vErrors.concat(validate92.errors);
6401
+ if (!(validate96(data.name, { instancePath: instancePath + "/name", parentData: data, parentDataProperty: "name", rootData }))) {
6402
+ vErrors = vErrors === null ? validate96.errors : vErrors.concat(validate96.errors);
6211
6403
  errors = vErrors.length;
6212
6404
  }
6213
6405
  var valid0 = _errs12 === errors;
@@ -6258,7 +6450,7 @@ function validate94(data, { instancePath = "", parentData, parentDataProperty, r
6258
6450
  vErrors.push(err8);
6259
6451
  }
6260
6452
  errors++;
6261
- validate94.errors = vErrors;
6453
+ validate98.errors = vErrors;
6262
6454
  return false;
6263
6455
  }
6264
6456
  else {
@@ -6281,7 +6473,7 @@ function validate94(data, { instancePath = "", parentData, parentDataProperty, r
6281
6473
  if (data.umdNamedDefine !== undefined) {
6282
6474
  const _errs19 = errors;
6283
6475
  if (typeof data.umdNamedDefine !== "boolean") {
6284
- validate94.errors = [{ instancePath: instancePath + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
6476
+ validate98.errors = [{ instancePath: instancePath + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
6285
6477
  return false;
6286
6478
  }
6287
6479
  var valid0 = _errs19 === errors;
@@ -6297,17 +6489,17 @@ function validate94(data, { instancePath = "", parentData, parentDataProperty, r
6297
6489
  }
6298
6490
  }
6299
6491
  else {
6300
- validate94.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
6492
+ validate98.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
6301
6493
  return false;
6302
6494
  }
6303
- } validate94.errors = vErrors; return errors === 0; }
6304
- function validate91(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (!(validate92(data, { instancePath, parentData, parentDataProperty, rootData }))) {
6305
- vErrors = vErrors === null ? validate92.errors : vErrors.concat(validate92.errors);
6495
+ } validate98.errors = vErrors; return errors === 0; }
6496
+ function validate95(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (!(validate96(data, { instancePath, parentData, parentDataProperty, rootData }))) {
6497
+ vErrors = vErrors === null ? validate96.errors : vErrors.concat(validate96.errors);
6306
6498
  errors = vErrors.length;
6307
6499
  } var _valid0 = _errs1 === errors; valid0 = valid0 || _valid0; if (!valid0) {
6308
6500
  const _errs2 = errors;
6309
- if (!(validate94(data, { instancePath, parentData, parentDataProperty, rootData }))) {
6310
- vErrors = vErrors === null ? validate94.errors : vErrors.concat(validate94.errors);
6501
+ if (!(validate98(data, { instancePath, parentData, parentDataProperty, rootData }))) {
6502
+ vErrors = vErrors === null ? validate98.errors : vErrors.concat(validate98.errors);
6311
6503
  errors = vErrors.length;
6312
6504
  }
6313
6505
  var _valid0 = _errs2 === errors;
@@ -6321,7 +6513,7 @@ function validate91(data, { instancePath = "", parentData, parentDataProperty, r
6321
6513
  vErrors.push(err0);
6322
6514
  }
6323
6515
  errors++;
6324
- validate91.errors = vErrors;
6516
+ validate95.errors = vErrors;
6325
6517
  return false;
6326
6518
  }
6327
6519
  else {
@@ -6334,10 +6526,10 @@ else {
6334
6526
  vErrors = null;
6335
6527
  }
6336
6528
  }
6337
- } validate91.errors = vErrors; return errors === 0; }
6338
- const schema102 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] };
6339
- const schema103 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] };
6340
- function validate99(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== "auto") {
6529
+ } validate95.errors = vErrors; return errors === 0; }
6530
+ const schema107 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "enum": ["auto"] }, { "$ref": "#/definitions/RawPublicPath" }] };
6531
+ const schema108 = { "description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.", "anyOf": [{ "type": "string" }] };
6532
+ function validate103(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== "auto") {
6341
6533
  const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
6342
6534
  if (vErrors === null) {
6343
6535
  vErrors = [err0];
@@ -6395,7 +6587,7 @@ function validate99(data, { instancePath = "", parentData, parentDataProperty, r
6395
6587
  vErrors.push(err3);
6396
6588
  }
6397
6589
  errors++;
6398
- validate99.errors = vErrors;
6590
+ validate103.errors = vErrors;
6399
6591
  return false;
6400
6592
  }
6401
6593
  else {
@@ -6408,7 +6600,7 @@ else {
6408
6600
  vErrors = null;
6409
6601
  }
6410
6602
  }
6411
- } validate99.errors = vErrors; return errors === 0; }
6603
+ } validate103.errors = vErrors; return errors === 0; }
6412
6604
  function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
6413
6605
  if (data && typeof data == "object" && !Array.isArray(data)) {
6414
6606
  const _errs1 = errors;
@@ -6534,11 +6726,61 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
6534
6726
  var valid0 = true;
6535
6727
  }
6536
6728
  if (valid0) {
6537
- if (data.chunkFilename !== undefined) {
6729
+ if (data.chunkFormat !== undefined) {
6730
+ let data4 = data.chunkFormat;
6538
6731
  const _errs16 = errors;
6539
- if (!(validate78(data.chunkFilename, { instancePath: instancePath + "/chunkFilename", parentData: data, parentDataProperty: "chunkFilename", rootData }))) {
6540
- vErrors = vErrors === null ? validate78.errors : vErrors.concat(validate78.errors);
6541
- errors = vErrors.length;
6732
+ const _errs18 = errors;
6733
+ let valid7 = false;
6734
+ const _errs19 = errors;
6735
+ if (data4 !== "array-push" && data4 !== "commonjs" && data4 !== "module" && data4 !== false) {
6736
+ const err3 = { instancePath: instancePath + "/chunkFormat", schemaPath: "#/definitions/ChunkFormat/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
6737
+ if (vErrors === null) {
6738
+ vErrors = [err3];
6739
+ }
6740
+ else {
6741
+ vErrors.push(err3);
6742
+ }
6743
+ errors++;
6744
+ }
6745
+ var _valid2 = _errs19 === errors;
6746
+ valid7 = valid7 || _valid2;
6747
+ if (!valid7) {
6748
+ const _errs20 = errors;
6749
+ if (typeof data4 !== "string") {
6750
+ const err4 = { instancePath: instancePath + "/chunkFormat", schemaPath: "#/definitions/ChunkFormat/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6751
+ if (vErrors === null) {
6752
+ vErrors = [err4];
6753
+ }
6754
+ else {
6755
+ vErrors.push(err4);
6756
+ }
6757
+ errors++;
6758
+ }
6759
+ var _valid2 = _errs20 === errors;
6760
+ valid7 = valid7 || _valid2;
6761
+ }
6762
+ if (!valid7) {
6763
+ const err5 = { instancePath: instancePath + "/chunkFormat", schemaPath: "#/definitions/ChunkFormat/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
6764
+ if (vErrors === null) {
6765
+ vErrors = [err5];
6766
+ }
6767
+ else {
6768
+ vErrors.push(err5);
6769
+ }
6770
+ errors++;
6771
+ validate75.errors = vErrors;
6772
+ return false;
6773
+ }
6774
+ else {
6775
+ errors = _errs18;
6776
+ if (vErrors !== null) {
6777
+ if (_errs18) {
6778
+ vErrors.length = _errs18;
6779
+ }
6780
+ else {
6781
+ vErrors = null;
6782
+ }
6783
+ }
6542
6784
  }
6543
6785
  var valid0 = _errs16 === errors;
6544
6786
  }
@@ -6546,525 +6788,705 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
6546
6788
  var valid0 = true;
6547
6789
  }
6548
6790
  if (valid0) {
6549
- if (data.crossOriginLoading !== undefined) {
6550
- let data5 = data.crossOriginLoading;
6551
- const _errs17 = errors;
6552
- if (data5 !== false && data5 !== "anonymous" && data5 !== "use-credentials") {
6553
- validate75.errors = [{ instancePath: instancePath + "/crossOriginLoading", schemaPath: "#/definitions/CrossOriginLoading/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
6554
- return false;
6791
+ if (data.chunkLoading !== undefined) {
6792
+ const _errs22 = errors;
6793
+ if (!(validate78(data.chunkLoading, { instancePath: instancePath + "/chunkLoading", parentData: data, parentDataProperty: "chunkLoading", rootData }))) {
6794
+ vErrors = vErrors === null ? validate78.errors : vErrors.concat(validate78.errors);
6795
+ errors = vErrors.length;
6555
6796
  }
6556
- var valid0 = _errs17 === errors;
6797
+ var valid0 = _errs22 === errors;
6557
6798
  }
6558
6799
  else {
6559
6800
  var valid0 = true;
6560
6801
  }
6561
6802
  if (valid0) {
6562
- if (data.cssChunkFilename !== undefined) {
6563
- const _errs19 = errors;
6564
- if (!(validate80(data.cssChunkFilename, { instancePath: instancePath + "/cssChunkFilename", parentData: data, parentDataProperty: "cssChunkFilename", rootData }))) {
6803
+ if (data.enabledChunkLoadingTypes !== undefined) {
6804
+ const _errs23 = errors;
6805
+ if (!(validate80(data.enabledChunkLoadingTypes, { instancePath: instancePath + "/enabledChunkLoadingTypes", parentData: data, parentDataProperty: "enabledChunkLoadingTypes", rootData }))) {
6565
6806
  vErrors = vErrors === null ? validate80.errors : vErrors.concat(validate80.errors);
6566
6807
  errors = vErrors.length;
6567
6808
  }
6568
- var valid0 = _errs19 === errors;
6809
+ var valid0 = _errs23 === errors;
6569
6810
  }
6570
6811
  else {
6571
6812
  var valid0 = true;
6572
6813
  }
6573
6814
  if (valid0) {
6574
- if (data.cssFilename !== undefined) {
6575
- const _errs20 = errors;
6576
- if (!(validate82(data.cssFilename, { instancePath: instancePath + "/cssFilename", parentData: data, parentDataProperty: "cssFilename", rootData }))) {
6815
+ if (data.chunkFilename !== undefined) {
6816
+ const _errs24 = errors;
6817
+ if (!(validate82(data.chunkFilename, { instancePath: instancePath + "/chunkFilename", parentData: data, parentDataProperty: "chunkFilename", rootData }))) {
6577
6818
  vErrors = vErrors === null ? validate82.errors : vErrors.concat(validate82.errors);
6578
6819
  errors = vErrors.length;
6579
6820
  }
6580
- var valid0 = _errs20 === errors;
6821
+ var valid0 = _errs24 === errors;
6581
6822
  }
6582
6823
  else {
6583
6824
  var valid0 = true;
6584
6825
  }
6585
6826
  if (valid0) {
6586
- if (data.enabledWasmLoadingTypes !== undefined) {
6587
- const _errs21 = errors;
6588
- if (!(validate84(data.enabledWasmLoadingTypes, { instancePath: instancePath + "/enabledWasmLoadingTypes", parentData: data, parentDataProperty: "enabledWasmLoadingTypes", rootData }))) {
6589
- vErrors = vErrors === null ? validate84.errors : vErrors.concat(validate84.errors);
6590
- errors = vErrors.length;
6827
+ if (data.crossOriginLoading !== undefined) {
6828
+ let data8 = data.crossOriginLoading;
6829
+ const _errs25 = errors;
6830
+ if (data8 !== false && data8 !== "anonymous" && data8 !== "use-credentials") {
6831
+ validate75.errors = [{ instancePath: instancePath + "/crossOriginLoading", schemaPath: "#/definitions/CrossOriginLoading/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
6832
+ return false;
6591
6833
  }
6592
- var valid0 = _errs21 === errors;
6834
+ var valid0 = _errs25 === errors;
6593
6835
  }
6594
6836
  else {
6595
6837
  var valid0 = true;
6596
6838
  }
6597
6839
  if (valid0) {
6598
- if (data.wasmLoading !== undefined) {
6599
- const _errs22 = errors;
6600
- if (!(validate15(data.wasmLoading, { instancePath: instancePath + "/wasmLoading", parentData: data, parentDataProperty: "wasmLoading", rootData }))) {
6601
- vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);
6840
+ if (data.cssChunkFilename !== undefined) {
6841
+ const _errs27 = errors;
6842
+ if (!(validate84(data.cssChunkFilename, { instancePath: instancePath + "/cssChunkFilename", parentData: data, parentDataProperty: "cssChunkFilename", rootData }))) {
6843
+ vErrors = vErrors === null ? validate84.errors : vErrors.concat(validate84.errors);
6602
6844
  errors = vErrors.length;
6603
6845
  }
6604
- var valid0 = _errs22 === errors;
6846
+ var valid0 = _errs27 === errors;
6605
6847
  }
6606
6848
  else {
6607
6849
  var valid0 = true;
6608
6850
  }
6609
6851
  if (valid0) {
6610
- if (data.webassemblyModuleFilename !== undefined) {
6611
- const _errs23 = errors;
6612
- if (typeof data.webassemblyModuleFilename !== "string") {
6613
- validate75.errors = [{ instancePath: instancePath + "/webassemblyModuleFilename", schemaPath: "#/definitions/WebassemblyModuleFilename/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6614
- return false;
6852
+ if (data.cssFilename !== undefined) {
6853
+ const _errs28 = errors;
6854
+ if (!(validate86(data.cssFilename, { instancePath: instancePath + "/cssFilename", parentData: data, parentDataProperty: "cssFilename", rootData }))) {
6855
+ vErrors = vErrors === null ? validate86.errors : vErrors.concat(validate86.errors);
6856
+ errors = vErrors.length;
6615
6857
  }
6616
- var valid0 = _errs23 === errors;
6858
+ var valid0 = _errs28 === errors;
6617
6859
  }
6618
6860
  else {
6619
6861
  var valid0 = true;
6620
6862
  }
6621
6863
  if (valid0) {
6622
- if (data.enabledLibraryTypes !== undefined) {
6623
- const _errs26 = errors;
6624
- if (!(validate87(data.enabledLibraryTypes, { instancePath: instancePath + "/enabledLibraryTypes", parentData: data, parentDataProperty: "enabledLibraryTypes", rootData }))) {
6625
- vErrors = vErrors === null ? validate87.errors : vErrors.concat(validate87.errors);
6864
+ if (data.enabledWasmLoadingTypes !== undefined) {
6865
+ const _errs29 = errors;
6866
+ if (!(validate88(data.enabledWasmLoadingTypes, { instancePath: instancePath + "/enabledWasmLoadingTypes", parentData: data, parentDataProperty: "enabledWasmLoadingTypes", rootData }))) {
6867
+ vErrors = vErrors === null ? validate88.errors : vErrors.concat(validate88.errors);
6626
6868
  errors = vErrors.length;
6627
6869
  }
6628
- var valid0 = _errs26 === errors;
6870
+ var valid0 = _errs29 === errors;
6629
6871
  }
6630
6872
  else {
6631
6873
  var valid0 = true;
6632
6874
  }
6633
6875
  if (valid0) {
6634
- if (data.filename !== undefined) {
6635
- const _errs27 = errors;
6636
- if (!(validate89(data.filename, { instancePath: instancePath + "/filename", parentData: data, parentDataProperty: "filename", rootData }))) {
6637
- vErrors = vErrors === null ? validate89.errors : vErrors.concat(validate89.errors);
6876
+ if (data.wasmLoading !== undefined) {
6877
+ const _errs30 = errors;
6878
+ if (!(validate15(data.wasmLoading, { instancePath: instancePath + "/wasmLoading", parentData: data, parentDataProperty: "wasmLoading", rootData }))) {
6879
+ vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);
6638
6880
  errors = vErrors.length;
6639
6881
  }
6640
- var valid0 = _errs27 === errors;
6882
+ var valid0 = _errs30 === errors;
6641
6883
  }
6642
6884
  else {
6643
6885
  var valid0 = true;
6644
6886
  }
6645
6887
  if (valid0) {
6646
- if (data.globalObject !== undefined) {
6647
- let data13 = data.globalObject;
6648
- const _errs28 = errors;
6649
- const _errs29 = errors;
6650
- if (errors === _errs29) {
6651
- if (typeof data13 === "string") {
6652
- if (data13.length < 1) {
6653
- validate75.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
6654
- return false;
6655
- }
6656
- }
6657
- else {
6658
- validate75.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6659
- return false;
6660
- }
6888
+ if (data.webassemblyModuleFilename !== undefined) {
6889
+ const _errs31 = errors;
6890
+ if (typeof data.webassemblyModuleFilename !== "string") {
6891
+ validate75.errors = [{ instancePath: instancePath + "/webassemblyModuleFilename", schemaPath: "#/definitions/WebassemblyModuleFilename/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6892
+ return false;
6661
6893
  }
6662
- var valid0 = _errs28 === errors;
6894
+ var valid0 = _errs31 === errors;
6663
6895
  }
6664
6896
  else {
6665
6897
  var valid0 = true;
6666
6898
  }
6667
6899
  if (valid0) {
6668
- if (data.importFunctionName !== undefined) {
6669
- const _errs31 = errors;
6670
- if (typeof data.importFunctionName !== "string") {
6671
- validate75.errors = [{ instancePath: instancePath + "/importFunctionName", schemaPath: "#/definitions/ImportFunctionName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6672
- return false;
6900
+ if (data.enabledLibraryTypes !== undefined) {
6901
+ const _errs34 = errors;
6902
+ if (!(validate91(data.enabledLibraryTypes, { instancePath: instancePath + "/enabledLibraryTypes", parentData: data, parentDataProperty: "enabledLibraryTypes", rootData }))) {
6903
+ vErrors = vErrors === null ? validate91.errors : vErrors.concat(validate91.errors);
6904
+ errors = vErrors.length;
6673
6905
  }
6674
- var valid0 = _errs31 === errors;
6906
+ var valid0 = _errs34 === errors;
6675
6907
  }
6676
6908
  else {
6677
6909
  var valid0 = true;
6678
6910
  }
6679
6911
  if (valid0) {
6680
- if (data.library !== undefined) {
6681
- const _errs34 = errors;
6682
- if (!(validate91(data.library, { instancePath: instancePath + "/library", parentData: data, parentDataProperty: "library", rootData }))) {
6683
- vErrors = vErrors === null ? validate91.errors : vErrors.concat(validate91.errors);
6912
+ if (data.filename !== undefined) {
6913
+ const _errs35 = errors;
6914
+ if (!(validate93(data.filename, { instancePath: instancePath + "/filename", parentData: data, parentDataProperty: "filename", rootData }))) {
6915
+ vErrors = vErrors === null ? validate93.errors : vErrors.concat(validate93.errors);
6684
6916
  errors = vErrors.length;
6685
6917
  }
6686
- var valid0 = _errs34 === errors;
6918
+ var valid0 = _errs35 === errors;
6687
6919
  }
6688
6920
  else {
6689
6921
  var valid0 = true;
6690
6922
  }
6691
6923
  if (valid0) {
6692
- if (data.libraryExport !== undefined) {
6693
- let data16 = data.libraryExport;
6694
- const _errs35 = errors;
6924
+ if (data.globalObject !== undefined) {
6925
+ let data16 = data.globalObject;
6695
6926
  const _errs36 = errors;
6696
- let valid10 = false;
6697
- let passing1 = null;
6698
6927
  const _errs37 = errors;
6699
- const _errs39 = errors;
6700
- let valid12 = false;
6701
- const _errs40 = errors;
6702
- if (errors === _errs40) {
6703
- if (Array.isArray(data16)) {
6704
- var valid13 = true;
6705
- const len0 = data16.length;
6706
- for (let i0 = 0; i0 < len0; i0++) {
6707
- let data17 = data16[i0];
6708
- const _errs42 = errors;
6709
- if (errors === _errs42) {
6710
- if (typeof data17 === "string") {
6711
- if (data17.length < 1) {
6712
- const err3 = { instancePath: instancePath + "/libraryExport/" + i0, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
6713
- if (vErrors === null) {
6714
- vErrors = [err3];
6715
- }
6716
- else {
6717
- vErrors.push(err3);
6718
- }
6719
- errors++;
6720
- }
6721
- }
6722
- else {
6723
- const err4 = { instancePath: instancePath + "/libraryExport/" + i0, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6724
- if (vErrors === null) {
6725
- vErrors = [err4];
6726
- }
6727
- else {
6728
- vErrors.push(err4);
6729
- }
6730
- errors++;
6731
- }
6732
- }
6733
- var valid13 = _errs42 === errors;
6734
- if (!valid13) {
6735
- break;
6736
- }
6737
- }
6738
- }
6739
- else {
6740
- const err5 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
6741
- if (vErrors === null) {
6742
- vErrors = [err5];
6743
- }
6744
- else {
6745
- vErrors.push(err5);
6746
- }
6747
- errors++;
6748
- }
6749
- }
6750
- var _valid3 = _errs40 === errors;
6751
- valid12 = valid12 || _valid3;
6752
- if (!valid12) {
6753
- const _errs44 = errors;
6754
- if (errors === _errs44) {
6755
- if (typeof data16 === "string") {
6756
- if (data16.length < 1) {
6757
- const err6 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/1/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
6758
- if (vErrors === null) {
6759
- vErrors = [err6];
6760
- }
6761
- else {
6762
- vErrors.push(err6);
6763
- }
6764
- errors++;
6765
- }
6766
- }
6767
- else {
6768
- const err7 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6769
- if (vErrors === null) {
6770
- vErrors = [err7];
6771
- }
6772
- else {
6773
- vErrors.push(err7);
6774
- }
6775
- errors++;
6776
- }
6777
- }
6778
- var _valid3 = _errs44 === errors;
6779
- valid12 = valid12 || _valid3;
6780
- }
6781
- if (!valid12) {
6782
- const err8 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
6783
- if (vErrors === null) {
6784
- vErrors = [err8];
6785
- }
6786
- else {
6787
- vErrors.push(err8);
6788
- }
6789
- errors++;
6790
- }
6791
- else {
6792
- errors = _errs39;
6793
- if (vErrors !== null) {
6794
- if (_errs39) {
6795
- vErrors.length = _errs39;
6796
- }
6797
- else {
6798
- vErrors = null;
6928
+ if (errors === _errs37) {
6929
+ if (typeof data16 === "string") {
6930
+ if (data16.length < 1) {
6931
+ validate75.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
6932
+ return false;
6799
6933
  }
6800
6934
  }
6801
- }
6802
- var _valid2 = _errs37 === errors;
6803
- if (_valid2) {
6804
- valid10 = true;
6805
- passing1 = 0;
6806
- }
6807
- if (!valid10) {
6808
- const err9 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/properties/libraryExport/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
6809
- if (vErrors === null) {
6810
- vErrors = [err9];
6811
- }
6812
6935
  else {
6813
- vErrors.push(err9);
6814
- }
6815
- errors++;
6816
- validate75.errors = vErrors;
6817
- return false;
6818
- }
6819
- else {
6820
- errors = _errs36;
6821
- if (vErrors !== null) {
6822
- if (_errs36) {
6823
- vErrors.length = _errs36;
6824
- }
6825
- else {
6826
- vErrors = null;
6827
- }
6936
+ validate75.errors = [{ instancePath: instancePath + "/globalObject", schemaPath: "#/definitions/GlobalObject/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6937
+ return false;
6828
6938
  }
6829
6939
  }
6830
- var valid0 = _errs35 === errors;
6940
+ var valid0 = _errs36 === errors;
6831
6941
  }
6832
6942
  else {
6833
6943
  var valid0 = true;
6834
6944
  }
6835
6945
  if (valid0) {
6836
- if (data.libraryTarget !== undefined) {
6837
- let data18 = data.libraryTarget;
6838
- const _errs46 = errors;
6839
- const _errs47 = errors;
6840
- let valid14 = false;
6841
- let passing2 = null;
6842
- const _errs48 = errors;
6843
- const _errs50 = errors;
6844
- let valid16 = false;
6845
- const _errs51 = errors;
6846
- if (data18 !== "var" && data18 !== "module" && data18 !== "assign" && data18 !== "assign-properties" && data18 !== "this" && data18 !== "window" && data18 !== "self" && data18 !== "global" && data18 !== "commonjs" && data18 !== "commonjs2" && data18 !== "commonjs-module" && data18 !== "commonjs-static" && data18 !== "amd" && data18 !== "amd-require" && data18 !== "umd" && data18 !== "umd2" && data18 !== "jsonp" && data18 !== "system") {
6847
- const err10 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
6848
- if (vErrors === null) {
6849
- vErrors = [err10];
6850
- }
6851
- else {
6852
- vErrors.push(err10);
6946
+ if (data.importFunctionName !== undefined) {
6947
+ const _errs39 = errors;
6948
+ if (typeof data.importFunctionName !== "string") {
6949
+ validate75.errors = [{ instancePath: instancePath + "/importFunctionName", schemaPath: "#/definitions/ImportFunctionName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6950
+ return false;
6951
+ }
6952
+ var valid0 = _errs39 === errors;
6953
+ }
6954
+ else {
6955
+ var valid0 = true;
6956
+ }
6957
+ if (valid0) {
6958
+ if (data.library !== undefined) {
6959
+ const _errs42 = errors;
6960
+ if (!(validate95(data.library, { instancePath: instancePath + "/library", parentData: data, parentDataProperty: "library", rootData }))) {
6961
+ vErrors = vErrors === null ? validate95.errors : vErrors.concat(validate95.errors);
6962
+ errors = vErrors.length;
6853
6963
  }
6854
- errors++;
6964
+ var valid0 = _errs42 === errors;
6855
6965
  }
6856
- var _valid5 = _errs51 === errors;
6857
- valid16 = valid16 || _valid5;
6858
- if (!valid16) {
6859
- const _errs52 = errors;
6860
- if (typeof data18 !== "string") {
6861
- const err11 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6862
- if (vErrors === null) {
6863
- vErrors = [err11];
6966
+ else {
6967
+ var valid0 = true;
6968
+ }
6969
+ if (valid0) {
6970
+ if (data.libraryExport !== undefined) {
6971
+ let data19 = data.libraryExport;
6972
+ const _errs43 = errors;
6973
+ const _errs44 = errors;
6974
+ let valid12 = false;
6975
+ let passing1 = null;
6976
+ const _errs45 = errors;
6977
+ const _errs47 = errors;
6978
+ let valid14 = false;
6979
+ const _errs48 = errors;
6980
+ if (errors === _errs48) {
6981
+ if (Array.isArray(data19)) {
6982
+ var valid15 = true;
6983
+ const len0 = data19.length;
6984
+ for (let i0 = 0; i0 < len0; i0++) {
6985
+ let data20 = data19[i0];
6986
+ const _errs50 = errors;
6987
+ if (errors === _errs50) {
6988
+ if (typeof data20 === "string") {
6989
+ if (data20.length < 1) {
6990
+ const err6 = { instancePath: instancePath + "/libraryExport/" + i0, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
6991
+ if (vErrors === null) {
6992
+ vErrors = [err6];
6993
+ }
6994
+ else {
6995
+ vErrors.push(err6);
6996
+ }
6997
+ errors++;
6998
+ }
6999
+ }
7000
+ else {
7001
+ const err7 = { instancePath: instancePath + "/libraryExport/" + i0, schemaPath: "#/definitions/LibraryExport/anyOf/0/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7002
+ if (vErrors === null) {
7003
+ vErrors = [err7];
7004
+ }
7005
+ else {
7006
+ vErrors.push(err7);
7007
+ }
7008
+ errors++;
7009
+ }
7010
+ }
7011
+ var valid15 = _errs50 === errors;
7012
+ if (!valid15) {
7013
+ break;
7014
+ }
7015
+ }
7016
+ }
7017
+ else {
7018
+ const err8 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/0/type", keyword: "type", params: { type: "array" }, message: "must be array" };
7019
+ if (vErrors === null) {
7020
+ vErrors = [err8];
7021
+ }
7022
+ else {
7023
+ vErrors.push(err8);
7024
+ }
7025
+ errors++;
7026
+ }
6864
7027
  }
6865
- else {
6866
- vErrors.push(err11);
7028
+ var _valid4 = _errs48 === errors;
7029
+ valid14 = valid14 || _valid4;
7030
+ if (!valid14) {
7031
+ const _errs52 = errors;
7032
+ if (errors === _errs52) {
7033
+ if (typeof data19 === "string") {
7034
+ if (data19.length < 1) {
7035
+ const err9 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/1/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
7036
+ if (vErrors === null) {
7037
+ vErrors = [err9];
7038
+ }
7039
+ else {
7040
+ vErrors.push(err9);
7041
+ }
7042
+ errors++;
7043
+ }
7044
+ }
7045
+ else {
7046
+ const err10 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7047
+ if (vErrors === null) {
7048
+ vErrors = [err10];
7049
+ }
7050
+ else {
7051
+ vErrors.push(err10);
7052
+ }
7053
+ errors++;
7054
+ }
7055
+ }
7056
+ var _valid4 = _errs52 === errors;
7057
+ valid14 = valid14 || _valid4;
6867
7058
  }
6868
- errors++;
6869
- }
6870
- var _valid5 = _errs52 === errors;
6871
- valid16 = valid16 || _valid5;
6872
- }
6873
- if (!valid16) {
6874
- const err12 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
6875
- if (vErrors === null) {
6876
- vErrors = [err12];
6877
- }
6878
- else {
6879
- vErrors.push(err12);
6880
- }
6881
- errors++;
6882
- }
6883
- else {
6884
- errors = _errs50;
6885
- if (vErrors !== null) {
6886
- if (_errs50) {
6887
- vErrors.length = _errs50;
7059
+ if (!valid14) {
7060
+ const err11 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/definitions/LibraryExport/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
7061
+ if (vErrors === null) {
7062
+ vErrors = [err11];
7063
+ }
7064
+ else {
7065
+ vErrors.push(err11);
7066
+ }
7067
+ errors++;
6888
7068
  }
6889
7069
  else {
6890
- vErrors = null;
6891
- }
6892
- }
6893
- }
6894
- var _valid4 = _errs48 === errors;
6895
- if (_valid4) {
6896
- valid14 = true;
6897
- passing2 = 0;
6898
- }
6899
- if (!valid14) {
6900
- const err13 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/properties/libraryTarget/oneOf", keyword: "oneOf", params: { passingSchemas: passing2 }, message: "must match exactly one schema in oneOf" };
6901
- if (vErrors === null) {
6902
- vErrors = [err13];
6903
- }
6904
- else {
6905
- vErrors.push(err13);
6906
- }
6907
- errors++;
6908
- validate75.errors = vErrors;
6909
- return false;
6910
- }
6911
- else {
6912
- errors = _errs47;
6913
- if (vErrors !== null) {
6914
- if (_errs47) {
6915
- vErrors.length = _errs47;
7070
+ errors = _errs47;
7071
+ if (vErrors !== null) {
7072
+ if (_errs47) {
7073
+ vErrors.length = _errs47;
7074
+ }
7075
+ else {
7076
+ vErrors = null;
7077
+ }
7078
+ }
6916
7079
  }
6917
- else {
6918
- vErrors = null;
7080
+ var _valid3 = _errs45 === errors;
7081
+ if (_valid3) {
7082
+ valid12 = true;
7083
+ passing1 = 0;
6919
7084
  }
6920
- }
6921
- }
6922
- var valid0 = _errs46 === errors;
6923
- }
6924
- else {
6925
- var valid0 = true;
6926
- }
6927
- if (valid0) {
6928
- if (data.module !== undefined) {
6929
- const _errs54 = errors;
6930
- if (typeof data.module !== "boolean") {
6931
- validate75.errors = [{ instancePath: instancePath + "/module", schemaPath: "#/definitions/OutputModule/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
6932
- return false;
6933
- }
6934
- var valid0 = _errs54 === errors;
6935
- }
6936
- else {
6937
- var valid0 = true;
6938
- }
6939
- if (valid0) {
6940
- if (data.path !== undefined) {
6941
- const _errs57 = errors;
6942
- if (typeof data.path !== "string") {
6943
- validate75.errors = [{ instancePath: instancePath + "/path", schemaPath: "#/definitions/Path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
7085
+ if (!valid12) {
7086
+ const err12 = { instancePath: instancePath + "/libraryExport", schemaPath: "#/properties/libraryExport/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
7087
+ if (vErrors === null) {
7088
+ vErrors = [err12];
7089
+ }
7090
+ else {
7091
+ vErrors.push(err12);
7092
+ }
7093
+ errors++;
7094
+ validate75.errors = vErrors;
6944
7095
  return false;
6945
7096
  }
6946
- var valid0 = _errs57 === errors;
7097
+ else {
7098
+ errors = _errs44;
7099
+ if (vErrors !== null) {
7100
+ if (_errs44) {
7101
+ vErrors.length = _errs44;
7102
+ }
7103
+ else {
7104
+ vErrors = null;
7105
+ }
7106
+ }
7107
+ }
7108
+ var valid0 = _errs43 === errors;
6947
7109
  }
6948
7110
  else {
6949
7111
  var valid0 = true;
6950
7112
  }
6951
7113
  if (valid0) {
6952
- if (data.publicPath !== undefined) {
6953
- const _errs60 = errors;
6954
- if (!(validate99(data.publicPath, { instancePath: instancePath + "/publicPath", parentData: data, parentDataProperty: "publicPath", rootData }))) {
6955
- vErrors = vErrors === null ? validate99.errors : vErrors.concat(validate99.errors);
6956
- errors = vErrors.length;
7114
+ if (data.libraryTarget !== undefined) {
7115
+ let data21 = data.libraryTarget;
7116
+ const _errs54 = errors;
7117
+ const _errs55 = errors;
7118
+ let valid16 = false;
7119
+ let passing2 = null;
7120
+ const _errs56 = errors;
7121
+ const _errs58 = errors;
7122
+ let valid18 = false;
7123
+ const _errs59 = errors;
7124
+ if (data21 !== "var" && data21 !== "module" && data21 !== "assign" && data21 !== "assign-properties" && data21 !== "this" && data21 !== "window" && data21 !== "self" && data21 !== "global" && data21 !== "commonjs" && data21 !== "commonjs2" && data21 !== "commonjs-module" && data21 !== "commonjs-static" && data21 !== "amd" && data21 !== "amd-require" && data21 !== "umd" && data21 !== "umd2" && data21 !== "jsonp" && data21 !== "system") {
7125
+ const err13 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
7126
+ if (vErrors === null) {
7127
+ vErrors = [err13];
7128
+ }
7129
+ else {
7130
+ vErrors.push(err13);
7131
+ }
7132
+ errors++;
7133
+ }
7134
+ var _valid6 = _errs59 === errors;
7135
+ valid18 = valid18 || _valid6;
7136
+ if (!valid18) {
7137
+ const _errs60 = errors;
7138
+ if (typeof data21 !== "string") {
7139
+ const err14 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7140
+ if (vErrors === null) {
7141
+ vErrors = [err14];
7142
+ }
7143
+ else {
7144
+ vErrors.push(err14);
7145
+ }
7146
+ errors++;
7147
+ }
7148
+ var _valid6 = _errs60 === errors;
7149
+ valid18 = valid18 || _valid6;
7150
+ }
7151
+ if (!valid18) {
7152
+ const err15 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/definitions/LibraryType/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
7153
+ if (vErrors === null) {
7154
+ vErrors = [err15];
7155
+ }
7156
+ else {
7157
+ vErrors.push(err15);
7158
+ }
7159
+ errors++;
7160
+ }
7161
+ else {
7162
+ errors = _errs58;
7163
+ if (vErrors !== null) {
7164
+ if (_errs58) {
7165
+ vErrors.length = _errs58;
7166
+ }
7167
+ else {
7168
+ vErrors = null;
7169
+ }
7170
+ }
7171
+ }
7172
+ var _valid5 = _errs56 === errors;
7173
+ if (_valid5) {
7174
+ valid16 = true;
7175
+ passing2 = 0;
7176
+ }
7177
+ if (!valid16) {
7178
+ const err16 = { instancePath: instancePath + "/libraryTarget", schemaPath: "#/properties/libraryTarget/oneOf", keyword: "oneOf", params: { passingSchemas: passing2 }, message: "must match exactly one schema in oneOf" };
7179
+ if (vErrors === null) {
7180
+ vErrors = [err16];
7181
+ }
7182
+ else {
7183
+ vErrors.push(err16);
7184
+ }
7185
+ errors++;
7186
+ validate75.errors = vErrors;
7187
+ return false;
7188
+ }
7189
+ else {
7190
+ errors = _errs55;
7191
+ if (vErrors !== null) {
7192
+ if (_errs55) {
7193
+ vErrors.length = _errs55;
7194
+ }
7195
+ else {
7196
+ vErrors = null;
7197
+ }
7198
+ }
6957
7199
  }
6958
- var valid0 = _errs60 === errors;
7200
+ var valid0 = _errs54 === errors;
6959
7201
  }
6960
7202
  else {
6961
7203
  var valid0 = true;
6962
7204
  }
6963
7205
  if (valid0) {
6964
- if (data.strictModuleErrorHandling !== undefined) {
6965
- const _errs61 = errors;
6966
- if (typeof data.strictModuleErrorHandling !== "boolean") {
6967
- validate75.errors = [{ instancePath: instancePath + "/strictModuleErrorHandling", schemaPath: "#/definitions/StrictModuleErrorHandling/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
7206
+ if (data.module !== undefined) {
7207
+ const _errs62 = errors;
7208
+ if (typeof data.module !== "boolean") {
7209
+ validate75.errors = [{ instancePath: instancePath + "/module", schemaPath: "#/definitions/OutputModule/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
6968
7210
  return false;
6969
7211
  }
6970
- var valid0 = _errs61 === errors;
7212
+ var valid0 = _errs62 === errors;
6971
7213
  }
6972
7214
  else {
6973
7215
  var valid0 = true;
6974
7216
  }
6975
7217
  if (valid0) {
6976
- if (data.umdNamedDefine !== undefined) {
6977
- const _errs64 = errors;
7218
+ if (data.path !== undefined) {
6978
7219
  const _errs65 = errors;
6979
- let valid20 = false;
6980
- let passing3 = null;
6981
- const _errs66 = errors;
6982
- if (typeof data.umdNamedDefine !== "boolean") {
6983
- const err14 = { instancePath: instancePath + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
6984
- if (vErrors === null) {
6985
- vErrors = [err14];
6986
- }
6987
- else {
6988
- vErrors.push(err14);
6989
- }
6990
- errors++;
6991
- }
6992
- var _valid6 = _errs66 === errors;
6993
- if (_valid6) {
6994
- valid20 = true;
6995
- passing3 = 0;
6996
- }
6997
- if (!valid20) {
6998
- const err15 = { instancePath: instancePath + "/umdNamedDefine", schemaPath: "#/properties/umdNamedDefine/oneOf", keyword: "oneOf", params: { passingSchemas: passing3 }, message: "must match exactly one schema in oneOf" };
6999
- if (vErrors === null) {
7000
- vErrors = [err15];
7001
- }
7002
- else {
7003
- vErrors.push(err15);
7004
- }
7005
- errors++;
7006
- validate75.errors = vErrors;
7220
+ if (typeof data.path !== "string") {
7221
+ validate75.errors = [{ instancePath: instancePath + "/path", schemaPath: "#/definitions/Path/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
7007
7222
  return false;
7008
7223
  }
7009
- else {
7010
- errors = _errs65;
7011
- if (vErrors !== null) {
7012
- if (_errs65) {
7013
- vErrors.length = _errs65;
7014
- }
7015
- else {
7016
- vErrors = null;
7017
- }
7018
- }
7019
- }
7020
- var valid0 = _errs64 === errors;
7224
+ var valid0 = _errs65 === errors;
7021
7225
  }
7022
7226
  else {
7023
7227
  var valid0 = true;
7024
7228
  }
7025
7229
  if (valid0) {
7026
- if (data.uniqueName !== undefined) {
7027
- let data24 = data.uniqueName;
7028
- const _errs69 = errors;
7029
- const _errs70 = errors;
7030
- if (errors === _errs70) {
7031
- if (typeof data24 === "string") {
7032
- if (data24.length < 1) {
7033
- validate75.errors = [{ instancePath: instancePath + "/uniqueName", schemaPath: "#/definitions/UniqueName/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
7034
- return false;
7035
- }
7036
- }
7037
- else {
7038
- validate75.errors = [{ instancePath: instancePath + "/uniqueName", schemaPath: "#/definitions/UniqueName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
7039
- return false;
7040
- }
7230
+ if (data.publicPath !== undefined) {
7231
+ const _errs68 = errors;
7232
+ if (!(validate103(data.publicPath, { instancePath: instancePath + "/publicPath", parentData: data, parentDataProperty: "publicPath", rootData }))) {
7233
+ vErrors = vErrors === null ? validate103.errors : vErrors.concat(validate103.errors);
7234
+ errors = vErrors.length;
7041
7235
  }
7042
- var valid0 = _errs69 === errors;
7236
+ var valid0 = _errs68 === errors;
7043
7237
  }
7044
7238
  else {
7045
7239
  var valid0 = true;
7046
7240
  }
7047
7241
  if (valid0) {
7048
- if (data.chunkLoadingGlobal !== undefined) {
7049
- let data25 = data.chunkLoadingGlobal;
7050
- const _errs72 = errors;
7051
- const _errs73 = errors;
7052
- if (errors === _errs73) {
7053
- if (typeof data25 === "string") {
7054
- if (data25.length < 1) {
7055
- validate75.errors = [{ instancePath: instancePath + "/chunkLoadingGlobal", schemaPath: "#/definitions/ChunkLoadingGlobal/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
7056
- return false;
7242
+ if (data.strictModuleErrorHandling !== undefined) {
7243
+ const _errs69 = errors;
7244
+ if (typeof data.strictModuleErrorHandling !== "boolean") {
7245
+ validate75.errors = [{ instancePath: instancePath + "/strictModuleErrorHandling", schemaPath: "#/definitions/StrictModuleErrorHandling/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
7246
+ return false;
7247
+ }
7248
+ var valid0 = _errs69 === errors;
7249
+ }
7250
+ else {
7251
+ var valid0 = true;
7252
+ }
7253
+ if (valid0) {
7254
+ if (data.umdNamedDefine !== undefined) {
7255
+ const _errs72 = errors;
7256
+ const _errs73 = errors;
7257
+ let valid22 = false;
7258
+ let passing3 = null;
7259
+ const _errs74 = errors;
7260
+ if (typeof data.umdNamedDefine !== "boolean") {
7261
+ const err17 = { instancePath: instancePath + "/umdNamedDefine", schemaPath: "#/definitions/UmdNamedDefine/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
7262
+ if (vErrors === null) {
7263
+ vErrors = [err17];
7264
+ }
7265
+ else {
7266
+ vErrors.push(err17);
7057
7267
  }
7268
+ errors++;
7058
7269
  }
7059
- else {
7060
- validate75.errors = [{ instancePath: instancePath + "/chunkLoadingGlobal", schemaPath: "#/definitions/ChunkLoadingGlobal/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
7270
+ var _valid7 = _errs74 === errors;
7271
+ if (_valid7) {
7272
+ valid22 = true;
7273
+ passing3 = 0;
7274
+ }
7275
+ if (!valid22) {
7276
+ const err18 = { instancePath: instancePath + "/umdNamedDefine", schemaPath: "#/properties/umdNamedDefine/oneOf", keyword: "oneOf", params: { passingSchemas: passing3 }, message: "must match exactly one schema in oneOf" };
7277
+ if (vErrors === null) {
7278
+ vErrors = [err18];
7279
+ }
7280
+ else {
7281
+ vErrors.push(err18);
7282
+ }
7283
+ errors++;
7284
+ validate75.errors = vErrors;
7061
7285
  return false;
7062
7286
  }
7287
+ else {
7288
+ errors = _errs73;
7289
+ if (vErrors !== null) {
7290
+ if (_errs73) {
7291
+ vErrors.length = _errs73;
7292
+ }
7293
+ else {
7294
+ vErrors = null;
7295
+ }
7296
+ }
7297
+ }
7298
+ var valid0 = _errs72 === errors;
7299
+ }
7300
+ else {
7301
+ var valid0 = true;
7302
+ }
7303
+ if (valid0) {
7304
+ if (data.uniqueName !== undefined) {
7305
+ let data27 = data.uniqueName;
7306
+ const _errs77 = errors;
7307
+ const _errs78 = errors;
7308
+ if (errors === _errs78) {
7309
+ if (typeof data27 === "string") {
7310
+ if (data27.length < 1) {
7311
+ validate75.errors = [{ instancePath: instancePath + "/uniqueName", schemaPath: "#/definitions/UniqueName/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
7312
+ return false;
7313
+ }
7314
+ }
7315
+ else {
7316
+ validate75.errors = [{ instancePath: instancePath + "/uniqueName", schemaPath: "#/definitions/UniqueName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
7317
+ return false;
7318
+ }
7319
+ }
7320
+ var valid0 = _errs77 === errors;
7321
+ }
7322
+ else {
7323
+ var valid0 = true;
7324
+ }
7325
+ if (valid0) {
7326
+ if (data.chunkLoadingGlobal !== undefined) {
7327
+ let data28 = data.chunkLoadingGlobal;
7328
+ const _errs80 = errors;
7329
+ const _errs81 = errors;
7330
+ if (errors === _errs81) {
7331
+ if (typeof data28 === "string") {
7332
+ if (data28.length < 1) {
7333
+ validate75.errors = [{ instancePath: instancePath + "/chunkLoadingGlobal", schemaPath: "#/definitions/ChunkLoadingGlobal/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" }];
7334
+ return false;
7335
+ }
7336
+ }
7337
+ else {
7338
+ validate75.errors = [{ instancePath: instancePath + "/chunkLoadingGlobal", schemaPath: "#/definitions/ChunkLoadingGlobal/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
7339
+ return false;
7340
+ }
7341
+ }
7342
+ var valid0 = _errs80 === errors;
7343
+ }
7344
+ else {
7345
+ var valid0 = true;
7346
+ }
7347
+ if (valid0) {
7348
+ if (data.trustedTypes !== undefined) {
7349
+ let data29 = data.trustedTypes;
7350
+ const _errs83 = errors;
7351
+ const _errs84 = errors;
7352
+ let valid26 = false;
7353
+ const _errs85 = errors;
7354
+ if (data29 !== true) {
7355
+ const err19 = { instancePath: instancePath + "/trustedTypes", schemaPath: "#/properties/trustedTypes/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
7356
+ if (vErrors === null) {
7357
+ vErrors = [err19];
7358
+ }
7359
+ else {
7360
+ vErrors.push(err19);
7361
+ }
7362
+ errors++;
7363
+ }
7364
+ var _valid8 = _errs85 === errors;
7365
+ valid26 = valid26 || _valid8;
7366
+ if (!valid26) {
7367
+ const _errs86 = errors;
7368
+ if (errors === _errs86) {
7369
+ if (typeof data29 === "string") {
7370
+ if (data29.length < 1) {
7371
+ const err20 = { instancePath: instancePath + "/trustedTypes", schemaPath: "#/properties/trustedTypes/anyOf/1/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
7372
+ if (vErrors === null) {
7373
+ vErrors = [err20];
7374
+ }
7375
+ else {
7376
+ vErrors.push(err20);
7377
+ }
7378
+ errors++;
7379
+ }
7380
+ }
7381
+ else {
7382
+ const err21 = { instancePath: instancePath + "/trustedTypes", schemaPath: "#/properties/trustedTypes/anyOf/1/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7383
+ if (vErrors === null) {
7384
+ vErrors = [err21];
7385
+ }
7386
+ else {
7387
+ vErrors.push(err21);
7388
+ }
7389
+ errors++;
7390
+ }
7391
+ }
7392
+ var _valid8 = _errs86 === errors;
7393
+ valid26 = valid26 || _valid8;
7394
+ if (!valid26) {
7395
+ const _errs88 = errors;
7396
+ const _errs89 = errors;
7397
+ if (errors === _errs89) {
7398
+ if (data29 && typeof data29 == "object" && !Array.isArray(data29)) {
7399
+ const _errs91 = errors;
7400
+ for (const key1 in data29) {
7401
+ if (!(key1 === "policyName")) {
7402
+ const err22 = { instancePath: instancePath + "/trustedTypes", schemaPath: "#/definitions/TrustedTypes/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
7403
+ if (vErrors === null) {
7404
+ vErrors = [err22];
7405
+ }
7406
+ else {
7407
+ vErrors.push(err22);
7408
+ }
7409
+ errors++;
7410
+ break;
7411
+ }
7412
+ }
7413
+ if (_errs91 === errors) {
7414
+ if (data29.policyName !== undefined) {
7415
+ let data30 = data29.policyName;
7416
+ const _errs92 = errors;
7417
+ if (errors === _errs92) {
7418
+ if (typeof data30 === "string") {
7419
+ if (data30.length < 1) {
7420
+ const err23 = { instancePath: instancePath + "/trustedTypes/policyName", schemaPath: "#/definitions/TrustedTypes/properties/policyName/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
7421
+ if (vErrors === null) {
7422
+ vErrors = [err23];
7423
+ }
7424
+ else {
7425
+ vErrors.push(err23);
7426
+ }
7427
+ errors++;
7428
+ }
7429
+ }
7430
+ else {
7431
+ const err24 = { instancePath: instancePath + "/trustedTypes/policyName", schemaPath: "#/definitions/TrustedTypes/properties/policyName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7432
+ if (vErrors === null) {
7433
+ vErrors = [err24];
7434
+ }
7435
+ else {
7436
+ vErrors.push(err24);
7437
+ }
7438
+ errors++;
7439
+ }
7440
+ }
7441
+ }
7442
+ }
7443
+ }
7444
+ else {
7445
+ const err25 = { instancePath: instancePath + "/trustedTypes", schemaPath: "#/definitions/TrustedTypes/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7446
+ if (vErrors === null) {
7447
+ vErrors = [err25];
7448
+ }
7449
+ else {
7450
+ vErrors.push(err25);
7451
+ }
7452
+ errors++;
7453
+ }
7454
+ }
7455
+ var _valid8 = _errs88 === errors;
7456
+ valid26 = valid26 || _valid8;
7457
+ }
7458
+ }
7459
+ if (!valid26) {
7460
+ const err26 = { instancePath: instancePath + "/trustedTypes", schemaPath: "#/properties/trustedTypes/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
7461
+ if (vErrors === null) {
7462
+ vErrors = [err26];
7463
+ }
7464
+ else {
7465
+ vErrors.push(err26);
7466
+ }
7467
+ errors++;
7468
+ validate75.errors = vErrors;
7469
+ return false;
7470
+ }
7471
+ else {
7472
+ errors = _errs84;
7473
+ if (vErrors !== null) {
7474
+ if (_errs84) {
7475
+ vErrors.length = _errs84;
7476
+ }
7477
+ else {
7478
+ vErrors = null;
7479
+ }
7480
+ }
7481
+ }
7482
+ var valid0 = _errs83 === errors;
7483
+ }
7484
+ else {
7485
+ var valid0 = true;
7486
+ }
7487
+ }
7488
+ }
7063
7489
  }
7064
- var valid0 = _errs72 === errors;
7065
- }
7066
- else {
7067
- var valid0 = true;
7068
7490
  }
7069
7491
  }
7070
7492
  }
@@ -7097,8 +7519,8 @@ function validate75(data, { instancePath = "", parentData, parentDataProperty, r
7097
7519
  return false;
7098
7520
  }
7099
7521
  } validate75.errors = vErrors; return errors === 0; }
7100
- const schema108 = { "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" }] } };
7101
- function validate102(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
7522
+ const schema114 = { "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" }] } };
7523
+ function validate106(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
7102
7524
  if (Array.isArray(data)) {
7103
7525
  var valid0 = true;
7104
7526
  const len0 = data.length;
@@ -7174,7 +7596,7 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
7174
7596
  vErrors.push(err4);
7175
7597
  }
7176
7598
  errors++;
7177
- validate102.errors = vErrors;
7599
+ validate106.errors = vErrors;
7178
7600
  return false;
7179
7601
  }
7180
7602
  else {
@@ -7195,12 +7617,12 @@ function validate102(data, { instancePath = "", parentData, parentDataProperty,
7195
7617
  }
7196
7618
  }
7197
7619
  else {
7198
- validate102.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
7620
+ validate106.errors = [{ instancePath, schemaPath: "#/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
7199
7621
  return false;
7200
7622
  }
7201
- } validate102.errors = vErrors; return errors === 0; }
7202
- const schema111 = { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] };
7203
- function validate104(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; if (!(validate50(data, { instancePath, parentData, parentDataProperty, rootData }))) {
7623
+ } validate106.errors = vErrors; return errors === 0; }
7624
+ const schema117 = { "description": "Options for the resolver.", "oneOf": [{ "$ref": "#/definitions/ResolveOptions" }] };
7625
+ function validate108(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; let passing0 = null; const _errs1 = errors; if (!(validate50(data, { instancePath, parentData, parentDataProperty, rootData }))) {
7204
7626
  vErrors = vErrors === null ? validate50.errors : vErrors.concat(validate50.errors);
7205
7627
  errors = vErrors.length;
7206
7628
  } var _valid0 = _errs1 === errors; if (_valid0) {
@@ -7215,7 +7637,7 @@ function validate104(data, { instancePath = "", parentData, parentDataProperty,
7215
7637
  vErrors.push(err0);
7216
7638
  }
7217
7639
  errors++;
7218
- validate104.errors = vErrors;
7640
+ validate108.errors = vErrors;
7219
7641
  return false;
7220
7642
  }
7221
7643
  else {
@@ -7228,10 +7650,10 @@ else {
7228
7650
  vErrors = null;
7229
7651
  }
7230
7652
  }
7231
- } validate104.errors = vErrors; return errors === 0; }
7232
- const schema113 = { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] };
7233
- const schema114 = { "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" } } };
7234
- function validate107(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; const _errs0 = errors; let valid0 = false; const _errs1 = errors; if (data !== "none" && data !== "errors-only" && data !== "errors-warnings" && data !== "normal" && data !== "verbose") {
7653
+ } validate108.errors = vErrors; return errors === 0; }
7654
+ const schema119 = { "description": "Stats options object or preset name.", "anyOf": [{ "enum": ["none", "errors-only", "errors-warnings", "normal", "verbose"] }, { "type": "boolean" }, { "$ref": "#/definitions/StatsOptions" }] };
7655
+ const schema120 = { "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" } } };
7656
+ function validate111(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") {
7235
7657
  const err0 = { instancePath, schemaPath: "#/anyOf/0/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
7236
7658
  if (vErrors === null) {
7237
7659
  vErrors = [err0];
@@ -7745,7 +8167,7 @@ function validate107(data, { instancePath = "", parentData, parentDataProperty,
7745
8167
  vErrors.push(err27);
7746
8168
  }
7747
8169
  errors++;
7748
- validate107.errors = vErrors;
8170
+ validate111.errors = vErrors;
7749
8171
  return false;
7750
8172
  }
7751
8173
  else {
@@ -7758,7 +8180,7 @@ else {
7758
8180
  vErrors = null;
7759
8181
  }
7760
8182
  }
7761
- } validate107.errors = vErrors; return errors === 0; }
8183
+ } validate111.errors = vErrors; return errors === 0; }
7762
8184
  function validate10(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) { let vErrors = null; let errors = 0; if (errors === 0) {
7763
8185
  if (data && typeof data == "object" && !Array.isArray(data)) {
7764
8186
  const _errs1 = errors;
@@ -7934,7 +8356,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
7934
8356
  if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
7935
8357
  const _errs26 = errors;
7936
8358
  for (const key1 in data7) {
7937
- if (!(((key1 === "asyncWebAssembly") || (key1 === "incrementalRebuild")) || (key1 === "lazyCompilation"))) {
8359
+ if (!((((key1 === "asyncWebAssembly") || (key1 === "incrementalRebuild")) || (key1 === "lazyCompilation")) || (key1 === "outputModule"))) {
7938
8360
  validate10.errors = [{ instancePath: instancePath + "/experiments", schemaPath: "#/definitions/Experiments/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
7939
8361
  return false;
7940
8362
  break;
@@ -8010,6 +8432,19 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8010
8432
  else {
8011
8433
  var valid9 = true;
8012
8434
  }
8435
+ if (valid9) {
8436
+ if (data7.outputModule !== undefined) {
8437
+ const _errs35 = errors;
8438
+ if (typeof data7.outputModule !== "boolean") {
8439
+ validate10.errors = [{ instancePath: instancePath + "/experiments/outputModule", schemaPath: "#/definitions/Experiments/properties/outputModule/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
8440
+ return false;
8441
+ }
8442
+ var valid9 = _errs35 === errors;
8443
+ }
8444
+ else {
8445
+ var valid9 = true;
8446
+ }
8447
+ }
8013
8448
  }
8014
8449
  }
8015
8450
  }
@@ -8026,47 +8461,47 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8026
8461
  }
8027
8462
  if (valid0) {
8028
8463
  if (data.externals !== undefined) {
8029
- const _errs35 = errors;
8464
+ const _errs37 = errors;
8030
8465
  if (!(validate23(data.externals, { instancePath: instancePath + "/externals", parentData: data, parentDataProperty: "externals", rootData }))) {
8031
8466
  vErrors = vErrors === null ? validate23.errors : vErrors.concat(validate23.errors);
8032
8467
  errors = vErrors.length;
8033
8468
  }
8034
- var valid0 = _errs35 === errors;
8469
+ var valid0 = _errs37 === errors;
8035
8470
  }
8036
8471
  else {
8037
8472
  var valid0 = true;
8038
8473
  }
8039
8474
  if (valid0) {
8040
8475
  if (data.externalsType !== undefined) {
8041
- let data12 = data.externalsType;
8042
- const _errs36 = errors;
8043
- if (data12 !== "var" && data12 !== "module" && data12 !== "assign" && data12 !== "this" && data12 !== "window" && data12 !== "self" && data12 !== "global" && data12 !== "commonjs" && data12 !== "commonjs2" && data12 !== "commonjs-module" && data12 !== "commonjs-static" && data12 !== "amd" && data12 !== "amd-require" && data12 !== "umd" && data12 !== "umd2" && data12 !== "jsonp" && data12 !== "system" && data12 !== "promise" && data12 !== "import" && data12 !== "script" && data12 !== "node-commonjs") {
8476
+ let data13 = data.externalsType;
8477
+ const _errs38 = errors;
8478
+ if (data13 !== "var" && data13 !== "module" && data13 !== "assign" && data13 !== "this" && data13 !== "window" && data13 !== "self" && data13 !== "global" && data13 !== "commonjs" && data13 !== "commonjs2" && data13 !== "commonjs-module" && data13 !== "commonjs-static" && data13 !== "amd" && data13 !== "amd-require" && data13 !== "umd" && data13 !== "umd2" && data13 !== "jsonp" && data13 !== "system" && data13 !== "promise" && data13 !== "import" && data13 !== "script" && data13 !== "node-commonjs") {
8044
8479
  validate10.errors = [{ instancePath: instancePath + "/externalsType", schemaPath: "#/definitions/ExternalsType/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
8045
8480
  return false;
8046
8481
  }
8047
- var valid0 = _errs36 === errors;
8482
+ var valid0 = _errs38 === errors;
8048
8483
  }
8049
8484
  else {
8050
8485
  var valid0 = true;
8051
8486
  }
8052
8487
  if (valid0) {
8053
8488
  if (data.externalsPresets !== undefined) {
8054
- let data13 = data.externalsPresets;
8055
- const _errs38 = errors;
8056
- const _errs39 = errors;
8057
- if (errors === _errs39) {
8058
- if (data13 && typeof data13 == "object" && !Array.isArray(data13)) {
8059
- const _errs41 = errors;
8060
- for (const key2 in data13) {
8489
+ let data14 = data.externalsPresets;
8490
+ const _errs40 = errors;
8491
+ const _errs41 = errors;
8492
+ if (errors === _errs41) {
8493
+ if (data14 && typeof data14 == "object" && !Array.isArray(data14)) {
8494
+ const _errs43 = errors;
8495
+ for (const key2 in data14) {
8061
8496
  if (!(key2 === "node")) {
8062
8497
  validate10.errors = [{ instancePath: instancePath + "/externalsPresets", schemaPath: "#/definitions/ExternalsPresets/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" }];
8063
8498
  return false;
8064
8499
  break;
8065
8500
  }
8066
8501
  }
8067
- if (_errs41 === errors) {
8068
- if (data13.node !== undefined) {
8069
- if (typeof data13.node !== "boolean") {
8502
+ if (_errs43 === errors) {
8503
+ if (data14.node !== undefined) {
8504
+ if (typeof data14.node !== "boolean") {
8070
8505
  validate10.errors = [{ instancePath: instancePath + "/externalsPresets/node", schemaPath: "#/definitions/ExternalsPresets/properties/node/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
8071
8506
  return false;
8072
8507
  }
@@ -8078,169 +8513,169 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8078
8513
  return false;
8079
8514
  }
8080
8515
  }
8081
- var valid0 = _errs38 === errors;
8516
+ var valid0 = _errs40 === errors;
8082
8517
  }
8083
8518
  else {
8084
8519
  var valid0 = true;
8085
8520
  }
8086
8521
  if (valid0) {
8087
8522
  if (data.infrastructureLogging !== undefined) {
8088
- const _errs44 = errors;
8523
+ const _errs46 = errors;
8089
8524
  if (!(validate28(data.infrastructureLogging, { instancePath: instancePath + "/infrastructureLogging", parentData: data, parentDataProperty: "infrastructureLogging", rootData }))) {
8090
8525
  vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);
8091
8526
  errors = vErrors.length;
8092
8527
  }
8093
- var valid0 = _errs44 === errors;
8528
+ var valid0 = _errs46 === errors;
8094
8529
  }
8095
8530
  else {
8096
8531
  var valid0 = true;
8097
8532
  }
8098
8533
  if (valid0) {
8099
8534
  if (data.mode !== undefined) {
8100
- let data16 = data.mode;
8101
- const _errs45 = errors;
8102
- if (data16 !== "development" && data16 !== "production" && data16 !== "none") {
8535
+ let data17 = data.mode;
8536
+ const _errs47 = errors;
8537
+ if (data17 !== "development" && data17 !== "production" && data17 !== "none") {
8103
8538
  validate10.errors = [{ instancePath: instancePath + "/mode", schemaPath: "#/definitions/Mode/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" }];
8104
8539
  return false;
8105
8540
  }
8106
- var valid0 = _errs45 === errors;
8541
+ var valid0 = _errs47 === errors;
8107
8542
  }
8108
8543
  else {
8109
8544
  var valid0 = true;
8110
8545
  }
8111
8546
  if (valid0) {
8112
8547
  if (data.module !== undefined) {
8113
- const _errs47 = errors;
8548
+ const _errs49 = errors;
8114
8549
  if (!(validate32(data.module, { instancePath: instancePath + "/module", parentData: data, parentDataProperty: "module", rootData }))) {
8115
8550
  vErrors = vErrors === null ? validate32.errors : vErrors.concat(validate32.errors);
8116
8551
  errors = vErrors.length;
8117
8552
  }
8118
- var valid0 = _errs47 === errors;
8553
+ var valid0 = _errs49 === errors;
8119
8554
  }
8120
8555
  else {
8121
8556
  var valid0 = true;
8122
8557
  }
8123
8558
  if (valid0) {
8124
8559
  if (data.name !== undefined) {
8125
- const _errs48 = errors;
8560
+ const _errs50 = errors;
8126
8561
  if (typeof data.name !== "string") {
8127
8562
  validate10.errors = [{ instancePath: instancePath + "/name", schemaPath: "#/definitions/Name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
8128
8563
  return false;
8129
8564
  }
8130
- var valid0 = _errs48 === errors;
8565
+ var valid0 = _errs50 === errors;
8131
8566
  }
8132
8567
  else {
8133
8568
  var valid0 = true;
8134
8569
  }
8135
8570
  if (valid0) {
8136
8571
  if (data.node !== undefined) {
8137
- const _errs51 = errors;
8572
+ const _errs53 = errors;
8138
8573
  if (!(validate69(data.node, { instancePath: instancePath + "/node", parentData: data, parentDataProperty: "node", rootData }))) {
8139
8574
  vErrors = vErrors === null ? validate69.errors : vErrors.concat(validate69.errors);
8140
8575
  errors = vErrors.length;
8141
8576
  }
8142
- var valid0 = _errs51 === errors;
8577
+ var valid0 = _errs53 === errors;
8143
8578
  }
8144
8579
  else {
8145
8580
  var valid0 = true;
8146
8581
  }
8147
8582
  if (valid0) {
8148
8583
  if (data.optimization !== undefined) {
8149
- const _errs52 = errors;
8584
+ const _errs54 = errors;
8150
8585
  if (!(validate71(data.optimization, { instancePath: instancePath + "/optimization", parentData: data, parentDataProperty: "optimization", rootData }))) {
8151
8586
  vErrors = vErrors === null ? validate71.errors : vErrors.concat(validate71.errors);
8152
8587
  errors = vErrors.length;
8153
8588
  }
8154
- var valid0 = _errs52 === errors;
8589
+ var valid0 = _errs54 === errors;
8155
8590
  }
8156
8591
  else {
8157
8592
  var valid0 = true;
8158
8593
  }
8159
8594
  if (valid0) {
8160
8595
  if (data.output !== undefined) {
8161
- const _errs53 = errors;
8596
+ const _errs55 = errors;
8162
8597
  if (!(validate75(data.output, { instancePath: instancePath + "/output", parentData: data, parentDataProperty: "output", rootData }))) {
8163
8598
  vErrors = vErrors === null ? validate75.errors : vErrors.concat(validate75.errors);
8164
8599
  errors = vErrors.length;
8165
8600
  }
8166
- var valid0 = _errs53 === errors;
8601
+ var valid0 = _errs55 === errors;
8167
8602
  }
8168
8603
  else {
8169
8604
  var valid0 = true;
8170
8605
  }
8171
8606
  if (valid0) {
8172
8607
  if (data.plugins !== undefined) {
8173
- const _errs54 = errors;
8174
- if (!(validate102(data.plugins, { instancePath: instancePath + "/plugins", parentData: data, parentDataProperty: "plugins", rootData }))) {
8175
- vErrors = vErrors === null ? validate102.errors : vErrors.concat(validate102.errors);
8608
+ const _errs56 = errors;
8609
+ if (!(validate106(data.plugins, { instancePath: instancePath + "/plugins", parentData: data, parentDataProperty: "plugins", rootData }))) {
8610
+ vErrors = vErrors === null ? validate106.errors : vErrors.concat(validate106.errors);
8176
8611
  errors = vErrors.length;
8177
8612
  }
8178
- var valid0 = _errs54 === errors;
8613
+ var valid0 = _errs56 === errors;
8179
8614
  }
8180
8615
  else {
8181
8616
  var valid0 = true;
8182
8617
  }
8183
8618
  if (valid0) {
8184
8619
  if (data.resolve !== undefined) {
8185
- const _errs55 = errors;
8186
- if (!(validate104(data.resolve, { instancePath: instancePath + "/resolve", parentData: data, parentDataProperty: "resolve", rootData }))) {
8187
- vErrors = vErrors === null ? validate104.errors : vErrors.concat(validate104.errors);
8620
+ const _errs57 = errors;
8621
+ if (!(validate108(data.resolve, { instancePath: instancePath + "/resolve", parentData: data, parentDataProperty: "resolve", rootData }))) {
8622
+ vErrors = vErrors === null ? validate108.errors : vErrors.concat(validate108.errors);
8188
8623
  errors = vErrors.length;
8189
8624
  }
8190
- var valid0 = _errs55 === errors;
8625
+ var valid0 = _errs57 === errors;
8191
8626
  }
8192
8627
  else {
8193
8628
  var valid0 = true;
8194
8629
  }
8195
8630
  if (valid0) {
8196
8631
  if (data.snapshot !== undefined) {
8197
- let data24 = data.snapshot;
8198
- const _errs56 = errors;
8199
- const _errs57 = errors;
8200
- if (errors === _errs57) {
8201
- if (data24 && typeof data24 == "object" && !Array.isArray(data24)) {
8202
- const _errs59 = errors;
8203
- for (const key3 in data24) {
8632
+ let data25 = data.snapshot;
8633
+ const _errs58 = errors;
8634
+ const _errs59 = errors;
8635
+ if (errors === _errs59) {
8636
+ if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
8637
+ const _errs61 = errors;
8638
+ for (const key3 in data25) {
8204
8639
  if (!((key3 === "module") || (key3 === "resolve"))) {
8205
8640
  validate10.errors = [{ instancePath: instancePath + "/snapshot", schemaPath: "#/definitions/SnapshotOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" }];
8206
8641
  return false;
8207
8642
  break;
8208
8643
  }
8209
8644
  }
8210
- if (_errs59 === errors) {
8211
- if (data24.module !== undefined) {
8212
- let data25 = data24.module;
8213
- const _errs60 = errors;
8214
- if (errors === _errs60) {
8215
- if (data25 && typeof data25 == "object" && !Array.isArray(data25)) {
8216
- const _errs62 = errors;
8217
- for (const key4 in data25) {
8645
+ if (_errs61 === errors) {
8646
+ if (data25.module !== undefined) {
8647
+ let data26 = data25.module;
8648
+ const _errs62 = errors;
8649
+ if (errors === _errs62) {
8650
+ if (data26 && typeof data26 == "object" && !Array.isArray(data26)) {
8651
+ const _errs64 = errors;
8652
+ for (const key4 in data26) {
8218
8653
  if (!((key4 === "hash") || (key4 === "timestamp"))) {
8219
8654
  validate10.errors = [{ instancePath: instancePath + "/snapshot/module", schemaPath: "#/definitions/SnapshotOptions/properties/module/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" }];
8220
8655
  return false;
8221
8656
  break;
8222
8657
  }
8223
8658
  }
8224
- if (_errs62 === errors) {
8225
- if (data25.hash !== undefined) {
8226
- const _errs63 = errors;
8227
- if (typeof data25.hash !== "boolean") {
8659
+ if (_errs64 === errors) {
8660
+ if (data26.hash !== undefined) {
8661
+ const _errs65 = errors;
8662
+ if (typeof data26.hash !== "boolean") {
8228
8663
  validate10.errors = [{ instancePath: instancePath + "/snapshot/module/hash", schemaPath: "#/definitions/SnapshotOptions/properties/module/properties/hash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
8229
8664
  return false;
8230
8665
  }
8231
- var valid18 = _errs63 === errors;
8666
+ var valid18 = _errs65 === errors;
8232
8667
  }
8233
8668
  else {
8234
8669
  var valid18 = true;
8235
8670
  }
8236
8671
  if (valid18) {
8237
- if (data25.timestamp !== undefined) {
8238
- const _errs65 = errors;
8239
- if (typeof data25.timestamp !== "boolean") {
8672
+ if (data26.timestamp !== undefined) {
8673
+ const _errs67 = errors;
8674
+ if (typeof data26.timestamp !== "boolean") {
8240
8675
  validate10.errors = [{ instancePath: instancePath + "/snapshot/module/timestamp", schemaPath: "#/definitions/SnapshotOptions/properties/module/properties/timestamp/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
8241
8676
  return false;
8242
8677
  }
8243
- var valid18 = _errs65 === errors;
8678
+ var valid18 = _errs67 === errors;
8244
8679
  }
8245
8680
  else {
8246
8681
  var valid18 = true;
@@ -8253,45 +8688,45 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8253
8688
  return false;
8254
8689
  }
8255
8690
  }
8256
- var valid17 = _errs60 === errors;
8691
+ var valid17 = _errs62 === errors;
8257
8692
  }
8258
8693
  else {
8259
8694
  var valid17 = true;
8260
8695
  }
8261
8696
  if (valid17) {
8262
- if (data24.resolve !== undefined) {
8263
- let data28 = data24.resolve;
8264
- const _errs67 = errors;
8265
- if (errors === _errs67) {
8266
- if (data28 && typeof data28 == "object" && !Array.isArray(data28)) {
8267
- const _errs69 = errors;
8268
- for (const key5 in data28) {
8697
+ if (data25.resolve !== undefined) {
8698
+ let data29 = data25.resolve;
8699
+ const _errs69 = errors;
8700
+ if (errors === _errs69) {
8701
+ if (data29 && typeof data29 == "object" && !Array.isArray(data29)) {
8702
+ const _errs71 = errors;
8703
+ for (const key5 in data29) {
8269
8704
  if (!((key5 === "hash") || (key5 === "timestamp"))) {
8270
8705
  validate10.errors = [{ instancePath: instancePath + "/snapshot/resolve", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" }];
8271
8706
  return false;
8272
8707
  break;
8273
8708
  }
8274
8709
  }
8275
- if (_errs69 === errors) {
8276
- if (data28.hash !== undefined) {
8277
- const _errs70 = errors;
8278
- if (typeof data28.hash !== "boolean") {
8710
+ if (_errs71 === errors) {
8711
+ if (data29.hash !== undefined) {
8712
+ const _errs72 = errors;
8713
+ if (typeof data29.hash !== "boolean") {
8279
8714
  validate10.errors = [{ instancePath: instancePath + "/snapshot/resolve/hash", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/properties/hash/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
8280
8715
  return false;
8281
8716
  }
8282
- var valid19 = _errs70 === errors;
8717
+ var valid19 = _errs72 === errors;
8283
8718
  }
8284
8719
  else {
8285
8720
  var valid19 = true;
8286
8721
  }
8287
8722
  if (valid19) {
8288
- if (data28.timestamp !== undefined) {
8289
- const _errs72 = errors;
8290
- if (typeof data28.timestamp !== "boolean") {
8723
+ if (data29.timestamp !== undefined) {
8724
+ const _errs74 = errors;
8725
+ if (typeof data29.timestamp !== "boolean") {
8291
8726
  validate10.errors = [{ instancePath: instancePath + "/snapshot/resolve/timestamp", schemaPath: "#/definitions/SnapshotOptions/properties/resolve/properties/timestamp/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
8292
8727
  return false;
8293
8728
  }
8294
- var valid19 = _errs72 === errors;
8729
+ var valid19 = _errs74 === errors;
8295
8730
  }
8296
8731
  else {
8297
8732
  var valid19 = true;
@@ -8304,7 +8739,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8304
8739
  return false;
8305
8740
  }
8306
8741
  }
8307
- var valid17 = _errs67 === errors;
8742
+ var valid17 = _errs69 === errors;
8308
8743
  }
8309
8744
  else {
8310
8745
  var valid17 = true;
@@ -8317,33 +8752,33 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8317
8752
  return false;
8318
8753
  }
8319
8754
  }
8320
- var valid0 = _errs56 === errors;
8755
+ var valid0 = _errs58 === errors;
8321
8756
  }
8322
8757
  else {
8323
8758
  var valid0 = true;
8324
8759
  }
8325
8760
  if (valid0) {
8326
8761
  if (data.stats !== undefined) {
8327
- const _errs74 = errors;
8328
- if (!(validate107(data.stats, { instancePath: instancePath + "/stats", parentData: data, parentDataProperty: "stats", rootData }))) {
8329
- vErrors = vErrors === null ? validate107.errors : vErrors.concat(validate107.errors);
8762
+ const _errs76 = errors;
8763
+ if (!(validate111(data.stats, { instancePath: instancePath + "/stats", parentData: data, parentDataProperty: "stats", rootData }))) {
8764
+ vErrors = vErrors === null ? validate111.errors : vErrors.concat(validate111.errors);
8330
8765
  errors = vErrors.length;
8331
8766
  }
8332
- var valid0 = _errs74 === errors;
8767
+ var valid0 = _errs76 === errors;
8333
8768
  }
8334
8769
  else {
8335
8770
  var valid0 = true;
8336
8771
  }
8337
8772
  if (valid0) {
8338
8773
  if (data.target !== undefined) {
8339
- let data32 = data.target;
8340
- const _errs75 = errors;
8774
+ let data33 = data.target;
8341
8775
  const _errs77 = errors;
8776
+ const _errs79 = errors;
8342
8777
  let valid21 = false;
8343
- const _errs78 = errors;
8344
- if (errors === _errs78) {
8345
- if (Array.isArray(data32)) {
8346
- if (data32.length < 1) {
8778
+ const _errs80 = errors;
8779
+ if (errors === _errs80) {
8780
+ if (Array.isArray(data33)) {
8781
+ if (data33.length < 1) {
8347
8782
  const err6 = { instancePath: instancePath + "/target", schemaPath: "#/definitions/Target/anyOf/0/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" };
8348
8783
  if (vErrors === null) {
8349
8784
  vErrors = [err6];
@@ -8355,13 +8790,13 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8355
8790
  }
8356
8791
  else {
8357
8792
  var valid22 = true;
8358
- const len1 = data32.length;
8793
+ const len1 = data33.length;
8359
8794
  for (let i1 = 0; i1 < len1; i1++) {
8360
- let data33 = data32[i1];
8361
- const _errs80 = errors;
8362
- if (errors === _errs80) {
8363
- if (typeof data33 === "string") {
8364
- if (data33.length < 1) {
8795
+ let data34 = data33[i1];
8796
+ const _errs82 = errors;
8797
+ if (errors === _errs82) {
8798
+ if (typeof data34 === "string") {
8799
+ if (data34.length < 1) {
8365
8800
  const err7 = { instancePath: instancePath + "/target/" + i1, schemaPath: "#/definitions/Target/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
8366
8801
  if (vErrors === null) {
8367
8802
  vErrors = [err7];
@@ -8383,7 +8818,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8383
8818
  errors++;
8384
8819
  }
8385
8820
  }
8386
- var valid22 = _errs80 === errors;
8821
+ var valid22 = _errs82 === errors;
8387
8822
  if (!valid22) {
8388
8823
  break;
8389
8824
  }
@@ -8401,11 +8836,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8401
8836
  errors++;
8402
8837
  }
8403
8838
  }
8404
- var _valid2 = _errs78 === errors;
8839
+ var _valid2 = _errs80 === errors;
8405
8840
  valid21 = valid21 || _valid2;
8406
8841
  if (!valid21) {
8407
- const _errs82 = errors;
8408
- if (data32 !== false) {
8842
+ const _errs84 = errors;
8843
+ if (data33 !== false) {
8409
8844
  const err10 = { instancePath: instancePath + "/target", schemaPath: "#/definitions/Target/anyOf/1/enum", keyword: "enum", params: {}, message: "must pass \"enum\" keyword validation" };
8410
8845
  if (vErrors === null) {
8411
8846
  vErrors = [err10];
@@ -8415,13 +8850,13 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8415
8850
  }
8416
8851
  errors++;
8417
8852
  }
8418
- var _valid2 = _errs82 === errors;
8853
+ var _valid2 = _errs84 === errors;
8419
8854
  valid21 = valid21 || _valid2;
8420
8855
  if (!valid21) {
8421
- const _errs83 = errors;
8422
- if (errors === _errs83) {
8423
- if (typeof data32 === "string") {
8424
- if (data32.length < 1) {
8856
+ const _errs85 = errors;
8857
+ if (errors === _errs85) {
8858
+ if (typeof data33 === "string") {
8859
+ if (data33.length < 1) {
8425
8860
  const err11 = { instancePath: instancePath + "/target", schemaPath: "#/definitions/Target/anyOf/2/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
8426
8861
  if (vErrors === null) {
8427
8862
  vErrors = [err11];
@@ -8443,7 +8878,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8443
8878
  errors++;
8444
8879
  }
8445
8880
  }
8446
- var _valid2 = _errs83 === errors;
8881
+ var _valid2 = _errs85 === errors;
8447
8882
  valid21 = valid21 || _valid2;
8448
8883
  }
8449
8884
  }
@@ -8460,89 +8895,89 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8460
8895
  return false;
8461
8896
  }
8462
8897
  else {
8463
- errors = _errs77;
8898
+ errors = _errs79;
8464
8899
  if (vErrors !== null) {
8465
- if (_errs77) {
8466
- vErrors.length = _errs77;
8900
+ if (_errs79) {
8901
+ vErrors.length = _errs79;
8467
8902
  }
8468
8903
  else {
8469
8904
  vErrors = null;
8470
8905
  }
8471
8906
  }
8472
8907
  }
8473
- var valid0 = _errs75 === errors;
8908
+ var valid0 = _errs77 === errors;
8474
8909
  }
8475
8910
  else {
8476
8911
  var valid0 = true;
8477
8912
  }
8478
8913
  if (valid0) {
8479
8914
  if (data.watch !== undefined) {
8480
- const _errs85 = errors;
8915
+ const _errs87 = errors;
8481
8916
  if (typeof data.watch !== "boolean") {
8482
8917
  validate10.errors = [{ instancePath: instancePath + "/watch", schemaPath: "#/definitions/Watch/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
8483
8918
  return false;
8484
8919
  }
8485
- var valid0 = _errs85 === errors;
8920
+ var valid0 = _errs87 === errors;
8486
8921
  }
8487
8922
  else {
8488
8923
  var valid0 = true;
8489
8924
  }
8490
8925
  if (valid0) {
8491
8926
  if (data.watchOptions !== undefined) {
8492
- let data35 = data.watchOptions;
8493
- const _errs88 = errors;
8494
- const _errs89 = errors;
8495
- if (errors === _errs89) {
8496
- if (data35 && typeof data35 == "object" && !Array.isArray(data35)) {
8497
- const _errs91 = errors;
8498
- for (const key6 in data35) {
8927
+ let data36 = data.watchOptions;
8928
+ const _errs90 = errors;
8929
+ const _errs91 = errors;
8930
+ if (errors === _errs91) {
8931
+ if (data36 && typeof data36 == "object" && !Array.isArray(data36)) {
8932
+ const _errs93 = errors;
8933
+ for (const key6 in data36) {
8499
8934
  if (!(((((key6 === "aggregateTimeout") || (key6 === "followSymlinks")) || (key6 === "ignored")) || (key6 === "poll")) || (key6 === "stdin"))) {
8500
8935
  validate10.errors = [{ instancePath: instancePath + "/watchOptions", schemaPath: "#/definitions/WatchOptions/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" }];
8501
8936
  return false;
8502
8937
  break;
8503
8938
  }
8504
8939
  }
8505
- if (_errs91 === errors) {
8506
- if (data35.aggregateTimeout !== undefined) {
8507
- const _errs92 = errors;
8508
- if (!(typeof data35.aggregateTimeout == "number")) {
8940
+ if (_errs93 === errors) {
8941
+ if (data36.aggregateTimeout !== undefined) {
8942
+ const _errs94 = errors;
8943
+ if (!(typeof data36.aggregateTimeout == "number")) {
8509
8944
  validate10.errors = [{ instancePath: instancePath + "/watchOptions/aggregateTimeout", schemaPath: "#/definitions/WatchOptions/properties/aggregateTimeout/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
8510
8945
  return false;
8511
8946
  }
8512
- var valid25 = _errs92 === errors;
8947
+ var valid25 = _errs94 === errors;
8513
8948
  }
8514
8949
  else {
8515
8950
  var valid25 = true;
8516
8951
  }
8517
8952
  if (valid25) {
8518
- if (data35.followSymlinks !== undefined) {
8519
- const _errs94 = errors;
8520
- if (typeof data35.followSymlinks !== "boolean") {
8953
+ if (data36.followSymlinks !== undefined) {
8954
+ const _errs96 = errors;
8955
+ if (typeof data36.followSymlinks !== "boolean") {
8521
8956
  validate10.errors = [{ instancePath: instancePath + "/watchOptions/followSymlinks", schemaPath: "#/definitions/WatchOptions/properties/followSymlinks/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
8522
8957
  return false;
8523
8958
  }
8524
- var valid25 = _errs94 === errors;
8959
+ var valid25 = _errs96 === errors;
8525
8960
  }
8526
8961
  else {
8527
8962
  var valid25 = true;
8528
8963
  }
8529
8964
  if (valid25) {
8530
- if (data35.ignored !== undefined) {
8531
- let data38 = data35.ignored;
8532
- const _errs96 = errors;
8533
- const _errs97 = errors;
8534
- let valid26 = false;
8965
+ if (data36.ignored !== undefined) {
8966
+ let data39 = data36.ignored;
8535
8967
  const _errs98 = errors;
8536
- if (errors === _errs98) {
8537
- if (Array.isArray(data38)) {
8968
+ const _errs99 = errors;
8969
+ let valid26 = false;
8970
+ const _errs100 = errors;
8971
+ if (errors === _errs100) {
8972
+ if (Array.isArray(data39)) {
8538
8973
  var valid27 = true;
8539
- const len2 = data38.length;
8974
+ const len2 = data39.length;
8540
8975
  for (let i2 = 0; i2 < len2; i2++) {
8541
- let data39 = data38[i2];
8542
- const _errs100 = errors;
8543
- if (errors === _errs100) {
8544
- if (typeof data39 === "string") {
8545
- if (data39.length < 1) {
8976
+ let data40 = data39[i2];
8977
+ const _errs102 = errors;
8978
+ if (errors === _errs102) {
8979
+ if (typeof data40 === "string") {
8980
+ if (data40.length < 1) {
8546
8981
  const err14 = { instancePath: instancePath + "/watchOptions/ignored/" + i2, schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/0/items/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
8547
8982
  if (vErrors === null) {
8548
8983
  vErrors = [err14];
@@ -8564,7 +8999,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8564
8999
  errors++;
8565
9000
  }
8566
9001
  }
8567
- var valid27 = _errs100 === errors;
9002
+ var valid27 = _errs102 === errors;
8568
9003
  if (!valid27) {
8569
9004
  break;
8570
9005
  }
@@ -8581,11 +9016,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8581
9016
  errors++;
8582
9017
  }
8583
9018
  }
8584
- var _valid3 = _errs98 === errors;
9019
+ var _valid3 = _errs100 === errors;
8585
9020
  valid26 = valid26 || _valid3;
8586
9021
  if (!valid26) {
8587
- const _errs102 = errors;
8588
- if (!(data38 instanceof RegExp)) {
9022
+ const _errs104 = errors;
9023
+ if (!(data39 instanceof RegExp)) {
8589
9024
  const err17 = { instancePath: instancePath + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/1/instanceof", keyword: "instanceof", params: {}, message: "must pass \"instanceof\" keyword validation" };
8590
9025
  if (vErrors === null) {
8591
9026
  vErrors = [err17];
@@ -8595,13 +9030,13 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8595
9030
  }
8596
9031
  errors++;
8597
9032
  }
8598
- var _valid3 = _errs102 === errors;
9033
+ var _valid3 = _errs104 === errors;
8599
9034
  valid26 = valid26 || _valid3;
8600
9035
  if (!valid26) {
8601
- const _errs103 = errors;
8602
- if (errors === _errs103) {
8603
- if (typeof data38 === "string") {
8604
- if (data38.length < 1) {
9036
+ const _errs105 = errors;
9037
+ if (errors === _errs105) {
9038
+ if (typeof data39 === "string") {
9039
+ if (data39.length < 1) {
8605
9040
  const err18 = { instancePath: instancePath + "/watchOptions/ignored", schemaPath: "#/definitions/WatchOptions/properties/ignored/anyOf/2/minLength", keyword: "minLength", params: {}, message: "must pass \"minLength\" keyword validation" };
8606
9041
  if (vErrors === null) {
8607
9042
  vErrors = [err18];
@@ -8623,7 +9058,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8623
9058
  errors++;
8624
9059
  }
8625
9060
  }
8626
- var _valid3 = _errs103 === errors;
9061
+ var _valid3 = _errs105 === errors;
8627
9062
  valid26 = valid26 || _valid3;
8628
9063
  }
8629
9064
  }
@@ -8640,29 +9075,29 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8640
9075
  return false;
8641
9076
  }
8642
9077
  else {
8643
- errors = _errs97;
9078
+ errors = _errs99;
8644
9079
  if (vErrors !== null) {
8645
- if (_errs97) {
8646
- vErrors.length = _errs97;
9080
+ if (_errs99) {
9081
+ vErrors.length = _errs99;
8647
9082
  }
8648
9083
  else {
8649
9084
  vErrors = null;
8650
9085
  }
8651
9086
  }
8652
9087
  }
8653
- var valid25 = _errs96 === errors;
9088
+ var valid25 = _errs98 === errors;
8654
9089
  }
8655
9090
  else {
8656
9091
  var valid25 = true;
8657
9092
  }
8658
9093
  if (valid25) {
8659
- if (data35.poll !== undefined) {
8660
- let data40 = data35.poll;
8661
- const _errs105 = errors;
8662
- const _errs106 = errors;
8663
- let valid28 = false;
9094
+ if (data36.poll !== undefined) {
9095
+ let data41 = data36.poll;
8664
9096
  const _errs107 = errors;
8665
- if (!(typeof data40 == "number")) {
9097
+ const _errs108 = errors;
9098
+ let valid28 = false;
9099
+ const _errs109 = errors;
9100
+ if (!(typeof data41 == "number")) {
8666
9101
  const err21 = { instancePath: instancePath + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf/0/type", keyword: "type", params: { type: "number" }, message: "must be number" };
8667
9102
  if (vErrors === null) {
8668
9103
  vErrors = [err21];
@@ -8672,11 +9107,11 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8672
9107
  }
8673
9108
  errors++;
8674
9109
  }
8675
- var _valid4 = _errs107 === errors;
9110
+ var _valid4 = _errs109 === errors;
8676
9111
  valid28 = valid28 || _valid4;
8677
9112
  if (!valid28) {
8678
- const _errs109 = errors;
8679
- if (typeof data40 !== "boolean") {
9113
+ const _errs111 = errors;
9114
+ if (typeof data41 !== "boolean") {
8680
9115
  const err22 = { instancePath: instancePath + "/watchOptions/poll", schemaPath: "#/definitions/WatchOptions/properties/poll/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
8681
9116
  if (vErrors === null) {
8682
9117
  vErrors = [err22];
@@ -8686,7 +9121,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8686
9121
  }
8687
9122
  errors++;
8688
9123
  }
8689
- var _valid4 = _errs109 === errors;
9124
+ var _valid4 = _errs111 === errors;
8690
9125
  valid28 = valid28 || _valid4;
8691
9126
  }
8692
9127
  if (!valid28) {
@@ -8702,29 +9137,29 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8702
9137
  return false;
8703
9138
  }
8704
9139
  else {
8705
- errors = _errs106;
9140
+ errors = _errs108;
8706
9141
  if (vErrors !== null) {
8707
- if (_errs106) {
8708
- vErrors.length = _errs106;
9142
+ if (_errs108) {
9143
+ vErrors.length = _errs108;
8709
9144
  }
8710
9145
  else {
8711
9146
  vErrors = null;
8712
9147
  }
8713
9148
  }
8714
9149
  }
8715
- var valid25 = _errs105 === errors;
9150
+ var valid25 = _errs107 === errors;
8716
9151
  }
8717
9152
  else {
8718
9153
  var valid25 = true;
8719
9154
  }
8720
9155
  if (valid25) {
8721
- if (data35.stdin !== undefined) {
8722
- const _errs111 = errors;
8723
- if (typeof data35.stdin !== "boolean") {
9156
+ if (data36.stdin !== undefined) {
9157
+ const _errs113 = errors;
9158
+ if (typeof data36.stdin !== "boolean") {
8724
9159
  validate10.errors = [{ instancePath: instancePath + "/watchOptions/stdin", schemaPath: "#/definitions/WatchOptions/properties/stdin/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
8725
9160
  return false;
8726
9161
  }
8727
- var valid25 = _errs111 === errors;
9162
+ var valid25 = _errs113 === errors;
8728
9163
  }
8729
9164
  else {
8730
9165
  var valid25 = true;
@@ -8740,23 +9175,23 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
8740
9175
  return false;
8741
9176
  }
8742
9177
  }
8743
- var valid0 = _errs88 === errors;
9178
+ var valid0 = _errs90 === errors;
8744
9179
  }
8745
9180
  else {
8746
9181
  var valid0 = true;
8747
9182
  }
8748
9183
  if (valid0) {
8749
9184
  if (data.builtins !== undefined) {
8750
- let data42 = data.builtins;
8751
- const _errs113 = errors;
8752
- if (errors === _errs113) {
8753
- if (data42 && typeof data42 == "object" && !Array.isArray(data42)) { }
9185
+ let data43 = data.builtins;
9186
+ const _errs115 = errors;
9187
+ if (errors === _errs115) {
9188
+ if (data43 && typeof data43 == "object" && !Array.isArray(data43)) { }
8754
9189
  else {
8755
9190
  validate10.errors = [{ instancePath: instancePath + "/builtins", schemaPath: "#/properties/builtins/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
8756
9191
  return false;
8757
9192
  }
8758
9193
  }
8759
- var valid0 = _errs113 === errors;
9194
+ var valid0 = _errs115 === errors;
8760
9195
  }
8761
9196
  else {
8762
9197
  var valid0 = true;