webpack 5.101.3 → 5.102.1
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 +21 -26
- package/lib/APIPlugin.js +30 -36
- package/lib/AsyncDependenciesBlock.js +1 -4
- package/lib/BannerPlugin.js +0 -1
- package/lib/Cache.js +7 -6
- package/lib/CacheFacade.js +0 -1
- package/lib/Chunk.js +49 -31
- package/lib/ChunkGraph.js +37 -27
- package/lib/ChunkGroup.js +8 -10
- package/lib/ChunkTemplate.js +1 -1
- package/lib/CleanPlugin.js +3 -3
- package/lib/CodeGenerationResults.js +3 -2
- package/lib/CompatibilityPlugin.js +29 -12
- package/lib/Compilation.js +209 -196
- package/lib/Compiler.js +36 -35
- package/lib/ConcatenationScope.js +6 -1
- package/lib/ConditionalInitFragment.js +1 -1
- package/lib/ConstPlugin.js +6 -5
- package/lib/ContextExclusionPlugin.js +0 -1
- package/lib/ContextModule.js +25 -21
- package/lib/ContextModuleFactory.js +30 -11
- package/lib/ContextReplacementPlugin.js +38 -15
- package/lib/DefinePlugin.js +5 -9
- package/lib/DelegatedModule.js +7 -11
- package/lib/DependenciesBlock.js +0 -2
- package/lib/Dependency.js +9 -11
- package/lib/DependencyTemplates.js +2 -4
- package/lib/DllModule.js +1 -7
- package/lib/DllReferencePlugin.js +2 -4
- package/lib/DynamicEntryPlugin.js +0 -2
- package/lib/EntryOptionPlugin.js +0 -5
- package/lib/EnvironmentNotSupportAsyncWarning.js +0 -3
- package/lib/EvalDevToolModulePlugin.js +4 -3
- package/lib/EvalSourceMapDevToolPlugin.js +3 -4
- package/lib/ExportsInfo.js +50 -49
- package/lib/ExternalModule.js +84 -52
- package/lib/ExternalModuleFactoryPlugin.js +27 -7
- package/lib/ExternalsPlugin.js +24 -17
- package/lib/FileSystemInfo.js +105 -90
- package/lib/FlagDependencyUsagePlugin.js +3 -4
- package/lib/Generator.js +2 -13
- package/lib/GraphHelpers.js +0 -3
- package/lib/HookWebpackError.js +0 -2
- package/lib/HotModuleReplacementPlugin.js +22 -24
- package/lib/HotUpdateChunk.js +0 -3
- package/lib/IgnorePlugin.js +5 -2
- package/lib/InitFragment.js +41 -29
- package/lib/InvalidDependenciesModuleWarning.js +0 -1
- package/lib/LibManifestPlugin.js +4 -6
- package/lib/LoaderOptionsPlugin.js +1 -10
- package/lib/MainTemplate.js +8 -19
- package/lib/Module.js +32 -20
- package/lib/ModuleFactory.js +1 -1
- package/lib/ModuleFilenameHelpers.js +42 -25
- package/lib/ModuleGraph.js +30 -16
- package/lib/ModuleInfoHeaderPlugin.js +0 -1
- package/lib/ModuleTemplate.js +0 -2
- package/lib/ModuleTypeConstants.js +11 -1
- package/lib/MultiCompiler.js +23 -15
- package/lib/MultiWatching.js +6 -10
- package/lib/NodeStuffPlugin.js +2 -10
- package/lib/NormalModule.js +146 -89
- package/lib/NormalModuleFactory.js +132 -42
- package/lib/OptionsApply.js +1 -1
- package/lib/Parser.js +1 -1
- package/lib/ProgressPlugin.js +6 -10
- package/lib/ProvidePlugin.js +5 -7
- package/lib/RawModule.js +1 -6
- package/lib/RecordIdsPlugin.js +10 -6
- package/lib/ResolverFactory.js +0 -2
- package/lib/RuntimeGlobals.js +5 -0
- package/lib/RuntimeModule.js +1 -3
- package/lib/RuntimePlugin.js +26 -22
- package/lib/RuntimeTemplate.js +22 -12
- package/lib/SourceMapDevToolModuleOptionsPlugin.js +2 -2
- package/lib/SourceMapDevToolPlugin.js +11 -18
- package/lib/Stats.js +0 -1
- package/lib/Template.js +6 -11
- package/lib/TemplatedPathPlugin.js +2 -1
- package/lib/WatchIgnorePlugin.js +2 -3
- package/lib/Watching.js +15 -15
- package/lib/WebpackIsIncludedPlugin.js +0 -2
- package/lib/WebpackOptionsApply.js +74 -107
- package/lib/asset/AssetBytesGenerator.js +167 -0
- package/lib/asset/AssetBytesParser.js +37 -0
- package/lib/asset/AssetGenerator.js +22 -37
- package/lib/asset/AssetModulesPlugin.js +34 -16
- package/lib/asset/AssetParser.js +7 -3
- package/lib/asset/AssetSourceGenerator.js +1 -1
- package/lib/asset/RawDataUrlModule.js +3 -2
- package/lib/async-modules/AsyncModuleHelpers.js +6 -4
- package/lib/buildChunkGraph.js +0 -1
- package/lib/cache/MemoryCachePlugin.js +0 -2
- package/lib/cache/MemoryWithGcCachePlugin.js +0 -2
- package/lib/cache/PackFileCacheStrategy.js +14 -1
- package/lib/cache/ResolverCachePlugin.js +9 -15
- package/lib/cache/getLazyHashedEtag.js +1 -1
- package/lib/config/browserslistTargetHandler.js +77 -76
- package/lib/config/defaults.js +162 -23
- package/lib/config/normalization.js +18 -3
- package/lib/config/target.js +1 -1
- package/lib/container/ContainerEntryDependency.js +0 -1
- package/lib/container/ContainerEntryModule.js +3 -7
- package/lib/container/ContainerPlugin.js +1 -2
- package/lib/container/ContainerReferencePlugin.js +0 -1
- package/lib/container/FallbackDependency.js +2 -1
- package/lib/container/FallbackModule.js +6 -7
- package/lib/container/ModuleFederationPlugin.js +0 -1
- package/lib/container/RemoteModule.js +8 -8
- package/lib/container/RemoteRuntimeModule.js +2 -2
- package/lib/css/CssGenerator.js +3 -6
- package/lib/css/CssLoadingRuntimeModule.js +6 -9
- package/lib/css/CssModulesPlugin.js +13 -19
- package/lib/css/CssParser.js +3 -3
- package/lib/css/walkCssTokens.js +2 -2
- package/lib/debug/ProfilingPlugin.js +35 -8
- package/lib/dependencies/AMDDefineDependencyParserPlugin.js +12 -17
- package/lib/dependencies/AMDPlugin.js +2 -2
- package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +1 -2
- package/lib/dependencies/CachedConstDependency.js +0 -4
- package/lib/dependencies/CommonJsExportRequireDependency.js +20 -14
- package/lib/dependencies/CommonJsExportsDependency.js +2 -1
- package/lib/dependencies/CommonJsExportsParserPlugin.js +20 -5
- package/lib/dependencies/CommonJsFullRequireDependency.js +6 -4
- package/lib/dependencies/CommonJsImportsParserPlugin.js +16 -7
- package/lib/dependencies/CommonJsRequireContextDependency.js +1 -1
- package/lib/dependencies/CommonJsSelfReferenceDependency.js +4 -4
- package/lib/dependencies/ConstDependency.js +2 -2
- package/lib/dependencies/ContextDependency.js +9 -4
- package/lib/dependencies/ContextDependencyHelpers.js +2 -2
- package/lib/dependencies/ContextDependencyTemplateAsId.js +9 -9
- package/lib/dependencies/ContextDependencyTemplateAsRequireCall.js +9 -9
- package/lib/dependencies/ContextElementDependency.js +22 -11
- package/lib/dependencies/CssIcssImportDependency.js +0 -2
- package/lib/dependencies/CssIcssSymbolDependency.js +2 -2
- package/lib/dependencies/CssImportDependency.js +0 -8
- package/lib/dependencies/CssLocalIdentifierDependency.js +4 -7
- package/lib/dependencies/CssSelfLocalIdentifierDependency.js +2 -2
- package/lib/dependencies/CssUrlDependency.js +0 -6
- package/lib/dependencies/ExportsInfoDependency.js +7 -9
- package/lib/dependencies/ExternalModuleDependency.js +0 -3
- package/lib/dependencies/ExternalModuleInitFragment.js +1 -1
- package/lib/dependencies/HarmonyAcceptDependency.js +1 -1
- package/lib/dependencies/HarmonyAcceptImportDependency.js +0 -4
- package/lib/dependencies/HarmonyCompatibilityDependency.js +0 -1
- package/lib/dependencies/HarmonyDetectionParserPlugin.js +0 -14
- package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +3 -3
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +4 -1
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +29 -35
- package/lib/dependencies/HarmonyImportDependency.js +33 -14
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +20 -23
- package/lib/dependencies/HarmonyImportSideEffectDependency.js +0 -4
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +46 -31
- package/lib/dependencies/HarmonyModulesPlugin.js +3 -3
- package/lib/dependencies/ImportContextDependency.js +13 -0
- package/lib/dependencies/ImportDependency.js +18 -6
- package/lib/dependencies/ImportEagerDependency.js +2 -3
- package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +8 -5
- package/lib/dependencies/ImportMetaContextPlugin.js +0 -1
- package/lib/dependencies/ImportMetaPlugin.js +3 -2
- package/lib/dependencies/ImportParserPlugin.js +288 -45
- package/lib/dependencies/ImportWeakDependency.js +2 -3
- package/lib/dependencies/JsonExportsDependency.js +0 -1
- package/lib/dependencies/LoaderDependency.js +0 -3
- package/lib/dependencies/LoaderImportDependency.js +0 -3
- package/lib/dependencies/LoaderPlugin.js +11 -5
- package/lib/dependencies/ModuleDecoratorDependency.js +2 -4
- package/lib/dependencies/ModuleDependency.js +3 -9
- package/lib/dependencies/NullDependency.js +2 -0
- package/lib/dependencies/ProvidedDependency.js +6 -8
- package/lib/dependencies/PureExpressionDependency.js +0 -1
- package/lib/dependencies/RequireEnsureDependenciesBlock.js +0 -1
- package/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +1 -2
- package/lib/dependencies/RequireIncludeDependency.js +2 -2
- package/lib/dependencies/RequireResolveDependency.js +2 -2
- package/lib/dependencies/RuntimeRequirementsDependency.js +2 -3
- package/lib/dependencies/StaticExportsDependency.js +3 -5
- package/lib/dependencies/URLDependency.js +2 -7
- package/lib/dependencies/URLPlugin.js +1 -2
- package/lib/dependencies/WebAssemblyExportImportedDependency.js +2 -2
- package/lib/dependencies/WebAssemblyImportDependency.js +2 -2
- package/lib/dependencies/WebpackIsIncludedDependency.js +2 -3
- package/lib/dependencies/WorkerDependency.js +2 -3
- package/lib/dependencies/WorkerPlugin.js +4 -12
- package/lib/dependencies/processExportInfo.js +2 -3
- package/lib/esm/ModuleChunkFormatPlugin.js +0 -3
- package/lib/esm/ModuleChunkLoadingPlugin.js +2 -1
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +7 -7
- package/lib/hmr/LazyCompilationPlugin.js +6 -4
- package/lib/hmr/lazyCompilationBackend.js +13 -10
- package/lib/ids/DeterministicChunkIdsPlugin.js +0 -1
- package/lib/ids/HashedModuleIdsPlugin.js +5 -7
- package/lib/ids/IdHelpers.js +1 -1
- package/lib/ids/NamedChunkIdsPlugin.js +1 -6
- package/lib/ids/NamedModuleIdsPlugin.js +1 -5
- package/lib/ids/NaturalChunkIdsPlugin.js +0 -1
- package/lib/ids/NaturalModuleIdsPlugin.js +0 -1
- package/lib/ids/OccurrenceChunkIdsPlugin.js +0 -1
- package/lib/ids/OccurrenceModuleIdsPlugin.js +0 -1
- package/lib/ids/SyncModuleIdsPlugin.js +4 -3
- package/lib/index.js +8 -7
- package/lib/javascript/ArrayPushCallbackChunkFormatPlugin.js +4 -1
- package/lib/javascript/BasicEvaluatedExpression.js +13 -6
- package/lib/javascript/ChunkFormatHelpers.js +1 -1
- package/lib/javascript/CommonJsChunkFormatPlugin.js +0 -1
- package/lib/javascript/JavascriptGenerator.js +2 -3
- package/lib/javascript/JavascriptModulesPlugin.js +46 -24
- package/lib/javascript/JavascriptParser.js +120 -55
- package/lib/javascript/JavascriptParserHelpers.js +2 -2
- package/lib/javascript/StartupHelpers.js +2 -4
- package/lib/json/JsonData.js +1 -1
- package/lib/json/JsonGenerator.js +4 -5
- package/lib/json/JsonModulesPlugin.js +0 -3
- package/lib/json/JsonParser.js +4 -2
- package/lib/library/AbstractLibraryPlugin.js +2 -2
- package/lib/library/AmdLibraryPlugin.js +0 -1
- package/lib/library/AssignLibraryPlugin.js +23 -12
- package/lib/library/EnableLibraryPlugin.js +7 -11
- package/lib/library/ExportPropertyLibraryPlugin.js +8 -20
- package/lib/library/JsonpLibraryPlugin.js +5 -2
- package/lib/library/ModuleLibraryPlugin.js +88 -43
- package/lib/library/SystemLibraryPlugin.js +15 -6
- package/lib/library/UmdLibraryPlugin.js +12 -18
- package/lib/logging/Logger.js +12 -10
- package/lib/logging/createConsoleLogger.js +15 -14
- package/lib/logging/truncateArgs.js +1 -1
- package/lib/node/CommonJsChunkLoadingPlugin.js +2 -1
- package/lib/node/NodeWatchFileSystem.js +4 -4
- package/lib/node/ReadFileChunkLoadingRuntimeModule.js +2 -2
- package/lib/node/RequireChunkLoadingRuntimeModule.js +5 -2
- package/lib/node/nodeConsole.js +2 -2
- package/lib/optimize/AggressiveSplittingPlugin.js +2 -0
- package/lib/optimize/ConcatenatedModule.js +142 -100
- package/lib/optimize/InnerGraph.js +17 -11
- package/lib/optimize/InnerGraphPlugin.js +0 -3
- package/lib/optimize/ModuleConcatenationPlugin.js +3 -4
- package/lib/optimize/RealContentHashPlugin.js +5 -3
- package/lib/optimize/RuntimeChunkPlugin.js +0 -1
- package/lib/optimize/SideEffectsFlagPlugin.js +3 -10
- package/lib/optimize/SplitChunksPlugin.js +46 -40
- package/lib/performance/SizeLimitsPlugin.js +2 -1
- package/lib/prefetch/ChunkPrefetchFunctionRuntimeModule.js +5 -7
- package/lib/prefetch/ChunkPrefetchPreloadPlugin.js +0 -2
- package/lib/prefetch/ChunkPrefetchStartupRuntimeModule.js +0 -1
- package/lib/prefetch/ChunkPrefetchTriggerRuntimeModule.js +2 -2
- package/lib/prefetch/ChunkPreloadTriggerRuntimeModule.js +2 -2
- package/lib/rules/BasicMatcherRulePlugin.js +0 -2
- package/lib/rules/ObjectMatcherRulePlugin.js +0 -1
- package/lib/rules/RuleSetCompiler.js +8 -6
- package/lib/runtime/BaseUriRuntimeModule.js +2 -2
- package/lib/runtime/CompatRuntimeModule.js +0 -1
- package/lib/runtime/GetChunkFilenameRuntimeModule.js +8 -9
- package/lib/runtime/LoadScriptRuntimeModule.js +0 -2
- package/lib/runtime/MakeDeferredNamespaceObjectRuntime.js +1 -1
- package/lib/runtime/PublicPathRuntimeModule.js +2 -2
- package/lib/runtime/StartupEntrypointRuntimeModule.js +0 -1
- package/lib/runtime/SystemContextRuntimeModule.js +0 -2
- package/lib/runtime/ToBinaryRuntimeModule.js +64 -0
- package/lib/schemes/DataUriPlugin.js +2 -28
- package/lib/schemes/FileUriPlugin.js +5 -2
- package/lib/schemes/HttpUriPlugin.js +4 -2
- package/lib/schemes/VirtualUrlPlugin.js +11 -11
- package/lib/serialization/FileMiddleware.js +1 -1
- package/lib/serialization/NullPrototypeObjectSerializer.js +5 -3
- package/lib/serialization/ObjectMiddleware.js +31 -20
- package/lib/serialization/SerializerMiddleware.js +1 -3
- package/lib/serialization/types.js +1 -1
- package/lib/sharing/ConsumeSharedModule.js +3 -5
- package/lib/sharing/ConsumeSharedPlugin.js +2 -4
- package/lib/sharing/ConsumeSharedRuntimeModule.js +9 -6
- package/lib/sharing/ProvideSharedModule.js +3 -7
- package/lib/sharing/SharePlugin.js +0 -2
- package/lib/sharing/ShareRuntimeModule.js +4 -1
- package/lib/sharing/resolveMatchedConfigs.js +14 -6
- package/lib/sharing/utils.js +0 -6
- package/lib/stats/DefaultStatsFactoryPlugin.js +179 -95
- package/lib/stats/DefaultStatsPresetPlugin.js +15 -9
- package/lib/stats/DefaultStatsPrinterPlugin.js +77 -113
- package/lib/stats/StatsFactory.js +14 -11
- package/lib/url/URLParserPlugin.js +2 -4
- package/lib/util/ArrayHelpers.js +4 -4
- package/lib/util/AsyncQueue.js +1 -0
- package/lib/util/Hash.js +35 -5
- package/lib/util/LazySet.js +2 -2
- package/lib/util/StackedCacheMap.js +0 -2
- package/lib/util/TupleSet.js +9 -4
- package/lib/util/URLAbsoluteSpecifier.js +0 -1
- package/lib/util/WeakTupleMap.js +1 -1
- package/lib/util/chainedImports.js +3 -1
- package/lib/util/cleverMerge.js +15 -18
- package/lib/util/comparators.js +2 -4
- package/lib/util/compileBooleanMatcher.js +11 -9
- package/lib/util/concatenate.js +1 -2
- package/lib/util/create-schema-validation.js +1 -2
- package/lib/util/createHash.js +85 -15
- package/lib/util/dataURL.js +39 -0
- package/lib/util/deprecation.js +29 -31
- package/lib/util/deterministicGrouping.js +34 -30
- package/lib/util/extractSourceMap.js +319 -0
- package/lib/util/findGraphRoots.js +15 -5
- package/lib/util/fs.js +29 -8
- package/lib/util/hash/BatchedHash.js +47 -8
- package/lib/util/hash/wasm-hash.js +53 -13
- package/lib/util/semver.js +9 -8
- package/lib/util/smartGrouping.js +41 -26
- package/lib/util/traverseDestructuringAssignmentProperties.js +45 -0
- package/lib/wasm/EnableWasmLoadingPlugin.js +3 -2
- package/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js +5 -1
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +2 -13
- package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +2 -9
- package/lib/wasm-async/AsyncWebAssemblyParser.js +2 -10
- package/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +6 -4
- package/lib/wasm-sync/WebAssemblyGenerator.js +1 -3
- package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +1 -4
- package/lib/wasm-sync/WebAssemblyModulesPlugin.js +2 -7
- package/lib/wasm-sync/WebAssemblyParser.js +1 -13
- package/lib/web/JsonpChunkLoadingPlugin.js +2 -1
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +1 -1
- package/lib/web/JsonpTemplatePlugin.js +0 -1
- package/lib/webpack.js +21 -8
- package/lib/webworker/ImportScriptsChunkLoadingPlugin.js +2 -1
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +1 -1
- package/package.json +21 -21
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +93 -96
- package/schemas/plugins/BannerPlugin.check.js +1 -1
- package/schemas/plugins/BannerPlugin.json +4 -0
- package/schemas/plugins/IgnorePlugin.json +1 -1
- package/schemas/plugins/ProgressPlugin.json +1 -1
- package/schemas/plugins/SourceMapDevToolPlugin.check.js +1 -1
- package/schemas/plugins/SourceMapDevToolPlugin.json +5 -1
- package/schemas/plugins/ids/HashedModuleIdsPlugin.check.d.ts +7 -0
- package/schemas/plugins/ids/HashedModuleIdsPlugin.check.js +6 -0
- package/schemas/plugins/{HashedModuleIdsPlugin.json → ids/HashedModuleIdsPlugin.json} +15 -2
- package/schemas/plugins/schemes/VirtualUrlPlugin.json +3 -3
- package/types.d.ts +1699 -706
- package/SECURITY.md +0 -9
- package/schemas/plugins/HashedModuleIdsPlugin.check.d.ts +0 -7
- package/schemas/plugins/HashedModuleIdsPlugin.check.js +0 -6
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"instanceof": "Function",
|
|
151
|
-
"tsType": "(
|
|
151
|
+
"tsType": "(import(\"../lib/TemplatedPathPlugin\").TemplatePathFn)"
|
|
152
152
|
}
|
|
153
153
|
]
|
|
154
154
|
},
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"instanceof": "Function",
|
|
164
|
-
"tsType": "(
|
|
164
|
+
"tsType": "(import(\"../lib/TemplatedPathPlugin\").TemplatePathFn)"
|
|
165
165
|
}
|
|
166
166
|
]
|
|
167
167
|
},
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
354
|
"instanceof": "Function",
|
|
355
|
-
"tsType": "((
|
|
355
|
+
"tsType": "(import(\"../lib/CleanPlugin\").KeepFn)"
|
|
356
356
|
}
|
|
357
357
|
]
|
|
358
358
|
}
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
},
|
|
610
610
|
{
|
|
611
611
|
"instanceof": "Function",
|
|
612
|
-
"tsType": "(
|
|
612
|
+
"tsType": "import('../lib/ModuleFilenameHelpers').ModuleFilenameTemplateFunction"
|
|
613
613
|
}
|
|
614
614
|
]
|
|
615
615
|
},
|
|
@@ -965,7 +965,7 @@
|
|
|
965
965
|
"description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).",
|
|
966
966
|
"type": "object",
|
|
967
967
|
"implements": ["#/definitions/ExperimentsCommon"],
|
|
968
|
-
"additionalProperties":
|
|
968
|
+
"additionalProperties": true,
|
|
969
969
|
"properties": {
|
|
970
970
|
"asyncWebAssembly": {
|
|
971
971
|
"description": "Support WebAssembly as asynchronous EcmaScript Module.",
|
|
@@ -1002,10 +1002,6 @@
|
|
|
1002
1002
|
"description": "Apply defaults of next major version.",
|
|
1003
1003
|
"type": "boolean"
|
|
1004
1004
|
},
|
|
1005
|
-
"layers": {
|
|
1006
|
-
"description": "Enable module layers.",
|
|
1007
|
-
"type": "boolean"
|
|
1008
|
-
},
|
|
1009
1005
|
"lazyCompilation": {
|
|
1010
1006
|
"description": "Compile entrypoints and import()s only when they are accessed.",
|
|
1011
1007
|
"anyOf": [
|
|
@@ -1024,10 +1020,6 @@
|
|
|
1024
1020
|
"syncWebAssembly": {
|
|
1025
1021
|
"description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
|
|
1026
1022
|
"type": "boolean"
|
|
1027
|
-
},
|
|
1028
|
-
"topLevelAwait": {
|
|
1029
|
-
"description": "Allow using top-level-await in EcmaScript Modules.",
|
|
1030
|
-
"type": "boolean"
|
|
1031
1023
|
}
|
|
1032
1024
|
}
|
|
1033
1025
|
},
|
|
@@ -1052,10 +1044,6 @@
|
|
|
1052
1044
|
"description": "Apply defaults of next major version.",
|
|
1053
1045
|
"type": "boolean"
|
|
1054
1046
|
},
|
|
1055
|
-
"layers": {
|
|
1056
|
-
"description": "Enable module layers.",
|
|
1057
|
-
"type": "boolean"
|
|
1058
|
-
},
|
|
1059
1047
|
"outputModule": {
|
|
1060
1048
|
"description": "Allow output javascript files as module source type.",
|
|
1061
1049
|
"type": "boolean"
|
|
@@ -1063,10 +1051,6 @@
|
|
|
1063
1051
|
"syncWebAssembly": {
|
|
1064
1052
|
"description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
|
|
1065
1053
|
"type": "boolean"
|
|
1066
|
-
},
|
|
1067
|
-
"topLevelAwait": {
|
|
1068
|
-
"description": "Allow using top-level-await in EcmaScript Modules.",
|
|
1069
|
-
"type": "boolean"
|
|
1070
1054
|
}
|
|
1071
1055
|
}
|
|
1072
1056
|
},
|
|
@@ -1108,10 +1092,6 @@
|
|
|
1108
1092
|
"description": "Apply defaults of next major version.",
|
|
1109
1093
|
"type": "boolean"
|
|
1110
1094
|
},
|
|
1111
|
-
"layers": {
|
|
1112
|
-
"description": "Enable module layers.",
|
|
1113
|
-
"type": "boolean"
|
|
1114
|
-
},
|
|
1115
1095
|
"lazyCompilation": {
|
|
1116
1096
|
"description": "Compile entrypoints and import()s only when they are accessed.",
|
|
1117
1097
|
"anyOf": [
|
|
@@ -1130,10 +1110,6 @@
|
|
|
1130
1110
|
"syncWebAssembly": {
|
|
1131
1111
|
"description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
|
|
1132
1112
|
"type": "boolean"
|
|
1133
|
-
},
|
|
1134
|
-
"topLevelAwait": {
|
|
1135
|
-
"description": "Allow using top-level-await in EcmaScript Modules.",
|
|
1136
|
-
"type": "boolean"
|
|
1137
1113
|
}
|
|
1138
1114
|
}
|
|
1139
1115
|
},
|
|
@@ -1210,54 +1186,12 @@
|
|
|
1210
1186
|
"ExternalItemFunctionCallback": {
|
|
1211
1187
|
"description": "The function is called on each dependency (`function(context, request, callback(err, result))`).",
|
|
1212
1188
|
"instanceof": "Function",
|
|
1213
|
-
"tsType": "((
|
|
1214
|
-
},
|
|
1215
|
-
"ExternalItemFunctionData": {
|
|
1216
|
-
"description": "Data object passed as argument when a function is set for 'externals'.",
|
|
1217
|
-
"type": "object",
|
|
1218
|
-
"additionalProperties": false,
|
|
1219
|
-
"properties": {
|
|
1220
|
-
"context": {
|
|
1221
|
-
"description": "The directory in which the request is placed.",
|
|
1222
|
-
"type": "string"
|
|
1223
|
-
},
|
|
1224
|
-
"contextInfo": {
|
|
1225
|
-
"description": "Contextual information.",
|
|
1226
|
-
"type": "object",
|
|
1227
|
-
"tsType": "import('../lib/ModuleFactory').ModuleFactoryCreateDataContextInfo"
|
|
1228
|
-
},
|
|
1229
|
-
"dependencyType": {
|
|
1230
|
-
"description": "The category of the referencing dependencies.",
|
|
1231
|
-
"type": "string"
|
|
1232
|
-
},
|
|
1233
|
-
"getResolve": {
|
|
1234
|
-
"$ref": "#/definitions/ExternalItemFunctionDataGetResolve"
|
|
1235
|
-
},
|
|
1236
|
-
"request": {
|
|
1237
|
-
"description": "The request as written by the user in the require/import expression/statement.",
|
|
1238
|
-
"type": "string"
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
},
|
|
1242
|
-
"ExternalItemFunctionDataGetResolve": {
|
|
1243
|
-
"description": "Get a resolve function with the current resolver options.",
|
|
1244
|
-
"instanceof": "Function",
|
|
1245
|
-
"tsType": "((options?: ResolveOptions) => ExternalItemFunctionDataGetResolveCallbackResult | ExternalItemFunctionDataGetResolveResult)"
|
|
1246
|
-
},
|
|
1247
|
-
"ExternalItemFunctionDataGetResolveCallbackResult": {
|
|
1248
|
-
"description": "Result of get a resolve function with the current resolver options.",
|
|
1249
|
-
"instanceof": "Function",
|
|
1250
|
-
"tsType": "((context: string, request: string, callback: (err?: Error | null, result?: string | false, resolveRequest?: import('enhanced-resolve').ResolveRequest) => void) => void)"
|
|
1251
|
-
},
|
|
1252
|
-
"ExternalItemFunctionDataGetResolveResult": {
|
|
1253
|
-
"description": "Callback result of get a resolve function with the current resolver options.",
|
|
1254
|
-
"instanceof": "Function",
|
|
1255
|
-
"tsType": "((context: string, request: string) => Promise<string>)"
|
|
1189
|
+
"tsType": "(import(\"../lib/ExternalModuleFactoryPlugin\").ExternalItemFunctionCallback)"
|
|
1256
1190
|
},
|
|
1257
1191
|
"ExternalItemFunctionPromise": {
|
|
1258
1192
|
"description": "The function is called on each dependency (`function(context, request)`).",
|
|
1259
1193
|
"instanceof": "Function",
|
|
1260
|
-
"tsType": "((
|
|
1194
|
+
"tsType": "(import(\"../lib/ExternalModuleFactoryPlugin\").ExternalItemFunctionPromise)"
|
|
1261
1195
|
},
|
|
1262
1196
|
"ExternalItemValue": {
|
|
1263
1197
|
"description": "The dependency used for the external.",
|
|
@@ -1526,7 +1460,7 @@
|
|
|
1526
1460
|
},
|
|
1527
1461
|
{
|
|
1528
1462
|
"instanceof": "Function",
|
|
1529
|
-
"tsType": "(
|
|
1463
|
+
"tsType": "(import(\"../lib/TemplatedPathPlugin\").TemplatePathFn)"
|
|
1530
1464
|
}
|
|
1531
1465
|
]
|
|
1532
1466
|
},
|
|
@@ -1587,12 +1521,18 @@
|
|
|
1587
1521
|
"asset": {
|
|
1588
1522
|
"$ref": "#/definitions/AssetGeneratorOptions"
|
|
1589
1523
|
},
|
|
1524
|
+
"asset/bytes": {
|
|
1525
|
+
"$ref": "#/definitions/EmptyGeneratorOptions"
|
|
1526
|
+
},
|
|
1590
1527
|
"asset/inline": {
|
|
1591
1528
|
"$ref": "#/definitions/AssetInlineGeneratorOptions"
|
|
1592
1529
|
},
|
|
1593
1530
|
"asset/resource": {
|
|
1594
1531
|
"$ref": "#/definitions/AssetResourceGeneratorOptions"
|
|
1595
1532
|
},
|
|
1533
|
+
"asset/source": {
|
|
1534
|
+
"$ref": "#/definitions/EmptyGeneratorOptions"
|
|
1535
|
+
},
|
|
1596
1536
|
"css": {
|
|
1597
1537
|
"$ref": "#/definitions/CssGeneratorOptions"
|
|
1598
1538
|
},
|
|
@@ -1628,8 +1568,21 @@
|
|
|
1628
1568
|
"minLength": 1
|
|
1629
1569
|
},
|
|
1630
1570
|
"HashDigest": {
|
|
1631
|
-
"description": "Digest
|
|
1632
|
-
"
|
|
1571
|
+
"description": "Digest types used for the hash.",
|
|
1572
|
+
"enum": [
|
|
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
|
+
]
|
|
1633
1586
|
},
|
|
1634
1587
|
"HashDigestLength": {
|
|
1635
1588
|
"description": "Number of chars which are used for the hash.",
|
|
@@ -1846,7 +1799,7 @@
|
|
|
1846
1799
|
"JavascriptParserOptions": {
|
|
1847
1800
|
"description": "Parser options for javascript modules.",
|
|
1848
1801
|
"type": "object",
|
|
1849
|
-
"additionalProperties":
|
|
1802
|
+
"additionalProperties": false,
|
|
1850
1803
|
"properties": {
|
|
1851
1804
|
"amd": {
|
|
1852
1805
|
"$ref": "#/definitions/Amd"
|
|
@@ -2088,7 +2041,7 @@
|
|
|
2088
2041
|
"parse": {
|
|
2089
2042
|
"description": "Function to parser content and return JSON.",
|
|
2090
2043
|
"instanceof": "Function",
|
|
2091
|
-
"tsType": "(
|
|
2044
|
+
"tsType": "(import('../lib/json/JsonParser').ParseFn)"
|
|
2092
2045
|
}
|
|
2093
2046
|
}
|
|
2094
2047
|
},
|
|
@@ -2139,7 +2092,7 @@
|
|
|
2139
2092
|
{
|
|
2140
2093
|
"description": "A custom listen function.",
|
|
2141
2094
|
"instanceof": "Function",
|
|
2142
|
-
"tsType": "
|
|
2095
|
+
"tsType": "import(\"../lib/hmr/lazyCompilationBackend\").Listen"
|
|
2143
2096
|
}
|
|
2144
2097
|
]
|
|
2145
2098
|
},
|
|
@@ -2160,7 +2113,7 @@
|
|
|
2160
2113
|
{
|
|
2161
2114
|
"description": "A custom create server function.",
|
|
2162
2115
|
"instanceof": "Function",
|
|
2163
|
-
"tsType": "(
|
|
2116
|
+
"tsType": "(import(\"../lib/hmr/lazyCompilationBackend\").CreateServerFunction)"
|
|
2164
2117
|
}
|
|
2165
2118
|
]
|
|
2166
2119
|
}
|
|
@@ -2177,7 +2130,7 @@
|
|
|
2177
2130
|
{
|
|
2178
2131
|
"description": "A custom backend.",
|
|
2179
2132
|
"instanceof": "Function",
|
|
2180
|
-
"tsType": "(
|
|
2133
|
+
"tsType": "(import(\"../lib/hmr/LazyCompilationPlugin\").BackEnd)"
|
|
2181
2134
|
},
|
|
2182
2135
|
{
|
|
2183
2136
|
"$ref": "#/definitions/LazyCompilationDefaultBackendOptions"
|
|
@@ -2204,7 +2157,7 @@
|
|
|
2204
2157
|
},
|
|
2205
2158
|
{
|
|
2206
2159
|
"instanceof": "Function",
|
|
2207
|
-
"tsType": "(
|
|
2160
|
+
"tsType": "(import('../lib/hmr/LazyCompilationPlugin').TestFn)"
|
|
2208
2161
|
}
|
|
2209
2162
|
]
|
|
2210
2163
|
}
|
|
@@ -2928,9 +2881,6 @@
|
|
|
2928
2881
|
{
|
|
2929
2882
|
"enum": ["..."]
|
|
2930
2883
|
},
|
|
2931
|
-
{
|
|
2932
|
-
"$ref": "#/definitions/Falsy"
|
|
2933
|
-
},
|
|
2934
2884
|
{
|
|
2935
2885
|
"$ref": "#/definitions/WebpackPluginInstance"
|
|
2936
2886
|
},
|
|
@@ -3090,7 +3040,7 @@
|
|
|
3090
3040
|
},
|
|
3091
3041
|
{
|
|
3092
3042
|
"instanceof": "Function",
|
|
3093
|
-
"tsType": "(
|
|
3043
|
+
"tsType": "(import('../lib/optimize/SplitChunksPlugin').ChunkFilterFn)"
|
|
3094
3044
|
}
|
|
3095
3045
|
]
|
|
3096
3046
|
},
|
|
@@ -3116,7 +3066,7 @@
|
|
|
3116
3066
|
},
|
|
3117
3067
|
{
|
|
3118
3068
|
"instanceof": "Function",
|
|
3119
|
-
"tsType": "(
|
|
3069
|
+
"tsType": "(import(\"../lib/TemplatedPathPlugin\").TemplatePathFn)"
|
|
3120
3070
|
}
|
|
3121
3071
|
]
|
|
3122
3072
|
},
|
|
@@ -3214,7 +3164,7 @@
|
|
|
3214
3164
|
},
|
|
3215
3165
|
{
|
|
3216
3166
|
"instanceof": "Function",
|
|
3217
|
-
"tsType": "(
|
|
3167
|
+
"tsType": "(import('../lib/optimize/SplitChunksPlugin').GetNameFn)"
|
|
3218
3168
|
}
|
|
3219
3169
|
]
|
|
3220
3170
|
},
|
|
@@ -3339,7 +3289,7 @@
|
|
|
3339
3289
|
},
|
|
3340
3290
|
{
|
|
3341
3291
|
"instanceof": "Function",
|
|
3342
|
-
"tsType": "(
|
|
3292
|
+
"tsType": "(import('../lib/optimize/SplitChunksPlugin').ChunkFilterFn)"
|
|
3343
3293
|
}
|
|
3344
3294
|
]
|
|
3345
3295
|
},
|
|
@@ -3382,7 +3332,7 @@
|
|
|
3382
3332
|
},
|
|
3383
3333
|
{
|
|
3384
3334
|
"instanceof": "Function",
|
|
3385
|
-
"tsType": "(
|
|
3335
|
+
"tsType": "(import('../lib/optimize/SplitChunksPlugin').ChunkFilterFn)"
|
|
3386
3336
|
}
|
|
3387
3337
|
]
|
|
3388
3338
|
},
|
|
@@ -3438,7 +3388,7 @@
|
|
|
3438
3388
|
},
|
|
3439
3389
|
{
|
|
3440
3390
|
"instanceof": "Function",
|
|
3441
|
-
"tsType": "(
|
|
3391
|
+
"tsType": "(import(\"../lib/TemplatedPathPlugin\").TemplatePathFn)"
|
|
3442
3392
|
}
|
|
3443
3393
|
]
|
|
3444
3394
|
},
|
|
@@ -3520,7 +3470,7 @@
|
|
|
3520
3470
|
},
|
|
3521
3471
|
{
|
|
3522
3472
|
"instanceof": "Function",
|
|
3523
|
-
"tsType": "(
|
|
3473
|
+
"tsType": "(import('../lib/optimize/SplitChunksPlugin').GetNameFn)"
|
|
3524
3474
|
}
|
|
3525
3475
|
]
|
|
3526
3476
|
},
|
|
@@ -3956,6 +3906,9 @@
|
|
|
3956
3906
|
"asset": {
|
|
3957
3907
|
"$ref": "#/definitions/AssetParserOptions"
|
|
3958
3908
|
},
|
|
3909
|
+
"asset/bytes": {
|
|
3910
|
+
"$ref": "#/definitions/EmptyParserOptions"
|
|
3911
|
+
},
|
|
3959
3912
|
"asset/inline": {
|
|
3960
3913
|
"$ref": "#/definitions/EmptyParserOptions"
|
|
3961
3914
|
},
|
|
@@ -4063,6 +4016,21 @@
|
|
|
4063
4016
|
]
|
|
4064
4017
|
}
|
|
4065
4018
|
},
|
|
4019
|
+
"PluginsNormalized": {
|
|
4020
|
+
"description": "Add additional plugins to the compiler.",
|
|
4021
|
+
"type": "array",
|
|
4022
|
+
"items": {
|
|
4023
|
+
"description": "Plugin of type object or instanceof Function.",
|
|
4024
|
+
"anyOf": [
|
|
4025
|
+
{
|
|
4026
|
+
"$ref": "#/definitions/WebpackPluginInstance"
|
|
4027
|
+
},
|
|
4028
|
+
{
|
|
4029
|
+
"$ref": "#/definitions/WebpackPluginFunction"
|
|
4030
|
+
}
|
|
4031
|
+
]
|
|
4032
|
+
}
|
|
4033
|
+
},
|
|
4066
4034
|
"Profile": {
|
|
4067
4035
|
"description": "Capture timing information for each module.",
|
|
4068
4036
|
"type": "boolean"
|
|
@@ -4086,7 +4054,7 @@
|
|
|
4086
4054
|
},
|
|
4087
4055
|
{
|
|
4088
4056
|
"instanceof": "Function",
|
|
4089
|
-
"tsType": "(
|
|
4057
|
+
"tsType": "(import(\"../lib/TemplatedPathPlugin\").TemplatePathFn)"
|
|
4090
4058
|
}
|
|
4091
4059
|
]
|
|
4092
4060
|
},
|
|
@@ -4722,6 +4690,10 @@
|
|
|
4722
4690
|
}
|
|
4723
4691
|
]
|
|
4724
4692
|
},
|
|
4693
|
+
"extractSourceMap": {
|
|
4694
|
+
"description": "Enable/Disable extracting source map.",
|
|
4695
|
+
"type": "boolean"
|
|
4696
|
+
},
|
|
4725
4697
|
"generator": {
|
|
4726
4698
|
"description": "The options for the module generator.",
|
|
4727
4699
|
"type": "object"
|
|
@@ -5010,6 +4982,21 @@
|
|
|
5010
4982
|
}
|
|
5011
4983
|
}
|
|
5012
4984
|
},
|
|
4985
|
+
"contextModule": {
|
|
4986
|
+
"description": "Options for snapshotting the context module to determine if it needs to be built again.",
|
|
4987
|
+
"type": "object",
|
|
4988
|
+
"additionalProperties": false,
|
|
4989
|
+
"properties": {
|
|
4990
|
+
"hash": {
|
|
4991
|
+
"description": "Use hashes of the content of the files/directories to determine invalidation.",
|
|
4992
|
+
"type": "boolean"
|
|
4993
|
+
},
|
|
4994
|
+
"timestamp": {
|
|
4995
|
+
"description": "Use timestamps of the files/directories to determine invalidation.",
|
|
4996
|
+
"type": "boolean"
|
|
4997
|
+
}
|
|
4998
|
+
}
|
|
4999
|
+
},
|
|
5013
5000
|
"immutablePaths": {
|
|
5014
5001
|
"description": "List of paths that are managed by a package manager and contain a version or hash in its path so all files are immutable.",
|
|
5015
5002
|
"type": "array",
|
|
@@ -5172,7 +5159,17 @@
|
|
|
5172
5159
|
},
|
|
5173
5160
|
"children": {
|
|
5174
5161
|
"description": "Add children information.",
|
|
5175
|
-
"
|
|
5162
|
+
"anyOf": [
|
|
5163
|
+
{
|
|
5164
|
+
"type": "array",
|
|
5165
|
+
"items": {
|
|
5166
|
+
"$ref": "#/definitions/StatsValue"
|
|
5167
|
+
}
|
|
5168
|
+
},
|
|
5169
|
+
{
|
|
5170
|
+
"$ref": "#/definitions/StatsValue"
|
|
5171
|
+
}
|
|
5172
|
+
]
|
|
5176
5173
|
},
|
|
5177
5174
|
"chunkGroupAuxiliary": {
|
|
5178
5175
|
"description": "Display auxiliary assets in chunk groups.",
|
|
@@ -5676,7 +5673,7 @@
|
|
|
5676
5673
|
},
|
|
5677
5674
|
{
|
|
5678
5675
|
"instanceof": "Function",
|
|
5679
|
-
"tsType": "(
|
|
5676
|
+
"tsType": "(import(\"../lib/stats/DefaultStatsPresetPlugin\").WarningFilterFn)"
|
|
5680
5677
|
}
|
|
5681
5678
|
]
|
|
5682
5679
|
},
|
|
@@ -5865,7 +5862,7 @@
|
|
|
5865
5862
|
"$ref": "#/definitions/Performance"
|
|
5866
5863
|
},
|
|
5867
5864
|
"plugins": {
|
|
5868
|
-
"$ref": "#/definitions/
|
|
5865
|
+
"$ref": "#/definitions/PluginsNormalized"
|
|
5869
5866
|
},
|
|
5870
5867
|
"profile": {
|
|
5871
5868
|
"$ref": "#/definitions/Profile"
|
|
@@ -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 n(t,{instancePath:
|
|
6
|
+
"use strict";function n(t,{instancePath:s="",parentData:e,parentDataProperty:l,rootData:a=t}={}){let o=null,r=0;const u=r;let i=!1;const p=r;if(r===p)if(Array.isArray(t)){const n=t.length;for(let s=0;s<n;s++){let n=t[s];const e=r,l=r;let a=!1,u=null;const i=r,p=r;let f=!1;const h=r;if(!(n instanceof RegExp)){const n={params:{}};null===o?o=[n]:o.push(n),r++}var c=h===r;if(f=f||c,!f){const t=r;if(r===t)if("string"==typeof n){if(n.length<1){const n={params:{}};null===o?o=[n]:o.push(n),r++}}else{const n={params:{type:"string"}};null===o?o=[n]:o.push(n),r++}if(c=t===r,f=f||c,!f){const t=r;if(!(n instanceof Function)){const n={params:{}};null===o?o=[n]:o.push(n),r++}c=t===r,f=f||c}}if(f)r=p,null!==o&&(p?o.length=p:o=null);else{const n={params:{}};null===o?o=[n]:o.push(n),r++}if(i===r&&(a=!0,u=0),a)r=l,null!==o&&(l?o.length=l:o=null);else{const n={params:{passingSchemas:u}};null===o?o=[n]:o.push(n),r++}if(e!==r)break}}else{const n={params:{type:"array"}};null===o?o=[n]:o.push(n),r++}var f=p===r;if(i=i||f,!i){const n=r,s=r;let e=!1;const l=r;if(!(t instanceof RegExp)){const n={params:{}};null===o?o=[n]:o.push(n),r++}var h=l===r;if(e=e||h,!e){const n=r;if(r===n)if("string"==typeof t){if(t.length<1){const n={params:{}};null===o?o=[n]:o.push(n),r++}}else{const n={params:{type:"string"}};null===o?o=[n]:o.push(n),r++}if(h=n===r,e=e||h,!e){const n=r;if(!(t instanceof Function)){const n={params:{}};null===o?o=[n]:o.push(n),r++}h=n===r,e=e||h}}if(e)r=s,null!==o&&(s?o.length=s:o=null);else{const n={params:{}};null===o?o=[n]:o.push(n),r++}f=n===r,i=i||f}if(!i){const t={params:{}};return null===o?o=[t]:o.push(t),r++,n.errors=o,!1}return r=u,null!==o&&(u?o.length=u:o=null),n.errors=o,0===r}function t(s,{instancePath:e="",parentData:l,parentDataProperty:a,rootData:o=s}={}){let r=null,u=0;const i=u;let p=!1;const c=u;if(u===c)if("string"==typeof s){if(s.length<1){const n={params:{}};null===r?r=[n]:r.push(n),u++}}else{const n={params:{type:"string"}};null===r?r=[n]:r.push(n),u++}var f=c===u;if(p=p||f,!p){const t=u;if(u===t)if(s&&"object"==typeof s&&!Array.isArray(s)){let t;if(void 0===s.banner&&(t="banner")){const n={params:{missingProperty:t}};null===r?r=[n]:r.push(n),u++}else{const t=u;for(const n in s)if("banner"!==n&&"entryOnly"!==n&&"exclude"!==n&&"footer"!==n&&"include"!==n&&"raw"!==n&&"stage"!==n&&"test"!==n){const t={params:{additionalProperty:n}};null===r?r=[t]:r.push(t),u++;break}if(t===u){if(void 0!==s.banner){let n=s.banner;const t=u,e=u;let l=!1;const a=u;if("string"!=typeof n){const n={params:{type:"string"}};null===r?r=[n]:r.push(n),u++}var h=a===u;if(l=l||h,!l){const t=u;if(!(n instanceof Function)){const n={params:{}};null===r?r=[n]:r.push(n),u++}h=t===u,l=l||h}if(l)u=e,null!==r&&(e?r.length=e:r=null);else{const n={params:{}};null===r?r=[n]:r.push(n),u++}var m=t===u}else m=!0;if(m){if(void 0!==s.entryOnly){const n=u;if("boolean"!=typeof s.entryOnly){const n={params:{type:"boolean"}};null===r?r=[n]:r.push(n),u++}m=n===u}else m=!0;if(m){if(void 0!==s.exclude){const t=u,l=u;let a=!1,i=null;const p=u;if(n(s.exclude,{instancePath:e+"/exclude",parentData:s,parentDataProperty:"exclude",rootData:o})||(r=null===r?n.errors:r.concat(n.errors),u=r.length),p===u&&(a=!0,i=0),a)u=l,null!==r&&(l?r.length=l:r=null);else{const n={params:{passingSchemas:i}};null===r?r=[n]:r.push(n),u++}m=t===u}else m=!0;if(m){if(void 0!==s.footer){const n=u;if("boolean"!=typeof s.footer){const n={params:{type:"boolean"}};null===r?r=[n]:r.push(n),u++}m=n===u}else m=!0;if(m){if(void 0!==s.include){const t=u,l=u;let a=!1,i=null;const p=u;if(n(s.include,{instancePath:e+"/include",parentData:s,parentDataProperty:"include",rootData:o})||(r=null===r?n.errors:r.concat(n.errors),u=r.length),p===u&&(a=!0,i=0),a)u=l,null!==r&&(l?r.length=l:r=null);else{const n={params:{passingSchemas:i}};null===r?r=[n]:r.push(n),u++}m=t===u}else m=!0;if(m){if(void 0!==s.raw){const n=u;if("boolean"!=typeof s.raw){const n={params:{type:"boolean"}};null===r?r=[n]:r.push(n),u++}m=n===u}else m=!0;if(m){if(void 0!==s.stage){const n=u;if("number"!=typeof s.stage){const n={params:{type:"number"}};null===r?r=[n]:r.push(n),u++}m=n===u}else m=!0;if(m)if(void 0!==s.test){const t=u,l=u;let a=!1,i=null;const p=u;if(n(s.test,{instancePath:e+"/test",parentData:s,parentDataProperty:"test",rootData:o})||(r=null===r?n.errors:r.concat(n.errors),u=r.length),p===u&&(a=!0,i=0),a)u=l,null!==r&&(l?r.length=l:r=null);else{const n={params:{passingSchemas:i}};null===r?r=[n]:r.push(n),u++}m=t===u}else m=!0}}}}}}}}}else{const n={params:{type:"object"}};null===r?r=[n]:r.push(n),u++}if(f=t===u,p=p||f,!p){const n=u;if(!(s instanceof Function)){const n={params:{}};null===r?r=[n]:r.push(n),u++}f=n===u,p=p||f}}if(!p){const n={params:{}};return null===r?r=[n]:r.push(n),u++,t.errors=r,!1}return u=i,null!==r&&(i?r.length=i:r=null),t.errors=r,0===u}module.exports=t,module.exports.default=t;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"checkResource": {
|
|
26
26
|
"description": "A filter function for resource and context.",
|
|
27
27
|
"instanceof": "Function",
|
|
28
|
-
"tsType": "((
|
|
28
|
+
"tsType": "(import(\"../../lib/IgnorePlugin\").CheckResourceFn)"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"required": ["checkResource"]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"HandlerFunction": {
|
|
4
4
|
"description": "Function that executes for every progress step.",
|
|
5
5
|
"instanceof": "Function",
|
|
6
|
-
"tsType": "((
|
|
6
|
+
"tsType": "(import(\"../../lib/ProgressPlugin\").HandlerFn)"
|
|
7
7
|
},
|
|
8
8
|
"ProgressPluginOptions": {
|
|
9
9
|
"description": "Options object for the ProgressPlugin.",
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
|
4
4
|
* Run `yarn fix:special` to update
|
|
5
5
|
*/
|
|
6
|
-
const e=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;module.exports=l,module.exports.default=l;const n={definitions:{rule:{anyOf:[{instanceof:"RegExp"},{type:"string",minLength:1}]},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}]},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:{$ref:"#/definitions/rules"}}},t=Object.prototype.hasOwnProperty;function s(e,{instancePath:n="",parentData:t,parentDataProperty:l,rootData:r=e}={}){let o=null,a=0;const i=a;let u=!1;const p=a;if(a===p)if(Array.isArray(e)){const n=e.length;for(let t=0;t<n;t++){let n=e[t];const s=a,l=a;let r=!1,i=null;const u=a,p=a;let c=!1;const m=a;if(!(n instanceof RegExp)){const e={params:{}};null===o?o=[e]:o.push(e),a++}var f=m===a;if(c=c||f,!c){const e=a;if(a===e)if("string"==typeof n){if(n.length<1){const e={params:{}};null===o?o=[e]:o.push(e),a++}}else{const e={params:{type:"string"}};null===o?o=[e]:o.push(e),a++}f=e===a,c=c||f}if(c)a=p,null!==o&&(p?o.length=p:o=null);else{const e={params:{}};null===o?o=[e]:o.push(e),a++}if(u===a&&(r=!0,i=0),r)a=l,null!==o&&(l?o.length=l:o=null);else{const e={params:{passingSchemas:i}};null===o?o=[e]:o.push(e),a++}if(s!==a)break}}else{const e={params:{type:"array"}};null===o?o=[e]:o.push(e),a++}var c=p===a;if(u=u||c,!u){const n=a,t=a;let s=!1;const l=a;if(!(e instanceof RegExp)){const e={params:{}};null===o?o=[e]:o.push(e),a++}var m=l===a;if(s=s||m,!s){const n=a;if(a===n)if("string"==typeof e){if(e.length<1){const e={params:{}};null===o?o=[e]:o.push(e),a++}}else{const e={params:{type:"string"}};null===o?o=[e]:o.push(e),a++}m=n===a,s=s||m}if(s)a=t,null!==o&&(t?o.length=t:o=null);else{const e={params:{}};null===o?o=[e]:o.push(e),a++}c=n===a,u=u||c}if(!u){const e={params:{}};return null===o?o=[e]:o.push(e),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 e in r)if(!t.call(n.properties,e))return l.errors=[{params:{additionalProperty:e}}],!1;if(a===f){if(void 0!==r.append){let e=r.append;const n=f,t=f;let s=!1;const o=f;if(!1!==e&&null!==e){const e={params:{}};null===p?p=[e]:p.push(e),f++}var c=o===f;if(s=s||c,!s){const n=f;if(f===n)if("string"==typeof e){if(e.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}if(c=n===f,s=s||c,!s){const n=f;if(!(e instanceof Function)){const e={params:{}};null===p?p=[e]:p.push(e),f++}c=n===f,s=s||c}}if(!s){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null);var m=n===f}else m=!0;if(m){if(void 0!==r.columns){const e=f;if("boolean"!=typeof r.columns)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.debugIds){const e=f;if("boolean"!=typeof r.debugIds)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.exclude){const e=f,n=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 e={params:{passingSchemas:a}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),m=e===f}else m=!0;if(m){if(void 0!==r.fallbackModuleFilenameTemplate){let e=r.fallbackModuleFilenameTemplate;const n=f,t=f;let s=!1;const o=f;if(f===o)if("string"==typeof e){if(e.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}var h=o===f;if(s=s||h,!s){const n=f;if(!(e instanceof Function)){const e={params:{}};null===p?p=[e]:p.push(e),f++}h=n===f,s=s||h}if(!s){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.fileContext){const e=f;if("string"!=typeof r.fileContext)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.filename){let n=r.filename;const t=f,s=f;let o=!1;const a=f;if(!1!==n&&null!==n){const e={params:{}};null===p?p=[e]:p.push(e),f++}var y=a===f;if(o=o||y,!o){const t=f;if(f===t)if("string"==typeof n){if(n.includes("!")||!1!==e.test(n)){const e={params:{}};null===p?p=[e]:p.push(e),f++}else if(n.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}y=t===f,o=o||y}if(!o){const e={params:{}};return null===p?p=[e]:p.push(e),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.include){const e=f,n=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 e={params:{passingSchemas:a}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),m=e===f}else m=!0;if(m){if(void 0!==r.module){const e=f;if("boolean"!=typeof r.module)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.moduleFilenameTemplate){let e=r.moduleFilenameTemplate;const n=f,t=f;let s=!1;const o=f;if(f===o)if("string"==typeof e){if(e.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}var g=o===f;if(s=s||g,!s){const n=f;if(!(e instanceof Function)){const e={params:{}};null===p?p=[e]:p.push(e),f++}g=n===f,s=s||g}if(!s){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.namespace){const e=f;if("string"!=typeof r.namespace)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.noSources){const e=f;if("boolean"!=typeof r.noSources)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.publicPath){const e=f;if("string"!=typeof r.publicPath)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.sourceRoot){const e=f;if("string"!=typeof r.sourceRoot)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m)if(void 0!==r.test){const e=f;s(r.test,{instancePath:o+"/test",parentData:r,parentDataProperty:"test",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),m=e===f}else m=!0}}}}}}}}}}}}}}}}return l.errors=p,0===f}
|
|
6
|
+
const e=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;module.exports=l,module.exports.default=l;const n={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}]},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:{$ref:"#/definitions/rules"}}},t=Object.prototype.hasOwnProperty;function s(e,{instancePath:n="",parentData:t,parentDataProperty:l,rootData:r=e}={}){let o=null,a=0;const i=a;let u=!1;const p=a;if(a===p)if(Array.isArray(e)){const n=e.length;for(let t=0;t<n;t++){let n=e[t];const s=a,l=a;let r=!1,i=null;const u=a,p=a;let c=!1;const m=a;if(!(n instanceof RegExp)){const e={params:{}};null===o?o=[e]:o.push(e),a++}var f=m===a;if(c=c||f,!c){const e=a;if(a===e)if("string"==typeof n){if(n.length<1){const e={params:{}};null===o?o=[e]:o.push(e),a++}}else{const e={params:{type:"string"}};null===o?o=[e]:o.push(e),a++}if(f=e===a,c=c||f,!c){const e=a;if(!(n instanceof Function)){const e={params:{}};null===o?o=[e]:o.push(e),a++}f=e===a,c=c||f}}if(c)a=p,null!==o&&(p?o.length=p:o=null);else{const e={params:{}};null===o?o=[e]:o.push(e),a++}if(u===a&&(r=!0,i=0),r)a=l,null!==o&&(l?o.length=l:o=null);else{const e={params:{passingSchemas:i}};null===o?o=[e]:o.push(e),a++}if(s!==a)break}}else{const e={params:{type:"array"}};null===o?o=[e]:o.push(e),a++}var c=p===a;if(u=u||c,!u){const n=a,t=a;let s=!1;const l=a;if(!(e instanceof RegExp)){const e={params:{}};null===o?o=[e]:o.push(e),a++}var m=l===a;if(s=s||m,!s){const n=a;if(a===n)if("string"==typeof e){if(e.length<1){const e={params:{}};null===o?o=[e]:o.push(e),a++}}else{const e={params:{type:"string"}};null===o?o=[e]:o.push(e),a++}if(m=n===a,s=s||m,!s){const n=a;if(!(e instanceof Function)){const e={params:{}};null===o?o=[e]:o.push(e),a++}m=n===a,s=s||m}}if(s)a=t,null!==o&&(t?o.length=t:o=null);else{const e={params:{}};null===o?o=[e]:o.push(e),a++}c=n===a,u=u||c}if(!u){const e={params:{}};return null===o?o=[e]:o.push(e),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 e in r)if(!t.call(n.properties,e))return l.errors=[{params:{additionalProperty:e}}],!1;if(a===f){if(void 0!==r.append){let e=r.append;const n=f,t=f;let s=!1;const o=f;if(!1!==e&&null!==e){const e={params:{}};null===p?p=[e]:p.push(e),f++}var c=o===f;if(s=s||c,!s){const n=f;if(f===n)if("string"==typeof e){if(e.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}if(c=n===f,s=s||c,!s){const n=f;if(!(e instanceof Function)){const e={params:{}};null===p?p=[e]:p.push(e),f++}c=n===f,s=s||c}}if(!s){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null);var m=n===f}else m=!0;if(m){if(void 0!==r.columns){const e=f;if("boolean"!=typeof r.columns)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.debugIds){const e=f;if("boolean"!=typeof r.debugIds)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.exclude){const e=f,n=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 e={params:{passingSchemas:a}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),m=e===f}else m=!0;if(m){if(void 0!==r.fallbackModuleFilenameTemplate){let e=r.fallbackModuleFilenameTemplate;const n=f,t=f;let s=!1;const o=f;if(f===o)if("string"==typeof e){if(e.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}var h=o===f;if(s=s||h,!s){const n=f;if(!(e instanceof Function)){const e={params:{}};null===p?p=[e]:p.push(e),f++}h=n===f,s=s||h}if(!s){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.fileContext){const e=f;if("string"!=typeof r.fileContext)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.filename){let n=r.filename;const t=f,s=f;let o=!1;const a=f;if(!1!==n&&null!==n){const e={params:{}};null===p?p=[e]:p.push(e),f++}var y=a===f;if(o=o||y,!o){const t=f;if(f===t)if("string"==typeof n){if(n.includes("!")||!1!==e.test(n)){const e={params:{}};null===p?p=[e]:p.push(e),f++}else if(n.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}y=t===f,o=o||y}if(!o){const e={params:{}};return null===p?p=[e]:p.push(e),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.include){const e=f,n=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 e={params:{passingSchemas:a}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=n,null!==p&&(n?p.length=n:p=null),m=e===f}else m=!0;if(m){if(void 0!==r.module){const e=f;if("boolean"!=typeof r.module)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.moduleFilenameTemplate){let e=r.moduleFilenameTemplate;const n=f,t=f;let s=!1;const o=f;if(f===o)if("string"==typeof e){if(e.length<1){const e={params:{}};null===p?p=[e]:p.push(e),f++}}else{const e={params:{type:"string"}};null===p?p=[e]:p.push(e),f++}var g=o===f;if(s=s||g,!s){const n=f;if(!(e instanceof Function)){const e={params:{}};null===p?p=[e]:p.push(e),f++}g=n===f,s=s||g}if(!s){const e={params:{}};return null===p?p=[e]:p.push(e),f++,l.errors=p,!1}f=t,null!==p&&(t?p.length=t:p=null),m=n===f}else m=!0;if(m){if(void 0!==r.namespace){const e=f;if("string"!=typeof r.namespace)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.noSources){const e=f;if("boolean"!=typeof r.noSources)return l.errors=[{params:{type:"boolean"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.publicPath){const e=f;if("string"!=typeof r.publicPath)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m){if(void 0!==r.sourceRoot){const e=f;if("string"!=typeof r.sourceRoot)return l.errors=[{params:{type:"string"}}],!1;m=e===f}else m=!0;if(m)if(void 0!==r.test){const e=f;s(r.test,{instancePath:o+"/test",parentData:r,parentDataProperty:"test",rootData:u})||(p=null===p?s.errors:p.concat(s.errors),f=p.length),m=e===f}else m=!0}}}}}}}}}}}}}}}}return l.errors=p,0===f}
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
{
|
|
11
11
|
"type": "string",
|
|
12
12
|
"minLength": 1
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"instanceof": "Function",
|
|
16
|
+
"tsType": "((str: string) => boolean)"
|
|
13
17
|
}
|
|
14
18
|
]
|
|
15
19
|
},
|
|
@@ -50,7 +54,7 @@
|
|
|
50
54
|
},
|
|
51
55
|
{
|
|
52
56
|
"instanceof": "Function",
|
|
53
|
-
"tsType": "(
|
|
57
|
+
"tsType": "(import(\"../../lib/TemplatedPathPlugin\").TemplatePathFn)"
|
|
54
58
|
}
|
|
55
59
|
]
|
|
56
60
|
},
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file was automatically generated.
|
|
3
|
+
* DO NOT MODIFY BY HAND.
|
|
4
|
+
* Run `yarn fix:special` to update
|
|
5
|
+
*/
|
|
6
|
+
declare const check: (options: import("../../../declarations/plugins/ids/HashedModuleIdsPlugin").HashedModuleIdsPluginOptions) => boolean;
|
|
7
|
+
export = check;
|
|
@@ -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 t=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;function e(s,{instancePath:r="",parentData:n,parentDataProperty:a,rootData:i=s}={}){let o=null,l=0;if(0===l){if(!s||"object"!=typeof s||Array.isArray(s))return e.errors=[{params:{type:"object"}}],!1;{const r=l;for(const t in s)if("context"!==t&&"hashDigest"!==t&&"hashDigestLength"!==t&&"hashFunction"!==t)return e.errors=[{params:{additionalProperty:t}}],!1;if(r===l){if(void 0!==s.context){let r=s.context;const n=l;if(l===n){if("string"!=typeof r)return e.errors=[{params:{type:"string"}}],!1;if(r.includes("!")||!0!==t.test(r))return e.errors=[{params:{}}],!1}var u=n===l}else u=!0;if(u){if(void 0!==s.hashDigest){let t=s.hashDigest;const r=l;if("base64"!==t&&"base64url"!==t&&"hex"!==t&&"binary"!==t&&"utf8"!==t&&"utf-8"!==t&&"utf16le"!==t&&"utf-16le"!==t&&"latin1"!==t&&"ascii"!==t&&"ucs2"!==t&&"ucs-2"!==t)return e.errors=[{params:{}}],!1;u=r===l}else u=!0;if(u){if(void 0!==s.hashDigestLength){let t=s.hashDigestLength;const r=l;if(l===r){if("number"!=typeof t)return e.errors=[{params:{type:"number"}}],!1;if(t<1||isNaN(t))return e.errors=[{params:{comparison:">=",limit:1}}],!1}u=r===l}else u=!0;if(u)if(void 0!==s.hashFunction){let t=s.hashFunction;const r=l,n=l;let a=!1,i=null;const c=l,p=l;let h=!1;const m=l;if(l===m)if("string"==typeof t){if(t.length<1){const t={params:{}};null===o?o=[t]:o.push(t),l++}}else{const t={params:{type:"string"}};null===o?o=[t]:o.push(t),l++}var f=m===l;if(h=h||f,!h){const e=l;if(!(t instanceof Function)){const t={params:{}};null===o?o=[t]:o.push(t),l++}f=e===l,h=h||f}if(h)l=p,null!==o&&(p?o.length=p:o=null);else{const t={params:{}};null===o?o=[t]:o.push(t),l++}if(c===l&&(a=!0,i=0),!a){const t={params:{passingSchemas:i}};return null===o?o=[t]:o.push(t),l++,e.errors=o,!1}l=n,null!==o&&(n?o.length=n:o=null),u=r===l}else u=!0}}}}}return e.errors=o,0===l}module.exports=e,module.exports.default=e;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"instanceof": "Function",
|
|
12
|
-
"tsType": "typeof import('
|
|
12
|
+
"tsType": "typeof import('../../../lib/util/Hash')"
|
|
13
13
|
}
|
|
14
14
|
]
|
|
15
15
|
}
|
|
@@ -25,7 +25,20 @@
|
|
|
25
25
|
},
|
|
26
26
|
"hashDigest": {
|
|
27
27
|
"description": "The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.",
|
|
28
|
-
"enum": [
|
|
28
|
+
"enum": [
|
|
29
|
+
"base64",
|
|
30
|
+
"base64url",
|
|
31
|
+
"hex",
|
|
32
|
+
"binary",
|
|
33
|
+
"utf8",
|
|
34
|
+
"utf-8",
|
|
35
|
+
"utf16le",
|
|
36
|
+
"utf-16le",
|
|
37
|
+
"latin1",
|
|
38
|
+
"ascii",
|
|
39
|
+
"ucs2",
|
|
40
|
+
"ucs-2"
|
|
41
|
+
]
|
|
29
42
|
},
|
|
30
43
|
"hashDigestLength": {
|
|
31
44
|
"description": "The prefix length of the hash digest to use, defaults to 4.",
|