webpack 5.104.1 → 5.105.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 +2 -2
- package/bin/webpack.js +6 -3
- package/lib/APIPlugin.js +85 -15
- package/lib/AbstractMethodError.js +1 -0
- package/lib/AsyncDependenciesBlock.js +17 -2
- package/lib/AsyncDependencyToInitialChunkError.js +3 -0
- package/lib/AutomaticPrefetchPlugin.js +1 -1
- package/lib/BannerPlugin.js +5 -1
- package/lib/CacheFacade.js +2 -2
- package/lib/CaseSensitiveModulesWarning.js +1 -0
- package/lib/Chunk.js +9 -5
- package/lib/ChunkGraph.js +30 -9
- package/lib/ChunkGroup.js +6 -3
- package/lib/ChunkRenderError.js +9 -2
- package/lib/CleanPlugin.js +4 -1
- package/lib/CodeGenerationError.js +7 -1
- package/lib/CodeGenerationResults.js +10 -3
- package/lib/CommentCompilationWarning.js +2 -1
- package/lib/Compilation.js +284 -236
- package/lib/Compiler.js +4 -3
- package/lib/ConcatenationScope.js +2 -1
- package/lib/ConcurrentCompilationError.js +3 -3
- package/lib/ContextModule.js +248 -111
- package/lib/ContextModuleFactory.js +14 -2
- package/lib/DefinePlugin.js +15 -8
- package/lib/DelegatedModule.js +6 -0
- package/lib/DelegatedModuleFactoryPlugin.js +2 -0
- package/lib/Dependency.js +6 -1
- package/lib/DependencyTemplates.js +3 -2
- package/lib/DllModule.js +2 -0
- package/lib/DllReferencePlugin.js +1 -0
- package/lib/DotenvPlugin.js +11 -5
- package/lib/DynamicEntryPlugin.js +8 -1
- package/lib/EnvironmentNotSupportAsyncWarning.js +1 -0
- package/lib/EvalSourceMapDevToolPlugin.js +17 -13
- package/lib/ExportsInfo.js +8 -4
- package/lib/ExternalModule.js +16 -0
- package/lib/ExternalModuleFactoryPlugin.js +9 -2
- package/lib/ExternalsPlugin.js +2 -1
- package/lib/FalseIIFEUmdWarning.js +1 -0
- package/lib/FileSystemInfo.js +49 -25
- package/lib/FlagDependencyExportsPlugin.js +8 -1
- package/lib/FlagDependencyUsagePlugin.js +9 -7
- package/lib/HarmonyLinkingError.js +1 -0
- package/lib/HookWebpackError.js +2 -0
- package/lib/HotModuleReplacementPlugin.js +16 -2
- package/lib/IgnoreWarningsPlugin.js +5 -2
- package/lib/InitFragment.js +1 -0
- package/lib/InvalidDependenciesModuleWarning.js +1 -0
- package/lib/LibManifestPlugin.js +1 -0
- package/lib/ManifestPlugin.js +8 -1
- package/lib/Module.js +7 -4
- package/lib/ModuleBuildError.js +3 -1
- package/lib/ModuleDependencyError.js +1 -0
- package/lib/ModuleDependencyWarning.js +1 -0
- package/lib/ModuleError.js +4 -1
- package/lib/ModuleFilenameHelpers.js +4 -2
- package/lib/ModuleGraph.js +3 -0
- package/lib/ModuleGraphConnection.js +10 -1
- package/lib/ModuleHashingError.js +2 -0
- package/lib/ModuleInfoHeaderPlugin.js +6 -1
- package/lib/ModuleNotFoundError.js +1 -0
- package/lib/ModuleParseError.js +5 -1
- package/lib/ModuleProfile.js +1 -1
- package/lib/ModuleRestoreError.js +2 -0
- package/lib/ModuleSourceTypeConstants.js +1 -11
- package/lib/ModuleStoreError.js +2 -0
- package/lib/ModuleWarning.js +3 -1
- package/lib/MultiCompiler.js +11 -7
- package/lib/MultiWatching.js +2 -2
- package/lib/NoModeWarning.js +1 -0
- package/lib/NodeStuffInWebError.js +1 -0
- package/lib/NormalModule.js +28 -5
- package/lib/NormalModuleFactory.js +20 -4
- package/lib/OptionsApply.js +3 -1
- package/lib/ProgressPlugin.js +4 -0
- package/lib/RawModule.js +2 -0
- package/lib/RuntimeModule.js +10 -0
- package/lib/RuntimePlugin.js +7 -9
- package/lib/RuntimeTemplate.js +14 -7
- package/lib/SourceMapDevToolPlugin.js +30 -23
- package/lib/Template.js +10 -5
- package/lib/TemplatedPathPlugin.js +4 -2
- package/lib/UnhandledSchemeError.js +1 -0
- package/lib/UnsupportedFeatureWarning.js +3 -0
- package/lib/WarnDeprecatedOptionPlugin.js +1 -0
- package/lib/WatchIgnorePlugin.js +1 -1
- package/lib/Watching.js +5 -0
- package/lib/WebpackError.js +4 -0
- package/lib/WebpackOptionsApply.js +61 -41
- package/lib/asset/AssetBytesGenerator.js +1 -0
- package/lib/asset/AssetGenerator.js +18 -3
- package/lib/asset/AssetModulesPlugin.js +33 -2
- package/lib/asset/AssetParser.js +4 -0
- package/lib/asset/AssetSourceGenerator.js +1 -0
- package/lib/asset/RawDataUrlModule.js +4 -0
- package/lib/async-modules/AwaitDependenciesInitFragment.js +4 -1
- package/lib/buildChunkGraph.js +31 -2
- package/lib/cache/MemoryWithGcCachePlugin.js +1 -0
- package/lib/cache/PackFileCacheStrategy.js +41 -8
- package/lib/cache/getLazyHashedEtag.js +13 -4
- package/lib/cache/mergeEtags.js +3 -1
- package/lib/cli.js +3 -1
- package/lib/config/defaults.js +65 -44
- package/lib/config/normalization.js +96 -0
- package/lib/container/ContainerEntryDependency.js +3 -0
- package/lib/container/ContainerEntryModule.js +7 -0
- package/lib/container/ContainerExposedDependency.js +1 -0
- package/lib/container/FallbackDependency.js +1 -0
- package/lib/container/FallbackItemDependency.js +1 -0
- package/lib/container/FallbackModule.js +4 -0
- package/lib/container/HoistContainerReferencesPlugin.js +6 -0
- package/lib/container/ModuleFederationPlugin.js +1 -1
- package/lib/container/RemoteModule.js +24 -0
- package/lib/css/CssGenerator.js +31 -4
- package/lib/css/CssModulesPlugin.js +26 -30
- package/lib/css/CssParser.js +12 -9
- package/lib/debug/ProfilingPlugin.js +1 -0
- package/lib/dependencies/AMDDefineDependency.js +3 -1
- package/lib/dependencies/AMDDefineDependencyParserPlugin.js +6 -0
- package/lib/dependencies/AMDPlugin.js +1 -1
- package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +7 -1
- package/lib/dependencies/CachedConstDependency.js +1 -0
- package/lib/dependencies/CommonJsDependencyHelpers.js +2 -0
- package/lib/dependencies/CommonJsExportRequireDependency.js +1 -0
- package/lib/dependencies/CommonJsFullRequireDependency.js +2 -0
- package/lib/dependencies/CommonJsImportsParserPlugin.js +3 -0
- package/lib/dependencies/CommonJsRequireContextDependency.js +2 -2
- package/lib/dependencies/CommonJsSelfReferenceDependency.js +1 -0
- package/lib/dependencies/ConstDependency.js +1 -0
- package/lib/dependencies/ContextDependencyHelpers.js +11 -4
- package/lib/dependencies/ContextElementDependency.js +1 -0
- package/lib/dependencies/CriticalDependencyWarning.js +1 -0
- package/lib/dependencies/CssIcssExportDependency.js +7 -4
- package/lib/dependencies/CssIcssSymbolDependency.js +1 -0
- package/lib/dependencies/CssUrlDependency.js +2 -3
- package/lib/dependencies/ExternalModuleInitFragment.js +4 -1
- package/lib/dependencies/ExternalModuleInitFragmentDependency.js +0 -9
- package/lib/dependencies/HarmonyAcceptDependency.js +3 -0
- package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +3 -1
- package/lib/dependencies/HarmonyExportExpressionDependency.js +4 -0
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +8 -1
- package/lib/dependencies/HarmonyExportInitFragment.js +17 -3
- package/lib/dependencies/HarmonyExportSpecifierDependency.js +4 -0
- package/lib/dependencies/HarmonyImportDependency.js +1 -1
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +269 -5
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +22 -3
- package/lib/dependencies/ImportDependency.js +1 -0
- package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +1 -0
- package/lib/dependencies/ImportMetaPlugin.js +53 -11
- package/lib/dependencies/ImportParserPlugin.js +7 -12
- package/lib/dependencies/LoaderPlugin.js +3 -0
- package/lib/dependencies/ModuleDecoratorDependency.js +1 -0
- package/lib/dependencies/ModuleDependency.js +1 -0
- package/lib/dependencies/ModuleInitFragmentDependency.js +87 -0
- package/lib/dependencies/ProvidedDependency.js +1 -0
- package/lib/dependencies/RequireContextPlugin.js +1 -0
- package/lib/dependencies/RequireEnsureDependenciesBlock.js +1 -1
- package/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +7 -2
- package/lib/dependencies/RuntimeRequirementsDependency.js +1 -0
- package/lib/dependencies/WorkerDependency.js +9 -3
- package/lib/dependencies/WorkerPlugin.js +1 -0
- package/lib/dependencies/getFunctionExpression.js +3 -1
- package/lib/electron/ElectronTargetPlugin.js +3 -1
- package/lib/errors/BuildCycleError.js +4 -1
- package/lib/esm/ModuleChunkFormatPlugin.js +6 -4
- package/lib/esm/ModuleChunkLoadingPlugin.js +1 -0
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +1 -0
- package/lib/hmr/LazyCompilationPlugin.js +5 -0
- package/lib/hmr/lazyCompilationBackend.js +3 -2
- package/lib/ids/ChunkModuleIdRangePlugin.js +9 -7
- package/lib/ids/DeterministicChunkIdsPlugin.js +1 -0
- package/lib/ids/DeterministicModuleIdsPlugin.js +1 -0
- package/lib/ids/HashedModuleIdsPlugin.js +3 -8
- package/lib/ids/IdHelpers.js +10 -8
- package/lib/ids/NamedChunkIdsPlugin.js +7 -5
- package/lib/ids/NamedModuleIdsPlugin.js +1 -0
- package/lib/ids/OccurrenceChunkIdsPlugin.js +2 -2
- package/lib/ids/OccurrenceModuleIdsPlugin.js +18 -10
- package/lib/ids/SyncModuleIdsPlugin.js +30 -20
- package/lib/index.js +2 -2
- package/lib/javascript/BasicEvaluatedExpression.js +1 -0
- package/lib/javascript/EnableChunkLoadingPlugin.js +5 -2
- package/lib/javascript/JavascriptModulesPlugin.js +29 -8
- package/lib/javascript/JavascriptParser.js +47 -14
- package/lib/json/JsonGenerator.js +1 -0
- package/lib/json/JsonParser.js +9 -2
- package/lib/library/AbstractLibraryPlugin.js +4 -1
- package/lib/library/AmdLibraryPlugin.js +2 -1
- package/lib/library/AssignLibraryPlugin.js +6 -2
- package/lib/library/EnableLibraryPlugin.js +1 -0
- package/lib/library/ExportPropertyLibraryPlugin.js +1 -1
- package/lib/library/JsonpLibraryPlugin.js +1 -1
- package/lib/library/ModuleLibraryPlugin.js +130 -13
- package/lib/library/SystemLibraryPlugin.js +4 -1
- package/lib/library/UmdLibraryPlugin.js +4 -3
- package/lib/logging/Logger.js +9 -5
- package/lib/logging/createConsoleLogger.js +4 -0
- package/lib/logging/truncateArgs.js +1 -1
- package/lib/node/CommonJsChunkLoadingPlugin.js +6 -4
- package/lib/node/NodeEnvironmentPlugin.js +1 -0
- package/lib/node/NodeTargetPlugin.js +10 -1
- package/lib/node/NodeTemplatePlugin.js +1 -0
- package/lib/node/NodeWatchFileSystem.js +6 -0
- package/lib/node/ReadFileChunkLoadingRuntimeModule.js +1 -0
- package/lib/node/ReadFileCompileAsyncWasmPlugin.js +1 -0
- package/lib/node/ReadFileCompileWasmPlugin.js +1 -0
- package/lib/node/RequireChunkLoadingRuntimeModule.js +1 -0
- package/lib/node/nodeConsole.js +18 -1
- package/lib/optimize/AggressiveMergingPlugin.js +2 -1
- package/lib/optimize/AggressiveSplittingPlugin.js +15 -6
- package/lib/optimize/ConcatenatedModule.js +33 -19
- package/lib/optimize/FlagIncludedChunksPlugin.js +11 -1
- package/lib/optimize/InnerGraph.js +5 -3
- package/lib/optimize/InnerGraphPlugin.js +25 -25
- package/lib/optimize/LimitChunkCountPlugin.js +3 -2
- package/lib/optimize/MangleExportsPlugin.js +14 -2
- package/lib/optimize/MergeDuplicateChunksPlugin.js +5 -1
- package/lib/optimize/MinChunkSizePlugin.js +5 -2
- package/lib/optimize/ModuleConcatenationPlugin.js +19 -4
- package/lib/optimize/RealContentHashPlugin.js +37 -27
- package/lib/optimize/RemoveParentModulesPlugin.js +12 -3
- package/lib/optimize/RuntimeChunkPlugin.js +3 -5
- package/lib/optimize/SideEffectsFlagPlugin.js +3 -0
- package/lib/optimize/SplitChunksPlugin.js +23 -5
- package/lib/performance/AssetsOverSizeLimitWarning.js +6 -2
- package/lib/performance/EntrypointsOverSizeLimitWarning.js +6 -2
- package/lib/performance/NoAsyncChunksWarning.js +1 -0
- package/lib/performance/SizeLimitsPlugin.js +6 -6
- package/lib/prefetch/ChunkPrefetchFunctionRuntimeModule.js +2 -0
- package/lib/prefetch/ChunkPrefetchStartupRuntimeModule.js +3 -1
- package/lib/prefetch/ChunkPrefetchTriggerRuntimeModule.js +1 -0
- package/lib/prefetch/ChunkPreloadTriggerRuntimeModule.js +1 -0
- package/lib/rules/BasicEffectRulePlugin.js +2 -0
- package/lib/rules/BasicMatcherRulePlugin.js +3 -0
- package/lib/rules/ObjectMatcherRulePlugin.js +5 -1
- package/lib/rules/RuleSetCompiler.js +6 -0
- package/lib/runtime/AsyncModuleRuntimeModule.js +1 -0
- package/lib/runtime/ChunkNameRuntimeModule.js +1 -0
- package/lib/runtime/CompatRuntimeModule.js +1 -0
- package/lib/runtime/EnsureChunkRuntimeModule.js +1 -0
- package/lib/runtime/GetChunkFilenameRuntimeModule.js +5 -0
- package/lib/runtime/GetFullHashRuntimeModule.js +1 -0
- package/lib/runtime/GetMainFilenameRuntimeModule.js +2 -0
- package/lib/runtime/GetTrustedTypesPolicyRuntimeModule.js +1 -0
- package/lib/runtime/LoadScriptRuntimeModule.js +2 -0
- package/lib/runtime/MakeDeferredNamespaceObjectRuntime.js +16 -32
- package/lib/runtime/PublicPathRuntimeModule.js +1 -0
- package/lib/runtime/StartupChunkDependenciesPlugin.js +2 -0
- package/lib/runtime/StartupChunkDependenciesRuntimeModule.js +1 -0
- package/lib/runtime/StartupEntrypointRuntimeModule.js +1 -0
- package/lib/schemes/HttpUriPlugin.js +39 -20
- package/lib/schemes/VirtualUrlPlugin.js +28 -2
- package/lib/serialization/BinaryMiddleware.js +4 -0
- package/lib/serialization/FileMiddleware.js +9 -4
- package/lib/serialization/ObjectMiddleware.js +34 -11
- package/lib/serialization/PlainObjectSerializer.js +2 -0
- package/lib/sharing/ConsumeSharedModule.js +60 -0
- package/lib/sharing/ConsumeSharedPlugin.js +5 -4
- package/lib/sharing/ProvideSharedModule.js +4 -0
- package/lib/sharing/ProvideSharedPlugin.js +24 -25
- package/lib/sharing/resolveMatchedConfigs.js +2 -2
- package/lib/sharing/utils.js +8 -6
- package/lib/stats/DefaultStatsFactoryPlugin.js +20 -12
- package/lib/stats/DefaultStatsPrinterPlugin.js +6 -5
- package/lib/stats/StatsFactory.js +2 -2
- package/lib/url/URLParserPlugin.js +5 -3
- package/lib/util/AppendOnlyStackedSet.js +57 -0
- package/lib/util/Hash.js +1 -0
- package/lib/util/IterableHelpers.js +1 -0
- package/lib/util/LazyBucketSortedSet.js +1 -0
- package/lib/util/LazySet.js +1 -0
- package/lib/util/ParallelismFactorCalculator.js +1 -0
- package/lib/util/SortableSet.js +1 -0
- package/lib/util/StringXor.js +1 -0
- package/lib/util/binarySearchBounds.js +15 -8
- package/lib/util/chainedImports.js +1 -1
- package/lib/util/cleverMerge.js +6 -1
- package/lib/util/comparators.js +21 -1
- package/lib/util/compileBooleanMatcher.js +3 -3
- package/lib/util/concatenate.js +3 -2
- package/lib/util/conventions.js +3 -2
- package/lib/util/deterministicGrouping.js +13 -1
- package/lib/util/extractSourceMap.js +12 -13
- package/lib/util/fs.js +15 -19
- package/lib/util/hash/BatchedHash.js +4 -0
- package/lib/util/hash/BulkUpdateHash.js +8 -1
- package/lib/util/hash/hash-digest.js +1 -0
- package/lib/util/hash/wasm-hash.js +18 -2
- package/lib/util/identifier.js +7 -2
- package/lib/util/magicComment.js +1 -1
- package/lib/util/propertyName.js +1 -1
- package/lib/util/registerExternalSerializer.js +1 -0
- package/lib/util/runtime.js +15 -1
- package/lib/util/semver.js +1 -0
- package/lib/util/serialization.js +2 -2
- package/lib/wasm/EnableWasmLoadingPlugin.js +2 -0
- package/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js +11 -3
- package/lib/wasm-async/AsyncWebAssemblyGenerator.js +1 -0
- package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +3 -2
- package/lib/wasm-sync/UnsupportedWebAssemblyFeatureError.js +5 -1
- package/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +3 -0
- package/lib/wasm-sync/WebAssemblyInInitialChunkError.js +2 -0
- package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +7 -3
- package/lib/wasm-sync/WebAssemblyModulesPlugin.js +2 -2
- package/lib/wasm-sync/WebAssemblyParser.js +3 -1
- package/lib/web/FetchCompileWasmPlugin.js +1 -0
- package/lib/web/JsonpChunkLoadingPlugin.js +1 -0
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +1 -0
- package/lib/webpack.js +16 -4
- package/lib/webworker/ImportScriptsChunkLoadingPlugin.js +1 -0
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +2 -0
- package/package.json +33 -36
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +121 -55
- package/schemas/plugins/BannerPlugin.json +2 -2
- package/schemas/plugins/IgnorePlugin.json +1 -1
- package/schemas/plugins/ManifestPlugin.json +3 -3
- package/schemas/plugins/ProgressPlugin.json +1 -1
- package/schemas/plugins/SourceMapDevToolPlugin.json +2 -2
- package/schemas/plugins/schemes/HttpUriPlugin.json +1 -1
- package/schemas/plugins/schemes/VirtualUrlPlugin.json +3 -3
- package/types.d.ts +440 -137
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"instanceof": "Function",
|
|
37
|
-
"tsType": "
|
|
37
|
+
"tsType": "import('../lib/stats/DefaultStatsFactoryPlugin').AssetFilterItemFn"
|
|
38
38
|
}
|
|
39
39
|
]
|
|
40
40
|
},
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"AssetGeneratorDataUrlFunction": {
|
|
78
78
|
"description": "Function that executes for module and should return an DataUrl string. It can have a string as 'ident' property which contributes to the module hash.",
|
|
79
79
|
"instanceof": "Function",
|
|
80
|
-
"tsType": "
|
|
80
|
+
"tsType": "import('../lib/asset/AssetGenerator').DataUrlFunction"
|
|
81
81
|
},
|
|
82
82
|
"AssetGeneratorDataUrlOptions": {
|
|
83
83
|
"description": "Options object for data url generation.",
|
|
@@ -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,14 +161,14 @@
|
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"instanceof": "Function",
|
|
164
|
-
"tsType": "
|
|
164
|
+
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn"
|
|
165
165
|
}
|
|
166
166
|
]
|
|
167
167
|
},
|
|
168
168
|
"AssetParserDataUrlFunction": {
|
|
169
169
|
"description": "Function that executes for module and should return whenever asset should be inlined as DataUrl.",
|
|
170
170
|
"instanceof": "Function",
|
|
171
|
-
"tsType": "
|
|
171
|
+
"tsType": "import(\"../lib/asset/AssetParser\").AssetParserDataUrlFunction"
|
|
172
172
|
},
|
|
173
173
|
"AssetParserDataUrlOptions": {
|
|
174
174
|
"description": "Options object for DataUrl condition.",
|
|
@@ -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
|
}
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
407
|
"instanceof": "Function",
|
|
408
|
-
"tsType": "(
|
|
408
|
+
"tsType": "import('../lib/dependencies/CssIcssExportDependency').ExportsConventionFn"
|
|
409
409
|
}
|
|
410
410
|
]
|
|
411
411
|
},
|
|
@@ -587,11 +587,25 @@
|
|
|
587
587
|
"description": "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).",
|
|
588
588
|
"anyOf": [
|
|
589
589
|
{
|
|
590
|
-
"
|
|
590
|
+
"type": "array",
|
|
591
|
+
"items": {
|
|
592
|
+
"description": "Allow to assign devtool values per asset type (all, javascript, or css).",
|
|
593
|
+
"type": "object",
|
|
594
|
+
"additionalProperties": false,
|
|
595
|
+
"properties": {
|
|
596
|
+
"type": {
|
|
597
|
+
"description": "Which asset type should receive this devtool value.",
|
|
598
|
+
"enum": ["all", "javascript", "css"]
|
|
599
|
+
},
|
|
600
|
+
"use": {
|
|
601
|
+
"$ref": "#/definitions/RawDevTool"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"required": ["type", "use"]
|
|
605
|
+
}
|
|
591
606
|
},
|
|
592
607
|
{
|
|
593
|
-
"
|
|
594
|
-
"pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map(-debugids)?$"
|
|
608
|
+
"$ref": "#/definitions/RawDevTool"
|
|
595
609
|
}
|
|
596
610
|
]
|
|
597
611
|
},
|
|
@@ -844,12 +858,12 @@
|
|
|
844
858
|
"EntryDynamic": {
|
|
845
859
|
"description": "A Function returning an entry object, an entry string, an entry array or a promise to these things.",
|
|
846
860
|
"instanceof": "Function",
|
|
847
|
-
"tsType": "(
|
|
861
|
+
"tsType": "import('../lib/DynamicEntryPlugin').RawEntryDynamic"
|
|
848
862
|
},
|
|
849
863
|
"EntryDynamicNormalized": {
|
|
850
864
|
"description": "A Function returning a Promise resolving to a normalized entry.",
|
|
851
865
|
"instanceof": "Function",
|
|
852
|
-
"tsType": "(
|
|
866
|
+
"tsType": "import('../lib/DynamicEntryPlugin').EntryDynamic"
|
|
853
867
|
},
|
|
854
868
|
"EntryFilename": {
|
|
855
869
|
"description": "Specifies the filename of the output file on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
|
|
@@ -1220,7 +1234,7 @@
|
|
|
1220
1234
|
},
|
|
1221
1235
|
{
|
|
1222
1236
|
"instanceof": "Function",
|
|
1223
|
-
"tsType": "(
|
|
1237
|
+
"tsType": "import('../lib/ExternalModuleFactoryPlugin').ExternalItemByLayerFn"
|
|
1224
1238
|
}
|
|
1225
1239
|
]
|
|
1226
1240
|
}
|
|
@@ -1245,12 +1259,12 @@
|
|
|
1245
1259
|
"ExternalItemFunctionCallback": {
|
|
1246
1260
|
"description": "The function is called on each dependency (`function(context, request, callback(err, result))`).",
|
|
1247
1261
|
"instanceof": "Function",
|
|
1248
|
-
"tsType": "
|
|
1262
|
+
"tsType": "import(\"../lib/ExternalModuleFactoryPlugin\").ExternalItemFunctionCallback"
|
|
1249
1263
|
},
|
|
1250
1264
|
"ExternalItemFunctionPromise": {
|
|
1251
1265
|
"description": "The function is called on each dependency (`function(context, request)`).",
|
|
1252
1266
|
"instanceof": "Function",
|
|
1253
|
-
"tsType": "
|
|
1267
|
+
"tsType": "import(\"../lib/ExternalModuleFactoryPlugin\").ExternalItemFunctionPromise"
|
|
1254
1268
|
},
|
|
1255
1269
|
"ExternalItemValue": {
|
|
1256
1270
|
"description": "The dependency used for the external.",
|
|
@@ -1520,7 +1534,7 @@
|
|
|
1520
1534
|
},
|
|
1521
1535
|
{
|
|
1522
1536
|
"instanceof": "Function",
|
|
1523
|
-
"tsType": "
|
|
1537
|
+
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn"
|
|
1524
1538
|
}
|
|
1525
1539
|
]
|
|
1526
1540
|
},
|
|
@@ -1540,7 +1554,7 @@
|
|
|
1540
1554
|
},
|
|
1541
1555
|
{
|
|
1542
1556
|
"instanceof": "Function",
|
|
1543
|
-
"tsType": "(
|
|
1557
|
+
"tsType": "import('../lib/stats/DefaultStatsFactoryPlugin').FilterItemTypeFn"
|
|
1544
1558
|
}
|
|
1545
1559
|
]
|
|
1546
1560
|
},
|
|
@@ -1738,7 +1752,7 @@
|
|
|
1738
1752
|
{
|
|
1739
1753
|
"description": "Allowed URI filter function.",
|
|
1740
1754
|
"instanceof": "Function",
|
|
1741
|
-
"tsType": "(
|
|
1755
|
+
"tsType": "import('../lib/schemes/HttpUriPlugin').AllowedUriFn"
|
|
1742
1756
|
}
|
|
1743
1757
|
]
|
|
1744
1758
|
}
|
|
@@ -1778,7 +1792,7 @@
|
|
|
1778
1792
|
{
|
|
1779
1793
|
"description": "A custom function to select warnings based on the raw warning instance.",
|
|
1780
1794
|
"instanceof": "Function",
|
|
1781
|
-
"tsType": "
|
|
1795
|
+
"tsType": "import(\"../lib/IgnoreWarningsPlugin\").IgnoreFn"
|
|
1782
1796
|
}
|
|
1783
1797
|
]
|
|
1784
1798
|
}
|
|
@@ -1789,7 +1803,7 @@
|
|
|
1789
1803
|
"items": {
|
|
1790
1804
|
"description": "A function to select warnings based on the raw warning instance.",
|
|
1791
1805
|
"instanceof": "Function",
|
|
1792
|
-
"tsType": "
|
|
1806
|
+
"tsType": "import(\"../lib/IgnoreWarningsPlugin\").IgnoreFn"
|
|
1793
1807
|
}
|
|
1794
1808
|
},
|
|
1795
1809
|
"Iife": {
|
|
@@ -1953,8 +1967,16 @@
|
|
|
1953
1967
|
"enum": ["error", "warn", "auto", false]
|
|
1954
1968
|
},
|
|
1955
1969
|
"importMeta": {
|
|
1956
|
-
"description": "Enable/disable evaluating import.meta.",
|
|
1957
|
-
"
|
|
1970
|
+
"description": "Enable/disable evaluating import.meta. Set to 'preserve-unknown' to preserve unknown properties for runtime evaluation.",
|
|
1971
|
+
"anyOf": [
|
|
1972
|
+
{
|
|
1973
|
+
"type": "boolean"
|
|
1974
|
+
},
|
|
1975
|
+
{
|
|
1976
|
+
"type": "string",
|
|
1977
|
+
"enum": ["preserve-unknown"]
|
|
1978
|
+
}
|
|
1979
|
+
]
|
|
1958
1980
|
},
|
|
1959
1981
|
"importMetaContext": {
|
|
1960
1982
|
"description": "Enable/disable evaluating import.meta.webpackContext.",
|
|
@@ -1970,7 +1992,7 @@
|
|
|
1970
1992
|
"parse": {
|
|
1971
1993
|
"description": "Function to parser source code.",
|
|
1972
1994
|
"instanceof": "Function",
|
|
1973
|
-
"tsType": "
|
|
1995
|
+
"tsType": "import('../lib/javascript/JavascriptParser').ParseFunction"
|
|
1974
1996
|
},
|
|
1975
1997
|
"reexportExportsPresence": {
|
|
1976
1998
|
"description": "Specifies the behavior of invalid export names in \"export ... from ...\". This might be useful to disable during the migration from \"export ... from ...\" to \"export type ... from ...\" when reexporting types in TypeScript.",
|
|
@@ -2097,7 +2119,7 @@
|
|
|
2097
2119
|
"parse": {
|
|
2098
2120
|
"description": "Function to parser content and return JSON.",
|
|
2099
2121
|
"instanceof": "Function",
|
|
2100
|
-
"tsType": "
|
|
2122
|
+
"tsType": "import('../lib/json/JsonParser').ParseFn"
|
|
2101
2123
|
}
|
|
2102
2124
|
}
|
|
2103
2125
|
},
|
|
@@ -2164,12 +2186,12 @@
|
|
|
2164
2186
|
"type": "object",
|
|
2165
2187
|
"additionalProperties": true,
|
|
2166
2188
|
"properties": {},
|
|
2167
|
-
"tsType": "
|
|
2189
|
+
"tsType": "import(\"../lib/hmr/lazyCompilationBackend\").HttpsServerOptions | import(\"../lib/hmr/lazyCompilationBackend\").HttpServerOptions"
|
|
2168
2190
|
},
|
|
2169
2191
|
{
|
|
2170
2192
|
"description": "A custom create server function.",
|
|
2171
2193
|
"instanceof": "Function",
|
|
2172
|
-
"tsType": "
|
|
2194
|
+
"tsType": "import(\"../lib/hmr/lazyCompilationBackend\").CreateServerFunction"
|
|
2173
2195
|
}
|
|
2174
2196
|
]
|
|
2175
2197
|
}
|
|
@@ -2186,7 +2208,7 @@
|
|
|
2186
2208
|
{
|
|
2187
2209
|
"description": "A custom backend.",
|
|
2188
2210
|
"instanceof": "Function",
|
|
2189
|
-
"tsType": "
|
|
2211
|
+
"tsType": "import(\"../lib/hmr/LazyCompilationPlugin\").BackEnd"
|
|
2190
2212
|
},
|
|
2191
2213
|
{
|
|
2192
2214
|
"$ref": "#/definitions/LazyCompilationDefaultBackendOptions"
|
|
@@ -2213,7 +2235,7 @@
|
|
|
2213
2235
|
},
|
|
2214
2236
|
{
|
|
2215
2237
|
"instanceof": "Function",
|
|
2216
|
-
"tsType": "
|
|
2238
|
+
"tsType": "import('../lib/hmr/LazyCompilationPlugin').TestFn"
|
|
2217
2239
|
}
|
|
2218
2240
|
]
|
|
2219
2241
|
}
|
|
@@ -2426,7 +2448,7 @@
|
|
|
2426
2448
|
},
|
|
2427
2449
|
{
|
|
2428
2450
|
"instanceof": "Function",
|
|
2429
|
-
"tsType": "
|
|
2451
|
+
"tsType": "import('../lib/stats/DefaultStatsFactoryPlugin').ModuleFilterItemTypeFn"
|
|
2430
2452
|
}
|
|
2431
2453
|
]
|
|
2432
2454
|
},
|
|
@@ -2552,7 +2574,7 @@
|
|
|
2552
2574
|
},
|
|
2553
2575
|
{
|
|
2554
2576
|
"instanceof": "Function",
|
|
2555
|
-
"tsType": "
|
|
2577
|
+
"tsType": "import(\"../lib/Compilation\").UnsafeCachePredicate"
|
|
2556
2578
|
}
|
|
2557
2579
|
]
|
|
2558
2580
|
},
|
|
@@ -2612,7 +2634,7 @@
|
|
|
2612
2634
|
},
|
|
2613
2635
|
{
|
|
2614
2636
|
"instanceof": "Function",
|
|
2615
|
-
"tsType": "
|
|
2637
|
+
"tsType": "import('../lib/Compilation').UnsafeCachePredicate"
|
|
2616
2638
|
}
|
|
2617
2639
|
]
|
|
2618
2640
|
}
|
|
@@ -2643,7 +2665,7 @@
|
|
|
2643
2665
|
},
|
|
2644
2666
|
{
|
|
2645
2667
|
"instanceof": "Function",
|
|
2646
|
-
"tsType": "(
|
|
2668
|
+
"tsType": "import(\"../lib/NormalModule\").NoParseFn"
|
|
2647
2669
|
}
|
|
2648
2670
|
]
|
|
2649
2671
|
},
|
|
@@ -2661,7 +2683,7 @@
|
|
|
2661
2683
|
},
|
|
2662
2684
|
{
|
|
2663
2685
|
"instanceof": "Function",
|
|
2664
|
-
"tsType": "(
|
|
2686
|
+
"tsType": "import(\"../lib/NormalModule\").NoParseFn"
|
|
2665
2687
|
}
|
|
2666
2688
|
]
|
|
2667
2689
|
},
|
|
@@ -3096,7 +3118,7 @@
|
|
|
3096
3118
|
},
|
|
3097
3119
|
{
|
|
3098
3120
|
"instanceof": "Function",
|
|
3099
|
-
"tsType": "
|
|
3121
|
+
"tsType": "import('../lib/optimize/SplitChunksPlugin').ChunkFilterFn"
|
|
3100
3122
|
}
|
|
3101
3123
|
]
|
|
3102
3124
|
},
|
|
@@ -3122,7 +3144,7 @@
|
|
|
3122
3144
|
},
|
|
3123
3145
|
{
|
|
3124
3146
|
"instanceof": "Function",
|
|
3125
|
-
"tsType": "
|
|
3147
|
+
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn"
|
|
3126
3148
|
}
|
|
3127
3149
|
]
|
|
3128
3150
|
},
|
|
@@ -3142,7 +3164,7 @@
|
|
|
3142
3164
|
},
|
|
3143
3165
|
{
|
|
3144
3166
|
"instanceof": "Function",
|
|
3145
|
-
"tsType": "(
|
|
3167
|
+
"tsType": "import('../lib/optimize/SplitChunksPlugin').CheckModuleLayerFn"
|
|
3146
3168
|
}
|
|
3147
3169
|
]
|
|
3148
3170
|
},
|
|
@@ -3220,7 +3242,7 @@
|
|
|
3220
3242
|
},
|
|
3221
3243
|
{
|
|
3222
3244
|
"instanceof": "Function",
|
|
3223
|
-
"tsType": "
|
|
3245
|
+
"tsType": "import('../lib/optimize/SplitChunksPlugin').GetNameFn"
|
|
3224
3246
|
}
|
|
3225
3247
|
]
|
|
3226
3248
|
},
|
|
@@ -3244,7 +3266,7 @@
|
|
|
3244
3266
|
},
|
|
3245
3267
|
{
|
|
3246
3268
|
"instanceof": "Function",
|
|
3247
|
-
"tsType": "
|
|
3269
|
+
"tsType": "import('../lib/optimize/SplitChunksPlugin').CheckTestFn"
|
|
3248
3270
|
}
|
|
3249
3271
|
]
|
|
3250
3272
|
},
|
|
@@ -3260,7 +3282,7 @@
|
|
|
3260
3282
|
},
|
|
3261
3283
|
{
|
|
3262
3284
|
"instanceof": "Function",
|
|
3263
|
-
"tsType": "(
|
|
3285
|
+
"tsType": "import('../lib/optimize/SplitChunksPlugin').CheckModuleTypeFn"
|
|
3264
3286
|
}
|
|
3265
3287
|
]
|
|
3266
3288
|
},
|
|
@@ -3273,7 +3295,7 @@
|
|
|
3273
3295
|
"OptimizationSplitChunksGetCacheGroups": {
|
|
3274
3296
|
"description": "A function returning cache groups.",
|
|
3275
3297
|
"instanceof": "Function",
|
|
3276
|
-
"tsType": "
|
|
3298
|
+
"tsType": "import('../lib/optimize/SplitChunksPlugin').RawGetCacheGroups"
|
|
3277
3299
|
},
|
|
3278
3300
|
"OptimizationSplitChunksOptions": {
|
|
3279
3301
|
"description": "Options object for splitting chunks into smaller chunks.",
|
|
@@ -3345,7 +3367,7 @@
|
|
|
3345
3367
|
},
|
|
3346
3368
|
{
|
|
3347
3369
|
"instanceof": "Function",
|
|
3348
|
-
"tsType": "
|
|
3370
|
+
"tsType": "import('../lib/optimize/SplitChunksPlugin').ChunkFilterFn"
|
|
3349
3371
|
}
|
|
3350
3372
|
]
|
|
3351
3373
|
},
|
|
@@ -3355,7 +3377,7 @@
|
|
|
3355
3377
|
"items": {
|
|
3356
3378
|
"description": "Size type, like 'javascript', 'webassembly'.",
|
|
3357
3379
|
"type": "string",
|
|
3358
|
-
"tsType": "
|
|
3380
|
+
"tsType": "import(\"../lib/Module\").SourceType"
|
|
3359
3381
|
},
|
|
3360
3382
|
"minItems": 1
|
|
3361
3383
|
},
|
|
@@ -3389,7 +3411,7 @@
|
|
|
3389
3411
|
},
|
|
3390
3412
|
{
|
|
3391
3413
|
"instanceof": "Function",
|
|
3392
|
-
"tsType": "
|
|
3414
|
+
"tsType": "import('../lib/optimize/SplitChunksPlugin').ChunkFilterFn"
|
|
3393
3415
|
}
|
|
3394
3416
|
]
|
|
3395
3417
|
},
|
|
@@ -3445,7 +3467,7 @@
|
|
|
3445
3467
|
},
|
|
3446
3468
|
{
|
|
3447
3469
|
"instanceof": "Function",
|
|
3448
|
-
"tsType": "
|
|
3470
|
+
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn"
|
|
3449
3471
|
}
|
|
3450
3472
|
]
|
|
3451
3473
|
},
|
|
@@ -3527,7 +3549,7 @@
|
|
|
3527
3549
|
},
|
|
3528
3550
|
{
|
|
3529
3551
|
"instanceof": "Function",
|
|
3530
|
-
"tsType": "
|
|
3552
|
+
"tsType": "import('../lib/optimize/SplitChunksPlugin').GetNameFn"
|
|
3531
3553
|
}
|
|
3532
3554
|
]
|
|
3533
3555
|
},
|
|
@@ -4039,7 +4061,7 @@
|
|
|
4039
4061
|
"assetFilter": {
|
|
4040
4062
|
"description": "Filter function to select assets that are checked.",
|
|
4041
4063
|
"instanceof": "Function",
|
|
4042
|
-
"tsType": "
|
|
4064
|
+
"tsType": "import('../lib/performance/SizeLimitsPlugin').AssetFilter"
|
|
4043
4065
|
},
|
|
4044
4066
|
"hints": {
|
|
4045
4067
|
"description": "Sets the format of the hints: warnings, errors or nothing at all.",
|
|
@@ -4103,6 +4125,18 @@
|
|
|
4103
4125
|
}
|
|
4104
4126
|
]
|
|
4105
4127
|
},
|
|
4128
|
+
"RawDevTool": {
|
|
4129
|
+
"description": "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).",
|
|
4130
|
+
"anyOf": [
|
|
4131
|
+
{
|
|
4132
|
+
"enum": [false, "eval"]
|
|
4133
|
+
},
|
|
4134
|
+
{
|
|
4135
|
+
"type": "string",
|
|
4136
|
+
"pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map(-debugids)?$"
|
|
4137
|
+
}
|
|
4138
|
+
]
|
|
4139
|
+
},
|
|
4106
4140
|
"RawPublicPath": {
|
|
4107
4141
|
"description": "The 'publicPath' specifies the public URL address of the output files when referenced in a browser.",
|
|
4108
4142
|
"anyOf": [
|
|
@@ -4111,7 +4145,7 @@
|
|
|
4111
4145
|
},
|
|
4112
4146
|
{
|
|
4113
4147
|
"instanceof": "Function",
|
|
4114
|
-
"tsType": "
|
|
4148
|
+
"tsType": "import(\"../lib/TemplatedPathPlugin\").TemplatePathFn"
|
|
4115
4149
|
}
|
|
4116
4150
|
]
|
|
4117
4151
|
},
|
|
@@ -4364,7 +4398,7 @@
|
|
|
4364
4398
|
},
|
|
4365
4399
|
"fileSystem": {
|
|
4366
4400
|
"description": "Filesystem for the resolver.",
|
|
4367
|
-
"tsType": "
|
|
4401
|
+
"tsType": "import('../lib/util/fs').InputFileSystem"
|
|
4368
4402
|
},
|
|
4369
4403
|
"fullySpecified": {
|
|
4370
4404
|
"description": "Treats the request specified by the user as fully specified, meaning no extensions are added and the mainFiles in directories are not resolved (This doesn't affect requests from mainFields, aliasFields or aliases).",
|
|
@@ -4448,7 +4482,7 @@
|
|
|
4448
4482
|
},
|
|
4449
4483
|
"resolver": {
|
|
4450
4484
|
"description": "Custom resolver.",
|
|
4451
|
-
"tsType": "
|
|
4485
|
+
"tsType": "import('enhanced-resolve').Resolver"
|
|
4452
4486
|
},
|
|
4453
4487
|
"restrictions": {
|
|
4454
4488
|
"description": "A list of resolve restrictions. Resolve results must fulfill all of these restrictions to resolve successfully. Other resolve paths are taken when restrictions are not met.",
|
|
@@ -4479,6 +4513,38 @@
|
|
|
4479
4513
|
"description": "Enable resolving symlinks to the original location.",
|
|
4480
4514
|
"type": "boolean"
|
|
4481
4515
|
},
|
|
4516
|
+
"tsconfig": {
|
|
4517
|
+
"description": "TypeScript config for paths mapping. Can be `false` (disabled), `true` (use default `tsconfig.json`), a string path to `tsconfig.json`, or an object with `configFile` and `references` options.",
|
|
4518
|
+
"anyOf": [
|
|
4519
|
+
{
|
|
4520
|
+
"type": "boolean"
|
|
4521
|
+
},
|
|
4522
|
+
{
|
|
4523
|
+
"type": "string"
|
|
4524
|
+
},
|
|
4525
|
+
{
|
|
4526
|
+
"type": "object",
|
|
4527
|
+
"additionalProperties": false,
|
|
4528
|
+
"properties": {
|
|
4529
|
+
"configFile": {
|
|
4530
|
+
"description": "A path to the tsconfig file.",
|
|
4531
|
+
"type": "string"
|
|
4532
|
+
},
|
|
4533
|
+
"references": {
|
|
4534
|
+
"description": "References to other tsconfig files. 'auto' inherits from TypeScript config, or an array of relative/absolute paths.",
|
|
4535
|
+
"anyOf": [
|
|
4536
|
+
{
|
|
4537
|
+
"enum": ["auto"]
|
|
4538
|
+
},
|
|
4539
|
+
{
|
|
4540
|
+
"type": "string"
|
|
4541
|
+
}
|
|
4542
|
+
]
|
|
4543
|
+
}
|
|
4544
|
+
}
|
|
4545
|
+
}
|
|
4546
|
+
]
|
|
4547
|
+
},
|
|
4482
4548
|
"unsafeCache": {
|
|
4483
4549
|
"description": "Enable caching of successfully resolved requests (cache entries are not revalidated).",
|
|
4484
4550
|
"anyOf": [
|
|
@@ -4533,7 +4599,7 @@
|
|
|
4533
4599
|
},
|
|
4534
4600
|
{
|
|
4535
4601
|
"instanceof": "Function",
|
|
4536
|
-
"tsType": "(
|
|
4602
|
+
"tsType": "import('../lib/rules/RuleSetCompiler').RuleSetConditionFn"
|
|
4537
4603
|
},
|
|
4538
4604
|
{
|
|
4539
4605
|
"$ref": "#/definitions/RuleSetLogicalConditions"
|
|
@@ -4559,7 +4625,7 @@
|
|
|
4559
4625
|
},
|
|
4560
4626
|
{
|
|
4561
4627
|
"instanceof": "Function",
|
|
4562
|
-
"tsType": "(
|
|
4628
|
+
"tsType": "import('../lib/rules/RuleSetCompiler').RuleSetConditionFn"
|
|
4563
4629
|
},
|
|
4564
4630
|
{
|
|
4565
4631
|
"$ref": "#/definitions/RuleSetLogicalConditionsAbsolute"
|
|
@@ -4975,7 +5041,7 @@
|
|
|
4975
5041
|
"RuleSetUseFunction": {
|
|
4976
5042
|
"description": "The function is called on each data and return rule set item.",
|
|
4977
5043
|
"instanceof": "Function",
|
|
4978
|
-
"tsType": "
|
|
5044
|
+
"tsType": "import('../lib/rules/RuleSetCompiler').RuleSetUseFn"
|
|
4979
5045
|
},
|
|
4980
5046
|
"RuleSetUseItem": {
|
|
4981
5047
|
"description": "A description of an applied loader.",
|
|
@@ -5726,7 +5792,7 @@
|
|
|
5726
5792
|
},
|
|
5727
5793
|
{
|
|
5728
5794
|
"instanceof": "Function",
|
|
5729
|
-
"tsType": "
|
|
5795
|
+
"tsType": "import(\"../lib/stats/DefaultStatsPresetPlugin\").WarningFilterFn"
|
|
5730
5796
|
}
|
|
5731
5797
|
]
|
|
5732
5798
|
},
|
|
@@ -5973,7 +6039,7 @@
|
|
|
5973
6039
|
"WebpackPluginFunction": {
|
|
5974
6040
|
"description": "Function acting as plugin.",
|
|
5975
6041
|
"instanceof": "Function",
|
|
5976
|
-
"tsType": "
|
|
6042
|
+
"tsType": "import('../lib/webpack').WebpackPluginFunction"
|
|
5977
6043
|
},
|
|
5978
6044
|
"WebpackPluginInstance": {
|
|
5979
6045
|
"description": "Plugin instance.",
|
|
@@ -5983,7 +6049,7 @@
|
|
|
5983
6049
|
"apply": {
|
|
5984
6050
|
"description": "The run point of the plugin, required method.",
|
|
5985
6051
|
"instanceof": "Function",
|
|
5986
|
-
"tsType": "
|
|
6052
|
+
"tsType": "import('../lib/webpack').WebpackPluginInstance"
|
|
5987
6053
|
}
|
|
5988
6054
|
},
|
|
5989
6055
|
"required": ["apply"]
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"BannerFunction": {
|
|
4
4
|
"description": "The banner as function, it will be wrapped in a comment.",
|
|
5
5
|
"instanceof": "Function",
|
|
6
|
-
"tsType": "
|
|
6
|
+
"tsType": "import('../../lib/BannerPlugin').BannerFunction"
|
|
7
7
|
},
|
|
8
8
|
"Rule": {
|
|
9
9
|
"description": "Filtering rule as regex or string.",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"instanceof": "Function",
|
|
21
|
-
"tsType": "(
|
|
21
|
+
"tsType": "import('../../lib/ModuleFilenameHelpers').MatcherFn"
|
|
22
22
|
}
|
|
23
23
|
]
|
|
24
24
|
},
|
|
@@ -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"]
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
"filter": {
|
|
79
79
|
"description": "Allows filtering the files which make up the manifest.",
|
|
80
80
|
"instanceof": "Function",
|
|
81
|
-
"tsType": "(
|
|
81
|
+
"tsType": "import('../../lib/ManifestPlugin').Filter"
|
|
82
82
|
},
|
|
83
83
|
"generate": {
|
|
84
84
|
"description": "A function that receives the manifest object, modifies it, and returns the modified manifest.",
|
|
85
85
|
"instanceof": "Function",
|
|
86
|
-
"tsType": "(
|
|
86
|
+
"tsType": "import('../../lib/ManifestPlugin').Generate"
|
|
87
87
|
},
|
|
88
88
|
"prefix": {
|
|
89
89
|
"description": "Specifies a path prefix for all keys in the manifest.",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"serialize": {
|
|
93
93
|
"description": "A function that receives the manifest object and returns the manifest string.",
|
|
94
94
|
"instanceof": "Function",
|
|
95
|
-
"tsType": "(
|
|
95
|
+
"tsType": "import('../../lib/ManifestPlugin').Serialize"
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -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.",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"instanceof": "Function",
|
|
16
|
-
"tsType": "(
|
|
16
|
+
"tsType": "import('../../lib/ModuleFilenameHelpers').MatcherFn"
|
|
17
17
|
}
|
|
18
18
|
]
|
|
19
19
|
},
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"instanceof": "Function",
|
|
57
|
-
"tsType": "
|
|
57
|
+
"tsType": "import('../../lib/TemplatedPathPlugin').TemplatePathFn"
|
|
58
58
|
}
|
|
59
59
|
]
|
|
60
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"
|