webpack 5.101.3 → 5.102.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 +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 +35 -25
- package/lib/ChunkGroup.js +8 -10
- package/lib/ChunkTemplate.js +1 -1
- package/lib/CleanPlugin.js +3 -3
- package/lib/CodeGenerationResults.js +2 -1
- package/lib/CompatibilityPlugin.js +29 -12
- package/lib/Compilation.js +204 -185
- 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 +22 -20
- package/lib/ContextModuleFactory.js +30 -11
- package/lib/ContextReplacementPlugin.js +38 -15
- package/lib/DefinePlugin.js +4 -8
- package/lib/DelegatedModule.js +7 -11
- package/lib/DependenciesBlock.js +0 -2
- package/lib/Dependency.js +9 -11
- package/lib/DependencyTemplates.js +1 -3
- 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 +96 -78
- 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 +41 -24
- 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 +145 -88
- package/lib/NormalModuleFactory.js +59 -40
- 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 +12 -11
- package/lib/SourceMapDevToolModuleOptionsPlugin.js +2 -2
- package/lib/SourceMapDevToolPlugin.js +6 -11
- 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 +166 -0
- package/lib/asset/AssetBytesParser.js +37 -0
- package/lib/asset/AssetGenerator.js +20 -34
- 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/config/defaults.js +155 -21
- package/lib/config/normalization.js +18 -3
- 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 +11 -13
- package/lib/css/CssParser.js +3 -3
- package/lib/css/walkCssTokens.js +1 -1
- 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 +3 -4
- 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 +30 -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/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 +2 -1
- 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 +3 -9
- 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/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 +44 -21
- package/lib/javascript/JavascriptParser.js +119 -54
- 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 +0 -1
- 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/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/NullPrototypeObjectSerializer.js +5 -3
- package/lib/serialization/ObjectMiddleware.js +30 -19
- 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 +178 -94
- 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/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 +0 -1
- 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/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 -1
- 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 -4
- 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 +12 -12
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +77 -93
- 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/schemes/VirtualUrlPlugin.json +3 -3
- package/types.d.ts +1129 -530
- package/SECURITY.md +0 -9
|
@@ -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
|
},
|
|
@@ -2088,7 +2028,7 @@
|
|
|
2088
2028
|
"parse": {
|
|
2089
2029
|
"description": "Function to parser content and return JSON.",
|
|
2090
2030
|
"instanceof": "Function",
|
|
2091
|
-
"tsType": "(
|
|
2031
|
+
"tsType": "(import('../lib/json/JsonParser').ParseFn)"
|
|
2092
2032
|
}
|
|
2093
2033
|
}
|
|
2094
2034
|
},
|
|
@@ -2139,7 +2079,7 @@
|
|
|
2139
2079
|
{
|
|
2140
2080
|
"description": "A custom listen function.",
|
|
2141
2081
|
"instanceof": "Function",
|
|
2142
|
-
"tsType": "
|
|
2082
|
+
"tsType": "import(\"../lib/hmr/lazyCompilationBackend\").Listen"
|
|
2143
2083
|
}
|
|
2144
2084
|
]
|
|
2145
2085
|
},
|
|
@@ -2160,7 +2100,7 @@
|
|
|
2160
2100
|
{
|
|
2161
2101
|
"description": "A custom create server function.",
|
|
2162
2102
|
"instanceof": "Function",
|
|
2163
|
-
"tsType": "(
|
|
2103
|
+
"tsType": "(import(\"../lib/hmr/lazyCompilationBackend\").CreateServerFunction)"
|
|
2164
2104
|
}
|
|
2165
2105
|
]
|
|
2166
2106
|
}
|
|
@@ -2177,7 +2117,7 @@
|
|
|
2177
2117
|
{
|
|
2178
2118
|
"description": "A custom backend.",
|
|
2179
2119
|
"instanceof": "Function",
|
|
2180
|
-
"tsType": "(
|
|
2120
|
+
"tsType": "(import(\"../lib/hmr/LazyCompilationPlugin\").BackEnd)"
|
|
2181
2121
|
},
|
|
2182
2122
|
{
|
|
2183
2123
|
"$ref": "#/definitions/LazyCompilationDefaultBackendOptions"
|
|
@@ -2204,7 +2144,7 @@
|
|
|
2204
2144
|
},
|
|
2205
2145
|
{
|
|
2206
2146
|
"instanceof": "Function",
|
|
2207
|
-
"tsType": "(
|
|
2147
|
+
"tsType": "(import('../lib/hmr/LazyCompilationPlugin').TestFn)"
|
|
2208
2148
|
}
|
|
2209
2149
|
]
|
|
2210
2150
|
}
|
|
@@ -2928,9 +2868,6 @@
|
|
|
2928
2868
|
{
|
|
2929
2869
|
"enum": ["..."]
|
|
2930
2870
|
},
|
|
2931
|
-
{
|
|
2932
|
-
"$ref": "#/definitions/Falsy"
|
|
2933
|
-
},
|
|
2934
2871
|
{
|
|
2935
2872
|
"$ref": "#/definitions/WebpackPluginInstance"
|
|
2936
2873
|
},
|
|
@@ -3090,7 +3027,7 @@
|
|
|
3090
3027
|
},
|
|
3091
3028
|
{
|
|
3092
3029
|
"instanceof": "Function",
|
|
3093
|
-
"tsType": "(
|
|
3030
|
+
"tsType": "(import('../lib/optimize/SplitChunksPlugin').ChunkFilterFn)"
|
|
3094
3031
|
}
|
|
3095
3032
|
]
|
|
3096
3033
|
},
|
|
@@ -3116,7 +3053,7 @@
|
|
|
3116
3053
|
},
|
|
3117
3054
|
{
|
|
3118
3055
|
"instanceof": "Function",
|
|
3119
|
-
"tsType": "(
|
|
3056
|
+
"tsType": "(import(\"../lib/TemplatedPathPlugin\").TemplatePathFn)"
|
|
3120
3057
|
}
|
|
3121
3058
|
]
|
|
3122
3059
|
},
|
|
@@ -3214,7 +3151,7 @@
|
|
|
3214
3151
|
},
|
|
3215
3152
|
{
|
|
3216
3153
|
"instanceof": "Function",
|
|
3217
|
-
"tsType": "(
|
|
3154
|
+
"tsType": "(import('../lib/optimize/SplitChunksPlugin').GetNameFn)"
|
|
3218
3155
|
}
|
|
3219
3156
|
]
|
|
3220
3157
|
},
|
|
@@ -3339,7 +3276,7 @@
|
|
|
3339
3276
|
},
|
|
3340
3277
|
{
|
|
3341
3278
|
"instanceof": "Function",
|
|
3342
|
-
"tsType": "(
|
|
3279
|
+
"tsType": "(import('../lib/optimize/SplitChunksPlugin').ChunkFilterFn)"
|
|
3343
3280
|
}
|
|
3344
3281
|
]
|
|
3345
3282
|
},
|
|
@@ -3382,7 +3319,7 @@
|
|
|
3382
3319
|
},
|
|
3383
3320
|
{
|
|
3384
3321
|
"instanceof": "Function",
|
|
3385
|
-
"tsType": "(
|
|
3322
|
+
"tsType": "(import('../lib/optimize/SplitChunksPlugin').ChunkFilterFn)"
|
|
3386
3323
|
}
|
|
3387
3324
|
]
|
|
3388
3325
|
},
|
|
@@ -3438,7 +3375,7 @@
|
|
|
3438
3375
|
},
|
|
3439
3376
|
{
|
|
3440
3377
|
"instanceof": "Function",
|
|
3441
|
-
"tsType": "(
|
|
3378
|
+
"tsType": "(import(\"../lib/TemplatedPathPlugin\").TemplatePathFn)"
|
|
3442
3379
|
}
|
|
3443
3380
|
]
|
|
3444
3381
|
},
|
|
@@ -3520,7 +3457,7 @@
|
|
|
3520
3457
|
},
|
|
3521
3458
|
{
|
|
3522
3459
|
"instanceof": "Function",
|
|
3523
|
-
"tsType": "(
|
|
3460
|
+
"tsType": "(import('../lib/optimize/SplitChunksPlugin').GetNameFn)"
|
|
3524
3461
|
}
|
|
3525
3462
|
]
|
|
3526
3463
|
},
|
|
@@ -3956,6 +3893,9 @@
|
|
|
3956
3893
|
"asset": {
|
|
3957
3894
|
"$ref": "#/definitions/AssetParserOptions"
|
|
3958
3895
|
},
|
|
3896
|
+
"asset/bytes": {
|
|
3897
|
+
"$ref": "#/definitions/EmptyParserOptions"
|
|
3898
|
+
},
|
|
3959
3899
|
"asset/inline": {
|
|
3960
3900
|
"$ref": "#/definitions/EmptyParserOptions"
|
|
3961
3901
|
},
|
|
@@ -4063,6 +4003,21 @@
|
|
|
4063
4003
|
]
|
|
4064
4004
|
}
|
|
4065
4005
|
},
|
|
4006
|
+
"PluginsNormalized": {
|
|
4007
|
+
"description": "Add additional plugins to the compiler.",
|
|
4008
|
+
"type": "array",
|
|
4009
|
+
"items": {
|
|
4010
|
+
"description": "Plugin of type object or instanceof Function.",
|
|
4011
|
+
"anyOf": [
|
|
4012
|
+
{
|
|
4013
|
+
"$ref": "#/definitions/WebpackPluginInstance"
|
|
4014
|
+
},
|
|
4015
|
+
{
|
|
4016
|
+
"$ref": "#/definitions/WebpackPluginFunction"
|
|
4017
|
+
}
|
|
4018
|
+
]
|
|
4019
|
+
}
|
|
4020
|
+
},
|
|
4066
4021
|
"Profile": {
|
|
4067
4022
|
"description": "Capture timing information for each module.",
|
|
4068
4023
|
"type": "boolean"
|
|
@@ -4086,7 +4041,7 @@
|
|
|
4086
4041
|
},
|
|
4087
4042
|
{
|
|
4088
4043
|
"instanceof": "Function",
|
|
4089
|
-
"tsType": "(
|
|
4044
|
+
"tsType": "(import(\"../lib/TemplatedPathPlugin\").TemplatePathFn)"
|
|
4090
4045
|
}
|
|
4091
4046
|
]
|
|
4092
4047
|
},
|
|
@@ -4722,6 +4677,10 @@
|
|
|
4722
4677
|
}
|
|
4723
4678
|
]
|
|
4724
4679
|
},
|
|
4680
|
+
"extractSourceMap": {
|
|
4681
|
+
"description": "Enable/Disable extracting source map.",
|
|
4682
|
+
"type": "boolean"
|
|
4683
|
+
},
|
|
4725
4684
|
"generator": {
|
|
4726
4685
|
"description": "The options for the module generator.",
|
|
4727
4686
|
"type": "object"
|
|
@@ -5010,6 +4969,21 @@
|
|
|
5010
4969
|
}
|
|
5011
4970
|
}
|
|
5012
4971
|
},
|
|
4972
|
+
"contextModule": {
|
|
4973
|
+
"description": "Options for snapshotting the context module to determine if it needs to be built again.",
|
|
4974
|
+
"type": "object",
|
|
4975
|
+
"additionalProperties": false,
|
|
4976
|
+
"properties": {
|
|
4977
|
+
"hash": {
|
|
4978
|
+
"description": "Use hashes of the content of the files/directories to determine invalidation.",
|
|
4979
|
+
"type": "boolean"
|
|
4980
|
+
},
|
|
4981
|
+
"timestamp": {
|
|
4982
|
+
"description": "Use timestamps of the files/directories to determine invalidation.",
|
|
4983
|
+
"type": "boolean"
|
|
4984
|
+
}
|
|
4985
|
+
}
|
|
4986
|
+
},
|
|
5013
4987
|
"immutablePaths": {
|
|
5014
4988
|
"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
4989
|
"type": "array",
|
|
@@ -5172,7 +5146,17 @@
|
|
|
5172
5146
|
},
|
|
5173
5147
|
"children": {
|
|
5174
5148
|
"description": "Add children information.",
|
|
5175
|
-
"
|
|
5149
|
+
"anyOf": [
|
|
5150
|
+
{
|
|
5151
|
+
"type": "array",
|
|
5152
|
+
"items": {
|
|
5153
|
+
"$ref": "#/definitions/StatsValue"
|
|
5154
|
+
}
|
|
5155
|
+
},
|
|
5156
|
+
{
|
|
5157
|
+
"$ref": "#/definitions/StatsValue"
|
|
5158
|
+
}
|
|
5159
|
+
]
|
|
5176
5160
|
},
|
|
5177
5161
|
"chunkGroupAuxiliary": {
|
|
5178
5162
|
"description": "Display auxiliary assets in chunk groups.",
|
|
@@ -5676,7 +5660,7 @@
|
|
|
5676
5660
|
},
|
|
5677
5661
|
{
|
|
5678
5662
|
"instanceof": "Function",
|
|
5679
|
-
"tsType": "(
|
|
5663
|
+
"tsType": "(import(\"../lib/stats/DefaultStatsPresetPlugin\").WarningFilterFn)"
|
|
5680
5664
|
}
|
|
5681
5665
|
]
|
|
5682
5666
|
},
|
|
@@ -5865,7 +5849,7 @@
|
|
|
5865
5849
|
"$ref": "#/definitions/Performance"
|
|
5866
5850
|
},
|
|
5867
5851
|
"plugins": {
|
|
5868
|
-
"$ref": "#/definitions/
|
|
5852
|
+
"$ref": "#/definitions/PluginsNormalized"
|
|
5869
5853
|
},
|
|
5870
5854
|
"profile": {
|
|
5871
5855
|
"$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
|
},
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"source": {
|
|
9
9
|
"description": "The source function that provides the virtual content.",
|
|
10
10
|
"instanceof": "Function",
|
|
11
|
-
"tsType": "(
|
|
11
|
+
"tsType": "(import('../../../lib/schemes/VirtualUrlPlugin').SourceFn)"
|
|
12
12
|
},
|
|
13
13
|
"type": {
|
|
14
14
|
"description": "The module type.",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"instanceof": "Function",
|
|
29
|
-
"tsType": "(()
|
|
29
|
+
"tsType": "(import('../../../lib/schemes/VirtualUrlPlugin').VersionFn)"
|
|
30
30
|
}
|
|
31
31
|
]
|
|
32
32
|
}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"instanceof": "Function",
|
|
44
|
-
"tsType": "(
|
|
44
|
+
"tsType": "(import('../../../lib/schemes/VirtualUrlPlugin').SourceFn)"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"$ref": "#/definitions/VirtualModule"
|