webpack 5.103.0 → 5.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hot/dev-server.js +18 -3
- package/hot/emitter-event-target.js +7 -0
- package/hot/lazy-compilation-node.js +45 -29
- package/hot/lazy-compilation-universal.js +18 -0
- package/hot/lazy-compilation-web.js +15 -5
- package/hot/load-http.js +7 -0
- package/hot/only-dev-server.js +19 -4
- package/lib/APIPlugin.js +6 -0
- package/lib/Chunk.js +1 -1
- package/lib/ChunkGraph.js +9 -7
- package/lib/ChunkGroup.js +8 -5
- package/lib/CleanPlugin.js +6 -3
- package/lib/CodeGenerationResults.js +2 -1
- package/lib/CompatibilityPlugin.js +3 -0
- package/lib/Compilation.js +33 -19
- package/lib/Compiler.js +3 -3
- package/lib/ContextModule.js +6 -3
- package/lib/ContextModuleFactory.js +6 -4
- package/lib/DefinePlugin.js +34 -3
- package/lib/DelegatedModule.js +7 -4
- package/lib/DllModule.js +6 -3
- package/lib/DotenvPlugin.js +11 -6
- package/lib/ExportsInfo.js +5 -5
- package/lib/ExternalModule.js +8 -7
- package/lib/ExternalModuleFactoryPlugin.js +1 -1
- package/lib/FileSystemInfo.js +1 -1
- package/lib/Generator.js +10 -7
- package/lib/HookWebpackError.js +33 -4
- package/lib/HotModuleReplacementPlugin.js +22 -0
- package/lib/ManifestPlugin.js +1 -1
- package/lib/Module.js +24 -15
- package/lib/ModuleBuildError.js +1 -1
- package/lib/ModuleError.js +1 -1
- package/lib/ModuleFilenameHelpers.js +1 -1
- package/lib/ModuleGraph.js +27 -12
- package/lib/ModuleGraphConnection.js +2 -2
- package/lib/ModuleSourceTypeConstants.js +189 -0
- package/lib/ModuleTypeConstants.js +1 -4
- package/lib/ModuleWarning.js +1 -1
- package/lib/NodeStuffPlugin.js +52 -42
- package/lib/NormalModule.js +6 -4
- package/lib/NormalModuleFactory.js +7 -10
- package/lib/Parser.js +1 -1
- package/lib/RawModule.js +7 -4
- package/lib/RuntimeModule.js +1 -1
- package/lib/RuntimeTemplate.js +5 -1
- package/lib/SourceMapDevToolPlugin.js +6 -1
- package/lib/Template.js +17 -6
- package/lib/TemplatedPathPlugin.js +5 -6
- package/lib/WebpackError.js +0 -1
- package/lib/WebpackOptionsApply.js +37 -9
- package/lib/asset/AssetBytesGenerator.js +15 -11
- package/lib/asset/AssetGenerator.js +30 -24
- package/lib/asset/AssetSourceGenerator.js +15 -11
- package/lib/asset/RawDataUrlModule.js +6 -3
- package/lib/buildChunkGraph.js +4 -2
- package/lib/cache/PackFileCacheStrategy.js +6 -5
- package/lib/cli.js +2 -43
- package/lib/config/browserslistTargetHandler.js +19 -0
- package/lib/config/defaults.js +128 -43
- package/lib/config/normalization.js +2 -2
- package/lib/config/target.js +5 -0
- package/lib/container/ContainerEntryModule.js +6 -3
- package/lib/container/FallbackModule.js +6 -3
- package/lib/container/RemoteModule.js +1 -3
- package/lib/css/CssGenerator.js +26 -24
- package/lib/css/CssLoadingRuntimeModule.js +12 -4
- package/lib/css/CssModulesPlugin.js +29 -74
- package/lib/css/CssParser.js +828 -341
- package/lib/css/walkCssTokens.js +33 -13
- package/lib/dependencies/CachedConstDependency.js +24 -10
- package/lib/dependencies/CommonJsRequireContextDependency.js +1 -1
- package/lib/dependencies/ContextDependencyHelpers.js +2 -2
- package/lib/dependencies/ContextDependencyTemplateAsRequireCall.js +3 -1
- package/lib/dependencies/CssIcssExportDependency.js +242 -104
- package/lib/dependencies/CssIcssImportDependency.js +61 -4
- package/lib/dependencies/CssIcssSymbolDependency.js +2 -6
- package/lib/dependencies/CssImportDependency.js +2 -1
- package/lib/dependencies/CssUrlDependency.js +3 -2
- package/lib/dependencies/DynamicExports.js +7 -7
- package/lib/dependencies/ExternalModuleDependency.js +7 -4
- package/lib/dependencies/ExternalModuleInitFragment.js +2 -1
- package/lib/dependencies/ExternalModuleInitFragmentDependency.js +2 -1
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +3 -2
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +1 -1
- package/lib/dependencies/HarmonyExports.js +4 -4
- package/lib/dependencies/HarmonyImportDependency.js +8 -3
- package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +1 -1
- package/lib/dependencies/ImportMetaPlugin.js +57 -0
- package/lib/dependencies/ImportParserPlugin.js +2 -2
- package/lib/dependencies/LocalModulesHelpers.js +3 -3
- package/lib/dependencies/WorkerPlugin.js +2 -2
- package/lib/dependencies/getFunctionExpression.js +1 -1
- package/lib/esm/ModuleChunkFormatPlugin.js +5 -4
- package/lib/hmr/HotModuleReplacement.runtime.js +2 -1
- package/lib/hmr/LazyCompilationPlugin.js +4 -3
- package/lib/ids/IdHelpers.js +16 -7
- package/lib/javascript/ChunkHelpers.js +1 -1
- package/lib/javascript/JavascriptGenerator.js +4 -3
- package/lib/javascript/JavascriptModulesPlugin.js +57 -24
- package/lib/javascript/JavascriptParser.js +19 -6
- package/lib/json/JsonGenerator.js +5 -4
- package/lib/json/JsonParser.js +2 -1
- package/lib/library/AbstractLibraryPlugin.js +1 -1
- package/lib/library/AmdLibraryPlugin.js +4 -1
- package/lib/library/ExportPropertyLibraryPlugin.js +4 -1
- package/lib/library/ModuleLibraryPlugin.js +41 -13
- package/lib/library/SystemLibraryPlugin.js +4 -1
- package/lib/library/UmdLibraryPlugin.js +1 -1
- package/lib/logging/Logger.js +5 -4
- package/lib/logging/createConsoleLogger.js +2 -2
- package/lib/optimize/ConcatenatedModule.js +47 -32
- package/lib/optimize/ModuleConcatenationPlugin.js +5 -4
- package/lib/optimize/SideEffectsFlagPlugin.js +3 -2
- package/lib/optimize/SplitChunksPlugin.js +60 -46
- package/lib/rules/RuleSetCompiler.js +1 -1
- package/lib/runtime/GetChunkFilenameRuntimeModule.js +3 -2
- package/lib/schemes/HttpUriPlugin.js +78 -7
- package/lib/serialization/AggregateErrorSerializer.js +1 -2
- package/lib/serialization/ObjectMiddleware.js +0 -2
- package/lib/serialization/SingleItemMiddleware.js +1 -1
- package/lib/sharing/ConsumeSharedModule.js +1 -1
- package/lib/sharing/ConsumeSharedPlugin.js +5 -3
- package/lib/sharing/ProvideSharedModule.js +1 -1
- package/lib/sharing/resolveMatchedConfigs.js +15 -9
- package/lib/sharing/utils.js +1 -1
- package/lib/stats/DefaultStatsFactoryPlugin.js +8 -5
- package/lib/stats/DefaultStatsPresetPlugin.js +1 -1
- package/lib/stats/DefaultStatsPrinterPlugin.js +1 -1
- package/lib/util/StringXor.js +1 -1
- package/lib/util/URLAbsoluteSpecifier.js +2 -2
- package/lib/util/binarySearchBounds.js +2 -2
- package/lib/util/comparators.js +53 -76
- package/lib/util/compileBooleanMatcher.js +78 -6
- package/lib/util/createHash.js +20 -199
- package/lib/util/deprecation.js +1 -1
- package/lib/util/deterministicGrouping.js +6 -3
- package/lib/util/fs.js +75 -75
- package/lib/util/hash/BatchedHash.js +10 -9
- package/lib/util/hash/BulkUpdateHash.js +138 -0
- package/lib/util/hash/DebugHash.js +75 -0
- package/lib/util/hash/hash-digest.js +216 -0
- package/lib/util/identifier.js +82 -17
- package/lib/util/internalSerializables.js +2 -6
- package/lib/util/runtime.js +3 -3
- package/lib/util/source.js +2 -2
- package/lib/wasm-async/AsyncWebAssemblyGenerator.js +3 -2
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +3 -2
- package/lib/wasm-sync/WebAssemblyGenerator.js +9 -6
- package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +3 -2
- package/lib/wasm-sync/WebAssemblyModulesPlugin.js +6 -2
- package/lib/webpack.js +1 -1
- package/package.json +29 -25
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +59 -82
- package/schemas/plugins/css/CssModuleGeneratorOptions.check.js +1 -1
- package/schemas/plugins/css/CssModuleParserOptions.check.js +1 -1
- package/types.d.ts +225 -157
- package/lib/ModuleSourceTypesConstants.js +0 -117
- package/lib/dependencies/CssIcssFromIdentifierDependency.js +0 -124
- package/lib/dependencies/CssIcssGlobalIdentifierDependency.js +0 -48
- package/lib/dependencies/CssIcssLocalIdentifierDependency.js +0 -61
- package/lib/dependencies/CssIcssSelfLocalIdentifierDependency.js +0 -190
- package/lib/util/jsonParseEvenBetterErrors.js +0 -10
- package/schemas/plugins/css/CssAutoGeneratorOptions.check.d.ts +0 -7
- package/schemas/plugins/css/CssAutoGeneratorOptions.check.js +0 -6
- package/schemas/plugins/css/CssAutoGeneratorOptions.json +0 -3
- package/schemas/plugins/css/CssAutoParserOptions.check.d.ts +0 -7
- package/schemas/plugins/css/CssAutoParserOptions.check.js +0 -6
- package/schemas/plugins/css/CssAutoParserOptions.json +0 -3
- package/schemas/plugins/css/CssGlobalGeneratorOptions.check.d.ts +0 -7
- package/schemas/plugins/css/CssGlobalGeneratorOptions.check.js +0 -6
- package/schemas/plugins/css/CssGlobalGeneratorOptions.json +0 -3
- package/schemas/plugins/css/CssGlobalParserOptions.check.d.ts +0 -7
- package/schemas/plugins/css/CssGlobalParserOptions.check.js +0 -6
- package/schemas/plugins/css/CssGlobalParserOptions.json +0 -3
|
@@ -371,44 +371,6 @@
|
|
|
371
371
|
"description": "This option enables cross-origin loading of chunks.",
|
|
372
372
|
"enum": [false, "anonymous", "use-credentials"]
|
|
373
373
|
},
|
|
374
|
-
"CssAutoGeneratorOptions": {
|
|
375
|
-
"description": "Generator options for css/auto modules.",
|
|
376
|
-
"type": "object",
|
|
377
|
-
"additionalProperties": false,
|
|
378
|
-
"properties": {
|
|
379
|
-
"esModule": {
|
|
380
|
-
"$ref": "#/definitions/CssGeneratorEsModule"
|
|
381
|
-
},
|
|
382
|
-
"exportsConvention": {
|
|
383
|
-
"$ref": "#/definitions/CssGeneratorExportsConvention"
|
|
384
|
-
},
|
|
385
|
-
"exportsOnly": {
|
|
386
|
-
"$ref": "#/definitions/CssGeneratorExportsOnly"
|
|
387
|
-
},
|
|
388
|
-
"localIdentName": {
|
|
389
|
-
"$ref": "#/definitions/CssGeneratorLocalIdentName"
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
},
|
|
393
|
-
"CssAutoParserOptions": {
|
|
394
|
-
"description": "Parser options for css/auto modules.",
|
|
395
|
-
"type": "object",
|
|
396
|
-
"additionalProperties": false,
|
|
397
|
-
"properties": {
|
|
398
|
-
"exportType": {
|
|
399
|
-
"$ref": "#/definitions/CssParserExportType"
|
|
400
|
-
},
|
|
401
|
-
"import": {
|
|
402
|
-
"$ref": "#/definitions/CssParserImport"
|
|
403
|
-
},
|
|
404
|
-
"namedExports": {
|
|
405
|
-
"$ref": "#/definitions/CssParserNamedExports"
|
|
406
|
-
},
|
|
407
|
-
"url": {
|
|
408
|
-
"$ref": "#/definitions/CssParserUrl"
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
374
|
"CssChunkFilename": {
|
|
413
375
|
"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.",
|
|
414
376
|
"oneOf": [
|
|
@@ -468,8 +430,8 @@
|
|
|
468
430
|
}
|
|
469
431
|
}
|
|
470
432
|
},
|
|
471
|
-
"
|
|
472
|
-
"description": "Generator options for css/
|
|
433
|
+
"CssModuleGeneratorOptions": {
|
|
434
|
+
"description": "Generator options for css/module modules.",
|
|
473
435
|
"type": "object",
|
|
474
436
|
"additionalProperties": false,
|
|
475
437
|
"properties": {
|
|
@@ -485,59 +447,45 @@
|
|
|
485
447
|
"exportsOnly": {
|
|
486
448
|
"$ref": "#/definitions/CssGeneratorExportsOnly"
|
|
487
449
|
},
|
|
450
|
+
"localIdentHashDigest": {
|
|
451
|
+
"$ref": "#/definitions/HashDigest"
|
|
452
|
+
},
|
|
453
|
+
"localIdentHashDigestLength": {
|
|
454
|
+
"$ref": "#/definitions/HashDigestLength"
|
|
455
|
+
},
|
|
456
|
+
"localIdentHashSalt": {
|
|
457
|
+
"$ref": "#/definitions/HashSalt"
|
|
458
|
+
},
|
|
488
459
|
"localIdentName": {
|
|
489
460
|
"$ref": "#/definitions/CssGeneratorLocalIdentName"
|
|
490
461
|
}
|
|
491
462
|
}
|
|
492
463
|
},
|
|
493
|
-
"
|
|
494
|
-
"description": "Parser options for css/
|
|
464
|
+
"CssModuleParserOptions": {
|
|
465
|
+
"description": "Parser options for css/module modules.",
|
|
495
466
|
"type": "object",
|
|
496
467
|
"additionalProperties": false,
|
|
497
468
|
"properties": {
|
|
498
|
-
"
|
|
499
|
-
"$ref": "#/definitions/
|
|
469
|
+
"animation": {
|
|
470
|
+
"$ref": "#/definitions/CssParserAnimation"
|
|
500
471
|
},
|
|
501
|
-
"
|
|
502
|
-
"$ref": "#/definitions/
|
|
472
|
+
"container": {
|
|
473
|
+
"$ref": "#/definitions/CssParserContainer"
|
|
503
474
|
},
|
|
504
|
-
"
|
|
505
|
-
"$ref": "#/definitions/
|
|
475
|
+
"customIdents": {
|
|
476
|
+
"$ref": "#/definitions/CssParserCustomIdents"
|
|
506
477
|
},
|
|
507
|
-
"
|
|
508
|
-
"$ref": "#/definitions/
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
"CssModuleGeneratorOptions": {
|
|
513
|
-
"description": "Generator options for css/module modules.",
|
|
514
|
-
"type": "object",
|
|
515
|
-
"additionalProperties": false,
|
|
516
|
-
"properties": {
|
|
517
|
-
"esModule": {
|
|
518
|
-
"$ref": "#/definitions/CssGeneratorEsModule"
|
|
478
|
+
"dashedIdents": {
|
|
479
|
+
"$ref": "#/definitions/CssParserDashedIdents"
|
|
519
480
|
},
|
|
520
481
|
"exportType": {
|
|
521
482
|
"$ref": "#/definitions/CssParserExportType"
|
|
522
483
|
},
|
|
523
|
-
"
|
|
524
|
-
"$ref": "#/definitions/
|
|
484
|
+
"function": {
|
|
485
|
+
"$ref": "#/definitions/CssParserFunction"
|
|
525
486
|
},
|
|
526
|
-
"
|
|
527
|
-
"$ref": "#/definitions/
|
|
528
|
-
},
|
|
529
|
-
"localIdentName": {
|
|
530
|
-
"$ref": "#/definitions/CssGeneratorLocalIdentName"
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
"CssModuleParserOptions": {
|
|
535
|
-
"description": "Parser options for css/module modules.",
|
|
536
|
-
"type": "object",
|
|
537
|
-
"additionalProperties": false,
|
|
538
|
-
"properties": {
|
|
539
|
-
"exportType": {
|
|
540
|
-
"$ref": "#/definitions/CssParserExportType"
|
|
487
|
+
"grid": {
|
|
488
|
+
"$ref": "#/definitions/CssParserGrid"
|
|
541
489
|
},
|
|
542
490
|
"import": {
|
|
543
491
|
"$ref": "#/definitions/CssParserImport"
|
|
@@ -550,10 +498,34 @@
|
|
|
550
498
|
}
|
|
551
499
|
}
|
|
552
500
|
},
|
|
501
|
+
"CssParserAnimation": {
|
|
502
|
+
"description": "Enable/disable renaming of `@keyframes`.",
|
|
503
|
+
"type": "boolean"
|
|
504
|
+
},
|
|
505
|
+
"CssParserContainer": {
|
|
506
|
+
"description": "Enable/disable renaming of `@container` names.",
|
|
507
|
+
"type": "boolean"
|
|
508
|
+
},
|
|
509
|
+
"CssParserCustomIdents": {
|
|
510
|
+
"description": "Enable/disable renaming of custom identifiers.",
|
|
511
|
+
"type": "boolean"
|
|
512
|
+
},
|
|
513
|
+
"CssParserDashedIdents": {
|
|
514
|
+
"description": "Enable/disable renaming of dashed identifiers, e. g. custom properties.",
|
|
515
|
+
"type": "boolean"
|
|
516
|
+
},
|
|
553
517
|
"CssParserExportType": {
|
|
554
518
|
"description": "Configure how CSS content is exported as default.",
|
|
555
519
|
"enum": ["link", "text", "css-style-sheet"]
|
|
556
520
|
},
|
|
521
|
+
"CssParserFunction": {
|
|
522
|
+
"description": "Enable/disable renaming of `@function` names.",
|
|
523
|
+
"type": "boolean"
|
|
524
|
+
},
|
|
525
|
+
"CssParserGrid": {
|
|
526
|
+
"description": "Enable/disable renaming of grid identifiers.",
|
|
527
|
+
"type": "boolean"
|
|
528
|
+
},
|
|
557
529
|
"CssParserImport": {
|
|
558
530
|
"description": "Enable/disable `@import` at-rules handling.",
|
|
559
531
|
"type": "boolean"
|
|
@@ -1026,6 +998,10 @@
|
|
|
1026
998
|
"description": "The environment supports `import.meta.dirname` and `import.meta.filename`.",
|
|
1027
999
|
"type": "boolean"
|
|
1028
1000
|
},
|
|
1001
|
+
"methodShorthand": {
|
|
1002
|
+
"description": "The environment supports object method shorthand ('{ module() {} }').",
|
|
1003
|
+
"type": "boolean"
|
|
1004
|
+
},
|
|
1029
1005
|
"module": {
|
|
1030
1006
|
"description": "The environment supports EcmaScript Module syntax to import EcmaScript modules (import ... from '...').",
|
|
1031
1007
|
"type": "boolean"
|
|
@@ -1621,10 +1597,10 @@
|
|
|
1621
1597
|
"$ref": "#/definitions/CssGeneratorOptions"
|
|
1622
1598
|
},
|
|
1623
1599
|
"css/auto": {
|
|
1624
|
-
"$ref": "#/definitions/
|
|
1600
|
+
"$ref": "#/definitions/CssModuleGeneratorOptions"
|
|
1625
1601
|
},
|
|
1626
1602
|
"css/global": {
|
|
1627
|
-
"$ref": "#/definitions/
|
|
1603
|
+
"$ref": "#/definitions/CssModuleGeneratorOptions"
|
|
1628
1604
|
},
|
|
1629
1605
|
"css/module": {
|
|
1630
1606
|
"$ref": "#/definitions/CssModuleGeneratorOptions"
|
|
@@ -3378,7 +3354,8 @@
|
|
|
3378
3354
|
"type": "array",
|
|
3379
3355
|
"items": {
|
|
3380
3356
|
"description": "Size type, like 'javascript', 'webassembly'.",
|
|
3381
|
-
"type": "string"
|
|
3357
|
+
"type": "string",
|
|
3358
|
+
"tsType": "(import(\"../lib/Module\").SourceType)"
|
|
3382
3359
|
},
|
|
3383
3360
|
"minItems": 1
|
|
3384
3361
|
},
|
|
@@ -4002,10 +3979,10 @@
|
|
|
4002
3979
|
"$ref": "#/definitions/CssParserOptions"
|
|
4003
3980
|
},
|
|
4004
3981
|
"css/auto": {
|
|
4005
|
-
"$ref": "#/definitions/
|
|
3982
|
+
"$ref": "#/definitions/CssModuleParserOptions"
|
|
4006
3983
|
},
|
|
4007
3984
|
"css/global": {
|
|
4008
|
-
"$ref": "#/definitions/
|
|
3985
|
+
"$ref": "#/definitions/CssModuleParserOptions"
|
|
4009
3986
|
},
|
|
4010
3987
|
"css/module": {
|
|
4011
3988
|
"$ref": "#/definitions/CssModuleParserOptions"
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
|
4
4
|
* Run `yarn fix:special` to update
|
|
5
5
|
*/
|
|
6
|
-
"use strict";function e(
|
|
6
|
+
"use strict";function e(t,{instancePath:r="",parentData:o,parentDataProperty:s,rootData:a=t}={}){let n=null,l=0;if(0===l){if(!t||"object"!=typeof t||Array.isArray(t))return e.errors=[{params:{type:"object"}}],!1;{const r=l;for(const r in t)if("esModule"!==r&&"exportType"!==r&&"exportsConvention"!==r&&"exportsOnly"!==r&&"localIdentHashDigest"!==r&&"localIdentHashDigestLength"!==r&&"localIdentHashSalt"!==r&&"localIdentName"!==r)return e.errors=[{params:{additionalProperty:r}}],!1;if(r===l){if(void 0!==t.esModule){const r=l;if("boolean"!=typeof t.esModule)return e.errors=[{params:{type:"boolean"}}],!1;var i=r===l}else i=!0;if(i){if(void 0!==t.exportType){let r=t.exportType;const o=l;if("link"!==r&&"text"!==r&&"css-style-sheet"!==r)return e.errors=[{params:{}}],!1;i=o===l}else i=!0;if(i){if(void 0!==t.exportsConvention){let r=t.exportsConvention;const o=l,s=l;let a=!1;const f=l;if("as-is"!==r&&"camel-case"!==r&&"camel-case-only"!==r&&"dashes"!==r&&"dashes-only"!==r){const e={params:{}};null===n?n=[e]:n.push(e),l++}var p=f===l;if(a=a||p,!a){const e=l;if(!(r instanceof Function)){const e={params:{}};null===n?n=[e]:n.push(e),l++}p=e===l,a=a||p}if(!a){const t={params:{}};return null===n?n=[t]:n.push(t),l++,e.errors=n,!1}l=s,null!==n&&(s?n.length=s:n=null),i=o===l}else i=!0;if(i){if(void 0!==t.exportsOnly){const r=l;if("boolean"!=typeof t.exportsOnly)return e.errors=[{params:{type:"boolean"}}],!1;i=r===l}else i=!0;if(i){if(void 0!==t.localIdentHashDigest){const r=l;if("string"!=typeof t.localIdentHashDigest)return e.errors=[{params:{type:"string"}}],!1;i=r===l}else i=!0;if(i){if(void 0!==t.localIdentHashDigestLength){let r=t.localIdentHashDigestLength;const o=l;if(l==l){if("number"!=typeof r)return e.errors=[{params:{type:"number"}}],!1;if(r<1||isNaN(r))return e.errors=[{params:{comparison:">=",limit:1}}],!1}i=o===l}else i=!0;if(i){if(void 0!==t.localIdentHashSalt){let r=t.localIdentHashSalt;const o=l;if(l==l){if("string"!=typeof r)return e.errors=[{params:{type:"string"}}],!1;if(r.length<1)return e.errors=[{params:{}}],!1}i=o===l}else i=!0;if(i)if(void 0!==t.localIdentName){const r=l;if("string"!=typeof t.localIdentName)return e.errors=[{params:{type:"string"}}],!1;i=r===l}else i=!0}}}}}}}}}return e.errors=n,0===l}function t(r,{instancePath:o="",parentData:s,parentDataProperty:a,rootData:n=r}={}){let l=null,i=0;return e(r,{instancePath:o,parentData:s,parentDataProperty:a,rootData:n})||(l=null===l?e.errors:l.concat(e.errors),i=l.length),t.errors=l,0===i}module.exports=t,module.exports.default=t;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
|
4
4
|
* Run `yarn fix:special` to update
|
|
5
5
|
*/
|
|
6
|
-
"use strict";function
|
|
6
|
+
"use strict";module.exports=t,module.exports.default=t;const e={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},url:{$ref:"#/definitions/CssParserUrl"}}},r=Object.prototype.hasOwnProperty;function o(t,{instancePath:s="",parentData:n,parentDataProperty:a,rootData:i=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return o.errors=[{params:{type:"object"}}],!1;{const s=0;for(const s in t)if(!r.call(e.properties,s))return o.errors=[{params:{additionalProperty:s}}],!1;if(0===s){if(void 0!==t.animation){const e=0;if("boolean"!=typeof t.animation)return o.errors=[{params:{type:"boolean"}}],!1;var f=0===e}else f=!0;if(f){if(void 0!==t.container){const e=0;if("boolean"!=typeof t.container)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.customIdents){const e=0;if("boolean"!=typeof t.customIdents)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.dashedIdents){const e=0;if("boolean"!=typeof t.dashedIdents)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.exportType){let e=t.exportType;const r=0;if("link"!==e&&"text"!==e&&"css-style-sheet"!==e)return o.errors=[{params:{}}],!1;f=0===r}else f=!0;if(f){if(void 0!==t.function){const e=0;if("boolean"!=typeof t.function)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.grid){const e=0;if("boolean"!=typeof t.grid)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.import){const e=0;if("boolean"!=typeof t.import)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.namedExports){const e=0;if("boolean"!=typeof t.namedExports)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f)if(void 0!==t.url){const e=0;if("boolean"!=typeof t.url)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0}}}}}}}}}}return o.errors=null,!0}function t(e,{instancePath:r="",parentData:s,parentDataProperty:n,rootData:a=e}={}){let i=null,f=0;return o(e,{instancePath:r,parentData:s,parentDataProperty:n,rootData:a})||(i=null===i?o.errors:i.concat(o.errors),f=i.length),t.errors=i,0===f}
|