webpack 5.102.1 → 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/README.md +121 -134
- 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 +28 -2
- package/lib/Compilation.js +58 -21
- package/lib/Compiler.js +3 -3
- package/lib/ConcatenationScope.js +0 -15
- package/lib/ContextModule.js +6 -3
- package/lib/ContextModuleFactory.js +6 -4
- package/lib/CssModule.js +6 -1
- package/lib/DefinePlugin.js +45 -14
- package/lib/DelegatedModule.js +7 -4
- package/lib/Dependency.js +8 -1
- package/lib/DependencyTemplate.js +1 -0
- package/lib/DllModule.js +6 -3
- package/lib/DotenvPlugin.js +462 -0
- package/lib/EnvironmentPlugin.js +19 -16
- package/lib/EvalSourceMapDevToolPlugin.js +16 -0
- package/lib/ExportsInfo.js +6 -2
- package/lib/ExternalModule.js +28 -35
- package/lib/ExternalModuleFactoryPlugin.js +11 -9
- package/lib/ExternalsPlugin.js +2 -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 +235 -0
- package/lib/Module.js +27 -15
- package/lib/ModuleBuildError.js +1 -1
- package/lib/ModuleError.js +1 -1
- package/lib/ModuleFilenameHelpers.js +1 -1
- package/lib/ModuleGraph.js +29 -13
- 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/MultiCompiler.js +1 -1
- package/lib/NodeStuffPlugin.js +424 -116
- package/lib/NormalModule.js +23 -20
- package/lib/NormalModuleFactory.js +7 -10
- package/lib/Parser.js +1 -1
- package/lib/RawModule.js +7 -4
- package/lib/RuntimeGlobals.js +22 -4
- package/lib/RuntimeModule.js +1 -1
- package/lib/RuntimePlugin.js +27 -6
- package/lib/RuntimeTemplate.js +120 -57
- package/lib/SourceMapDevToolPlugin.js +26 -1
- package/lib/Template.js +17 -6
- package/lib/TemplatedPathPlugin.js +5 -6
- package/lib/WebpackError.js +0 -1
- package/lib/WebpackOptionsApply.js +67 -15
- package/lib/asset/AssetBytesGenerator.js +16 -12
- package/lib/asset/AssetGenerator.js +31 -26
- package/lib/asset/AssetSourceGenerator.js +16 -12
- 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 +24 -0
- package/lib/config/defaults.js +226 -61
- package/lib/config/normalization.js +4 -3
- package/lib/config/target.js +11 -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 +304 -76
- package/lib/css/CssLoadingRuntimeModule.js +14 -4
- package/lib/css/CssMergeStyleSheetsRuntimeModule.js +56 -0
- package/lib/css/CssModulesPlugin.js +72 -67
- package/lib/css/CssParser.js +1726 -732
- package/lib/css/walkCssTokens.js +128 -11
- package/lib/dependencies/CachedConstDependency.js +24 -10
- package/lib/dependencies/CommonJsImportsParserPlugin.js +0 -9
- package/lib/dependencies/CommonJsPlugin.js +12 -0
- 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 +389 -12
- package/lib/dependencies/CssIcssImportDependency.js +114 -51
- package/lib/dependencies/CssIcssSymbolDependency.js +31 -33
- package/lib/dependencies/CssImportDependency.js +17 -6
- 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 +3 -2
- package/lib/dependencies/ExternalModuleInitFragmentDependency.js +96 -0
- package/lib/dependencies/HarmonyAcceptDependency.js +6 -1
- package/lib/dependencies/HarmonyAcceptImportDependency.js +2 -1
- package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +12 -1
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +35 -23
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +13 -9
- package/lib/dependencies/HarmonyExports.js +4 -4
- package/lib/dependencies/HarmonyImportDependency.js +28 -27
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +28 -69
- package/lib/dependencies/HarmonyImportSideEffectDependency.js +4 -3
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +10 -8
- package/lib/dependencies/ImportDependency.js +8 -2
- package/lib/dependencies/ImportEagerDependency.js +6 -3
- package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +1 -1
- package/lib/dependencies/ImportMetaPlugin.js +154 -9
- package/lib/dependencies/ImportParserPlugin.js +21 -23
- package/lib/dependencies/ImportPhase.js +121 -0
- package/lib/dependencies/ImportWeakDependency.js +6 -3
- package/lib/dependencies/LocalModulesHelpers.js +3 -3
- package/lib/dependencies/ModuleDependency.js +5 -1
- package/lib/dependencies/ModuleHotAcceptDependency.js +1 -1
- package/lib/dependencies/WorkerPlugin.js +2 -2
- package/lib/dependencies/getFunctionExpression.js +1 -1
- package/lib/esm/ExportWebpackRequireRuntimeModule.js +1 -8
- package/lib/esm/ModuleChunkFormatPlugin.js +5 -4
- package/lib/hmr/HotModuleReplacement.runtime.js +2 -1
- package/lib/hmr/LazyCompilationPlugin.js +5 -3
- package/lib/ids/IdHelpers.js +20 -8
- package/lib/index.js +6 -0
- package/lib/javascript/ChunkHelpers.js +16 -5
- package/lib/javascript/JavascriptGenerator.js +105 -104
- package/lib/javascript/JavascriptModulesPlugin.js +80 -37
- package/lib/javascript/JavascriptParser.js +161 -44
- package/lib/json/JsonGenerator.js +5 -4
- package/lib/json/JsonParser.js +9 -2
- 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 -23
- package/lib/library/SystemLibraryPlugin.js +8 -1
- package/lib/library/UmdLibraryPlugin.js +2 -2
- package/lib/logging/Logger.js +5 -4
- package/lib/logging/createConsoleLogger.js +2 -2
- package/lib/node/NodeTargetPlugin.js +9 -1
- package/lib/node/ReadFileCompileWasmPlugin.js +0 -2
- package/lib/optimize/ConcatenatedModule.js +208 -167
- 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/AsyncModuleRuntimeModule.js +28 -18
- package/lib/runtime/AutoPublicPathRuntimeModule.js +8 -3
- package/lib/runtime/GetChunkFilenameRuntimeModule.js +3 -2
- package/lib/runtime/MakeDeferredNamespaceObjectRuntime.js +89 -55
- 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 +54 -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/EnableWasmLoadingPlugin.js +10 -4
- package/lib/wasm-async/AsyncWebAssemblyGenerator.js +3 -2
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +11 -7
- package/lib/wasm-sync/WebAssemblyGenerator.js +9 -6
- package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +11 -6
- package/lib/wasm-sync/WebAssemblyModulesPlugin.js +6 -2
- package/lib/web/FetchCompileWasmPlugin.js +0 -2
- package/lib/webpack.js +85 -82
- package/module.d.ts +5 -0
- package/package.json +34 -28
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +160 -101
- package/schemas/plugins/{css/CssAutoParserOptions.check.d.ts → ManifestPlugin.check.d.ts} +1 -1
- package/schemas/plugins/ManifestPlugin.check.js +6 -0
- package/schemas/plugins/ManifestPlugin.json +98 -0
- package/schemas/plugins/SourceMapDevToolPlugin.check.js +1 -1
- package/schemas/plugins/SourceMapDevToolPlugin.json +16 -3
- package/schemas/plugins/container/ContainerReferencePlugin.check.js +1 -1
- package/schemas/plugins/container/ContainerReferencePlugin.json +4 -1
- package/schemas/plugins/container/ExternalsType.check.js +1 -1
- package/schemas/plugins/container/ModuleFederationPlugin.check.js +1 -1
- package/schemas/plugins/container/ModuleFederationPlugin.json +4 -1
- 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/json/JsonModulesPluginParser.check.js +1 -1
- package/types.d.ts +771 -436
- package/lib/ModuleSourceTypesConstants.js +0 -123
- package/lib/dependencies/CssLocalIdentifierDependency.js +0 -250
- package/lib/dependencies/CssSelfLocalIdentifierDependency.js +0 -112
- 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.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,41 +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
|
-
"import": {
|
|
399
|
-
"$ref": "#/definitions/CssParserImport"
|
|
400
|
-
},
|
|
401
|
-
"namedExports": {
|
|
402
|
-
"$ref": "#/definitions/CssParserNamedExports"
|
|
403
|
-
},
|
|
404
|
-
"url": {
|
|
405
|
-
"$ref": "#/definitions/CssParserUrl"
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
},
|
|
409
374
|
"CssChunkFilename": {
|
|
410
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.",
|
|
411
376
|
"oneOf": [
|
|
@@ -465,54 +430,31 @@
|
|
|
465
430
|
}
|
|
466
431
|
}
|
|
467
432
|
},
|
|
468
|
-
"
|
|
469
|
-
"description": "Generator options for css/
|
|
433
|
+
"CssModuleGeneratorOptions": {
|
|
434
|
+
"description": "Generator options for css/module modules.",
|
|
470
435
|
"type": "object",
|
|
471
436
|
"additionalProperties": false,
|
|
472
437
|
"properties": {
|
|
473
438
|
"esModule": {
|
|
474
439
|
"$ref": "#/definitions/CssGeneratorEsModule"
|
|
475
440
|
},
|
|
441
|
+
"exportType": {
|
|
442
|
+
"$ref": "#/definitions/CssParserExportType"
|
|
443
|
+
},
|
|
476
444
|
"exportsConvention": {
|
|
477
445
|
"$ref": "#/definitions/CssGeneratorExportsConvention"
|
|
478
446
|
},
|
|
479
447
|
"exportsOnly": {
|
|
480
448
|
"$ref": "#/definitions/CssGeneratorExportsOnly"
|
|
481
449
|
},
|
|
482
|
-
"
|
|
483
|
-
"$ref": "#/definitions/
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
},
|
|
487
|
-
"CssGlobalParserOptions": {
|
|
488
|
-
"description": "Parser options for css/global modules.",
|
|
489
|
-
"type": "object",
|
|
490
|
-
"additionalProperties": false,
|
|
491
|
-
"properties": {
|
|
492
|
-
"import": {
|
|
493
|
-
"$ref": "#/definitions/CssParserImport"
|
|
494
|
-
},
|
|
495
|
-
"namedExports": {
|
|
496
|
-
"$ref": "#/definitions/CssParserNamedExports"
|
|
497
|
-
},
|
|
498
|
-
"url": {
|
|
499
|
-
"$ref": "#/definitions/CssParserUrl"
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
"CssModuleGeneratorOptions": {
|
|
504
|
-
"description": "Generator options for css/module modules.",
|
|
505
|
-
"type": "object",
|
|
506
|
-
"additionalProperties": false,
|
|
507
|
-
"properties": {
|
|
508
|
-
"esModule": {
|
|
509
|
-
"$ref": "#/definitions/CssGeneratorEsModule"
|
|
450
|
+
"localIdentHashDigest": {
|
|
451
|
+
"$ref": "#/definitions/HashDigest"
|
|
510
452
|
},
|
|
511
|
-
"
|
|
512
|
-
"$ref": "#/definitions/
|
|
453
|
+
"localIdentHashDigestLength": {
|
|
454
|
+
"$ref": "#/definitions/HashDigestLength"
|
|
513
455
|
},
|
|
514
|
-
"
|
|
515
|
-
"$ref": "#/definitions/
|
|
456
|
+
"localIdentHashSalt": {
|
|
457
|
+
"$ref": "#/definitions/HashSalt"
|
|
516
458
|
},
|
|
517
459
|
"localIdentName": {
|
|
518
460
|
"$ref": "#/definitions/CssGeneratorLocalIdentName"
|
|
@@ -524,6 +466,27 @@
|
|
|
524
466
|
"type": "object",
|
|
525
467
|
"additionalProperties": false,
|
|
526
468
|
"properties": {
|
|
469
|
+
"animation": {
|
|
470
|
+
"$ref": "#/definitions/CssParserAnimation"
|
|
471
|
+
},
|
|
472
|
+
"container": {
|
|
473
|
+
"$ref": "#/definitions/CssParserContainer"
|
|
474
|
+
},
|
|
475
|
+
"customIdents": {
|
|
476
|
+
"$ref": "#/definitions/CssParserCustomIdents"
|
|
477
|
+
},
|
|
478
|
+
"dashedIdents": {
|
|
479
|
+
"$ref": "#/definitions/CssParserDashedIdents"
|
|
480
|
+
},
|
|
481
|
+
"exportType": {
|
|
482
|
+
"$ref": "#/definitions/CssParserExportType"
|
|
483
|
+
},
|
|
484
|
+
"function": {
|
|
485
|
+
"$ref": "#/definitions/CssParserFunction"
|
|
486
|
+
},
|
|
487
|
+
"grid": {
|
|
488
|
+
"$ref": "#/definitions/CssParserGrid"
|
|
489
|
+
},
|
|
527
490
|
"import": {
|
|
528
491
|
"$ref": "#/definitions/CssParserImport"
|
|
529
492
|
},
|
|
@@ -535,6 +498,34 @@
|
|
|
535
498
|
}
|
|
536
499
|
}
|
|
537
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
|
+
},
|
|
517
|
+
"CssParserExportType": {
|
|
518
|
+
"description": "Configure how CSS content is exported as default.",
|
|
519
|
+
"enum": ["link", "text", "css-style-sheet"]
|
|
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
|
+
},
|
|
538
529
|
"CssParserImport": {
|
|
539
530
|
"description": "Enable/disable `@import` at-rules handling.",
|
|
540
531
|
"type": "boolean"
|
|
@@ -548,6 +539,9 @@
|
|
|
548
539
|
"type": "object",
|
|
549
540
|
"additionalProperties": false,
|
|
550
541
|
"properties": {
|
|
542
|
+
"exportType": {
|
|
543
|
+
"$ref": "#/definitions/CssParserExportType"
|
|
544
|
+
},
|
|
551
545
|
"import": {
|
|
552
546
|
"$ref": "#/definitions/CssParserImport"
|
|
553
547
|
},
|
|
@@ -629,6 +623,63 @@
|
|
|
629
623
|
"description": "Module namespace to use when interpolating filename template string for the sources array in a generated SourceMap. Defaults to `output.library` if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.",
|
|
630
624
|
"type": "string"
|
|
631
625
|
},
|
|
626
|
+
"Dotenv": {
|
|
627
|
+
"description": "Enable and configure the Dotenv plugin to load environment variables from .env files.",
|
|
628
|
+
"anyOf": [
|
|
629
|
+
{
|
|
630
|
+
"description": "Enable Dotenv plugin with default options.",
|
|
631
|
+
"type": "boolean"
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"$ref": "#/definitions/DotenvPluginOptions"
|
|
635
|
+
}
|
|
636
|
+
]
|
|
637
|
+
},
|
|
638
|
+
"DotenvPluginOptions": {
|
|
639
|
+
"description": "Options for Dotenv plugin.",
|
|
640
|
+
"type": "object",
|
|
641
|
+
"additionalProperties": false,
|
|
642
|
+
"properties": {
|
|
643
|
+
"dir": {
|
|
644
|
+
"description": "The directory from which .env files are loaded. Can be an absolute path, false will disable the .env file loading.",
|
|
645
|
+
"anyOf": [
|
|
646
|
+
{
|
|
647
|
+
"enum": [false]
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"type": "string",
|
|
651
|
+
"absolutePath": true
|
|
652
|
+
}
|
|
653
|
+
]
|
|
654
|
+
},
|
|
655
|
+
"prefix": {
|
|
656
|
+
"description": "Only expose environment variables that start with these prefixes. Defaults to 'WEBPACK_'.",
|
|
657
|
+
"anyOf": [
|
|
658
|
+
{
|
|
659
|
+
"type": "array",
|
|
660
|
+
"items": {
|
|
661
|
+
"description": "A prefix that environment variables must start with to be exposed.",
|
|
662
|
+
"type": "string",
|
|
663
|
+
"minLength": 1
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"type": "string",
|
|
668
|
+
"minLength": 1
|
|
669
|
+
}
|
|
670
|
+
]
|
|
671
|
+
},
|
|
672
|
+
"template": {
|
|
673
|
+
"description": "Template patterns for .env file names. Use [mode] as placeholder for the webpack mode. Defaults to ['.env', '.env.local', '.env.[mode]', '.env.[mode].local'].",
|
|
674
|
+
"type": "array",
|
|
675
|
+
"items": {
|
|
676
|
+
"description": "A template pattern for .env file names.",
|
|
677
|
+
"type": "string",
|
|
678
|
+
"minLength": 1
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
},
|
|
632
683
|
"EmptyGeneratorOptions": {
|
|
633
684
|
"description": "No generator options are supported for this module type.",
|
|
634
685
|
"type": "object",
|
|
@@ -943,6 +994,14 @@
|
|
|
943
994
|
"description": "The environment supports 'globalThis'.",
|
|
944
995
|
"type": "boolean"
|
|
945
996
|
},
|
|
997
|
+
"importMetaDirnameAndFilename": {
|
|
998
|
+
"description": "The environment supports `import.meta.dirname` and `import.meta.filename`.",
|
|
999
|
+
"type": "boolean"
|
|
1000
|
+
},
|
|
1001
|
+
"methodShorthand": {
|
|
1002
|
+
"description": "The environment supports object method shorthand ('{ module() {} }').",
|
|
1003
|
+
"type": "boolean"
|
|
1004
|
+
},
|
|
946
1005
|
"module": {
|
|
947
1006
|
"description": "The environment supports EcmaScript Module syntax to import EcmaScript modules (import ... from '...').",
|
|
948
1007
|
"type": "boolean"
|
|
@@ -1294,7 +1353,10 @@
|
|
|
1294
1353
|
"import",
|
|
1295
1354
|
"module-import",
|
|
1296
1355
|
"script",
|
|
1297
|
-
"node-commonjs"
|
|
1356
|
+
"node-commonjs",
|
|
1357
|
+
"asset",
|
|
1358
|
+
"css-import",
|
|
1359
|
+
"css-url"
|
|
1298
1360
|
]
|
|
1299
1361
|
},
|
|
1300
1362
|
"Falsy": {
|
|
@@ -1375,8 +1437,7 @@
|
|
|
1375
1437
|
{
|
|
1376
1438
|
"description": "A path to an immutable directory (usually a package manager cache directory).",
|
|
1377
1439
|
"type": "string",
|
|
1378
|
-
"absolutePath": true
|
|
1379
|
-
"minLength": 1
|
|
1440
|
+
"absolutePath": true
|
|
1380
1441
|
}
|
|
1381
1442
|
]
|
|
1382
1443
|
}
|
|
@@ -1395,8 +1456,7 @@
|
|
|
1395
1456
|
{
|
|
1396
1457
|
"description": "A path to a managed directory (usually a node_modules directory).",
|
|
1397
1458
|
"type": "string",
|
|
1398
|
-
"absolutePath": true
|
|
1399
|
-
"minLength": 1
|
|
1459
|
+
"absolutePath": true
|
|
1400
1460
|
}
|
|
1401
1461
|
]
|
|
1402
1462
|
}
|
|
@@ -1537,10 +1597,10 @@
|
|
|
1537
1597
|
"$ref": "#/definitions/CssGeneratorOptions"
|
|
1538
1598
|
},
|
|
1539
1599
|
"css/auto": {
|
|
1540
|
-
"$ref": "#/definitions/
|
|
1600
|
+
"$ref": "#/definitions/CssModuleGeneratorOptions"
|
|
1541
1601
|
},
|
|
1542
1602
|
"css/global": {
|
|
1543
|
-
"$ref": "#/definitions/
|
|
1603
|
+
"$ref": "#/definitions/CssModuleGeneratorOptions"
|
|
1544
1604
|
},
|
|
1545
1605
|
"css/module": {
|
|
1546
1606
|
"$ref": "#/definitions/CssModuleGeneratorOptions"
|
|
@@ -1569,20 +1629,7 @@
|
|
|
1569
1629
|
},
|
|
1570
1630
|
"HashDigest": {
|
|
1571
1631
|
"description": "Digest types used for the hash.",
|
|
1572
|
-
"
|
|
1573
|
-
"base64",
|
|
1574
|
-
"base64url",
|
|
1575
|
-
"hex",
|
|
1576
|
-
"binary",
|
|
1577
|
-
"utf8",
|
|
1578
|
-
"utf-8",
|
|
1579
|
-
"utf16le",
|
|
1580
|
-
"utf-16le",
|
|
1581
|
-
"latin1",
|
|
1582
|
-
"ascii",
|
|
1583
|
-
"ucs2",
|
|
1584
|
-
"ucs-2"
|
|
1585
|
-
]
|
|
1632
|
+
"type": "string"
|
|
1586
1633
|
},
|
|
1587
1634
|
"HashDigestLength": {
|
|
1588
1635
|
"description": "Number of chars which are used for the hash.",
|
|
@@ -1920,6 +1967,11 @@
|
|
|
1920
1967
|
"description": "Override the module to strict or non-strict. This may affect the behavior of the module (some behaviors differ between strict and non-strict), so please configure this option carefully.",
|
|
1921
1968
|
"enum": ["strict", "non-strict"]
|
|
1922
1969
|
},
|
|
1970
|
+
"parse": {
|
|
1971
|
+
"description": "Function to parser source code.",
|
|
1972
|
+
"instanceof": "Function",
|
|
1973
|
+
"tsType": "(import('../lib/javascript/JavascriptParser').ParseFunction)"
|
|
1974
|
+
},
|
|
1923
1975
|
"reexportExportsPresence": {
|
|
1924
1976
|
"description": "Specifies the behavior of invalid export names in \"export ... from ...\". This might be useful to disable during the migration from \"export ... from ...\" to \"export type ... from ...\" when reexporting types in TypeScript.",
|
|
1925
1977
|
"enum": ["error", "warn", "auto", false]
|
|
@@ -2038,6 +2090,10 @@
|
|
|
2038
2090
|
"description": "The depth of json dependency flagged as `exportInfo`.",
|
|
2039
2091
|
"type": "number"
|
|
2040
2092
|
},
|
|
2093
|
+
"namedExports": {
|
|
2094
|
+
"description": "Allow named exports for json of object type.",
|
|
2095
|
+
"type": "boolean"
|
|
2096
|
+
},
|
|
2041
2097
|
"parse": {
|
|
2042
2098
|
"description": "Function to parser content and return JSON.",
|
|
2043
2099
|
"instanceof": "Function",
|
|
@@ -3298,7 +3354,8 @@
|
|
|
3298
3354
|
"type": "array",
|
|
3299
3355
|
"items": {
|
|
3300
3356
|
"description": "Size type, like 'javascript', 'webassembly'.",
|
|
3301
|
-
"type": "string"
|
|
3357
|
+
"type": "string",
|
|
3358
|
+
"tsType": "(import(\"../lib/Module\").SourceType)"
|
|
3302
3359
|
},
|
|
3303
3360
|
"minItems": 1
|
|
3304
3361
|
},
|
|
@@ -3922,10 +3979,10 @@
|
|
|
3922
3979
|
"$ref": "#/definitions/CssParserOptions"
|
|
3923
3980
|
},
|
|
3924
3981
|
"css/auto": {
|
|
3925
|
-
"$ref": "#/definitions/
|
|
3982
|
+
"$ref": "#/definitions/CssModuleParserOptions"
|
|
3926
3983
|
},
|
|
3927
3984
|
"css/global": {
|
|
3928
|
-
"$ref": "#/definitions/
|
|
3985
|
+
"$ref": "#/definitions/CssModuleParserOptions"
|
|
3929
3986
|
},
|
|
3930
3987
|
"css/module": {
|
|
3931
3988
|
"$ref": "#/definitions/CssModuleParserOptions"
|
|
@@ -4405,8 +4462,7 @@
|
|
|
4405
4462
|
},
|
|
4406
4463
|
{
|
|
4407
4464
|
"type": "string",
|
|
4408
|
-
"absolutePath": true
|
|
4409
|
-
"minLength": 1
|
|
4465
|
+
"absolutePath": true
|
|
4410
4466
|
}
|
|
4411
4467
|
]
|
|
4412
4468
|
}
|
|
@@ -5011,8 +5067,7 @@
|
|
|
5011
5067
|
{
|
|
5012
5068
|
"description": "A path to an immutable directory (usually a package manager cache directory).",
|
|
5013
5069
|
"type": "string",
|
|
5014
|
-
"absolutePath": true
|
|
5015
|
-
"minLength": 1
|
|
5070
|
+
"absolutePath": true
|
|
5016
5071
|
}
|
|
5017
5072
|
]
|
|
5018
5073
|
}
|
|
@@ -5031,8 +5086,7 @@
|
|
|
5031
5086
|
{
|
|
5032
5087
|
"description": "A path to a managed directory (usually a node_modules directory).",
|
|
5033
5088
|
"type": "string",
|
|
5034
|
-
"absolutePath": true
|
|
5035
|
-
"minLength": 1
|
|
5089
|
+
"absolutePath": true
|
|
5036
5090
|
}
|
|
5037
5091
|
]
|
|
5038
5092
|
}
|
|
@@ -5096,8 +5150,7 @@
|
|
|
5096
5150
|
{
|
|
5097
5151
|
"description": "A path to an unmanaged directory.",
|
|
5098
5152
|
"type": "string",
|
|
5099
|
-
"absolutePath": true
|
|
5100
|
-
"minLength": 1
|
|
5153
|
+
"absolutePath": true
|
|
5101
5154
|
}
|
|
5102
5155
|
]
|
|
5103
5156
|
}
|
|
@@ -5813,6 +5866,9 @@
|
|
|
5813
5866
|
"devtool": {
|
|
5814
5867
|
"$ref": "#/definitions/DevTool"
|
|
5815
5868
|
},
|
|
5869
|
+
"dotenv": {
|
|
5870
|
+
"$ref": "#/definitions/Dotenv"
|
|
5871
|
+
},
|
|
5816
5872
|
"entry": {
|
|
5817
5873
|
"$ref": "#/definitions/EntryNormalized"
|
|
5818
5874
|
},
|
|
@@ -5963,6 +6019,9 @@
|
|
|
5963
6019
|
"devtool": {
|
|
5964
6020
|
"$ref": "#/definitions/DevTool"
|
|
5965
6021
|
},
|
|
6022
|
+
"dotenv": {
|
|
6023
|
+
"$ref": "#/definitions/Dotenv"
|
|
6024
|
+
},
|
|
5966
6025
|
"entry": {
|
|
5967
6026
|
"$ref": "#/definitions/Entry"
|
|
5968
6027
|
},
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file was automatically generated.
|
|
3
|
+
* DO NOT MODIFY BY HAND.
|
|
4
|
+
* Run `yarn fix:special` to update
|
|
5
|
+
*/
|
|
6
|
+
const r=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;function e(t,{instancePath:i="",parentData:n,parentDataProperty:o,rootData:s=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return e.errors=[{params:{type:"object"}}],!1;{const i=0;for(const r in t)if("entrypoints"!==r&&"filename"!==r&&"filter"!==r&&"generate"!==r&&"prefix"!==r&&"serialize"!==r)return e.errors=[{params:{additionalProperty:r}}],!1;if(0===i){if(void 0!==t.entrypoints){const r=0;if("boolean"!=typeof t.entrypoints)return e.errors=[{params:{type:"boolean"}}],!1;var a=0===r}else a=!0;if(a){if(void 0!==t.filename){let i=t.filename;const n=0;if(0===n){if("string"!=typeof i)return e.errors=[{params:{type:"string"}}],!1;if(i.includes("!")||!1!==r.test(i))return e.errors=[{params:{}}],!1;if(i.length<1)return e.errors=[{params:{}}],!1}a=0===n}else a=!0;if(a){if(void 0!==t.filter){const r=0;if(!(t.filter instanceof Function))return e.errors=[{params:{}}],!1;a=0===r}else a=!0;if(a){if(void 0!==t.generate){const r=0;if(!(t.generate instanceof Function))return e.errors=[{params:{}}],!1;a=0===r}else a=!0;if(a){if(void 0!==t.prefix){const r=0;if("string"!=typeof t.prefix)return e.errors=[{params:{type:"string"}}],!1;a=0===r}else a=!0;if(a)if(void 0!==t.serialize){const r=0;if(!(t.serialize instanceof Function))return e.errors=[{params:{}}],!1;a=0===r}else a=!0}}}}}}return e.errors=null,!0}module.exports=e,module.exports.default=e;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {
|
|
3
|
+
"ManifestEntrypoint": {
|
|
4
|
+
"description": "Describes a manifest entrypoint.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"imports": {
|
|
9
|
+
"description": "Contains the names of entrypoints.",
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"description": "The name of file.",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"parents": {
|
|
18
|
+
"description": "Contains the names of parent entrypoints.",
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"description": "The entrypoint name.",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": ["imports"]
|
|
28
|
+
},
|
|
29
|
+
"ManifestItem": {
|
|
30
|
+
"description": "Describes a manifest asset that links the emitted path to the producing asset.",
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"properties": {
|
|
34
|
+
"file": {
|
|
35
|
+
"description": "The path absolute URL (this indicates that the path is absolute from the server's root directory) to file.",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"src": {
|
|
39
|
+
"description": "The source path relative to the context.",
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": ["file"]
|
|
44
|
+
},
|
|
45
|
+
"ManifestObject": {
|
|
46
|
+
"description": "The manifest object.",
|
|
47
|
+
"type": "object",
|
|
48
|
+
"additionalProperties": true,
|
|
49
|
+
"properties": {
|
|
50
|
+
"assets": {
|
|
51
|
+
"description": "Contains the names of assets.",
|
|
52
|
+
"type": "object",
|
|
53
|
+
"tsType": "Record<string, ManifestItem>"
|
|
54
|
+
},
|
|
55
|
+
"entrypoints": {
|
|
56
|
+
"description": "Contains the names of entrypoints.",
|
|
57
|
+
"type": "object",
|
|
58
|
+
"tsType": "Record<string, ManifestEntrypoint>"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": ["assets", "entrypoints"]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"title": "ManifestPluginOptions",
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"properties": {
|
|
68
|
+
"entrypoints": {
|
|
69
|
+
"description": "Enables/disables generation of the entrypoints manifest section.",
|
|
70
|
+
"type": "boolean"
|
|
71
|
+
},
|
|
72
|
+
"filename": {
|
|
73
|
+
"description": "Specifies the filename of the output file on disk. By default the plugin will emit `manifest.json` inside the 'output.path' directory.",
|
|
74
|
+
"type": "string",
|
|
75
|
+
"absolutePath": false,
|
|
76
|
+
"minLength": 1
|
|
77
|
+
},
|
|
78
|
+
"filter": {
|
|
79
|
+
"description": "Allows filtering the files which make up the manifest.",
|
|
80
|
+
"instanceof": "Function",
|
|
81
|
+
"tsType": "(item: ManifestItem) => boolean"
|
|
82
|
+
},
|
|
83
|
+
"generate": {
|
|
84
|
+
"description": "A function that receives the manifest object, modifies it, and returns the modified manifest.",
|
|
85
|
+
"instanceof": "Function",
|
|
86
|
+
"tsType": "(manifest: ManifestObject) => ManifestObject"
|
|
87
|
+
},
|
|
88
|
+
"prefix": {
|
|
89
|
+
"description": "Specifies a path prefix for all keys in the manifest.",
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"serialize": {
|
|
93
|
+
"description": "A function that receives the manifest object and returns the manifest string.",
|
|
94
|
+
"instanceof": "Function",
|
|
95
|
+
"tsType": "(manifest: ManifestObject) => string"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
|
4
4
|
* Run `yarn fix:special` to update
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
6
|
+
const n=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;module.exports=l,module.exports.default=l;const e={definitions:{rule:{anyOf:[{instanceof:"RegExp"},{type:"string",minLength:1},{instanceof:"Function"}]},rules:{anyOf:[{type:"array",items:{oneOf:[{$ref:"#/definitions/rule"}]}},{$ref:"#/definitions/rule"}]}},type:"object",additionalProperties:!1,properties:{append:{anyOf:[{enum:[!1,null]},{type:"string",minLength:1},{instanceof:"Function"}]},columns:{type:"boolean"},debugIds:{type:"boolean"},exclude:{oneOf:[{$ref:"#/definitions/rules"}]},fallbackModuleFilenameTemplate:{anyOf:[{type:"string",minLength:1},{instanceof:"Function"}]},fileContext:{type:"string"},filename:{anyOf:[{enum:[!1,null]},{type:"string",absolutePath:!1,minLength:1}]},ignoreList:{oneOf:[{$ref:"#/definitions/rules"}]},include:{oneOf:[{$ref:"#/definitions/rules"}]},module:{type:"boolean"},moduleFilenameTemplate:{anyOf:[{type:"string",minLength:1},{instanceof:"Function"}]},namespace:{type:"string"},noSources:{type:"boolean"},publicPath:{type:"string"},sourceRoot:{type:"string"},test:{oneOf:[{$ref:"#/definitions/rules"}]}}},t=Object.prototype.hasOwnProperty;function s(n,{instancePath:e="",parentData:t,parentDataProperty:l,rootData:r=n}={}){let o=null,a=0;const i=a;let u=!1;const p=a;if(a===p)if(Array.isArray(n)){const e=n.length;for(let t=0;t<e;t++){let e=n[t];const s=a,l=a;let r=!1,i=null;const u=a,p=a;let c=!1;const m=a;if(!(e instanceof RegExp)){const n={params:{}};null===o?o=[n]:o.push(n),a++}var f=m===a;if(c=c||f,!c){const n=a;if(a===n)if("string"==typeof e){if(e.length<1){const n={params:{}};null===o?o=[n]:o.push(n),a++}}else{const n={params:{type:"string"}};null===o?o=[n]:o.push(n),a++}if(f=n===a,c=c||f,!c){const n=a;if(!(e instanceof Function)){const n={params:{}};null===o?o=[n]:o.push(n),a++}f=n===a,c=c||f}}if(c)a=p,null!==o&&(p?o.length=p:o=null);else{const n={params:{}};null===o?o=[n]:o.push(n),a++}if(u===a&&(r=!0,i=0),r)a=l,null!==o&&(l?o.length=l:o=null);else{const n={params:{passingSchemas:i}};null===o?o=[n]:o.push(n),a++}if(s!==a)break}}else{const n={params:{type:"array"}};null===o?o=[n]:o.push(n),a++}var c=p===a;if(u=u||c,!u){const e=a,t=a;let s=!1;const l=a;if(!(n instanceof RegExp)){const n={params:{}};null===o?o=[n]:o.push(n),a++}var m=l===a;if(s=s||m,!s){const e=a;if(a===e)if("string"==typeof n){if(n.length<1){const n={params:{}};null===o?o=[n]:o.push(n),a++}}else{const n={params:{type:"string"}};null===o?o=[n]:o.push(n),a++}if(m=e===a,s=s||m,!s){const e=a;if(!(n instanceof Function)){const n={params:{}};null===o?o=[n]:o.push(n),a++}m=e===a,s=s||m}}if(s)a=t,null!==o&&(t?o.length=t:o=null);else{const n={params:{}};null===o?o=[n]:o.push(n),a++}c=e===a,u=u||c}if(!u){const n={params:{}};return null===o?o=[n]:o.push(n),a++,s.errors=o,!1}return a=i,null!==o&&(i?o.length=i:o=null),s.errors=o,0===a}function l(r,{instancePath:o="",parentData:a,parentDataProperty:i,rootData:u=r}={}){let p=null,f=0;if(0===f){if(!r||"object"!=typeof r||Array.isArray(r))return l.errors=[{params:{type:"object"}}],!1;{const a=f;for(const n in r)if(!t.call(e.properties,n))return l.errors=[{params:{additionalProperty:n}}],!1;if(a===f){if(void 0!==r.append){let n=r.append;const e=f,t=f;let s=!1;const o=f;if(!1!==n&&null!==n){const n={params:{}};null===p?p=[n]:p.push(n),f++}var c=o===f;if(s=s||c,!s){const e=f;if(f===e)if("string"==typeof n){if(n.length<1){const n={params:{}};null===p?p=[n]:p.push(n),f++}}else{const n={params:{type:"string"}};null===p?p=[n]:p.push(n),f++}if(c=e===f,s=s||c,!s){const e=f;if(!(n instanceof Function)){const n={params:{}};null===p?p=[n]:p.push(n),f++}c=e===f,s=s||c}}if(!s){const n={params:{}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null);var m=e===f}else m=!0;if(m){if(void 0!==r.columns){const n=f;if("boolean"!=typeof r.columns)return l.errors=[{params:{type:"boolean"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.debugIds){const n=f;if("boolean"!=typeof r.debugIds)return l.errors=[{params:{type:"boolean"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.exclude){const n=f,e=f;let t=!1,a=null;const i=f;if(s(r.exclude,{instancePath:o+"/exclude",parentData:r,parentDataProperty:"exclude",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),i===f&&(t=!0,a=0),!t){const n={params:{passingSchemas:a}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=e,null!==p&&(e?p.length=e:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.fallbackModuleFilenameTemplate){let n=r.fallbackModuleFilenameTemplate;const e=f,t=f;let s=!1;const o=f;if(f===o)if("string"==typeof n){if(n.length<1){const n={params:{}};null===p?p=[n]:p.push(n),f++}}else{const n={params:{type:"string"}};null===p?p=[n]:p.push(n),f++}var h=o===f;if(s=s||h,!s){const e=f;if(!(n instanceof Function)){const n={params:{}};null===p?p=[n]:p.push(n),f++}h=e===f,s=s||h}if(!s){const n={params:{}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null),m=e===f}else m=!0;if(m){if(void 0!==r.fileContext){const n=f;if("string"!=typeof r.fileContext)return l.errors=[{params:{type:"string"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.filename){let e=r.filename;const t=f,s=f;let o=!1;const a=f;if(!1!==e&&null!==e){const n={params:{}};null===p?p=[n]:p.push(n),f++}var g=a===f;if(o=o||g,!o){const t=f;if(f===t)if("string"==typeof e){if(e.includes("!")||!1!==n.test(e)){const n={params:{}};null===p?p=[n]:p.push(n),f++}else if(e.length<1){const n={params:{}};null===p?p=[n]:p.push(n),f++}}else{const n={params:{type:"string"}};null===p?p=[n]:p.push(n),f++}g=t===f,o=o||g}if(!o){const n={params:{}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=s,null!==p&&(s?p.length=s:p=null),m=t===f}else m=!0;if(m){if(void 0!==r.ignoreList){const n=f,e=f;let t=!1,a=null;const i=f;if(s(r.ignoreList,{instancePath:o+"/ignoreList",parentData:r,parentDataProperty:"ignoreList",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),i===f&&(t=!0,a=0),!t){const n={params:{passingSchemas:a}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=e,null!==p&&(e?p.length=e:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.include){const n=f,e=f;let t=!1,a=null;const i=f;if(s(r.include,{instancePath:o+"/include",parentData:r,parentDataProperty:"include",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),i===f&&(t=!0,a=0),!t){const n={params:{passingSchemas:a}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=e,null!==p&&(e?p.length=e:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.module){const n=f;if("boolean"!=typeof r.module)return l.errors=[{params:{type:"boolean"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.moduleFilenameTemplate){let n=r.moduleFilenameTemplate;const e=f,t=f;let s=!1;const o=f;if(f===o)if("string"==typeof n){if(n.length<1){const n={params:{}};null===p?p=[n]:p.push(n),f++}}else{const n={params:{type:"string"}};null===p?p=[n]:p.push(n),f++}var y=o===f;if(s=s||y,!s){const e=f;if(!(n instanceof Function)){const n={params:{}};null===p?p=[n]:p.push(n),f++}y=e===f,s=s||y}if(!s){const n={params:{}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null),m=e===f}else m=!0;if(m){if(void 0!==r.namespace){const n=f;if("string"!=typeof r.namespace)return l.errors=[{params:{type:"string"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.noSources){const n=f;if("boolean"!=typeof r.noSources)return l.errors=[{params:{type:"boolean"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.publicPath){const n=f;if("string"!=typeof r.publicPath)return l.errors=[{params:{type:"string"}}],!1;m=n===f}else m=!0;if(m){if(void 0!==r.sourceRoot){const n=f;if("string"!=typeof r.sourceRoot)return l.errors=[{params:{type:"string"}}],!1;m=n===f}else m=!0;if(m)if(void 0!==r.test){const n=f,e=f;let t=!1,a=null;const i=f;if(s(r.test,{instancePath:o+"/test",parentData:r,parentDataProperty:"test",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),i===f&&(t=!0,a=0),!t){const n={params:{passingSchemas:a}};return null===p?p=[n]:p.push(n),f++,l.errors=p,!1}f=e,null!==p&&(e?p.length=e:p=null),m=n===f}else m=!0}}}}}}}}}}}}}}}}}return l.errors=p,0===f}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"definitions": {
|
|
3
3
|
"rule": {
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "Condition used to match resource (string, RegExp or Function).",
|
|
5
5
|
"anyOf": [
|
|
6
6
|
{
|
|
7
7
|
"instanceof": "RegExp",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"rules": {
|
|
21
|
-
"description": "
|
|
21
|
+
"description": "One or multiple conditions used to match resource.",
|
|
22
22
|
"anyOf": [
|
|
23
23
|
{
|
|
24
24
|
"type": "array",
|
|
@@ -106,6 +106,14 @@
|
|
|
106
106
|
}
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
|
+
"ignoreList": {
|
|
110
|
+
"description": "Decide whether to ignore source files that match the specified value in the SourceMap.",
|
|
111
|
+
"oneOf": [
|
|
112
|
+
{
|
|
113
|
+
"$ref": "#/definitions/rules"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
109
117
|
"include": {
|
|
110
118
|
"description": "Include source maps for module paths that match the given value.",
|
|
111
119
|
"oneOf": [
|
|
@@ -149,7 +157,12 @@
|
|
|
149
157
|
"type": "string"
|
|
150
158
|
},
|
|
151
159
|
"test": {
|
|
152
|
-
"
|
|
160
|
+
"description": "Include source maps for modules based on their extension (defaults to .js and .css).",
|
|
161
|
+
"oneOf": [
|
|
162
|
+
{
|
|
163
|
+
"$ref": "#/definitions/rules"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
153
166
|
}
|
|
154
167
|
}
|
|
155
168
|
}
|