webpack 5.105.4 → 5.106.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/README.md +3 -6
- package/lib/BannerPlugin.js +13 -13
- package/lib/Chunk.js +25 -0
- package/lib/ChunkGraph.js +8 -4
- package/lib/CleanPlugin.js +23 -20
- package/lib/CompatibilityPlugin.js +1 -1
- package/lib/Compilation.js +34 -11
- package/lib/Compiler.js +59 -1
- package/lib/CssModule.js +17 -2
- package/lib/Dependency.js +1 -1
- package/lib/DllPlugin.js +17 -17
- package/lib/DllReferencePlugin.js +20 -18
- package/lib/DotenvPlugin.js +29 -27
- package/lib/ExternalModule.js +39 -6
- package/lib/FileSystemInfo.js +3 -1
- package/lib/IgnorePlugin.js +12 -11
- package/lib/LoaderOptionsPlugin.js +17 -15
- package/lib/ManifestPlugin.js +27 -25
- package/lib/Module.js +69 -4
- package/lib/ModuleGraph.js +3 -0
- package/lib/ModuleParseError.js +1 -1
- package/lib/ModuleTypeConstants.js +1 -1
- package/lib/NormalModule.js +7 -3
- package/lib/NormalModuleFactory.js +20 -1
- package/lib/ProgressPlugin.js +39 -29
- package/lib/RuntimeGlobals.js +6 -0
- package/lib/RuntimeTemplate.js +1 -1
- package/lib/SourceMapDevToolPlugin.js +13 -11
- package/lib/TemplatedPathPlugin.js +4 -3
- package/lib/WatchIgnorePlugin.js +15 -13
- package/lib/WebpackOptionsApply.js +4 -4
- package/lib/asset/AssetModulesPlugin.js +50 -29
- package/lib/cli.js +3 -1
- package/lib/config/defaults.js +27 -13
- package/lib/config/normalization.js +3 -2
- package/lib/container/ContainerPlugin.js +46 -42
- package/lib/container/ContainerReferencePlugin.js +42 -26
- package/lib/container/FallbackModule.js +1 -1
- package/lib/container/ModuleFederationPlugin.js +17 -13
- package/lib/css/CssGenerator.js +306 -192
- package/lib/css/CssInjectStyleRuntimeModule.js +179 -0
- package/lib/css/CssLoadingRuntimeModule.js +1 -4
- package/lib/css/CssModulesPlugin.js +197 -98
- package/lib/css/CssParser.js +231 -134
- package/lib/css/walkCssTokens.js +115 -12
- package/lib/debug/ProfilingPlugin.js +16 -13
- package/lib/dependencies/AMDDefineDependencyParserPlugin.js +20 -15
- package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +4 -3
- package/lib/dependencies/CommonJsExportRequireDependency.js +4 -2
- package/lib/dependencies/CommonJsExportsDependency.js +1 -1
- package/lib/dependencies/CommonJsExportsParserPlugin.js +1 -1
- package/lib/dependencies/CommonJsFullRequireDependency.js +1 -1
- package/lib/dependencies/CommonJsImportsParserPlugin.js +63 -2
- package/lib/dependencies/CommonJsRequireContextDependency.js +21 -0
- package/lib/dependencies/CommonJsRequireDependency.js +42 -1
- package/lib/dependencies/CommonJsSelfReferenceDependency.js +1 -1
- package/lib/dependencies/ContextElementDependency.js +1 -1
- package/lib/dependencies/CssIcssExportDependency.js +210 -87
- package/lib/dependencies/CssIcssImportDependency.js +13 -70
- package/lib/dependencies/CssIcssSymbolDependency.js +19 -30
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +13 -2
- package/lib/dependencies/HarmonyExportExpressionDependency.js +28 -2
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +13 -3
- package/lib/dependencies/HarmonyExportInitFragment.js +1 -1
- package/lib/dependencies/HarmonyImportDependency.js +21 -8
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +4 -1
- package/lib/dependencies/HarmonyImportSideEffectDependency.js +2 -2
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +13 -2
- package/lib/dependencies/ImportContextDependency.js +1 -1
- package/lib/dependencies/ImportDependency.js +16 -2
- package/lib/dependencies/ImportMetaPlugin.js +39 -29
- package/lib/dependencies/ImportParserPlugin.js +4 -5
- package/lib/dependencies/ImportPhase.js +65 -22
- package/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +1 -1
- package/lib/esm/ModuleChunkFormatPlugin.js +1 -4
- package/lib/ids/HashedModuleIdsPlugin.js +21 -23
- package/lib/ids/OccurrenceChunkIdsPlugin.js +15 -11
- package/lib/ids/OccurrenceModuleIdsPlugin.js +15 -11
- package/lib/javascript/ArrayPushCallbackChunkFormatPlugin.js +1 -4
- package/lib/javascript/CommonJsChunkFormatPlugin.js +1 -4
- package/lib/javascript/EnableChunkLoadingPlugin.js +1 -2
- package/lib/javascript/JavascriptModulesPlugin.js +38 -12
- package/lib/javascript/JavascriptParser.js +5 -3
- package/lib/json/JsonModulesPlugin.js +28 -21
- package/lib/library/AssignLibraryPlugin.js +1 -1
- package/lib/library/ExportPropertyLibraryPlugin.js +1 -1
- package/lib/library/ModuleLibraryPlugin.js +35 -13
- package/lib/library/SystemLibraryPlugin.js +1 -1
- package/lib/node/ReadFileCompileAsyncWasmPlugin.js +22 -0
- package/lib/optimize/AggressiveSplittingPlugin.js +18 -31
- package/lib/optimize/ConcatenatedModule.js +4 -3
- package/lib/optimize/InnerGraphPlugin.js +11 -5
- package/lib/optimize/LimitChunkCountPlugin.js +22 -18
- package/lib/optimize/MergeDuplicateChunksPlugin.js +15 -12
- package/lib/optimize/MinChunkSizePlugin.js +20 -16
- package/lib/optimize/RemoveEmptyChunksPlugin.js +0 -1
- package/lib/rules/RuleSetCompiler.js +1 -0
- package/lib/schemes/HttpUriPlugin.js +20 -11
- package/lib/schemes/VirtualUrlPlugin.js +77 -30
- package/lib/serialization/FileMiddleware.js +7 -7
- package/lib/sharing/ConsumeSharedPlugin.js +32 -25
- package/lib/sharing/ProvideSharedPlugin.js +29 -25
- package/lib/util/{propertyName.js → property.js} +26 -1
- package/lib/wasm-async/AsyncWasmCompileRuntimeModule.js +148 -0
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +54 -0
- package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +105 -0
- package/lib/wasm-async/AsyncWebAssemblyParser.js +30 -6
- package/lib/wasm-async/UniversalCompileAsyncWasmPlugin.js +26 -2
- package/lib/web/FetchCompileAsyncWasmPlugin.js +23 -0
- package/lib/web/JsonpTemplatePlugin.js +1 -0
- package/lib/webpack.js +34 -4
- package/package.json +18 -16
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +82 -22
- package/schemas/plugins/css/CssModuleGeneratorOptions.check.js +1 -1
- package/schemas/plugins/css/CssModuleParserOptions.check.js +1 -1
- package/schemas/plugins/css/CssParserOptions.check.js +1 -1
- package/schemas/plugins/optimize/LimitChunkCountPlugin.json +1 -1
- package/schemas/plugins/schemes/VirtualUrlPlugin.check.js +1 -1
- package/schemas/plugins/schemes/VirtualUrlPlugin.json +8 -0
- package/types.d.ts +511 -114
- package/lib/util/create-schema-validation.js +0 -41
- package/lib/util/propertyAccess.js +0 -30
|
@@ -415,7 +415,15 @@
|
|
|
415
415
|
},
|
|
416
416
|
"CssGeneratorLocalIdentName": {
|
|
417
417
|
"description": "Configure the generated local ident name.",
|
|
418
|
-
"
|
|
418
|
+
"anyOf": [
|
|
419
|
+
{
|
|
420
|
+
"type": "string"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"instanceof": "Function",
|
|
424
|
+
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn"
|
|
425
|
+
}
|
|
426
|
+
]
|
|
419
427
|
},
|
|
420
428
|
"CssGeneratorOptions": {
|
|
421
429
|
"description": "Generator options for css modules.",
|
|
@@ -453,6 +461,9 @@
|
|
|
453
461
|
"localIdentHashDigestLength": {
|
|
454
462
|
"$ref": "#/definitions/HashDigestLength"
|
|
455
463
|
},
|
|
464
|
+
"localIdentHashFunction": {
|
|
465
|
+
"$ref": "#/definitions/HashFunction"
|
|
466
|
+
},
|
|
456
467
|
"localIdentHashSalt": {
|
|
457
468
|
"$ref": "#/definitions/HashSalt"
|
|
458
469
|
},
|
|
@@ -516,7 +527,7 @@
|
|
|
516
527
|
},
|
|
517
528
|
"CssParserExportType": {
|
|
518
529
|
"description": "Configure how CSS content is exported as default.",
|
|
519
|
-
"enum": ["link", "text", "css-style-sheet"]
|
|
530
|
+
"enum": ["link", "text", "css-style-sheet", "style"]
|
|
520
531
|
},
|
|
521
532
|
"CssParserFunction": {
|
|
522
533
|
"description": "Enable/disable renaming of `@function` names.",
|
|
@@ -1090,6 +1101,10 @@
|
|
|
1090
1101
|
"description": "Allow output javascript files as module source type.",
|
|
1091
1102
|
"type": "boolean"
|
|
1092
1103
|
},
|
|
1104
|
+
"sourceImport": {
|
|
1105
|
+
"description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase.",
|
|
1106
|
+
"type": "boolean"
|
|
1107
|
+
},
|
|
1093
1108
|
"syncWebAssembly": {
|
|
1094
1109
|
"description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
|
|
1095
1110
|
"type": "boolean"
|
|
@@ -1180,6 +1195,10 @@
|
|
|
1180
1195
|
"description": "Allow output javascript files as module source type.",
|
|
1181
1196
|
"type": "boolean"
|
|
1182
1197
|
},
|
|
1198
|
+
"sourceImport": {
|
|
1199
|
+
"description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase.",
|
|
1200
|
+
"type": "boolean"
|
|
1201
|
+
},
|
|
1183
1202
|
"syncWebAssembly": {
|
|
1184
1203
|
"description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
|
|
1185
1204
|
"type": "boolean"
|
|
@@ -2014,9 +2033,14 @@
|
|
|
2014
2033
|
"description": "Enable/disable parsing of require.js special syntax like require.config, requirejs.config, require.version and requirejs.onError.",
|
|
2015
2034
|
"type": "boolean"
|
|
2016
2035
|
},
|
|
2036
|
+
"sourceImport": {
|
|
2037
|
+
"description": "Enable experimental tc39 proposal https://github.com/tc39/proposal-source-phase-imports. This allows importing modules at source phase.",
|
|
2038
|
+
"type": "boolean"
|
|
2039
|
+
},
|
|
2017
2040
|
"strictExportPresence": {
|
|
2018
2041
|
"description": "Deprecated in favor of \"exportsPresence\". Emit errors instead of warnings when imported names don't exist in imported module.",
|
|
2019
|
-
"type": "boolean"
|
|
2042
|
+
"type": "boolean",
|
|
2043
|
+
"deprecated": true
|
|
2020
2044
|
},
|
|
2021
2045
|
"strictThisContextOnImports": {
|
|
2022
2046
|
"description": "Handle the this context correctly according to the spec for namespace objects.",
|
|
@@ -2495,11 +2519,13 @@
|
|
|
2495
2519
|
},
|
|
2496
2520
|
"exprContextCritical": {
|
|
2497
2521
|
"description": "Enable warnings for full dynamic dependencies.",
|
|
2498
|
-
"type": "boolean"
|
|
2522
|
+
"type": "boolean",
|
|
2523
|
+
"deprecated": true
|
|
2499
2524
|
},
|
|
2500
2525
|
"exprContextRecursive": {
|
|
2501
2526
|
"description": "Enable recursive directory lookup for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRecursive'.",
|
|
2502
|
-
"type": "boolean"
|
|
2527
|
+
"type": "boolean",
|
|
2528
|
+
"deprecated": true
|
|
2503
2529
|
},
|
|
2504
2530
|
"exprContextRegExp": {
|
|
2505
2531
|
"description": "Sets the default regular expression for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRegExp'.",
|
|
@@ -2511,11 +2537,13 @@
|
|
|
2511
2537
|
{
|
|
2512
2538
|
"type": "boolean"
|
|
2513
2539
|
}
|
|
2514
|
-
]
|
|
2540
|
+
],
|
|
2541
|
+
"deprecated": true
|
|
2515
2542
|
},
|
|
2516
2543
|
"exprContextRequest": {
|
|
2517
2544
|
"description": "Set the default request for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRequest'.",
|
|
2518
|
-
"type": "string"
|
|
2545
|
+
"type": "string",
|
|
2546
|
+
"deprecated": true
|
|
2519
2547
|
},
|
|
2520
2548
|
"generator": {
|
|
2521
2549
|
"$ref": "#/definitions/GeneratorOptionsByModuleType"
|
|
@@ -2536,19 +2564,23 @@
|
|
|
2536
2564
|
},
|
|
2537
2565
|
"strictExportPresence": {
|
|
2538
2566
|
"description": "Emit errors instead of warnings when imported names don't exist in imported module. Deprecated: This option has moved to 'module.parser.javascript.strictExportPresence'.",
|
|
2539
|
-
"type": "boolean"
|
|
2567
|
+
"type": "boolean",
|
|
2568
|
+
"deprecated": true
|
|
2540
2569
|
},
|
|
2541
2570
|
"strictThisContextOnImports": {
|
|
2542
2571
|
"description": "Handle the this context correctly according to the spec for namespace objects. Deprecated: This option has moved to 'module.parser.javascript.strictThisContextOnImports'.",
|
|
2543
|
-
"type": "boolean"
|
|
2572
|
+
"type": "boolean",
|
|
2573
|
+
"deprecated": true
|
|
2544
2574
|
},
|
|
2545
2575
|
"unknownContextCritical": {
|
|
2546
2576
|
"description": "Enable warnings when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextCritical'.",
|
|
2547
|
-
"type": "boolean"
|
|
2577
|
+
"type": "boolean",
|
|
2578
|
+
"deprecated": true
|
|
2548
2579
|
},
|
|
2549
2580
|
"unknownContextRecursive": {
|
|
2550
2581
|
"description": "Enable recursive directory lookup when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRecursive'.",
|
|
2551
|
-
"type": "boolean"
|
|
2582
|
+
"type": "boolean",
|
|
2583
|
+
"deprecated": true
|
|
2552
2584
|
},
|
|
2553
2585
|
"unknownContextRegExp": {
|
|
2554
2586
|
"description": "Sets the regular expression when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRegExp'.",
|
|
@@ -2560,11 +2592,13 @@
|
|
|
2560
2592
|
{
|
|
2561
2593
|
"type": "boolean"
|
|
2562
2594
|
}
|
|
2563
|
-
]
|
|
2595
|
+
],
|
|
2596
|
+
"deprecated": true
|
|
2564
2597
|
},
|
|
2565
2598
|
"unknownContextRequest": {
|
|
2566
2599
|
"description": "Sets the request when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRequest'.",
|
|
2567
|
-
"type": "string"
|
|
2600
|
+
"type": "string",
|
|
2601
|
+
"deprecated": true
|
|
2568
2602
|
},
|
|
2569
2603
|
"unsafeCache": {
|
|
2570
2604
|
"description": "Cache the resolving of module requests.",
|
|
@@ -2580,16 +2614,19 @@
|
|
|
2580
2614
|
},
|
|
2581
2615
|
"wrappedContextCritical": {
|
|
2582
2616
|
"description": "Enable warnings for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextCritical'.",
|
|
2583
|
-
"type": "boolean"
|
|
2617
|
+
"type": "boolean",
|
|
2618
|
+
"deprecated": true
|
|
2584
2619
|
},
|
|
2585
2620
|
"wrappedContextRecursive": {
|
|
2586
2621
|
"description": "Enable recursive directory lookup for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextRecursive'.",
|
|
2587
|
-
"type": "boolean"
|
|
2622
|
+
"type": "boolean",
|
|
2623
|
+
"deprecated": true
|
|
2588
2624
|
},
|
|
2589
2625
|
"wrappedContextRegExp": {
|
|
2590
2626
|
"description": "Set the inner regular expression for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextRegExp'.",
|
|
2591
2627
|
"instanceof": "RegExp",
|
|
2592
|
-
"tsType": "RegExp"
|
|
2628
|
+
"tsType": "RegExp",
|
|
2629
|
+
"deprecated": true
|
|
2593
2630
|
}
|
|
2594
2631
|
}
|
|
2595
2632
|
},
|
|
@@ -2813,7 +2850,8 @@
|
|
|
2813
2850
|
"type": "boolean",
|
|
2814
2851
|
"cli": {
|
|
2815
2852
|
"exclude": true
|
|
2816
|
-
}
|
|
2853
|
+
},
|
|
2854
|
+
"deprecated": true
|
|
2817
2855
|
},
|
|
2818
2856
|
"nodeEnv": {
|
|
2819
2857
|
"description": "Set process.env.NODE_ENV to a specific value.",
|
|
@@ -2977,7 +3015,8 @@
|
|
|
2977
3015
|
"type": "boolean",
|
|
2978
3016
|
"cli": {
|
|
2979
3017
|
"exclude": true
|
|
2980
|
-
}
|
|
3018
|
+
},
|
|
3019
|
+
"deprecated": true
|
|
2981
3020
|
},
|
|
2982
3021
|
"nodeEnv": {
|
|
2983
3022
|
"description": "Set process.env.NODE_ENV to a specific value.",
|
|
@@ -4895,6 +4934,14 @@
|
|
|
4895
4934
|
"type": "object",
|
|
4896
4935
|
"additionalProperties": true
|
|
4897
4936
|
},
|
|
4937
|
+
"phase": {
|
|
4938
|
+
"description": "Match the import phase of the dependency.",
|
|
4939
|
+
"oneOf": [
|
|
4940
|
+
{
|
|
4941
|
+
"$ref": "#/definitions/RuleSetConditionOrConditions"
|
|
4942
|
+
}
|
|
4943
|
+
]
|
|
4944
|
+
},
|
|
4898
4945
|
"realResource": {
|
|
4899
4946
|
"description": "Match the real resource path of the module.",
|
|
4900
4947
|
"oneOf": [
|
|
@@ -5266,7 +5313,8 @@
|
|
|
5266
5313
|
},
|
|
5267
5314
|
"cached": {
|
|
5268
5315
|
"description": "Add information about cached (not built) modules (deprecated: use 'cachedModules' instead).",
|
|
5269
|
-
"type": "boolean"
|
|
5316
|
+
"type": "boolean",
|
|
5317
|
+
"deprecated": true
|
|
5270
5318
|
},
|
|
5271
5319
|
"cachedAssets": {
|
|
5272
5320
|
"description": "Show cached assets (setting this to `false` only shows emitted files).",
|
|
@@ -5655,7 +5703,8 @@
|
|
|
5655
5703
|
},
|
|
5656
5704
|
"runtime": {
|
|
5657
5705
|
"description": "Add information about runtime modules (deprecated: use 'runtimeModules' instead).",
|
|
5658
|
-
"type": "boolean"
|
|
5706
|
+
"type": "boolean",
|
|
5707
|
+
"deprecated": true
|
|
5659
5708
|
},
|
|
5660
5709
|
"runtimeModules": {
|
|
5661
5710
|
"description": "Add information about runtime modules.",
|
|
@@ -5728,7 +5777,8 @@
|
|
|
5728
5777
|
},
|
|
5729
5778
|
"StrictModuleExceptionHandling": {
|
|
5730
5779
|
"description": "Handles exceptions in module loading correctly at a performance cost (Deprecated). This will handle module error compatible with the Node.js CommonJS way.",
|
|
5731
|
-
"type": "boolean"
|
|
5780
|
+
"type": "boolean",
|
|
5781
|
+
"deprecated": true
|
|
5732
5782
|
},
|
|
5733
5783
|
"Target": {
|
|
5734
5784
|
"description": "Environment to build for. An array of environments to build for all of them when possible.",
|
|
@@ -5736,7 +5786,7 @@
|
|
|
5736
5786
|
{
|
|
5737
5787
|
"type": "array",
|
|
5738
5788
|
"items": {
|
|
5739
|
-
"description": "
|
|
5789
|
+
"description": "Specific environment, runtime, or syntax.",
|
|
5740
5790
|
"type": "string",
|
|
5741
5791
|
"minLength": 1
|
|
5742
5792
|
},
|
|
@@ -5776,6 +5826,10 @@
|
|
|
5776
5826
|
"type": "string",
|
|
5777
5827
|
"minLength": 1
|
|
5778
5828
|
},
|
|
5829
|
+
"Validate": {
|
|
5830
|
+
"description": "Enable validation of webpack configuration. Defaults to true in development mode. In production mode, defaults to true unless futureDefaults is enabled, then defaults to false.",
|
|
5831
|
+
"type": "boolean"
|
|
5832
|
+
},
|
|
5779
5833
|
"WarningFilterItemTypes": {
|
|
5780
5834
|
"description": "Filtering value, regexp or function.",
|
|
5781
5835
|
"cli": {
|
|
@@ -6010,6 +6064,9 @@
|
|
|
6010
6064
|
"target": {
|
|
6011
6065
|
"$ref": "#/definitions/Target"
|
|
6012
6066
|
},
|
|
6067
|
+
"validate": {
|
|
6068
|
+
"$ref": "#/definitions/Validate"
|
|
6069
|
+
},
|
|
6013
6070
|
"watch": {
|
|
6014
6071
|
"$ref": "#/definitions/Watch"
|
|
6015
6072
|
},
|
|
@@ -6169,6 +6226,9 @@
|
|
|
6169
6226
|
"target": {
|
|
6170
6227
|
"$ref": "#/definitions/Target"
|
|
6171
6228
|
},
|
|
6229
|
+
"validate": {
|
|
6230
|
+
"$ref": "#/definitions/Validate"
|
|
6231
|
+
},
|
|
6172
6232
|
"watch": {
|
|
6173
6233
|
"$ref": "#/definitions/Watch"
|
|
6174
6234
|
},
|
|
@@ -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=r,module.exports.default=r;const e={type:"object",additionalProperties:!1,properties:{esModule:{$ref:"#/definitions/CssGeneratorEsModule"},exportType:{$ref:"#/definitions/CssParserExportType"},exportsConvention:{$ref:"#/definitions/CssGeneratorExportsConvention"},exportsOnly:{$ref:"#/definitions/CssGeneratorExportsOnly"},localIdentHashDigest:{$ref:"#/definitions/HashDigest"},localIdentHashDigestLength:{$ref:"#/definitions/HashDigestLength"},localIdentHashFunction:{$ref:"#/definitions/HashFunction"},localIdentHashSalt:{$ref:"#/definitions/HashSalt"},localIdentName:{$ref:"#/definitions/CssGeneratorLocalIdentName"}}},t=Object.prototype.hasOwnProperty;function n(r,{instancePath:s="",parentData:o,parentDataProperty:a,rootData:i=r}={}){let l=null,p=0;if(0===p){if(!r||"object"!=typeof r||Array.isArray(r))return n.errors=[{params:{type:"object"}}],!1;{const s=p;for(const s in r)if(!t.call(e.properties,s))return n.errors=[{params:{additionalProperty:s}}],!1;if(s===p){if(void 0!==r.esModule){const e=p;if("boolean"!=typeof r.esModule)return n.errors=[{params:{type:"boolean"}}],!1;var f=e===p}else f=!0;if(f){if(void 0!==r.exportType){let e=r.exportType;const t=p;if("link"!==e&&"text"!==e&&"css-style-sheet"!==e&&"style"!==e)return n.errors=[{params:{}}],!1;f=t===p}else f=!0;if(f){if(void 0!==r.exportsConvention){let e=r.exportsConvention;const t=p,s=p;let o=!1;const a=p;if("as-is"!==e&&"camel-case"!==e&&"camel-case-only"!==e&&"dashes"!==e&&"dashes-only"!==e){const e={params:{}};null===l?l=[e]:l.push(e),p++}var c=a===p;if(o=o||c,!o){const t=p;if(!(e instanceof Function)){const e={params:{}};null===l?l=[e]:l.push(e),p++}c=t===p,o=o||c}if(!o){const e={params:{}};return null===l?l=[e]:l.push(e),p++,n.errors=l,!1}p=s,null!==l&&(s?l.length=s:l=null),f=t===p}else f=!0;if(f){if(void 0!==r.exportsOnly){const e=p;if("boolean"!=typeof r.exportsOnly)return n.errors=[{params:{type:"boolean"}}],!1;f=e===p}else f=!0;if(f){if(void 0!==r.localIdentHashDigest){const e=p;if("string"!=typeof r.localIdentHashDigest)return n.errors=[{params:{type:"string"}}],!1;f=e===p}else f=!0;if(f){if(void 0!==r.localIdentHashDigestLength){let e=r.localIdentHashDigestLength;const t=p;if(p==p){if("number"!=typeof e)return n.errors=[{params:{type:"number"}}],!1;if(e<1||isNaN(e))return n.errors=[{params:{comparison:">=",limit:1}}],!1}f=t===p}else f=!0;if(f){if(void 0!==r.localIdentHashFunction){let e=r.localIdentHashFunction;const t=p,s=p;let o=!1;const a=p;if(p===a)if("string"==typeof e){if(e.length<1){const e={params:{}};null===l?l=[e]:l.push(e),p++}}else{const e={params:{type:"string"}};null===l?l=[e]:l.push(e),p++}var u=a===p;if(o=o||u,!o){const t=p;if(!(e instanceof Function)){const e={params:{}};null===l?l=[e]:l.push(e),p++}u=t===p,o=o||u}if(!o){const e={params:{}};return null===l?l=[e]:l.push(e),p++,n.errors=l,!1}p=s,null!==l&&(s?l.length=s:l=null),f=t===p}else f=!0;if(f){if(void 0!==r.localIdentHashSalt){let e=r.localIdentHashSalt;const t=p;if(p==p){if("string"!=typeof e)return n.errors=[{params:{type:"string"}}],!1;if(e.length<1)return n.errors=[{params:{}}],!1}f=t===p}else f=!0;if(f)if(void 0!==r.localIdentName){let e=r.localIdentName;const t=p,s=p;let o=!1;const a=p;if("string"!=typeof e){const e={params:{type:"string"}};null===l?l=[e]:l.push(e),p++}var d=a===p;if(o=o||d,!o){const t=p;if(!(e instanceof Function)){const e={params:{}};null===l?l=[e]:l.push(e),p++}d=t===p,o=o||d}if(!o){const e={params:{}};return null===l?l=[e]:l.push(e),p++,n.errors=l,!1}p=s,null!==l&&(s?l.length=s:l=null),f=t===p}else f=!0}}}}}}}}}}return n.errors=l,0===p}function r(e,{instancePath:t="",parentData:s,parentDataProperty:o,rootData:a=e}={}){let i=null,l=0;return n(e,{instancePath:t,parentData:s,parentDataProperty:o,rootData:a})||(i=null===i?n.errors:i.concat(n.errors),l=i.length),r.errors=i,0===l}
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
|
4
4
|
* Run `yarn fix:special` to update
|
|
5
5
|
*/
|
|
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}
|
|
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&&"style"!==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}
|
|
@@ -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 r(e,{instancePath:t="",parentData:o,parentDataProperty:a,rootData:n=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{const t=0;for(const t in e)if("exportType"!==t&&"import"!==t&&"namedExports"!==t&&"url"!==t)return r.errors=[{params:{additionalProperty:t}}],!1;if(0===t){if(void 0!==e.exportType){let t=e.exportType;const o=0;if("link"!==t&&"text"!==t&&"css-style-sheet"!==t)return r.errors=[{params:{}}],!1;var s=0===o}else s=!0;if(s){if(void 0!==e.import){const t=0;if("boolean"!=typeof e.import)return r.errors=[{params:{type:"boolean"}}],!1;s=0===t}else s=!0;if(s){if(void 0!==e.namedExports){const t=0;if("boolean"!=typeof e.namedExports)return r.errors=[{params:{type:"boolean"}}],!1;s=0===t}else s=!0;if(s)if(void 0!==e.url){const t=0;if("boolean"!=typeof e.url)return r.errors=[{params:{type:"boolean"}}],!1;s=0===t}else s=!0}}}}return r.errors=null,!0}function e(t,{instancePath:o="",parentData:a,parentDataProperty:n,rootData:s=t}={}){let p=null,i=0;return r(t,{instancePath:o,parentData:a,parentDataProperty:n,rootData:s})||(p=null===p?r.errors:p.concat(r.errors),i=p.length),e.errors=p,0===i}module.exports=e,module.exports.default=e;
|
|
6
|
+
"use strict";function r(e,{instancePath:t="",parentData:o,parentDataProperty:a,rootData:n=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{const t=0;for(const t in e)if("exportType"!==t&&"import"!==t&&"namedExports"!==t&&"url"!==t)return r.errors=[{params:{additionalProperty:t}}],!1;if(0===t){if(void 0!==e.exportType){let t=e.exportType;const o=0;if("link"!==t&&"text"!==t&&"css-style-sheet"!==t&&"style"!==t)return r.errors=[{params:{}}],!1;var s=0===o}else s=!0;if(s){if(void 0!==e.import){const t=0;if("boolean"!=typeof e.import)return r.errors=[{params:{type:"boolean"}}],!1;s=0===t}else s=!0;if(s){if(void 0!==e.namedExports){const t=0;if("boolean"!=typeof e.namedExports)return r.errors=[{params:{type:"boolean"}}],!1;s=0===t}else s=!0;if(s)if(void 0!==e.url){const t=0;if("boolean"!=typeof e.url)return r.errors=[{params:{type:"boolean"}}],!1;s=0===t}else s=!0}}}}return r.errors=null,!0}function e(t,{instancePath:o="",parentData:a,parentDataProperty:n,rootData:s=t}={}){let p=null,i=0;return r(t,{instancePath:o,parentData:a,parentDataProperty:n,rootData:s})||(p=null===p?r.errors:p.concat(r.errors),i=p.length),e.errors=p,0===i}module.exports=e,module.exports.default=e;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"type": "number"
|
|
13
13
|
},
|
|
14
14
|
"maxChunks": {
|
|
15
|
-
"description": "Limit the maximum number of chunks using a value greater
|
|
15
|
+
"description": "Limit the maximum number of chunks using a value greater than or equal to 1.",
|
|
16
16
|
"type": "number",
|
|
17
17
|
"minimum": 1
|
|
18
18
|
}
|
|
@@ -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 t(r,{instancePath:e="",parentData:n,parentDataProperty:s,rootData:o=r}={}){let a=null,
|
|
6
|
+
"use strict";function t(r,{instancePath:e="",parentData:n,parentDataProperty:s,rootData:o=r}={}){let a=null,i=0;const l=i;let p=!1;const c=i;if("string"!=typeof r){const t={params:{type:"string"}};null===a?a=[t]:a.push(t),i++}var u=c===i;if(p=p||u,!p){const t=i;if(!(r instanceof Function)){const t={params:{}};null===a?a=[t]:a.push(t),i++}if(u=t===i,p=p||u,!p){const t=i;if(i==i)if(r&&"object"==typeof r&&!Array.isArray(r)){let t;if(void 0===r.source&&(t="source")){const r={params:{missingProperty:t}};null===a?a=[r]:a.push(r),i++}else{const t=i;for(const t in r)if("context"!==t&&"source"!==t&&"type"!==t&&"version"!==t){const r={params:{additionalProperty:t}};null===a?a=[r]:a.push(r),i++;break}if(t===i){if(void 0!==r.context){const t=i;if("string"!=typeof r.context){const t={params:{type:"string"}};null===a?a=[t]:a.push(t),i++}var f=t===i}else f=!0;if(f){if(void 0!==r.source){const t=i;if(!(r.source instanceof Function)){const t={params:{}};null===a?a=[t]:a.push(t),i++}f=t===i}else f=!0;if(f){if(void 0!==r.type){const t=i;if("string"!=typeof r.type){const t={params:{type:"string"}};null===a?a=[t]:a.push(t),i++}f=t===i}else f=!0;if(f)if(void 0!==r.version){let t=r.version;const e=i,n=i;let s=!1;const o=i;if("boolean"!=typeof t){const t={params:{type:"boolean"}};null===a?a=[t]:a.push(t),i++}if(!0!==t){const t={params:{}};null===a?a=[t]:a.push(t),i++}var y=o===i;if(s=s||y,!s){const r=i;if("string"!=typeof t){const t={params:{type:"string"}};null===a?a=[t]:a.push(t),i++}if(y=r===i,s=s||y,!s){const r=i;if(!(t instanceof Function)){const t={params:{}};null===a?a=[t]:a.push(t),i++}y=r===i,s=s||y}}if(s)i=n,null!==a&&(n?a.length=n:a=null);else{const t={params:{}};null===a?a=[t]:a.push(t),i++}f=e===i}else f=!0}}}}}else{const t={params:{type:"object"}};null===a?a=[t]:a.push(t),i++}u=t===i,p=p||u}}if(!p){const r={params:{}};return null===a?a=[r]:a.push(r),i++,t.errors=a,!1}return i=l,null!==a&&(l?a.length=l:a=null),t.errors=a,0===i}function r(e,{instancePath:n="",parentData:s,parentDataProperty:o,rootData:a=e}={}){let i=null,l=0;if(0===l){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{let s;if(void 0===e.modules&&(s="modules"))return r.errors=[{params:{missingProperty:s}}],!1;{const s=l;for(const t in e)if("context"!==t&&"modules"!==t&&"scheme"!==t)return r.errors=[{params:{additionalProperty:t}}],!1;if(s===l){if(void 0!==e.context){const t=l;if("string"!=typeof e.context)return r.errors=[{params:{type:"string"}}],!1;var p=t===l}else p=!0;if(p){if(void 0!==e.modules){let s=e.modules;const o=l;if(l===o){if(!s||"object"!=typeof s||Array.isArray(s))return r.errors=[{params:{type:"object"}}],!1;for(const r in s){const e=l;if(t(s[r],{instancePath:n+"/modules/"+r.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:s,parentDataProperty:r,rootData:a})||(i=null===i?t.errors:i.concat(t.errors),l=i.length),e!==l)break}}p=o===l}else p=!0;if(p)if(void 0!==e.scheme){const t=l;if("string"!=typeof e.scheme)return r.errors=[{params:{type:"string"}}],!1;p=t===l}else p=!0}}}}}return r.errors=i,0===l}function e(t,{instancePath:n="",parentData:s,parentDataProperty:o,rootData:a=t}={}){let i=null,l=0;const p=l;let c=!1,u=null;const f=l;if(r(t,{instancePath:n,parentData:s,parentDataProperty:o,rootData:a})||(i=null===i?r.errors:i.concat(r.errors),l=i.length),f===l&&(c=!0,u=0),!c){const t={params:{passingSchemas:u}};return null===i?i=[t]:i.push(t),l++,e.errors=i,!1}return l=p,null!==i&&(p?i.length=p:i=null),e.errors=i,0===l}module.exports=e,module.exports.default=e;
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"properties": {
|
|
8
|
+
"context": {
|
|
9
|
+
"description": "The context for the virtual module. A string path. Defaults to 'auto', which will try to resolve the context from the module id.",
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
8
12
|
"source": {
|
|
9
13
|
"description": "The source function that provides the virtual content.",
|
|
10
14
|
"instanceof": "Function",
|
|
@@ -53,6 +57,10 @@
|
|
|
53
57
|
"type": "object",
|
|
54
58
|
"additionalProperties": false,
|
|
55
59
|
"properties": {
|
|
60
|
+
"context": {
|
|
61
|
+
"description": "The default context for virtual modules. A string path. Defaults to 'auto', which will try to resolve the context from the module id.",
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
56
64
|
"modules": {
|
|
57
65
|
"description": "The virtual modules configuration.",
|
|
58
66
|
"type": "object",
|