webpack 5.98.0 → 5.99.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 +7 -3
- package/lib/AsyncDependenciesBlock.js +3 -1
- package/lib/BannerPlugin.js +1 -1
- package/lib/Cache.js +9 -7
- package/lib/CacheFacade.js +5 -5
- package/lib/Chunk.js +2 -2
- package/lib/ChunkGraph.js +21 -16
- package/lib/ChunkTemplate.js +6 -6
- package/lib/CleanPlugin.js +10 -10
- package/lib/CodeGenerationResults.js +4 -3
- package/lib/CompatibilityPlugin.js +4 -1
- package/lib/Compilation.js +326 -152
- package/lib/Compiler.js +13 -18
- package/lib/ConditionalInitFragment.js +1 -1
- package/lib/ConstPlugin.js +5 -3
- package/lib/ContextModule.js +4 -2
- package/lib/ContextModuleFactory.js +3 -3
- package/lib/ContextReplacementPlugin.js +43 -16
- package/lib/DefinePlugin.js +25 -24
- package/lib/DelegatedModule.js +4 -2
- package/lib/DelegatedModuleFactoryPlugin.js +2 -1
- package/lib/Dependency.js +19 -13
- package/lib/DependencyTemplates.js +4 -3
- package/lib/DllModule.js +4 -2
- package/lib/DllModuleFactory.js +2 -2
- package/lib/DllReferencePlugin.js +2 -1
- package/lib/DynamicEntryPlugin.js +1 -1
- package/lib/EnvironmentPlugin.js +4 -2
- package/lib/ExportsInfo.js +72 -40
- package/lib/ExternalModule.js +14 -5
- package/lib/ExternalModuleFactoryPlugin.js +24 -12
- package/lib/FileSystemInfo.js +129 -94
- package/lib/FlagDependencyExportsPlugin.js +6 -4
- package/lib/FlagDependencyUsagePlugin.js +1 -1
- package/lib/Generator.js +29 -1
- package/lib/HookWebpackError.js +2 -2
- package/lib/HotModuleReplacementPlugin.js +3 -9
- package/lib/IgnoreErrorModuleFactory.js +2 -2
- package/lib/IgnorePlugin.js +0 -5
- package/lib/InitFragment.js +1 -1
- package/lib/LoaderOptionsPlugin.js +8 -5
- package/lib/MainTemplate.js +7 -7
- package/lib/Module.js +40 -17
- package/lib/ModuleBuildError.js +3 -1
- package/lib/ModuleDependencyError.js +4 -3
- package/lib/ModuleDependencyWarning.js +4 -3
- package/lib/ModuleFactory.js +9 -3
- package/lib/ModuleFilenameHelpers.js +13 -13
- package/lib/ModuleGraph.js +20 -14
- package/lib/ModuleGraphConnection.js +7 -13
- package/lib/ModuleNotFoundError.js +1 -1
- package/lib/ModuleParseError.js +2 -1
- package/lib/ModuleSourceTypesConstants.js +11 -0
- package/lib/ModuleTemplate.js +5 -5
- package/lib/ModuleTypeConstants.js +15 -0
- package/lib/MultiCompiler.js +4 -4
- package/lib/MultiStats.js +1 -1
- package/lib/NormalModule.js +101 -54
- package/lib/NormalModuleFactory.js +38 -33
- package/lib/NormalModuleReplacementPlugin.js +3 -2
- package/lib/NullFactory.js +2 -2
- package/lib/Parser.js +4 -3
- package/lib/ProgressPlugin.js +1 -2
- package/lib/RawModule.js +4 -2
- package/lib/RecordIdsPlugin.js +6 -2
- package/lib/RequestShortener.js +3 -1
- package/lib/ResolverFactory.js +12 -9
- package/lib/RuntimeModule.js +4 -2
- package/lib/RuntimeTemplate.js +2 -1
- package/lib/SelfModuleFactory.js +2 -2
- package/lib/SourceMapDevToolPlugin.js +0 -8
- package/lib/Template.js +6 -5
- package/lib/TemplatedPathPlugin.js +15 -12
- package/lib/WebpackOptionsApply.js +1 -1
- package/lib/asset/AssetGenerator.js +237 -170
- package/lib/asset/AssetModulesPlugin.js +50 -8
- package/lib/asset/AssetSourceGenerator.js +18 -0
- package/lib/asset/RawDataUrlModule.js +4 -2
- package/lib/buildChunkGraph.js +14 -4
- package/lib/cache/MemoryWithGcCachePlugin.js +6 -2
- package/lib/cache/PackFileCacheStrategy.js +137 -121
- package/lib/cache/ResolverCachePlugin.js +15 -7
- package/lib/cache/getLazyHashedEtag.js +4 -3
- package/lib/cli.js +23 -15
- package/lib/config/defaults.js +93 -26
- package/lib/config/normalization.js +14 -13
- package/lib/config/target.js +8 -8
- package/lib/container/ContainerEntryModule.js +4 -2
- package/lib/container/ContainerEntryModuleFactory.js +2 -2
- package/lib/container/FallbackModule.js +4 -2
- package/lib/container/FallbackModuleFactory.js +2 -2
- package/lib/container/RemoteModule.js +4 -2
- package/lib/container/options.js +5 -5
- package/lib/css/CssGenerator.js +71 -9
- package/lib/css/CssModulesPlugin.js +30 -5
- package/lib/css/CssParser.js +37 -17
- package/lib/css/walkCssTokens.js +17 -17
- package/lib/debug/ProfilingPlugin.js +98 -38
- package/lib/dependencies/AMDDefineDependencyParserPlugin.js +10 -4
- package/lib/dependencies/AMDPlugin.js +5 -2
- package/lib/dependencies/AMDRequireArrayDependency.js +4 -3
- package/lib/dependencies/AMDRequireContextDependency.js +2 -1
- package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +15 -7
- package/lib/dependencies/AMDRuntimeModules.js +3 -1
- package/lib/dependencies/CommonJsExportRequireDependency.js +4 -5
- package/lib/dependencies/CommonJsExportsParserPlugin.js +3 -3
- package/lib/dependencies/CommonJsImportsParserPlugin.js +8 -7
- package/lib/dependencies/CommonJsRequireContextDependency.js +2 -1
- package/lib/dependencies/ContextDependencyHelpers.js +13 -6
- package/lib/dependencies/CssIcssExportDependency.js +15 -12
- package/lib/dependencies/CssIcssImportDependency.js +4 -1
- package/lib/dependencies/CssLocalIdentifierDependency.js +17 -14
- package/lib/dependencies/ExportsInfoDependency.js +6 -1
- package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +5 -5
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +22 -15
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +23 -8
- package/lib/dependencies/HarmonyExportSpecifierDependency.js +2 -2
- package/lib/dependencies/HarmonyImportDependency.js +8 -6
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +19 -14
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +5 -5
- package/lib/dependencies/ImportContextDependency.js +2 -1
- package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +8 -4
- package/lib/dependencies/JsonExportsDependency.js +24 -8
- package/lib/dependencies/LoaderPlugin.js +4 -14
- package/lib/dependencies/RequireContextDependency.js +2 -1
- package/lib/dependencies/RequireContextDependencyParserPlugin.js +6 -3
- package/lib/dependencies/RequireEnsureDependenciesBlock.js +3 -2
- package/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +11 -5
- package/lib/dependencies/RequireResolveContextDependency.js +1 -1
- package/lib/dependencies/WebAssemblyExportImportedDependency.js +1 -1
- package/lib/dependencies/WorkerDependency.js +6 -3
- package/lib/dependencies/WorkerPlugin.js +100 -41
- package/lib/esm/ModuleChunkFormatPlugin.js +5 -0
- package/lib/hmr/HotModuleReplacement.runtime.js +1 -0
- package/lib/hmr/JavascriptHotModuleReplacement.runtime.js +1 -0
- package/lib/hmr/LazyCompilationPlugin.js +32 -24
- package/lib/hmr/lazyCompilationBackend.js +1 -1
- package/lib/ids/DeterministicModuleIdsPlugin.js +1 -1
- package/lib/ids/HashedModuleIdsPlugin.js +2 -1
- package/lib/ids/IdHelpers.js +15 -14
- package/lib/ids/SyncModuleIdsPlugin.js +9 -5
- package/lib/index.js +5 -5
- package/lib/javascript/BasicEvaluatedExpression.js +6 -6
- package/lib/javascript/JavascriptGenerator.js +11 -1
- package/lib/javascript/JavascriptModulesPlugin.js +51 -31
- package/lib/javascript/JavascriptParser.js +272 -188
- package/lib/javascript/JavascriptParserHelpers.js +10 -9
- package/lib/javascript/StartupHelpers.js +4 -1
- package/lib/json/JsonData.js +4 -4
- package/lib/json/JsonGenerator.js +54 -22
- package/lib/json/JsonModulesPlugin.js +16 -2
- package/lib/json/JsonParser.js +8 -4
- package/lib/library/AbstractLibraryPlugin.js +7 -3
- package/lib/library/AssignLibraryPlugin.js +29 -1
- package/lib/library/EnableLibraryPlugin.js +7 -10
- package/lib/library/ExportPropertyLibraryPlugin.js +4 -1
- package/lib/library/ModuleLibraryPlugin.js +121 -15
- package/lib/logging/Logger.js +2 -2
- package/lib/logging/createConsoleLogger.js +4 -4
- package/lib/node/NodeEnvironmentPlugin.js +6 -2
- package/lib/node/ReadFileCompileAsyncWasmPlugin.js +1 -2
- package/lib/node/ReadFileCompileWasmPlugin.js +1 -2
- package/lib/node/nodeConsole.js +3 -1
- package/lib/optimize/AggressiveSplittingPlugin.js +1 -1
- package/lib/optimize/ConcatenatedModule.js +19 -12
- package/lib/optimize/InnerGraph.js +3 -2
- package/lib/optimize/InnerGraphPlugin.js +13 -7
- package/lib/optimize/LimitChunkCountPlugin.js +20 -0
- package/lib/optimize/ModuleConcatenationPlugin.js +10 -7
- package/lib/optimize/RealContentHashPlugin.js +8 -4
- package/lib/optimize/SideEffectsFlagPlugin.js +4 -2
- package/lib/optimize/SplitChunksPlugin.js +87 -65
- package/lib/rules/BasicEffectRulePlugin.js +9 -1
- package/lib/rules/BasicMatcherRulePlugin.js +15 -4
- package/lib/rules/ObjectMatcherRulePlugin.js +12 -3
- package/lib/rules/RuleSetCompiler.js +25 -14
- package/lib/rules/UseEffectRulePlugin.js +47 -17
- package/lib/runtime/GetChunkFilenameRuntimeModule.js +6 -6
- package/lib/schemes/HttpUriPlugin.js +38 -17
- package/lib/serialization/BinaryMiddleware.js +52 -19
- package/lib/serialization/FileMiddleware.js +78 -48
- package/lib/serialization/ObjectMiddleware.js +78 -29
- package/lib/serialization/PlainObjectSerializer.js +1 -1
- package/lib/serialization/Serializer.js +15 -10
- package/lib/serialization/SerializerMiddleware.js +80 -41
- package/lib/serialization/SingleItemMiddleware.js +10 -7
- package/lib/serialization/types.js +1 -1
- package/lib/sharing/ConsumeSharedModule.js +4 -2
- package/lib/sharing/ProvideSharedModule.js +4 -2
- package/lib/sharing/ProvideSharedModuleFactory.js +5 -3
- package/lib/sharing/utils.js +2 -2
- package/lib/stats/DefaultStatsFactoryPlugin.js +80 -78
- package/lib/stats/DefaultStatsPresetPlugin.js +43 -23
- package/lib/stats/DefaultStatsPrinterPlugin.js +85 -43
- package/lib/stats/StatsFactory.js +11 -11
- package/lib/stats/StatsPrinter.js +7 -7
- package/lib/util/ArrayHelpers.js +2 -4
- package/lib/util/ArrayQueue.js +1 -1
- package/lib/util/AsyncQueue.js +4 -4
- package/lib/util/IterableHelpers.js +1 -1
- package/lib/util/LazyBucketSortedSet.js +41 -23
- package/lib/util/LazySet.js +3 -2
- package/lib/util/MapHelpers.js +1 -1
- package/lib/util/ParallelismFactorCalculator.js +1 -1
- package/lib/util/Semaphore.js +3 -3
- package/lib/util/SetHelpers.js +1 -1
- package/lib/util/SortableSet.js +9 -7
- package/lib/util/TupleQueue.js +9 -8
- package/lib/util/TupleSet.js +2 -2
- package/lib/util/WeakTupleMap.js +12 -11
- package/lib/util/binarySearchBounds.js +2 -1
- package/lib/util/cleverMerge.js +84 -54
- package/lib/util/comparators.js +22 -21
- package/lib/util/compileBooleanMatcher.js +3 -3
- package/lib/util/concatenate.js +6 -4
- package/lib/util/create-schema-validation.js +4 -4
- package/lib/util/createHash.js +2 -2
- package/lib/util/deprecation.js +35 -33
- package/lib/util/deterministicGrouping.js +6 -6
- package/lib/util/findGraphRoots.js +1 -1
- package/lib/util/fs.js +39 -39
- package/lib/util/hash/wasm-hash.js +2 -2
- package/lib/util/identifier.js +15 -18
- package/lib/util/makeSerializable.js +1 -1
- package/lib/util/memoize.js +4 -1
- package/lib/util/objectToMap.js +3 -2
- package/lib/util/processAsyncTree.js +2 -2
- package/lib/util/propertyName.js +0 -1
- package/lib/util/registerExternalSerializer.js +15 -18
- package/lib/util/removeBOM.js +25 -0
- package/lib/util/runtime.js +34 -27
- package/lib/util/serialization.js +5 -16
- package/lib/util/smartGrouping.js +3 -3
- package/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js +3 -3
- package/lib/wasm-async/AsyncWebAssemblyGenerator.js +11 -0
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +10 -0
- package/lib/wasm-async/UniversalCompileAsyncWasmPlugin.js +4 -0
- package/lib/wasm-sync/WebAssemblyGenerator.js +28 -12
- package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +10 -0
- package/lib/wasm-sync/WebAssemblyParser.js +9 -4
- package/lib/webworker/ImportScriptsChunkLoadingPlugin.js +3 -0
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +30 -25
- package/package.json +19 -17
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +48 -13
- package/schemas/plugins/JsonModulesPluginGenerator.check.d.ts +7 -0
- package/schemas/plugins/JsonModulesPluginGenerator.check.js +6 -0
- package/schemas/plugins/JsonModulesPluginGenerator.json +11 -0
- package/schemas/plugins/SourceMapDevToolPlugin.json +2 -2
- package/types.d.ts +918 -615
- package/lib/library/ModernModuleLibraryPlugin.js +0 -144
package/types.d.ts
CHANGED
@@ -50,6 +50,8 @@ import {
|
|
50
50
|
ImportSpecifier,
|
51
51
|
LabeledStatement,
|
52
52
|
LogicalExpression,
|
53
|
+
MaybeNamedClassDeclaration,
|
54
|
+
MaybeNamedFunctionDeclaration,
|
53
55
|
MemberExpression,
|
54
56
|
MetaProperty,
|
55
57
|
MethodDefinition,
|
@@ -85,15 +87,15 @@ import {
|
|
85
87
|
WithStatement,
|
86
88
|
YieldExpression
|
87
89
|
} from "estree";
|
88
|
-
import {
|
89
|
-
|
90
|
-
ServerOptions as ServerOptionsImport,
|
91
|
-
ServerResponse
|
92
|
-
} from "http";
|
90
|
+
import { IncomingMessage, ServerOptions } from "http";
|
91
|
+
import { JSONSchema4, JSONSchema6, JSONSchema7 } from "json-schema";
|
93
92
|
import { ListenOptions, Server } from "net";
|
94
93
|
import { validate as validateFunction } from "schema-utils";
|
95
94
|
import { default as ValidationError } from "schema-utils/declarations/ValidationError";
|
96
|
-
import {
|
95
|
+
import {
|
96
|
+
Extend,
|
97
|
+
ValidationErrorConfiguration
|
98
|
+
} from "schema-utils/declarations/validate";
|
97
99
|
import {
|
98
100
|
AsArray,
|
99
101
|
AsyncParallelHook,
|
@@ -119,16 +121,7 @@ declare interface Abortable {
|
|
119
121
|
signal?: AbortSignal;
|
120
122
|
}
|
121
123
|
declare class AbstractLibraryPlugin<T> {
|
122
|
-
constructor(__0:
|
123
|
-
/**
|
124
|
-
* name of the plugin
|
125
|
-
*/
|
126
|
-
pluginName: string;
|
127
|
-
/**
|
128
|
-
* used library type
|
129
|
-
*/
|
130
|
-
type: string;
|
131
|
-
});
|
124
|
+
constructor(__0: AbstractLibraryPluginOptions);
|
132
125
|
|
133
126
|
/**
|
134
127
|
* Apply the plugin
|
@@ -173,6 +166,17 @@ declare class AbstractLibraryPlugin<T> {
|
|
173
166
|
): void;
|
174
167
|
static COMMON_LIBRARY_NAME_MESSAGE: string;
|
175
168
|
}
|
169
|
+
declare interface AbstractLibraryPluginOptions {
|
170
|
+
/**
|
171
|
+
* name of the plugin
|
172
|
+
*/
|
173
|
+
pluginName: string;
|
174
|
+
|
175
|
+
/**
|
176
|
+
* used library type
|
177
|
+
*/
|
178
|
+
type: string;
|
179
|
+
}
|
176
180
|
declare interface AdditionalData {
|
177
181
|
[index: string]: any;
|
178
182
|
webpackAST: object;
|
@@ -246,22 +250,22 @@ declare interface ArgumentConfig {
|
|
246
250
|
path: string;
|
247
251
|
multiple: boolean;
|
248
252
|
type: "string" | "number" | "boolean" | "path" | "enum" | "RegExp" | "reset";
|
249
|
-
values?:
|
253
|
+
values?: EnumValue[];
|
250
254
|
}
|
251
255
|
type ArrayBufferLike = ArrayBuffer | SharedArrayBuffer;
|
252
|
-
type ArrayBufferView =
|
253
|
-
| Uint8Array
|
254
|
-
| Uint8ClampedArray
|
255
|
-
| Uint16Array
|
256
|
-
| Uint32Array
|
257
|
-
| Int8Array
|
258
|
-
| Int16Array
|
259
|
-
| Int32Array
|
260
|
-
| BigUint64Array
|
261
|
-
| BigInt64Array
|
262
|
-
| Float32Array
|
263
|
-
| Float64Array
|
264
|
-
| DataView
|
256
|
+
type ArrayBufferView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =
|
257
|
+
| Uint8Array
|
258
|
+
| Uint8ClampedArray
|
259
|
+
| Uint16Array
|
260
|
+
| Uint32Array
|
261
|
+
| Int8Array
|
262
|
+
| Int16Array
|
263
|
+
| Int32Array
|
264
|
+
| BigUint64Array
|
265
|
+
| BigInt64Array
|
266
|
+
| Float32Array
|
267
|
+
| Float64Array
|
268
|
+
| DataView;
|
265
269
|
declare interface Asset {
|
266
270
|
/**
|
267
271
|
* the filename of the asset
|
@@ -389,6 +393,7 @@ declare class AsyncDependenciesBlock extends DependenciesBlock {
|
|
389
393
|
constructor(
|
390
394
|
groupOptions:
|
391
395
|
| null
|
396
|
+
| string
|
392
397
|
| (RawChunkGroupOptions & { name?: null | string } & {
|
393
398
|
entryOptions?: EntryOptions;
|
394
399
|
}),
|
@@ -463,8 +468,8 @@ declare class AutomaticPrefetchPlugin {
|
|
463
468
|
}
|
464
469
|
type AuxiliaryComment = string | LibraryCustomUmdCommentObject;
|
465
470
|
declare interface BackendApi {
|
466
|
-
dispose: (
|
467
|
-
module: (
|
471
|
+
dispose: (callback: (err?: null | Error) => void) => void;
|
472
|
+
module: (module: Module) => ModuleResult;
|
468
473
|
}
|
469
474
|
declare class BannerPlugin {
|
470
475
|
constructor(options: BannerPluginArgument);
|
@@ -556,8 +561,8 @@ declare abstract class BasicEvaluatedExpression {
|
|
556
561
|
prefix?: null | BasicEvaluatedExpression;
|
557
562
|
postfix?: null | BasicEvaluatedExpression;
|
558
563
|
wrappedInnerExpressions?: BasicEvaluatedExpression[];
|
559
|
-
identifier?: string |
|
560
|
-
rootInfo?: string |
|
564
|
+
identifier?: string | VariableInfo;
|
565
|
+
rootInfo?: string | VariableInfo;
|
561
566
|
getMembers?: () => string[];
|
562
567
|
getMembersOptionals?: () => boolean[];
|
563
568
|
getMemberRanges?: () => [number, number][];
|
@@ -595,6 +600,7 @@ declare abstract class BasicEvaluatedExpression {
|
|
595
600
|
| YieldExpression
|
596
601
|
| SpreadElement
|
597
602
|
| PrivateIdentifier
|
603
|
+
| Super
|
598
604
|
| FunctionDeclaration
|
599
605
|
| VariableDeclaration
|
600
606
|
| ClassDeclaration
|
@@ -628,7 +634,6 @@ declare abstract class BasicEvaluatedExpression {
|
|
628
634
|
| RestElement
|
629
635
|
| AssignmentPattern
|
630
636
|
| Property
|
631
|
-
| Super
|
632
637
|
| AssignmentProperty
|
633
638
|
| ClassBody
|
634
639
|
| ImportSpecifier
|
@@ -716,8 +721,8 @@ declare abstract class BasicEvaluatedExpression {
|
|
716
721
|
* Set's the value of this expression to a particular identifier and its members.
|
717
722
|
*/
|
718
723
|
setIdentifier(
|
719
|
-
identifier: string |
|
720
|
-
rootInfo: string |
|
724
|
+
identifier: string | VariableInfo,
|
725
|
+
rootInfo: string | VariableInfo,
|
721
726
|
getMembers: () => string[],
|
722
727
|
getMembersOptionals?: () => boolean[],
|
723
728
|
getMemberRanges?: () => [number, number][]
|
@@ -818,6 +823,7 @@ declare abstract class BasicEvaluatedExpression {
|
|
818
823
|
| YieldExpression
|
819
824
|
| SpreadElement
|
820
825
|
| PrivateIdentifier
|
826
|
+
| Super
|
821
827
|
| FunctionDeclaration
|
822
828
|
| VariableDeclaration
|
823
829
|
| ClassDeclaration
|
@@ -851,7 +857,6 @@ declare abstract class BasicEvaluatedExpression {
|
|
851
857
|
| RestElement
|
852
858
|
| AssignmentPattern
|
853
859
|
| Property
|
854
|
-
| Super
|
855
860
|
| AssignmentProperty
|
856
861
|
| ClassBody
|
857
862
|
| ImportSpecifier
|
@@ -876,16 +881,21 @@ type BufferEncoding =
|
|
876
881
|
| "utf-16le"
|
877
882
|
| "ucs2"
|
878
883
|
| "ucs-2"
|
879
|
-
| "latin1"
|
880
|
-
| "binary"
|
881
884
|
| "base64"
|
882
885
|
| "base64url"
|
886
|
+
| "latin1"
|
887
|
+
| "binary"
|
883
888
|
| "hex";
|
884
889
|
type BufferEncodingOption = "buffer" | { encoding: "buffer" };
|
885
890
|
type BuildInfo = KnownBuildInfo & Record<string, any>;
|
886
891
|
type BuildMeta = KnownBuildMeta & Record<string, any>;
|
887
892
|
declare abstract class ByTypeGenerator extends Generator {
|
888
893
|
map: Record<string, Generator>;
|
894
|
+
generateError?: (
|
895
|
+
error: Error,
|
896
|
+
module: NormalModule,
|
897
|
+
generateContext: GenerateContext
|
898
|
+
) => null | Source;
|
889
899
|
}
|
890
900
|
declare const CIRCULAR_CONNECTION: unique symbol;
|
891
901
|
declare class Cache {
|
@@ -895,7 +905,7 @@ declare class Cache {
|
|
895
905
|
[
|
896
906
|
string,
|
897
907
|
null | Etag,
|
898
|
-
((result: any, callback: (
|
908
|
+
((result: any, callback: (err?: Error) => void) => void)[]
|
899
909
|
],
|
900
910
|
any
|
901
911
|
>;
|
@@ -957,7 +967,7 @@ declare abstract class CacheFacade {
|
|
957
967
|
provide<T>(
|
958
968
|
identifier: string,
|
959
969
|
etag: null | Etag,
|
960
|
-
computer: (
|
970
|
+
computer: (callback: CallbackNormalErrorCache<T>) => void,
|
961
971
|
callback: CallbackNormalErrorCache<T>
|
962
972
|
): void;
|
963
973
|
providePromise<T>(
|
@@ -967,12 +977,12 @@ declare abstract class CacheFacade {
|
|
967
977
|
): Promise<T>;
|
968
978
|
}
|
969
979
|
declare interface CacheGroupSource {
|
970
|
-
key
|
980
|
+
key: string;
|
971
981
|
priority?: number;
|
972
982
|
getName?: (
|
973
|
-
module
|
974
|
-
chunks
|
975
|
-
key
|
983
|
+
module: Module,
|
984
|
+
chunks: Chunk[],
|
985
|
+
key: string
|
976
986
|
) => undefined | string;
|
977
987
|
chunksFilter?: (chunk: Chunk) => undefined | boolean;
|
978
988
|
enforce?: boolean;
|
@@ -985,7 +995,7 @@ declare interface CacheGroupSource {
|
|
985
995
|
minChunks?: number;
|
986
996
|
maxAsyncRequests?: number;
|
987
997
|
maxInitialRequests?: number;
|
988
|
-
filename?: string | ((
|
998
|
+
filename?: string | ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
989
999
|
idHint?: string;
|
990
1000
|
automaticNameDelimiter?: string;
|
991
1001
|
reuseExistingChunk?: boolean;
|
@@ -1041,15 +1051,19 @@ declare interface CallbackWebpack<T> {
|
|
1041
1051
|
}
|
1042
1052
|
type Cell<T> = undefined | T;
|
1043
1053
|
declare class Chunk {
|
1044
|
-
constructor(name?: string, backCompat?: boolean);
|
1054
|
+
constructor(name?: null | string, backCompat?: boolean);
|
1045
1055
|
id: null | string | number;
|
1046
1056
|
ids: null | ChunkId[];
|
1047
1057
|
debugId: number;
|
1048
|
-
name?: string;
|
1058
|
+
name?: null | string;
|
1049
1059
|
idNameHints: SortableSet<string>;
|
1050
1060
|
preventIntegration: boolean;
|
1051
|
-
filenameTemplate?:
|
1052
|
-
|
1061
|
+
filenameTemplate?:
|
1062
|
+
| string
|
1063
|
+
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
1064
|
+
cssFilenameTemplate?:
|
1065
|
+
| string
|
1066
|
+
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
1053
1067
|
runtime: RuntimeSpec;
|
1054
1068
|
files: Set<string>;
|
1055
1069
|
auxiliaryFiles: Set<string>;
|
@@ -1139,7 +1153,7 @@ declare class ChunkGraph {
|
|
1139
1153
|
getModuleChunksIterable(module: Module): Iterable<Chunk>;
|
1140
1154
|
getOrderedModuleChunksIterable(
|
1141
1155
|
module: Module,
|
1142
|
-
sortFn: (
|
1156
|
+
sortFn: (a: Chunk, b: Chunk) => 0 | 1 | -1
|
1143
1157
|
): Iterable<Chunk>;
|
1144
1158
|
getModuleChunks(module: Module): Chunk[];
|
1145
1159
|
getNumberOfModuleChunks(module: Module): number;
|
@@ -1160,17 +1174,17 @@ declare class ChunkGraph {
|
|
1160
1174
|
getModuleSourceTypes(module: Module): ReadonlySet<string>;
|
1161
1175
|
getOrderedChunkModulesIterable(
|
1162
1176
|
chunk: Chunk,
|
1163
|
-
comparator: (
|
1177
|
+
comparator: (a: Module, b: Module) => 0 | 1 | -1
|
1164
1178
|
): Iterable<Module>;
|
1165
1179
|
getOrderedChunkModulesIterableBySourceType(
|
1166
1180
|
chunk: Chunk,
|
1167
1181
|
sourceType: string,
|
1168
|
-
comparator: (
|
1182
|
+
comparator: (a: Module, b: Module) => 0 | 1 | -1
|
1169
1183
|
): undefined | Iterable<Module>;
|
1170
1184
|
getChunkModules(chunk: Chunk): Module[];
|
1171
1185
|
getOrderedChunkModules(
|
1172
1186
|
chunk: Chunk,
|
1173
|
-
comparator: (
|
1187
|
+
comparator: (a: Module, b: Module) => 0 | 1 | -1
|
1174
1188
|
): Module[];
|
1175
1189
|
getChunkModuleIdMap(
|
1176
1190
|
chunk: Chunk,
|
@@ -1466,7 +1480,7 @@ declare interface ChunkPathData {
|
|
1466
1480
|
id: string | number;
|
1467
1481
|
name?: string;
|
1468
1482
|
hash: string;
|
1469
|
-
hashWithLength?: (
|
1483
|
+
hashWithLength?: (length: number) => string;
|
1470
1484
|
contentHash?: Record<string, string>;
|
1471
1485
|
contentHashWithLength?: Record<string, (length: number) => string>;
|
1472
1486
|
}
|
@@ -1560,8 +1574,8 @@ declare abstract class ChunkTemplate {
|
|
1560
1574
|
| string
|
1561
1575
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
1562
1576
|
fn: (
|
1563
|
-
|
1564
|
-
|
1577
|
+
renderManifestEntries: RenderManifestEntry[],
|
1578
|
+
renderManifestOptions: RenderManifestOptions
|
1565
1579
|
) => RenderManifestEntry[]
|
1566
1580
|
) => void;
|
1567
1581
|
};
|
@@ -1571,9 +1585,9 @@ declare abstract class ChunkTemplate {
|
|
1571
1585
|
| string
|
1572
1586
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
1573
1587
|
fn: (
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1588
|
+
source: Source,
|
1589
|
+
moduleTemplate: ModuleTemplate,
|
1590
|
+
renderContext: RenderContextJavascriptModulesPlugin
|
1577
1591
|
) => Source
|
1578
1592
|
) => void;
|
1579
1593
|
};
|
@@ -1583,9 +1597,9 @@ declare abstract class ChunkTemplate {
|
|
1583
1597
|
| string
|
1584
1598
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
1585
1599
|
fn: (
|
1586
|
-
|
1587
|
-
|
1588
|
-
|
1600
|
+
source: Source,
|
1601
|
+
moduleTemplate: ModuleTemplate,
|
1602
|
+
renderContext: RenderContextJavascriptModulesPlugin
|
1589
1603
|
) => Source
|
1590
1604
|
) => void;
|
1591
1605
|
};
|
@@ -1594,7 +1608,7 @@ declare abstract class ChunkTemplate {
|
|
1594
1608
|
options:
|
1595
1609
|
| string
|
1596
1610
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
1597
|
-
fn: (
|
1611
|
+
fn: (source: Source, chunk: Chunk) => Source
|
1598
1612
|
) => void;
|
1599
1613
|
};
|
1600
1614
|
hash: {
|
@@ -1602,7 +1616,7 @@ declare abstract class ChunkTemplate {
|
|
1602
1616
|
options:
|
1603
1617
|
| string
|
1604
1618
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
1605
|
-
fn: (
|
1619
|
+
fn: (hash: Hash) => void
|
1606
1620
|
) => void;
|
1607
1621
|
};
|
1608
1622
|
hashForChunk: {
|
@@ -1610,7 +1624,11 @@ declare abstract class ChunkTemplate {
|
|
1610
1624
|
options:
|
1611
1625
|
| string
|
1612
1626
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
1613
|
-
fn: (
|
1627
|
+
fn: (
|
1628
|
+
hash: Hash,
|
1629
|
+
chunk: Chunk,
|
1630
|
+
chunkHashContext: ChunkHashContext
|
1631
|
+
) => void
|
1614
1632
|
) => void;
|
1615
1633
|
};
|
1616
1634
|
}>;
|
@@ -1704,6 +1722,12 @@ declare interface CodeGenerationContext {
|
|
1704
1722
|
*/
|
1705
1723
|
sourceTypes?: ReadonlySet<string>;
|
1706
1724
|
}
|
1725
|
+
declare interface CodeGenerationJob {
|
1726
|
+
module: Module;
|
1727
|
+
hash: string;
|
1728
|
+
runtime: RuntimeSpec;
|
1729
|
+
runtimes: RuntimeSpec[];
|
1730
|
+
}
|
1707
1731
|
declare interface CodeGenerationResult {
|
1708
1732
|
/**
|
1709
1733
|
* the resulting sources for all source types
|
@@ -1726,7 +1750,7 @@ declare interface CodeGenerationResult {
|
|
1726
1750
|
hash?: string;
|
1727
1751
|
}
|
1728
1752
|
declare abstract class CodeGenerationResults {
|
1729
|
-
map: Map<Module, RuntimeSpecMap<CodeGenerationResult>>;
|
1753
|
+
map: Map<Module, RuntimeSpecMap<CodeGenerationResult, CodeGenerationResult>>;
|
1730
1754
|
get(module: Module, runtime: RuntimeSpec): CodeGenerationResult;
|
1731
1755
|
has(module: Module, runtime: RuntimeSpec): boolean;
|
1732
1756
|
getSource(module: Module, runtime: RuntimeSpec, sourceType: string): Source;
|
@@ -1735,7 +1759,7 @@ declare abstract class CodeGenerationResults {
|
|
1735
1759
|
runtime: RuntimeSpec
|
1736
1760
|
): null | ReadonlySet<string>;
|
1737
1761
|
getData(module: Module, runtime: RuntimeSpec, key: string): any;
|
1738
|
-
getHash(module: Module, runtime: RuntimeSpec):
|
1762
|
+
getHash(module: Module, runtime: RuntimeSpec): string;
|
1739
1763
|
add(module: Module, runtime: RuntimeSpec, result: CodeGenerationResult): void;
|
1740
1764
|
}
|
1741
1765
|
type CodeValue =
|
@@ -1782,7 +1806,7 @@ type CodeValuePrimitive =
|
|
1782
1806
|
| Function
|
1783
1807
|
| RegExp;
|
1784
1808
|
declare interface Comparator<T> {
|
1785
|
-
(
|
1809
|
+
(a: T, b: T): 0 | 1 | -1;
|
1786
1810
|
}
|
1787
1811
|
declare class CompatSource extends Source {
|
1788
1812
|
constructor(sourceLike: SourceLike);
|
@@ -1857,18 +1881,18 @@ declare class Compilation {
|
|
1857
1881
|
SyncBailHook<[Chunk, Set<string>, RuntimeRequirementsContext], void>
|
1858
1882
|
>;
|
1859
1883
|
runtimeModule: SyncHook<[RuntimeModule, Chunk]>;
|
1860
|
-
reviveModules: SyncHook<[Iterable<Module>,
|
1884
|
+
reviveModules: SyncHook<[Iterable<Module>, Records]>;
|
1861
1885
|
beforeModuleIds: SyncHook<[Iterable<Module>]>;
|
1862
1886
|
moduleIds: SyncHook<[Iterable<Module>]>;
|
1863
1887
|
optimizeModuleIds: SyncHook<[Iterable<Module>]>;
|
1864
1888
|
afterOptimizeModuleIds: SyncHook<[Iterable<Module>]>;
|
1865
|
-
reviveChunks: SyncHook<[Iterable<Chunk>,
|
1889
|
+
reviveChunks: SyncHook<[Iterable<Chunk>, Records]>;
|
1866
1890
|
beforeChunkIds: SyncHook<[Iterable<Chunk>]>;
|
1867
1891
|
chunkIds: SyncHook<[Iterable<Chunk>]>;
|
1868
1892
|
optimizeChunkIds: SyncHook<[Iterable<Chunk>]>;
|
1869
1893
|
afterOptimizeChunkIds: SyncHook<[Iterable<Chunk>]>;
|
1870
|
-
recordModules: SyncHook<[Iterable<Module>,
|
1871
|
-
recordChunks: SyncHook<[Iterable<Chunk>,
|
1894
|
+
recordModules: SyncHook<[Iterable<Module>, Records]>;
|
1895
|
+
recordChunks: SyncHook<[Iterable<Chunk>, Records]>;
|
1872
1896
|
optimizeCodeGeneration: SyncHook<[Iterable<Module>]>;
|
1873
1897
|
beforeModuleHash: SyncHook<[]>;
|
1874
1898
|
afterModuleHash: SyncHook<[]>;
|
@@ -1879,8 +1903,8 @@ declare class Compilation {
|
|
1879
1903
|
beforeHash: SyncHook<[]>;
|
1880
1904
|
contentHash: SyncHook<[Chunk]>;
|
1881
1905
|
afterHash: SyncHook<[]>;
|
1882
|
-
recordHash: SyncHook<[
|
1883
|
-
record: SyncHook<[Compilation,
|
1906
|
+
recordHash: SyncHook<[Records]>;
|
1907
|
+
record: SyncHook<[Compilation, Records]>;
|
1884
1908
|
beforeModuleAssets: SyncHook<[]>;
|
1885
1909
|
shouldGenerateChunkAssets: SyncBailHook<[], boolean | void>;
|
1886
1910
|
beforeChunkAssets: SyncHook<[]>;
|
@@ -1925,7 +1949,7 @@ declare class Compilation {
|
|
1925
1949
|
chunkHash: SyncHook<[Chunk, Hash, ChunkHashContext]>;
|
1926
1950
|
moduleAsset: SyncHook<[Module, string]>;
|
1927
1951
|
chunkAsset: SyncHook<[Chunk, string]>;
|
1928
|
-
assetPath: SyncWaterfallHook<[string,
|
1952
|
+
assetPath: SyncWaterfallHook<[string, PathData, undefined | AssetInfo]>;
|
1929
1953
|
needAdditionalPass: SyncBailHook<[], boolean | void>;
|
1930
1954
|
childCompiler: SyncHook<[Compiler, string, number]>;
|
1931
1955
|
log: SyncBailHook<[string, LogEntry], boolean | void>;
|
@@ -1993,7 +2017,7 @@ declare class Compilation {
|
|
1993
2017
|
namedChunkGroups: Map<string, ChunkGroup>;
|
1994
2018
|
namedChunks: Map<string, Chunk>;
|
1995
2019
|
modules: Set<Module>;
|
1996
|
-
records:
|
2020
|
+
records: null | Records;
|
1997
2021
|
additionalChunkAssets: string[];
|
1998
2022
|
assets: CompilationAssets;
|
1999
2023
|
assetsInfo: Map<string, AssetInfo>;
|
@@ -2004,8 +2028,8 @@ declare class Compilation {
|
|
2004
2028
|
dependencyFactories: Map<DepConstructor, ModuleFactory>;
|
2005
2029
|
dependencyTemplates: DependencyTemplates;
|
2006
2030
|
childrenCounters: Record<string, number>;
|
2007
|
-
usedChunkIds: Set<string | number>;
|
2008
|
-
usedModuleIds: Set<number>;
|
2031
|
+
usedChunkIds: null | Set<string | number>;
|
2032
|
+
usedModuleIds: null | Set<number>;
|
2009
2033
|
needAdditionalPass: boolean;
|
2010
2034
|
builtModules: WeakSet<Module>;
|
2011
2035
|
codeGeneratedModules: WeakSet<Module>;
|
@@ -2151,7 +2175,7 @@ declare class Compilation {
|
|
2151
2175
|
* This method first looks to see if a name is provided for a new chunk,
|
2152
2176
|
* and first looks to see if any named chunks already exist and reuse that chunk instead.
|
2153
2177
|
*/
|
2154
|
-
addChunk(name?: string): Chunk;
|
2178
|
+
addChunk(name?: null | string): Chunk;
|
2155
2179
|
assignDepth(module: Module): void;
|
2156
2180
|
assignDepths(modules: Set<Module>): void;
|
2157
2181
|
getDependencyReferencedExports(
|
@@ -2168,19 +2192,16 @@ declare class Compilation {
|
|
2168
2192
|
sortItemsWithChunkIds(): void;
|
2169
2193
|
summarizeDependencies(): void;
|
2170
2194
|
createModuleHashes(): void;
|
2171
|
-
createHash():
|
2172
|
-
module: Module;
|
2173
|
-
hash: string;
|
2174
|
-
runtime: RuntimeSpec;
|
2175
|
-
runtimes: RuntimeSpec[];
|
2176
|
-
}[];
|
2195
|
+
createHash(): CodeGenerationJob[];
|
2177
2196
|
fullHash?: string;
|
2178
2197
|
hash?: string;
|
2179
2198
|
emitAsset(file: string, source: Source, assetInfo?: AssetInfo): void;
|
2180
2199
|
updateAsset(
|
2181
2200
|
file: string,
|
2182
|
-
newSourceOrFunction: Source | ((
|
2183
|
-
assetInfoUpdateOrFunction?:
|
2201
|
+
newSourceOrFunction: Source | ((source: Source) => Source),
|
2202
|
+
assetInfoUpdateOrFunction?:
|
2203
|
+
| AssetInfo
|
2204
|
+
| ((assetInfo?: AssetInfo) => undefined | AssetInfo)
|
2184
2205
|
): void;
|
2185
2206
|
renameAsset(file: string, newFile: string): void;
|
2186
2207
|
deleteAsset(file: string): void;
|
@@ -2437,17 +2458,14 @@ declare class Compiler {
|
|
2437
2458
|
immutablePaths: Set<string | RegExp>;
|
2438
2459
|
modifiedFiles?: ReadonlySet<string>;
|
2439
2460
|
removedFiles?: ReadonlySet<string>;
|
2440
|
-
fileTimestamps?:
|
2441
|
-
contextTimestamps?:
|
2442
|
-
string,
|
2443
|
-
null | FileSystemInfoEntry | "ignore"
|
2444
|
-
>;
|
2461
|
+
fileTimestamps?: Map<string, FileSystemInfoEntry | "ignore">;
|
2462
|
+
contextTimestamps?: Map<string, FileSystemInfoEntry | "ignore">;
|
2445
2463
|
fsStartTime?: number;
|
2446
2464
|
resolverFactory: ResolverFactory;
|
2447
2465
|
infrastructureLogger?: (
|
2448
|
-
|
2449
|
-
|
2450
|
-
|
2466
|
+
value: string,
|
2467
|
+
type: LogTypeEnum,
|
2468
|
+
args?: any[]
|
2451
2469
|
) => void;
|
2452
2470
|
platform: Readonly<PlatformTargetProperties>;
|
2453
2471
|
options: WebpackOptionsNormalized;
|
@@ -3060,15 +3078,21 @@ declare interface ContextModuleOptions {
|
|
3060
3078
|
declare class ContextReplacementPlugin {
|
3061
3079
|
constructor(
|
3062
3080
|
resourceRegExp: RegExp,
|
3063
|
-
newContentResource?: any,
|
3064
|
-
newContentRecursive?:
|
3081
|
+
newContentResource?: string | boolean | RegExp | ((context?: any) => void),
|
3082
|
+
newContentRecursive?: boolean | RegExp | NewContentCreateContextMap,
|
3065
3083
|
newContentRegExp?: RegExp
|
3066
3084
|
);
|
3067
3085
|
resourceRegExp: RegExp;
|
3068
|
-
newContentCallback
|
3069
|
-
newContentResource
|
3070
|
-
newContentCreateContextMap
|
3071
|
-
|
3086
|
+
newContentCallback?: (context?: any) => void;
|
3087
|
+
newContentResource?: string;
|
3088
|
+
newContentCreateContextMap?: (
|
3089
|
+
fs: InputFileSystem,
|
3090
|
+
callback: (
|
3091
|
+
err: null | Error,
|
3092
|
+
newContentRecursive: NewContentCreateContextMap
|
3093
|
+
) => void
|
3094
|
+
) => void;
|
3095
|
+
newContentRecursive?: boolean;
|
3072
3096
|
newContentRegExp?: RegExp;
|
3073
3097
|
|
3074
3098
|
/**
|
@@ -3076,6 +3100,7 @@ declare class ContextReplacementPlugin {
|
|
3076
3100
|
*/
|
3077
3101
|
apply(compiler: Compiler): void;
|
3078
3102
|
}
|
3103
|
+
type ContextTimestamp = null | ContextFileSystemInfoEntry | "ignore";
|
3079
3104
|
declare interface ContextTimestampAndHash {
|
3080
3105
|
safeTime: number;
|
3081
3106
|
timestampHash?: string;
|
@@ -3083,8 +3108,8 @@ declare interface ContextTimestampAndHash {
|
|
3083
3108
|
resolved?: ResolvedContextTimestampAndHash;
|
3084
3109
|
symlinks?: Set<string>;
|
3085
3110
|
}
|
3086
|
-
type CreateStatsOptionsContext =
|
3087
|
-
|
3111
|
+
type CreateStatsOptionsContext = KnownCreateStatsOptionsContext &
|
3112
|
+
Record<string, any>;
|
3088
3113
|
type CreateWriteStreamFSImplementation = FSImplementation & {
|
3089
3114
|
write: (...args: any[]) => any;
|
3090
3115
|
close?: (...args: any[]) => any;
|
@@ -3368,7 +3393,7 @@ declare class DefinePlugin {
|
|
3368
3393
|
*/
|
3369
3394
|
apply(compiler: Compiler): void;
|
3370
3395
|
static runtimeValue(
|
3371
|
-
fn: (
|
3396
|
+
fn: (value: {
|
3372
3397
|
module: NormalModule;
|
3373
3398
|
key: string;
|
3374
3399
|
readonly version: ValueCacheVersion;
|
@@ -3448,7 +3473,10 @@ declare class Dependency {
|
|
3448
3473
|
):
|
3449
3474
|
| null
|
3450
3475
|
| false
|
3451
|
-
| ((
|
3476
|
+
| ((
|
3477
|
+
moduleGraphConnection: ModuleGraphConnection,
|
3478
|
+
runtime: RuntimeSpec
|
3479
|
+
) => ConnectionState);
|
3452
3480
|
|
3453
3481
|
/**
|
3454
3482
|
* Returns the exported names
|
@@ -3613,7 +3641,7 @@ declare interface DeterministicModuleIdsPluginOptions {
|
|
3613
3641
|
/**
|
3614
3642
|
* selector function for modules
|
3615
3643
|
*/
|
3616
|
-
test?: (
|
3644
|
+
test?: (module: Module) => boolean;
|
3617
3645
|
|
3618
3646
|
/**
|
3619
3647
|
* maximum id length in digits (used as starting point)
|
@@ -3635,7 +3663,7 @@ declare interface DeterministicModuleIdsPluginOptions {
|
|
3635
3663
|
*/
|
3636
3664
|
failOnConflict?: boolean;
|
3637
3665
|
}
|
3638
|
-
type DevtoolModuleFilenameTemplate = string |
|
3666
|
+
type DevtoolModuleFilenameTemplate = string | ((context?: any) => string);
|
3639
3667
|
declare interface Dirent {
|
3640
3668
|
isFile: () => boolean;
|
3641
3669
|
isDirectory: () => boolean;
|
@@ -3939,10 +3967,10 @@ type EncodingOption =
|
|
3939
3967
|
| "utf-16le"
|
3940
3968
|
| "ucs2"
|
3941
3969
|
| "ucs-2"
|
3942
|
-
| "latin1"
|
3943
|
-
| "binary"
|
3944
3970
|
| "base64"
|
3945
3971
|
| "base64url"
|
3972
|
+
| "latin1"
|
3973
|
+
| "binary"
|
3946
3974
|
| "hex"
|
3947
3975
|
| ObjectEncodingOptions;
|
3948
3976
|
type Entry =
|
@@ -4164,6 +4192,16 @@ declare abstract class Entrypoint extends ChunkGroup {
|
|
4164
4192
|
*/
|
4165
4193
|
getEntrypointChunk(): Chunk;
|
4166
4194
|
}
|
4195
|
+
type EnumValue =
|
4196
|
+
| null
|
4197
|
+
| string
|
4198
|
+
| number
|
4199
|
+
| boolean
|
4200
|
+
| EnumValueObject
|
4201
|
+
| EnumValue[];
|
4202
|
+
declare interface EnumValueObject {
|
4203
|
+
[index: string]: EnumValue;
|
4204
|
+
}
|
4167
4205
|
|
4168
4206
|
/**
|
4169
4207
|
* The abilities of the environment where the webpack generated code should run.
|
@@ -4278,12 +4316,12 @@ declare interface EvalDevToolModulePluginOptions {
|
|
4278
4316
|
/**
|
4279
4317
|
* module filename template
|
4280
4318
|
*/
|
4281
|
-
moduleFilenameTemplate?: string |
|
4319
|
+
moduleFilenameTemplate?: string | ((context?: any) => string);
|
4282
4320
|
}
|
4283
4321
|
declare class EvalSourceMapDevToolPlugin {
|
4284
4322
|
constructor(inputOptions: string | SourceMapDevToolPluginOptions);
|
4285
4323
|
sourceMapComment: string;
|
4286
|
-
moduleFilenameTemplate: string |
|
4324
|
+
moduleFilenameTemplate: string | ((context?: any) => string);
|
4287
4325
|
namespace: string;
|
4288
4326
|
options: SourceMapDevToolPluginOptions;
|
4289
4327
|
|
@@ -4294,15 +4332,36 @@ declare class EvalSourceMapDevToolPlugin {
|
|
4294
4332
|
}
|
4295
4333
|
declare interface ExecuteModuleArgument {
|
4296
4334
|
module: Module;
|
4297
|
-
moduleObject?:
|
4335
|
+
moduleObject?: ExecuteModuleObject;
|
4298
4336
|
preparedInfo: any;
|
4299
4337
|
codeGenerationResult: CodeGenerationResult;
|
4300
4338
|
}
|
4301
4339
|
declare interface ExecuteModuleContext {
|
4302
|
-
assets: Map<string, { source: Source; info
|
4340
|
+
assets: Map<string, { source: Source; info?: AssetInfo }>;
|
4303
4341
|
chunk: Chunk;
|
4304
4342
|
chunkGraph: ChunkGraph;
|
4305
|
-
__webpack_require__?:
|
4343
|
+
__webpack_require__?: WebpackRequire;
|
4344
|
+
}
|
4345
|
+
declare interface ExecuteModuleObject {
|
4346
|
+
/**
|
4347
|
+
* module id
|
4348
|
+
*/
|
4349
|
+
id?: string;
|
4350
|
+
|
4351
|
+
/**
|
4352
|
+
* exports
|
4353
|
+
*/
|
4354
|
+
exports: any;
|
4355
|
+
|
4356
|
+
/**
|
4357
|
+
* is loaded
|
4358
|
+
*/
|
4359
|
+
loaded: boolean;
|
4360
|
+
|
4361
|
+
/**
|
4362
|
+
* error
|
4363
|
+
*/
|
4364
|
+
error?: Error;
|
4306
4365
|
}
|
4307
4366
|
declare interface ExecuteModuleOptions {
|
4308
4367
|
entryOptions?: EntryOptions;
|
@@ -4310,12 +4369,28 @@ declare interface ExecuteModuleOptions {
|
|
4310
4369
|
declare interface ExecuteModuleResult {
|
4311
4370
|
exports: any;
|
4312
4371
|
cacheable: boolean;
|
4313
|
-
assets: Map<string, { source: Source; info
|
4372
|
+
assets: Map<string, { source: Source; info?: AssetInfo }>;
|
4314
4373
|
fileDependencies: LazySet<string>;
|
4315
4374
|
contextDependencies: LazySet<string>;
|
4316
4375
|
missingDependencies: LazySet<string>;
|
4317
4376
|
buildDependencies: LazySet<string>;
|
4318
4377
|
}
|
4378
|
+
declare interface ExecuteOptions {
|
4379
|
+
/**
|
4380
|
+
* module id
|
4381
|
+
*/
|
4382
|
+
id?: string;
|
4383
|
+
|
4384
|
+
/**
|
4385
|
+
* module
|
4386
|
+
*/
|
4387
|
+
module: ExecuteModuleObject;
|
4388
|
+
|
4389
|
+
/**
|
4390
|
+
* require function
|
4391
|
+
*/
|
4392
|
+
require: WebpackRequire;
|
4393
|
+
}
|
4319
4394
|
type Experiments = ExperimentsCommon & ExperimentsExtra;
|
4320
4395
|
|
4321
4396
|
/**
|
@@ -4442,14 +4517,14 @@ declare abstract class ExportInfo {
|
|
4442
4517
|
setUsedWithoutInfo(runtime: RuntimeSpec): boolean;
|
4443
4518
|
setHasUseInfo(): void;
|
4444
4519
|
setUsedConditionally(
|
4445
|
-
condition: (
|
4520
|
+
condition: (condition: UsageStateType) => boolean,
|
4446
4521
|
newValue: UsageStateType,
|
4447
4522
|
runtime: RuntimeSpec
|
4448
4523
|
): boolean;
|
4449
4524
|
setUsed(newValue: UsageStateType, runtime: RuntimeSpec): boolean;
|
4450
|
-
unsetTarget(key
|
4525
|
+
unsetTarget(key: Dependency): boolean;
|
4451
4526
|
setTarget(
|
4452
|
-
key:
|
4527
|
+
key: Dependency,
|
4453
4528
|
connection: ModuleGraphConnection,
|
4454
4529
|
exportName?: null | string[],
|
4455
4530
|
priority?: number
|
@@ -4471,26 +4546,28 @@ declare abstract class ExportInfo {
|
|
4471
4546
|
setUsedName(name: string): void;
|
4472
4547
|
getTerminalBinding(
|
4473
4548
|
moduleGraph: ModuleGraph,
|
4474
|
-
resolveTargetFilter?: (
|
4549
|
+
resolveTargetFilter?: (target: TargetItemWithConnection) => boolean
|
4475
4550
|
): undefined | ExportsInfo | ExportInfo;
|
4476
4551
|
isReexport(): undefined | boolean;
|
4477
4552
|
findTarget(
|
4478
4553
|
moduleGraph: ModuleGraph,
|
4479
|
-
validTargetModuleFilter: (
|
4554
|
+
validTargetModuleFilter: (module: Module) => boolean
|
4480
4555
|
): undefined | null | false | TargetItemWithoutConnection;
|
4481
4556
|
getTarget(
|
4482
4557
|
moduleGraph: ModuleGraph,
|
4483
|
-
resolveTargetFilter?: (
|
4484
|
-
): undefined |
|
4558
|
+
resolveTargetFilter?: (target: TargetItemWithConnection) => boolean
|
4559
|
+
): undefined | TargetItemWithConnection;
|
4485
4560
|
|
4486
4561
|
/**
|
4487
4562
|
* Move the target forward as long resolveTargetFilter is fulfilled
|
4488
4563
|
*/
|
4489
4564
|
moveTarget(
|
4490
4565
|
moduleGraph: ModuleGraph,
|
4491
|
-
resolveTargetFilter: (
|
4492
|
-
updateOriginalConnection?: (
|
4493
|
-
|
4566
|
+
resolveTargetFilter: (target: TargetItemWithConnection) => boolean,
|
4567
|
+
updateOriginalConnection?: (
|
4568
|
+
target: TargetItemWithConnection
|
4569
|
+
) => ModuleGraphConnection
|
4570
|
+
): undefined | TargetItemWithConnection;
|
4494
4571
|
createNestedExportsInfo(): ExportsInfo;
|
4495
4572
|
getNestedExportsInfo(): undefined | ExportsInfo;
|
4496
4573
|
hasInfo(baseInfo: ExportInfo, runtime: RuntimeSpec): boolean;
|
@@ -4506,6 +4583,7 @@ declare abstract class ExportInfo {
|
|
4506
4583
|
type ExportNamedDeclarationJavascriptParser = ExportNamedDeclarationImport & {
|
4507
4584
|
attributes?: ImportAttribute[];
|
4508
4585
|
};
|
4586
|
+
type ExportPresenceMode = false | 0 | 1 | 2 | 3;
|
4509
4587
|
declare interface ExportSpec {
|
4510
4588
|
/**
|
4511
4589
|
* the name of the export
|
@@ -4565,7 +4643,7 @@ declare abstract class ExportsInfo {
|
|
4565
4643
|
setUnknownExportsProvided(
|
4566
4644
|
canMangle?: boolean,
|
4567
4645
|
excludeExports?: Set<string>,
|
4568
|
-
targetKey?:
|
4646
|
+
targetKey?: Dependency,
|
4569
4647
|
targetModule?: ModuleGraphConnection,
|
4570
4648
|
priority?: number
|
4571
4649
|
): boolean;
|
@@ -4585,12 +4663,7 @@ declare abstract class ExportsInfo {
|
|
4585
4663
|
getUsedName(name: string | string[], runtime: RuntimeSpec): UsedName;
|
4586
4664
|
updateHash(hash: Hash, runtime: RuntimeSpec): void;
|
4587
4665
|
getRestoreProvidedData(): RestoreProvidedData;
|
4588
|
-
restoreProvided(__0:
|
4589
|
-
otherProvided: any;
|
4590
|
-
otherCanMangleProvide: any;
|
4591
|
-
otherTerminalBinding: any;
|
4592
|
-
exports: any;
|
4593
|
-
}): void;
|
4666
|
+
restoreProvided(__0: RestoreProvidedData): void;
|
4594
4667
|
}
|
4595
4668
|
declare interface ExportsSpec {
|
4596
4669
|
/**
|
@@ -4740,7 +4813,11 @@ declare interface ExternalItemFunctionData {
|
|
4740
4813
|
| ((
|
4741
4814
|
context: string,
|
4742
4815
|
request: string,
|
4743
|
-
callback: (
|
4816
|
+
callback: (
|
4817
|
+
err?: null | Error,
|
4818
|
+
result?: string | false,
|
4819
|
+
resolveRequest?: ResolveRequest
|
4820
|
+
) => void
|
4744
4821
|
) => void)
|
4745
4822
|
| ((context: string, request: string) => Promise<string>);
|
4746
4823
|
|
@@ -4791,7 +4868,7 @@ declare class ExternalModule extends Module {
|
|
4791
4868
|
* restore unsafe cache data
|
4792
4869
|
*/
|
4793
4870
|
restoreFromUnsafeCache(
|
4794
|
-
unsafeCacheData:
|
4871
|
+
unsafeCacheData: UnsafeCacheData,
|
4795
4872
|
normalModuleFactory: NormalModuleFactory
|
4796
4873
|
): void;
|
4797
4874
|
}
|
@@ -5092,53 +5169,56 @@ declare abstract class FileSystemInfo {
|
|
5092
5169
|
logStatistics(): void;
|
5093
5170
|
clear(): void;
|
5094
5171
|
addFileTimestamps(
|
5095
|
-
map: ReadonlyMap<string,
|
5172
|
+
map: ReadonlyMap<string, FileTimestamp>,
|
5096
5173
|
immutable?: boolean
|
5097
5174
|
): void;
|
5098
5175
|
addContextTimestamps(
|
5099
|
-
map: ReadonlyMap<string,
|
5176
|
+
map: ReadonlyMap<string, ContextTimestamp>,
|
5100
5177
|
immutable?: boolean
|
5101
5178
|
): void;
|
5102
5179
|
getFileTimestamp(
|
5103
5180
|
path: string,
|
5104
5181
|
callback: (
|
5105
|
-
|
5106
|
-
|
5182
|
+
err?: null | WebpackError,
|
5183
|
+
fileTimestamp?: null | FileSystemInfoEntry | "ignore"
|
5107
5184
|
) => void
|
5108
5185
|
): void;
|
5109
5186
|
getContextTimestamp(
|
5110
5187
|
path: string,
|
5111
5188
|
callback: (
|
5112
|
-
|
5113
|
-
|
5189
|
+
err?: null | WebpackError,
|
5190
|
+
resolvedContextTimestamp?:
|
5191
|
+
| null
|
5192
|
+
| "ignore"
|
5193
|
+
| ResolvedContextFileSystemInfoEntry
|
5114
5194
|
) => void
|
5115
5195
|
): void;
|
5116
5196
|
getFileHash(
|
5117
5197
|
path: string,
|
5118
|
-
callback: (
|
5198
|
+
callback: (err?: null | WebpackError, hash?: null | string) => void
|
5119
5199
|
): void;
|
5120
5200
|
getContextHash(
|
5121
5201
|
path: string,
|
5122
|
-
callback: (
|
5202
|
+
callback: (err?: null | WebpackError, contextHash?: string) => void
|
5123
5203
|
): void;
|
5124
5204
|
getContextTsh(
|
5125
5205
|
path: string,
|
5126
5206
|
callback: (
|
5127
|
-
|
5128
|
-
|
5207
|
+
err?: null | WebpackError,
|
5208
|
+
resolvedContextTimestampAndHash?: null | ResolvedContextTimestampAndHash
|
5129
5209
|
) => void
|
5130
5210
|
): void;
|
5131
5211
|
resolveBuildDependencies(
|
5132
5212
|
context: string,
|
5133
5213
|
deps: Iterable<string>,
|
5134
5214
|
callback: (
|
5135
|
-
|
5136
|
-
|
5215
|
+
err?: null | Error,
|
5216
|
+
resolveBuildDependenciesResult?: ResolveBuildDependenciesResult
|
5137
5217
|
) => void
|
5138
5218
|
): void;
|
5139
5219
|
checkResolveResultsValid(
|
5140
|
-
resolveResults: Map<string, string | false>,
|
5141
|
-
callback: (
|
5220
|
+
resolveResults: Map<string, undefined | string | false>,
|
5221
|
+
callback: (err?: null | Error, result?: boolean) => void
|
5142
5222
|
): void;
|
5143
5223
|
createSnapshot(
|
5144
5224
|
startTime: undefined | null | number,
|
@@ -5146,20 +5226,21 @@ declare abstract class FileSystemInfo {
|
|
5146
5226
|
directories: null | Iterable<string>,
|
5147
5227
|
missing: null | Iterable<string>,
|
5148
5228
|
options: undefined | null | SnapshotOptionsFileSystemInfo,
|
5149
|
-
callback: (
|
5229
|
+
callback: (err: null | WebpackError, snapshot: null | Snapshot) => void
|
5150
5230
|
): void;
|
5151
5231
|
mergeSnapshots(snapshot1: Snapshot, snapshot2: Snapshot): Snapshot;
|
5152
5232
|
checkSnapshotValid(
|
5153
5233
|
snapshot: Snapshot,
|
5154
|
-
callback: (
|
5234
|
+
callback: (err?: null | WebpackError, result?: boolean) => void
|
5155
5235
|
): void;
|
5156
|
-
getDeprecatedFileTimestamps(): Map<
|
5157
|
-
getDeprecatedContextTimestamps(): Map<
|
5236
|
+
getDeprecatedFileTimestamps(): Map<string, null | number>;
|
5237
|
+
getDeprecatedContextTimestamps(): Map<string, null | number>;
|
5158
5238
|
}
|
5159
5239
|
declare interface FileSystemInfoEntry {
|
5160
5240
|
safeTime: number;
|
5161
5241
|
timestamp?: number;
|
5162
5242
|
}
|
5243
|
+
type FileTimestamp = null | FileSystemInfoEntry | "ignore";
|
5163
5244
|
type FilterItemTypes = string | RegExp | ((value: string) => boolean);
|
5164
5245
|
declare interface Flags {
|
5165
5246
|
[index: string]: Argument;
|
@@ -5291,6 +5372,11 @@ declare interface GeneratorOptionsByModuleTypeKnown {
|
|
5291
5372
|
* No generator options are supported for this module type.
|
5292
5373
|
*/
|
5293
5374
|
"javascript/esm"?: EmptyGeneratorOptions;
|
5375
|
+
|
5376
|
+
/**
|
5377
|
+
* Generator options for json modules.
|
5378
|
+
*/
|
5379
|
+
json?: JsonGeneratorOptions;
|
5294
5380
|
}
|
5295
5381
|
|
5296
5382
|
/**
|
@@ -5305,15 +5391,18 @@ declare class GetChunkFilenameRuntimeModule extends RuntimeModule {
|
|
5305
5391
|
name: string,
|
5306
5392
|
global: string,
|
5307
5393
|
getFilenameForChunk: (
|
5308
|
-
|
5309
|
-
) =>
|
5394
|
+
chunk: Chunk
|
5395
|
+
) =>
|
5396
|
+
| string
|
5397
|
+
| false
|
5398
|
+
| ((pathData: PathData, assetInfo?: AssetInfo) => string),
|
5310
5399
|
allChunks: boolean
|
5311
5400
|
);
|
5312
5401
|
contentType: string;
|
5313
5402
|
global: string;
|
5314
5403
|
getFilenameForChunk: (
|
5315
|
-
|
5316
|
-
) => string | false | ((
|
5404
|
+
chunk: Chunk
|
5405
|
+
) => string | false | ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
5317
5406
|
allChunks: boolean;
|
5318
5407
|
|
5319
5408
|
/**
|
@@ -5337,9 +5426,9 @@ declare class GetChunkFilenameRuntimeModule extends RuntimeModule {
|
|
5337
5426
|
static STAGE_TRIGGER: number;
|
5338
5427
|
}
|
5339
5428
|
declare interface GroupConfig {
|
5340
|
-
getKeys: (
|
5341
|
-
createGroup: (
|
5342
|
-
getOptions?: (
|
5429
|
+
getKeys: (item?: any) => undefined | string[];
|
5430
|
+
createGroup: (key: string, children: any[], items: any[]) => object;
|
5431
|
+
getOptions?: (name: string, items: any[]) => GroupOptions;
|
5343
5432
|
}
|
5344
5433
|
declare interface GroupOptions {
|
5345
5434
|
groupChildren?: boolean;
|
@@ -5426,11 +5515,11 @@ declare class HarmonyImportDependency extends ModuleDependency {
|
|
5426
5515
|
): undefined | WebpackError[];
|
5427
5516
|
static Template: typeof HarmonyImportDependencyTemplate;
|
5428
5517
|
static ExportPresenceModes: {
|
5429
|
-
NONE:
|
5430
|
-
WARN:
|
5431
|
-
AUTO:
|
5432
|
-
ERROR:
|
5433
|
-
fromUserOption(str: string | false):
|
5518
|
+
NONE: ExportPresenceMode;
|
5519
|
+
WARN: ExportPresenceMode;
|
5520
|
+
AUTO: ExportPresenceMode;
|
5521
|
+
ERROR: ExportPresenceMode;
|
5522
|
+
fromUserOption(str: string | false): ExportPresenceMode;
|
5434
5523
|
};
|
5435
5524
|
static NO_EXPORTS_REFERENCED: string[][];
|
5436
5525
|
static EXPORTS_OBJECT_REFERENCED: string[][];
|
@@ -5458,7 +5547,7 @@ declare class Hash {
|
|
5458
5547
|
}
|
5459
5548
|
type HashFunction = string | typeof Hash;
|
5460
5549
|
declare interface HashableObject {
|
5461
|
-
updateHash: (
|
5550
|
+
updateHash: (hash: Hash) => void;
|
5462
5551
|
}
|
5463
5552
|
declare class HashedModuleIdsPlugin {
|
5464
5553
|
constructor(options?: HashedModuleIdsPluginOptions);
|
@@ -5478,7 +5567,7 @@ declare interface HashedModuleIdsPluginOptions {
|
|
5478
5567
|
/**
|
5479
5568
|
* The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.
|
5480
5569
|
*/
|
5481
|
-
hashDigest?: "
|
5570
|
+
hashDigest?: "base64" | "latin1" | "hex";
|
5482
5571
|
|
5483
5572
|
/**
|
5484
5573
|
* The prefix length of the hash digest to use, defaults to 4.
|
@@ -5492,8 +5581,7 @@ declare interface HashedModuleIdsPluginOptions {
|
|
5492
5581
|
}
|
5493
5582
|
declare abstract class HelperRuntimeModule extends RuntimeModule {}
|
5494
5583
|
declare class HotModuleReplacementPlugin {
|
5495
|
-
constructor(
|
5496
|
-
options: object;
|
5584
|
+
constructor();
|
5497
5585
|
|
5498
5586
|
/**
|
5499
5587
|
* Apply the plugin
|
@@ -5554,6 +5642,9 @@ declare class HttpUriPlugin {
|
|
5554
5642
|
*/
|
5555
5643
|
apply(compiler: Compiler): void;
|
5556
5644
|
}
|
5645
|
+
type HttpsServerOptions = SecureContextOptions &
|
5646
|
+
TlsOptions &
|
5647
|
+
ServerOptions<typeof IncomingMessage>;
|
5557
5648
|
type IBigIntStats = IStatsBase<bigint> & {
|
5558
5649
|
atimeNs: bigint;
|
5559
5650
|
mtimeNs: bigint;
|
@@ -5797,17 +5888,17 @@ declare interface InputFileSystem {
|
|
5797
5888
|
realpath?: RealPathFs;
|
5798
5889
|
realpathSync?: RealPathSync;
|
5799
5890
|
readJson?: (
|
5800
|
-
|
5801
|
-
|
5802
|
-
|
5803
|
-
|
5891
|
+
pathOrFileDescriptor: PathOrFileDescriptorFs,
|
5892
|
+
callback: (
|
5893
|
+
err: null | Error | NodeJS.ErrnoException,
|
5894
|
+
result?: JsonObjectFs
|
5804
5895
|
) => void
|
5805
5896
|
) => void;
|
5806
|
-
readJsonSync?: (
|
5807
|
-
purge?: (
|
5808
|
-
join?: (
|
5809
|
-
relative?: (
|
5810
|
-
dirname?: (
|
5897
|
+
readJsonSync?: (pathOrFileDescriptor: PathOrFileDescriptorFs) => JsonObjectFs;
|
5898
|
+
purge?: (value?: string | string[] | Set<string>) => void;
|
5899
|
+
join?: (path1: string, path2: string) => string;
|
5900
|
+
relative?: (from: string, to: string) => string;
|
5901
|
+
dirname?: (dirname: string) => string;
|
5811
5902
|
}
|
5812
5903
|
type IntermediateFileSystem = InputFileSystem &
|
5813
5904
|
OutputFileSystem &
|
@@ -5815,8 +5906,8 @@ type IntermediateFileSystem = InputFileSystem &
|
|
5815
5906
|
declare interface IntermediateFileSystemExtras {
|
5816
5907
|
mkdirSync: MkdirSync;
|
5817
5908
|
createWriteStream: (
|
5818
|
-
|
5819
|
-
|
5909
|
+
pathLike: PathLikeFs,
|
5910
|
+
result?:
|
5820
5911
|
| "ascii"
|
5821
5912
|
| "utf8"
|
5822
5913
|
| "utf-8"
|
@@ -5824,23 +5915,23 @@ declare interface IntermediateFileSystemExtras {
|
|
5824
5915
|
| "utf-16le"
|
5825
5916
|
| "ucs2"
|
5826
5917
|
| "ucs-2"
|
5827
|
-
| "latin1"
|
5828
|
-
| "binary"
|
5829
5918
|
| "base64"
|
5830
5919
|
| "base64url"
|
5920
|
+
| "latin1"
|
5921
|
+
| "binary"
|
5831
5922
|
| "hex"
|
5832
5923
|
| WriteStreamOptions
|
5833
5924
|
) => NodeJS.WritableStream;
|
5834
5925
|
open: Open;
|
5835
|
-
read: Read<
|
5926
|
+
read: Read<ArrayBufferView<ArrayBufferLike>>;
|
5836
5927
|
close: (
|
5837
|
-
|
5838
|
-
|
5928
|
+
df: number,
|
5929
|
+
callback: (err: null | NodeJS.ErrnoException) => void
|
5839
5930
|
) => void;
|
5840
5931
|
rename: (
|
5841
|
-
|
5842
|
-
|
5843
|
-
|
5932
|
+
a: PathLikeFs,
|
5933
|
+
b: PathLikeFs,
|
5934
|
+
callback: (err: null | NodeJS.ErrnoException) => void
|
5844
5935
|
) => void;
|
5845
5936
|
}
|
5846
5937
|
type InternalCell<T> = T | typeof TOMBSTONE | typeof UNDEFINED_MARKER;
|
@@ -5857,7 +5948,7 @@ declare abstract class ItemCacheFacade {
|
|
5857
5948
|
store<T>(data: T, callback: CallbackCacheCacheFacade<void>): void;
|
5858
5949
|
storePromise<T>(data: T): Promise<void>;
|
5859
5950
|
provide<T>(
|
5860
|
-
computer: (
|
5951
|
+
computer: (callback: CallbackNormalErrorCache<T>) => void,
|
5861
5952
|
callback: CallbackNormalErrorCache<T>
|
5862
5953
|
): void;
|
5863
5954
|
providePromise<T>(computer: () => T | Promise<T>): Promise<T>;
|
@@ -5957,6 +6048,7 @@ declare class JavascriptParser extends Parser {
|
|
5957
6048
|
| YieldExpression
|
5958
6049
|
| SpreadElement
|
5959
6050
|
| PrivateIdentifier
|
6051
|
+
| Super
|
5960
6052
|
],
|
5961
6053
|
undefined | null | BasicEvaluatedExpression
|
5962
6054
|
>
|
@@ -6021,8 +6113,10 @@ declare class JavascriptParser extends Parser {
|
|
6021
6113
|
| YieldExpression
|
6022
6114
|
| PrivateIdentifier
|
6023
6115
|
| FunctionDeclaration
|
6116
|
+
| MaybeNamedFunctionDeclaration
|
6024
6117
|
| VariableDeclaration
|
6025
6118
|
| ClassDeclaration
|
6119
|
+
| MaybeNamedClassDeclaration
|
6026
6120
|
),
|
6027
6121
|
number
|
6028
6122
|
],
|
@@ -6035,8 +6129,10 @@ declare class JavascriptParser extends Parser {
|
|
6035
6129
|
| ExportNamedDeclarationJavascriptParser
|
6036
6130
|
| ExportAllDeclarationJavascriptParser
|
6037
6131
|
| FunctionDeclaration
|
6132
|
+
| MaybeNamedFunctionDeclaration
|
6038
6133
|
| VariableDeclaration
|
6039
6134
|
| ClassDeclaration
|
6135
|
+
| MaybeNamedClassDeclaration
|
6040
6136
|
| ExpressionStatement
|
6041
6137
|
| BlockStatement
|
6042
6138
|
| StaticBlock
|
@@ -6066,8 +6162,10 @@ declare class JavascriptParser extends Parser {
|
|
6066
6162
|
| ExportNamedDeclarationJavascriptParser
|
6067
6163
|
| ExportAllDeclarationJavascriptParser
|
6068
6164
|
| FunctionDeclaration
|
6165
|
+
| MaybeNamedFunctionDeclaration
|
6069
6166
|
| VariableDeclaration
|
6070
6167
|
| ClassDeclaration
|
6168
|
+
| MaybeNamedClassDeclaration
|
6071
6169
|
| ExpressionStatement
|
6072
6170
|
| BlockStatement
|
6073
6171
|
| StaticBlock
|
@@ -6097,8 +6195,10 @@ declare class JavascriptParser extends Parser {
|
|
6097
6195
|
| ExportNamedDeclarationJavascriptParser
|
6098
6196
|
| ExportAllDeclarationJavascriptParser
|
6099
6197
|
| FunctionDeclaration
|
6198
|
+
| MaybeNamedFunctionDeclaration
|
6100
6199
|
| VariableDeclaration
|
6101
6200
|
| ClassDeclaration
|
6201
|
+
| MaybeNamedClassDeclaration
|
6102
6202
|
| ExpressionStatement
|
6103
6203
|
| BlockStatement
|
6104
6204
|
| StaticBlock
|
@@ -6124,13 +6224,16 @@ declare class JavascriptParser extends Parser {
|
|
6124
6224
|
>;
|
6125
6225
|
statementIf: SyncBailHook<[IfStatement], boolean | void>;
|
6126
6226
|
classExtendsExpression: SyncBailHook<
|
6127
|
-
[
|
6227
|
+
[
|
6228
|
+
Expression,
|
6229
|
+
ClassExpression | ClassDeclaration | MaybeNamedClassDeclaration
|
6230
|
+
],
|
6128
6231
|
boolean | void
|
6129
6232
|
>;
|
6130
6233
|
classBodyElement: SyncBailHook<
|
6131
6234
|
[
|
6132
6235
|
StaticBlock | MethodDefinition | PropertyDefinition,
|
6133
|
-
ClassExpression | ClassDeclaration
|
6236
|
+
ClassExpression | ClassDeclaration | MaybeNamedClassDeclaration
|
6134
6237
|
],
|
6135
6238
|
boolean | void
|
6136
6239
|
>;
|
@@ -6138,7 +6241,7 @@ declare class JavascriptParser extends Parser {
|
|
6138
6241
|
[
|
6139
6242
|
Expression,
|
6140
6243
|
MethodDefinition | PropertyDefinition,
|
6141
|
-
ClassExpression | ClassDeclaration
|
6244
|
+
ClassExpression | ClassDeclaration | MaybeNamedClassDeclaration
|
6142
6245
|
],
|
6143
6246
|
boolean | void
|
6144
6247
|
>;
|
@@ -6177,7 +6280,40 @@ declare class JavascriptParser extends Parser {
|
|
6177
6280
|
boolean | void
|
6178
6281
|
>;
|
6179
6282
|
exportExpression: SyncBailHook<
|
6180
|
-
[
|
6283
|
+
[
|
6284
|
+
ExportDefaultDeclaration,
|
6285
|
+
(
|
6286
|
+
| ImportExpressionImport
|
6287
|
+
| UnaryExpression
|
6288
|
+
| ArrayExpression
|
6289
|
+
| ArrowFunctionExpression
|
6290
|
+
| AssignmentExpression
|
6291
|
+
| AwaitExpression
|
6292
|
+
| BinaryExpression
|
6293
|
+
| SimpleCallExpression
|
6294
|
+
| NewExpression
|
6295
|
+
| ChainExpression
|
6296
|
+
| ClassExpression
|
6297
|
+
| ConditionalExpression
|
6298
|
+
| FunctionExpression
|
6299
|
+
| Identifier
|
6300
|
+
| SimpleLiteral
|
6301
|
+
| RegExpLiteral
|
6302
|
+
| BigIntLiteral
|
6303
|
+
| LogicalExpression
|
6304
|
+
| MemberExpression
|
6305
|
+
| MetaProperty
|
6306
|
+
| ObjectExpression
|
6307
|
+
| SequenceExpression
|
6308
|
+
| TaggedTemplateExpression
|
6309
|
+
| TemplateLiteral
|
6310
|
+
| ThisExpression
|
6311
|
+
| UpdateExpression
|
6312
|
+
| YieldExpression
|
6313
|
+
| MaybeNamedFunctionDeclaration
|
6314
|
+
| MaybeNamedClassDeclaration
|
6315
|
+
)
|
6316
|
+
],
|
6181
6317
|
boolean | void
|
6182
6318
|
>;
|
6183
6319
|
exportSpecifier: SyncBailHook<
|
@@ -6307,6 +6443,7 @@ declare class JavascriptParser extends Parser {
|
|
6307
6443
|
boolean | void
|
6308
6444
|
>;
|
6309
6445
|
program: SyncBailHook<[Program, Comment[]], boolean | void>;
|
6446
|
+
terminate: SyncBailHook<[ReturnStatement | ThrowStatement], boolean | void>;
|
6310
6447
|
finish: SyncBailHook<[Program, Comment[]], boolean | void>;
|
6311
6448
|
}>;
|
6312
6449
|
sourceType: "module" | "auto" | "script";
|
@@ -6347,8 +6484,10 @@ declare class JavascriptParser extends Parser {
|
|
6347
6484
|
| UpdateExpression
|
6348
6485
|
| YieldExpression
|
6349
6486
|
| FunctionDeclaration
|
6487
|
+
| MaybeNamedFunctionDeclaration
|
6350
6488
|
| VariableDeclaration
|
6351
6489
|
| ClassDeclaration
|
6490
|
+
| MaybeNamedClassDeclaration
|
6352
6491
|
| ExpressionStatement
|
6353
6492
|
| BlockStatement
|
6354
6493
|
| StaticBlock
|
@@ -6373,7 +6512,7 @@ declare class JavascriptParser extends Parser {
|
|
6373
6512
|
Expression,
|
6374
6513
|
Set<DestructuringAssignmentProperty>
|
6375
6514
|
>;
|
6376
|
-
currentTagData
|
6515
|
+
currentTagData?: TagData;
|
6377
6516
|
magicCommentContext: Context;
|
6378
6517
|
destructuringAssignmentPropertiesFor(
|
6379
6518
|
node: Expression
|
@@ -6408,8 +6547,10 @@ declare class JavascriptParser extends Parser {
|
|
6408
6547
|
| UpdateExpression
|
6409
6548
|
| YieldExpression
|
6410
6549
|
| SpreadElement
|
6411
|
-
): undefined | string |
|
6412
|
-
walkClass(
|
6550
|
+
): undefined | string | VariableInfo;
|
6551
|
+
walkClass(
|
6552
|
+
classy: ClassExpression | ClassDeclaration | MaybeNamedClassDeclaration
|
6553
|
+
): void;
|
6413
6554
|
|
6414
6555
|
/**
|
6415
6556
|
* Pre walking iterates the scope for variable declarations
|
@@ -6522,8 +6663,10 @@ declare class JavascriptParser extends Parser {
|
|
6522
6663
|
| ExportNamedDeclarationJavascriptParser
|
6523
6664
|
| ExportAllDeclarationJavascriptParser
|
6524
6665
|
| FunctionDeclaration
|
6666
|
+
| MaybeNamedFunctionDeclaration
|
6525
6667
|
| VariableDeclaration
|
6526
6668
|
| ClassDeclaration
|
6669
|
+
| MaybeNamedClassDeclaration
|
6527
6670
|
| ExpressionStatement
|
6528
6671
|
| BlockStatement
|
6529
6672
|
| StaticBlock
|
@@ -6551,8 +6694,10 @@ declare class JavascriptParser extends Parser {
|
|
6551
6694
|
| ExportNamedDeclarationJavascriptParser
|
6552
6695
|
| ExportAllDeclarationJavascriptParser
|
6553
6696
|
| FunctionDeclaration
|
6697
|
+
| MaybeNamedFunctionDeclaration
|
6554
6698
|
| VariableDeclaration
|
6555
6699
|
| ClassDeclaration
|
6700
|
+
| MaybeNamedClassDeclaration
|
6556
6701
|
| ExpressionStatement
|
6557
6702
|
| BlockStatement
|
6558
6703
|
| StaticBlock
|
@@ -6580,8 +6725,10 @@ declare class JavascriptParser extends Parser {
|
|
6580
6725
|
| ExportNamedDeclarationJavascriptParser
|
6581
6726
|
| ExportAllDeclarationJavascriptParser
|
6582
6727
|
| FunctionDeclaration
|
6728
|
+
| MaybeNamedFunctionDeclaration
|
6583
6729
|
| VariableDeclaration
|
6584
6730
|
| ClassDeclaration
|
6731
|
+
| MaybeNamedClassDeclaration
|
6585
6732
|
| ExpressionStatement
|
6586
6733
|
| BlockStatement
|
6587
6734
|
| StaticBlock
|
@@ -6636,8 +6783,12 @@ declare class JavascriptParser extends Parser {
|
|
6636
6783
|
walkForInStatement(statement: ForInStatement): void;
|
6637
6784
|
preWalkForOfStatement(statement: ForOfStatement): void;
|
6638
6785
|
walkForOfStatement(statement: ForOfStatement): void;
|
6639
|
-
preWalkFunctionDeclaration(
|
6640
|
-
|
6786
|
+
preWalkFunctionDeclaration(
|
6787
|
+
statement: FunctionDeclaration | MaybeNamedFunctionDeclaration
|
6788
|
+
): void;
|
6789
|
+
walkFunctionDeclaration(
|
6790
|
+
statement: FunctionDeclaration | MaybeNamedFunctionDeclaration
|
6791
|
+
): void;
|
6641
6792
|
blockPreWalkExpressionStatement(statement: ExpressionStatement): void;
|
6642
6793
|
preWalkAssignmentExpression(expression: AssignmentExpression): void;
|
6643
6794
|
blockPreWalkImportDeclaration(
|
@@ -6645,7 +6796,7 @@ declare class JavascriptParser extends Parser {
|
|
6645
6796
|
): void;
|
6646
6797
|
enterDeclaration(
|
6647
6798
|
declaration: Declaration,
|
6648
|
-
onIdent: (
|
6799
|
+
onIdent: (ident: string, identifier: Identifier) => void
|
6649
6800
|
): void;
|
6650
6801
|
blockPreWalkExportNamedDeclaration(
|
6651
6802
|
statement: ExportNamedDeclarationJavascriptParser
|
@@ -6653,7 +6804,9 @@ declare class JavascriptParser extends Parser {
|
|
6653
6804
|
walkExportNamedDeclaration(
|
6654
6805
|
statement: ExportNamedDeclarationJavascriptParser
|
6655
6806
|
): void;
|
6656
|
-
blockPreWalkExportDefaultDeclaration(
|
6807
|
+
blockPreWalkExportDefaultDeclaration(
|
6808
|
+
statement: ExportDefaultDeclaration
|
6809
|
+
): void;
|
6657
6810
|
walkExportDefaultDeclaration(statement: ExportDefaultDeclaration): void;
|
6658
6811
|
blockPreWalkExportAllDeclaration(
|
6659
6812
|
statement: ExportAllDeclarationJavascriptParser
|
@@ -6662,8 +6815,12 @@ declare class JavascriptParser extends Parser {
|
|
6662
6815
|
blockPreWalkVariableDeclaration(statement: VariableDeclaration): void;
|
6663
6816
|
preWalkVariableDeclarator(declarator: VariableDeclarator): void;
|
6664
6817
|
walkVariableDeclaration(statement: VariableDeclaration): void;
|
6665
|
-
blockPreWalkClassDeclaration(
|
6666
|
-
|
6818
|
+
blockPreWalkClassDeclaration(
|
6819
|
+
statement: ClassDeclaration | MaybeNamedClassDeclaration
|
6820
|
+
): void;
|
6821
|
+
walkClassDeclaration(
|
6822
|
+
statement: ClassDeclaration | MaybeNamedClassDeclaration
|
6823
|
+
): void;
|
6667
6824
|
preWalkSwitchCases(switchCases: SwitchCase[]): void;
|
6668
6825
|
walkSwitchCases(switchCases: SwitchCase[]): void;
|
6669
6826
|
preWalkCatchClause(catchClause: CatchClause): void;
|
@@ -6706,7 +6863,39 @@ declare class JavascriptParser extends Parser {
|
|
6706
6863
|
| SpreadElement
|
6707
6864
|
)[]
|
6708
6865
|
): void;
|
6709
|
-
walkExpression(
|
6866
|
+
walkExpression(
|
6867
|
+
expression:
|
6868
|
+
| ImportExpressionImport
|
6869
|
+
| UnaryExpression
|
6870
|
+
| ArrayExpression
|
6871
|
+
| ArrowFunctionExpression
|
6872
|
+
| AssignmentExpression
|
6873
|
+
| AwaitExpression
|
6874
|
+
| BinaryExpression
|
6875
|
+
| SimpleCallExpression
|
6876
|
+
| NewExpression
|
6877
|
+
| ChainExpression
|
6878
|
+
| ClassExpression
|
6879
|
+
| ConditionalExpression
|
6880
|
+
| FunctionExpression
|
6881
|
+
| Identifier
|
6882
|
+
| SimpleLiteral
|
6883
|
+
| RegExpLiteral
|
6884
|
+
| BigIntLiteral
|
6885
|
+
| LogicalExpression
|
6886
|
+
| MemberExpression
|
6887
|
+
| MetaProperty
|
6888
|
+
| ObjectExpression
|
6889
|
+
| SequenceExpression
|
6890
|
+
| TaggedTemplateExpression
|
6891
|
+
| TemplateLiteral
|
6892
|
+
| ThisExpression
|
6893
|
+
| UpdateExpression
|
6894
|
+
| YieldExpression
|
6895
|
+
| SpreadElement
|
6896
|
+
| PrivateIdentifier
|
6897
|
+
| Super
|
6898
|
+
): void;
|
6710
6899
|
walkAwaitExpression(expression: AwaitExpression): void;
|
6711
6900
|
walkArrayExpression(expression: ArrayExpression): void;
|
6712
6901
|
walkSpreadElement(expression: SpreadElement): void;
|
@@ -6733,12 +6922,12 @@ declare class JavascriptParser extends Parser {
|
|
6733
6922
|
walkImportExpression(expression: ImportExpressionJavascriptParser): void;
|
6734
6923
|
walkCallExpression(expression: CallExpression): void;
|
6735
6924
|
walkMemberExpression(expression: MemberExpression): void;
|
6736
|
-
walkMemberExpressionWithExpressionName(
|
6737
|
-
expression:
|
6925
|
+
walkMemberExpressionWithExpressionName<R>(
|
6926
|
+
expression: MemberExpression,
|
6738
6927
|
name: string,
|
6739
6928
|
rootInfo: string | VariableInfo,
|
6740
6929
|
members: string[],
|
6741
|
-
onUnhandled
|
6930
|
+
onUnhandled: () => undefined | R
|
6742
6931
|
): void;
|
6743
6932
|
walkThisExpression(expression: ThisExpression): void;
|
6744
6933
|
walkIdentifier(expression: Identifier): void;
|
@@ -6810,11 +6999,11 @@ declare class JavascriptParser extends Parser {
|
|
6810
6999
|
fallback:
|
6811
7000
|
| undefined
|
6812
7001
|
| ((
|
6813
|
-
|
6814
|
-
|
6815
|
-
|
7002
|
+
name: string,
|
7003
|
+
rootInfo: string | VariableInfo | ScopeInfo,
|
7004
|
+
getMembers: () => string[]
|
6816
7005
|
) => any),
|
6817
|
-
defined: undefined | ((
|
7006
|
+
defined: undefined | ((result?: string) => undefined | R),
|
6818
7007
|
...args: AsArray<T>
|
6819
7008
|
): undefined | R;
|
6820
7009
|
callHooksForName<T, R>(
|
@@ -6830,18 +7019,31 @@ declare class JavascriptParser extends Parser {
|
|
6830
7019
|
callHooksForInfoWithFallback<T, R>(
|
6831
7020
|
hookMap: HookMap<SyncBailHook<T, R>>,
|
6832
7021
|
info: ExportedVariableInfo,
|
6833
|
-
fallback: undefined | ((
|
6834
|
-
defined: undefined | ((
|
7022
|
+
fallback: undefined | ((name: string) => any),
|
7023
|
+
defined: undefined | ((result?: string) => any),
|
6835
7024
|
...args: AsArray<T>
|
6836
7025
|
): undefined | R;
|
6837
7026
|
callHooksForNameWithFallback<T, R>(
|
6838
7027
|
hookMap: HookMap<SyncBailHook<T, R>>,
|
6839
7028
|
name: string,
|
6840
|
-
fallback: undefined | ((
|
6841
|
-
defined: undefined | (() =>
|
7029
|
+
fallback: undefined | ((value: string) => undefined | R),
|
7030
|
+
defined: undefined | (() => R),
|
6842
7031
|
...args: AsArray<T>
|
6843
7032
|
): undefined | R;
|
6844
|
-
inScope(
|
7033
|
+
inScope(
|
7034
|
+
params: (
|
7035
|
+
| string
|
7036
|
+
| Identifier
|
7037
|
+
| MemberExpression
|
7038
|
+
| ObjectPattern
|
7039
|
+
| ArrayPattern
|
7040
|
+
| RestElement
|
7041
|
+
| AssignmentPattern
|
7042
|
+
| Property
|
7043
|
+
)[],
|
7044
|
+
fn: () => void
|
7045
|
+
): void;
|
7046
|
+
inExecutedPath(state: boolean, fn: () => void): void;
|
6845
7047
|
inClassScope(hasThis: boolean, params: Identifier[], fn: () => void): void;
|
6846
7048
|
inFunctionScope(
|
6847
7049
|
hasThis: boolean,
|
@@ -6856,7 +7058,7 @@ declare class JavascriptParser extends Parser {
|
|
6856
7058
|
)[],
|
6857
7059
|
fn: () => void
|
6858
7060
|
): void;
|
6859
|
-
inBlockScope(fn: () => void): void;
|
7061
|
+
inBlockScope(fn: () => void, inExecutedPath?: boolean): void;
|
6860
7062
|
detectMode(
|
6861
7063
|
statements: (
|
6862
7064
|
| ImportDeclarationJavascriptParser
|
@@ -6899,7 +7101,7 @@ declare class JavascriptParser extends Parser {
|
|
6899
7101
|
| AssignmentPattern
|
6900
7102
|
| Property
|
6901
7103
|
)[],
|
6902
|
-
onIdent: (
|
7104
|
+
onIdent: (ident: string) => void
|
6903
7105
|
): void;
|
6904
7106
|
enterPattern(
|
6905
7107
|
pattern:
|
@@ -6910,27 +7112,27 @@ declare class JavascriptParser extends Parser {
|
|
6910
7112
|
| RestElement
|
6911
7113
|
| AssignmentPattern
|
6912
7114
|
| Property,
|
6913
|
-
onIdent: (
|
7115
|
+
onIdent: (ident: string, identifier: Identifier) => void
|
6914
7116
|
): void;
|
6915
7117
|
enterIdentifier(
|
6916
7118
|
pattern: Identifier,
|
6917
|
-
onIdent: (
|
7119
|
+
onIdent: (ident: string, identifier: Identifier) => void
|
6918
7120
|
): void;
|
6919
7121
|
enterObjectPattern(
|
6920
7122
|
pattern: ObjectPattern,
|
6921
|
-
onIdent: (
|
7123
|
+
onIdent: (ident: string, identifier: Identifier) => void
|
6922
7124
|
): void;
|
6923
7125
|
enterArrayPattern(
|
6924
7126
|
pattern: ArrayPattern,
|
6925
|
-
onIdent: (
|
7127
|
+
onIdent: (ident: string, identifier: Identifier) => void
|
6926
7128
|
): void;
|
6927
7129
|
enterRestElement(
|
6928
7130
|
pattern: RestElement,
|
6929
|
-
onIdent: (
|
7131
|
+
onIdent: (ident: string, identifier: Identifier) => void
|
6930
7132
|
): void;
|
6931
7133
|
enterAssignmentPattern(
|
6932
7134
|
pattern: AssignmentPattern,
|
6933
|
-
onIdent: (
|
7135
|
+
onIdent: (ident: string, identifier: Identifier) => void
|
6934
7136
|
): void;
|
6935
7137
|
evaluateExpression(
|
6936
7138
|
expression:
|
@@ -6963,6 +7165,7 @@ declare class JavascriptParser extends Parser {
|
|
6963
7165
|
| YieldExpression
|
6964
7166
|
| SpreadElement
|
6965
7167
|
| PrivateIdentifier
|
7168
|
+
| Super
|
6966
7169
|
): BasicEvaluatedExpression;
|
6967
7170
|
parseString(expression: Expression): string;
|
6968
7171
|
parseCalculatedString(expression: Expression): {
|
@@ -7005,8 +7208,10 @@ declare class JavascriptParser extends Parser {
|
|
7005
7208
|
| YieldExpression
|
7006
7209
|
| PrivateIdentifier
|
7007
7210
|
| FunctionDeclaration
|
7211
|
+
| MaybeNamedFunctionDeclaration
|
7008
7212
|
| VariableDeclaration
|
7009
|
-
| ClassDeclaration
|
7213
|
+
| ClassDeclaration
|
7214
|
+
| MaybeNamedClassDeclaration,
|
7010
7215
|
commentsStartPos: number
|
7011
7216
|
): boolean;
|
7012
7217
|
getComments(range: [number, number]): Comment[];
|
@@ -7014,8 +7219,8 @@ declare class JavascriptParser extends Parser {
|
|
7014
7219
|
setAsiPosition(pos: number): void;
|
7015
7220
|
unsetAsiPosition(pos: number): void;
|
7016
7221
|
isStatementLevelExpression(expr: Expression): boolean;
|
7017
|
-
getTagData(name: string, tag: symbol):
|
7018
|
-
tagVariable(name: string, tag: symbol, data?:
|
7222
|
+
getTagData(name: string, tag: symbol): undefined | TagData;
|
7223
|
+
tagVariable(name: string, tag: symbol, data?: TagData): void;
|
7019
7224
|
defineVariable(name: string): void;
|
7020
7225
|
undefineVariable(name: string): void;
|
7021
7226
|
isVariableDefined(name: string): boolean;
|
@@ -7343,6 +7548,16 @@ declare interface JavascriptParserOptions {
|
|
7343
7548
|
*/
|
7344
7549
|
wrappedContextRegExp?: RegExp;
|
7345
7550
|
}
|
7551
|
+
|
7552
|
+
/**
|
7553
|
+
* Generator options for json modules.
|
7554
|
+
*/
|
7555
|
+
declare interface JsonGeneratorOptions {
|
7556
|
+
/**
|
7557
|
+
* Use `JSON.parse` when the JSON string is longer than 20 characters.
|
7558
|
+
*/
|
7559
|
+
JSONParse?: boolean;
|
7560
|
+
}
|
7346
7561
|
type JsonObjectFs = { [index: string]: JsonValueFs } & {
|
7347
7562
|
[index: string]:
|
7348
7563
|
| undefined
|
@@ -7503,6 +7718,7 @@ declare interface KnownBuildMeta {
|
|
7503
7718
|
async?: boolean;
|
7504
7719
|
sideEffectFree?: boolean;
|
7505
7720
|
exportsFinalName?: Record<string, string>;
|
7721
|
+
isCSSModule?: boolean;
|
7506
7722
|
}
|
7507
7723
|
declare interface KnownCreateStatsOptionsContext {
|
7508
7724
|
forToString?: boolean;
|
@@ -7527,11 +7743,11 @@ declare interface KnownHooks {
|
|
7527
7743
|
declare interface KnownNormalizedStatsOptions {
|
7528
7744
|
context: string;
|
7529
7745
|
requestShortener: RequestShortener;
|
7530
|
-
chunksSort: string;
|
7531
|
-
modulesSort: string;
|
7532
|
-
chunkModulesSort: string;
|
7533
|
-
nestedModulesSort: string;
|
7534
|
-
assetsSort: string;
|
7746
|
+
chunksSort: string | false;
|
7747
|
+
modulesSort: string | false;
|
7748
|
+
chunkModulesSort: string | false;
|
7749
|
+
nestedModulesSort: string | false;
|
7750
|
+
assetsSort: string | false;
|
7535
7751
|
ids: boolean;
|
7536
7752
|
cachedAssets: boolean;
|
7537
7753
|
groupAssetsByEmitStatus: boolean;
|
@@ -7666,19 +7882,20 @@ declare interface KnownStatsError {
|
|
7666
7882
|
chunkId?: string | number;
|
7667
7883
|
moduleId?: string | number;
|
7668
7884
|
moduleTrace?: StatsModuleTraceItem[];
|
7669
|
-
details?:
|
7885
|
+
details?: string;
|
7670
7886
|
stack?: string;
|
7887
|
+
compilerPath?: string;
|
7671
7888
|
}
|
7672
7889
|
declare interface KnownStatsFactoryContext {
|
7673
7890
|
type: string;
|
7674
|
-
makePathsRelative: (
|
7891
|
+
makePathsRelative: (path: string) => string;
|
7675
7892
|
compilation: Compilation;
|
7676
7893
|
rootModules: Set<Module>;
|
7677
7894
|
compilationFileToChunks: Map<string, Chunk[]>;
|
7678
7895
|
compilationAuxiliaryFileToChunks: Map<string, Chunk[]>;
|
7679
7896
|
runtime: RuntimeSpec;
|
7680
|
-
cachedGetErrors: (
|
7681
|
-
cachedGetWarnings: (
|
7897
|
+
cachedGetErrors: (compilation: Compilation) => WebpackError[];
|
7898
|
+
cachedGetWarnings: (compilation: Compilation) => WebpackError[];
|
7682
7899
|
}
|
7683
7900
|
declare interface KnownStatsLogging {
|
7684
7901
|
entries: StatsLoggingEntry[];
|
@@ -7790,11 +8007,11 @@ declare interface KnownStatsPrinterContext {
|
|
7790
8007
|
moduleTraceItem?: StatsModuleTraceItem;
|
7791
8008
|
moduleTraceDependency?: StatsModuleTraceDependency;
|
7792
8009
|
}
|
7793
|
-
declare interface
|
8010
|
+
declare interface KnownStatsPrinterFormatters {
|
7794
8011
|
formatFilename?: (file: string, oversize?: boolean) => string;
|
7795
|
-
formatModuleId?: (id: string) => string;
|
8012
|
+
formatModuleId?: (id: string | number) => string;
|
7796
8013
|
formatChunkId?: (
|
7797
|
-
id: string,
|
8014
|
+
id: string | number,
|
7798
8015
|
direction?: "parent" | "child" | "sibling"
|
7799
8016
|
) => string;
|
7800
8017
|
formatSize?: (size: number) => string;
|
@@ -7816,27 +8033,40 @@ declare interface KnownStatsProfile {
|
|
7816
8033
|
factory: number;
|
7817
8034
|
dependencies: number;
|
7818
8035
|
}
|
8036
|
+
declare interface KnownUnsafeCacheData {
|
8037
|
+
/**
|
8038
|
+
* factory meta
|
8039
|
+
*/
|
8040
|
+
factoryMeta?: FactoryMeta;
|
8041
|
+
|
8042
|
+
/**
|
8043
|
+
* resolve options
|
8044
|
+
*/
|
8045
|
+
resolveOptions?: ResolveOptions;
|
8046
|
+
parserOptions?: ParserOptions;
|
8047
|
+
generatorOptions?: GeneratorOptions;
|
8048
|
+
}
|
7819
8049
|
declare interface LStatFs {
|
7820
8050
|
(
|
7821
8051
|
path: PathLikeFs,
|
7822
|
-
callback: (
|
8052
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void
|
7823
8053
|
): void;
|
7824
8054
|
(
|
7825
8055
|
path: PathLikeFs,
|
7826
8056
|
options: undefined | (StatOptions & { bigint?: false }),
|
7827
|
-
callback: (
|
8057
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void
|
7828
8058
|
): void;
|
7829
8059
|
(
|
7830
8060
|
path: PathLikeFs,
|
7831
8061
|
options: StatOptions & { bigint: true },
|
7832
|
-
callback: (
|
8062
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IBigIntStats) => void
|
7833
8063
|
): void;
|
7834
8064
|
(
|
7835
8065
|
path: PathLikeFs,
|
7836
8066
|
options: undefined | StatOptions,
|
7837
8067
|
callback: (
|
7838
|
-
|
7839
|
-
|
8068
|
+
err: null | NodeJS.ErrnoException,
|
8069
|
+
result?: IStats | IBigIntStats
|
7840
8070
|
) => void
|
7841
8071
|
): void;
|
7842
8072
|
}
|
@@ -7909,8 +8139,8 @@ declare interface LazyCompilationDefaultBackendOptions {
|
|
7909
8139
|
* Specifies how to create the server handling the EventSource requests.
|
7910
8140
|
*/
|
7911
8141
|
server?:
|
7912
|
-
|
|
7913
|
-
|
|
8142
|
+
| ServerOptions<typeof IncomingMessage>
|
8143
|
+
| HttpsServerOptions
|
7914
8144
|
| (() => Server);
|
7915
8145
|
}
|
7916
8146
|
|
@@ -7952,9 +8182,9 @@ declare class LazySet<T> {
|
|
7952
8182
|
clear(): void;
|
7953
8183
|
delete(value: T): boolean;
|
7954
8184
|
entries(): IterableIterator<[T, T]>;
|
7955
|
-
forEach(
|
7956
|
-
callbackFn: (
|
7957
|
-
thisArg
|
8185
|
+
forEach<K>(
|
8186
|
+
callbackFn: (value: T, value2: T, set: Set<T>) => void,
|
8187
|
+
thisArg: K
|
7958
8188
|
): void;
|
7959
8189
|
has(item: T): boolean;
|
7960
8190
|
keys(): IterableIterator<T>;
|
@@ -8213,7 +8443,7 @@ declare interface LoaderDefinitionFunction<
|
|
8213
8443
|
}
|
8214
8444
|
declare interface LoaderItem {
|
8215
8445
|
loader: string;
|
8216
|
-
options
|
8446
|
+
options?: null | string | Record<string, any>;
|
8217
8447
|
ident: null | string;
|
8218
8448
|
type: null | string;
|
8219
8449
|
}
|
@@ -8510,8 +8740,8 @@ declare abstract class MainTemplate {
|
|
8510
8740
|
| string
|
8511
8741
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
8512
8742
|
fn: (
|
8513
|
-
|
8514
|
-
|
8743
|
+
renderManifestEntries: RenderManifestEntry[],
|
8744
|
+
renderManifestOptions: RenderManifestOptions
|
8515
8745
|
) => RenderManifestEntry[]
|
8516
8746
|
) => void;
|
8517
8747
|
};
|
@@ -8522,7 +8752,10 @@ declare abstract class MainTemplate {
|
|
8522
8752
|
options:
|
8523
8753
|
| string
|
8524
8754
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
8525
|
-
fn: (
|
8755
|
+
fn: (
|
8756
|
+
value: string,
|
8757
|
+
renderBootstrapContext: RenderBootstrapContext
|
8758
|
+
) => string
|
8526
8759
|
) => void;
|
8527
8760
|
};
|
8528
8761
|
beforeStartup: { tap: () => never };
|
@@ -8534,11 +8767,11 @@ declare abstract class MainTemplate {
|
|
8534
8767
|
| string
|
8535
8768
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
8536
8769
|
fn: (
|
8537
|
-
|
8538
|
-
|
8539
|
-
|
8540
|
-
|
8541
|
-
|
8770
|
+
source: Source,
|
8771
|
+
chunk: Chunk,
|
8772
|
+
hash: undefined | string,
|
8773
|
+
moduleTemplate: ModuleTemplate,
|
8774
|
+
dependencyTemplates: DependencyTemplates
|
8542
8775
|
) => Source
|
8543
8776
|
) => void;
|
8544
8777
|
};
|
@@ -8547,7 +8780,7 @@ declare abstract class MainTemplate {
|
|
8547
8780
|
options:
|
8548
8781
|
| string
|
8549
8782
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
8550
|
-
fn: (
|
8783
|
+
fn: (source: Source, chunk: Chunk, hash?: string) => Source
|
8551
8784
|
) => void;
|
8552
8785
|
};
|
8553
8786
|
assetPath: {
|
@@ -8555,7 +8788,7 @@ declare abstract class MainTemplate {
|
|
8555
8788
|
options:
|
8556
8789
|
| string
|
8557
8790
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
8558
|
-
fn: (
|
8791
|
+
fn: (value: string, path: PathData, assetInfo?: AssetInfo) => string
|
8559
8792
|
) => void;
|
8560
8793
|
call: (filename: TemplatePath, options: PathData) => string;
|
8561
8794
|
};
|
@@ -8564,7 +8797,7 @@ declare abstract class MainTemplate {
|
|
8564
8797
|
options:
|
8565
8798
|
| string
|
8566
8799
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
8567
|
-
fn: (
|
8800
|
+
fn: (hash: Hash) => void
|
8568
8801
|
) => void;
|
8569
8802
|
};
|
8570
8803
|
hashForChunk: {
|
@@ -8572,7 +8805,7 @@ declare abstract class MainTemplate {
|
|
8572
8805
|
options:
|
8573
8806
|
| string
|
8574
8807
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
8575
|
-
fn: (
|
8808
|
+
fn: (hash: Hash, chunk: Chunk) => void
|
8576
8809
|
) => void;
|
8577
8810
|
};
|
8578
8811
|
globalHashPaths: { tap: () => void };
|
@@ -8681,7 +8914,7 @@ declare interface Mkdir {
|
|
8681
8914
|
(
|
8682
8915
|
file: PathLikeFs,
|
8683
8916
|
options: MakeDirectoryOptions & { recursive: true },
|
8684
|
-
callback: (
|
8917
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
8685
8918
|
): void;
|
8686
8919
|
(
|
8687
8920
|
file: PathLikeFs,
|
@@ -8691,16 +8924,16 @@ declare interface Mkdir {
|
|
8691
8924
|
| string
|
8692
8925
|
| number
|
8693
8926
|
| (MakeDirectoryOptions & { recursive?: false }),
|
8694
|
-
callback: (
|
8927
|
+
callback: (err: null | NodeJS.ErrnoException) => void
|
8695
8928
|
): void;
|
8696
8929
|
(
|
8697
8930
|
file: PathLikeFs,
|
8698
8931
|
options: undefined | null | string | number | MakeDirectoryOptions,
|
8699
|
-
callback: (
|
8932
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
8700
8933
|
): void;
|
8701
8934
|
(
|
8702
8935
|
file: PathLikeFs,
|
8703
|
-
callback: (
|
8936
|
+
callback: (err: null | NodeJS.ErrnoException) => void
|
8704
8937
|
): void;
|
8705
8938
|
}
|
8706
8939
|
declare interface MkdirSync {
|
@@ -8797,7 +9030,7 @@ declare class Module extends DependenciesBlock {
|
|
8797
9030
|
hasReasons(moduleGraph: ModuleGraph, runtime: RuntimeSpec): boolean;
|
8798
9031
|
needBuild(
|
8799
9032
|
context: NeedBuildContext,
|
8800
|
-
callback: (
|
9033
|
+
callback: (err?: null | WebpackError, needBuild?: boolean) => void
|
8801
9034
|
): void;
|
8802
9035
|
needRebuild(
|
8803
9036
|
fileTimestamps: Map<string, null | number>,
|
@@ -8811,7 +9044,7 @@ declare class Module extends DependenciesBlock {
|
|
8811
9044
|
compilation: Compilation,
|
8812
9045
|
resolver: ResolverWithOptions,
|
8813
9046
|
fs: InputFileSystem,
|
8814
|
-
callback: (
|
9047
|
+
callback: (err?: WebpackError) => void
|
8815
9048
|
): void;
|
8816
9049
|
getSourceTypes(): ReadonlySet<string>;
|
8817
9050
|
source(
|
@@ -8908,7 +9141,7 @@ declare class ModuleDependency extends Dependency {
|
|
8908
9141
|
declare abstract class ModuleFactory {
|
8909
9142
|
create(
|
8910
9143
|
data: ModuleFactoryCreateData,
|
8911
|
-
callback: (
|
9144
|
+
callback: (err?: null | Error, result?: ModuleFactoryResult) => void
|
8912
9145
|
): void;
|
8913
9146
|
}
|
8914
9147
|
declare interface ModuleFactoryCreateData {
|
@@ -8920,7 +9153,7 @@ declare interface ModuleFactoryCreateData {
|
|
8920
9153
|
declare interface ModuleFactoryCreateDataContextInfo {
|
8921
9154
|
issuer: string;
|
8922
9155
|
issuerLayer?: null | string;
|
8923
|
-
compiler
|
9156
|
+
compiler?: string;
|
8924
9157
|
}
|
8925
9158
|
declare interface ModuleFactoryResult {
|
8926
9159
|
/**
|
@@ -9052,12 +9285,12 @@ declare class ModuleGraph {
|
|
9052
9285
|
moveModuleConnections(
|
9053
9286
|
oldModule: Module,
|
9054
9287
|
newModule: Module,
|
9055
|
-
filterConnection: (
|
9288
|
+
filterConnection: (moduleGraphConnection: ModuleGraphConnection) => boolean
|
9056
9289
|
): void;
|
9057
9290
|
copyOutgoingModuleConnections(
|
9058
9291
|
oldModule: Module,
|
9059
9292
|
newModule: Module,
|
9060
|
-
filterConnection: (
|
9293
|
+
filterConnection: (moduleGraphConnection: ModuleGraphConnection) => boolean
|
9061
9294
|
): void;
|
9062
9295
|
addExtraReason(module: Module, explanation: string): void;
|
9063
9296
|
getResolvedModule(dependency: Dependency): null | Module;
|
@@ -9104,13 +9337,13 @@ declare class ModuleGraph {
|
|
9104
9337
|
setDepthIfLower(module: Module, depth: number): boolean;
|
9105
9338
|
isAsync(module: Module): boolean;
|
9106
9339
|
setAsync(module: Module): void;
|
9107
|
-
getMeta(thing
|
9108
|
-
getMetaIfExisting(thing
|
9340
|
+
getMeta(thing: object): any;
|
9341
|
+
getMetaIfExisting(thing: object): any;
|
9109
9342
|
freeze(cacheStage?: string): void;
|
9110
9343
|
unfreeze(): void;
|
9111
|
-
cached<T
|
9112
|
-
fn: (moduleGraph: ModuleGraph, ...args: T) => V,
|
9113
|
-
...args: T
|
9344
|
+
cached<T, V>(
|
9345
|
+
fn: (moduleGraph: ModuleGraph, ...args: T[]) => V,
|
9346
|
+
...args: T[]
|
9114
9347
|
): V;
|
9115
9348
|
setModuleMemCaches(
|
9116
9349
|
moduleMemCaches: Map<Module, WeakTupleMap<any, any>>
|
@@ -9138,7 +9371,10 @@ declare class ModuleGraphConnection {
|
|
9138
9371
|
condition?:
|
9139
9372
|
| null
|
9140
9373
|
| false
|
9141
|
-
| ((
|
9374
|
+
| ((
|
9375
|
+
moduleGraphConnection: ModuleGraphConnection,
|
9376
|
+
runtime: RuntimeSpec
|
9377
|
+
) => ConnectionState)
|
9142
9378
|
);
|
9143
9379
|
originModule: null | Module;
|
9144
9380
|
resolvedOriginModule: null | Module;
|
@@ -9148,15 +9384,15 @@ declare class ModuleGraphConnection {
|
|
9148
9384
|
weak: boolean;
|
9149
9385
|
conditional: boolean;
|
9150
9386
|
condition?: (
|
9151
|
-
|
9152
|
-
|
9387
|
+
moduleGraphConnection: ModuleGraphConnection,
|
9388
|
+
runtime: RuntimeSpec
|
9153
9389
|
) => ConnectionState;
|
9154
9390
|
explanations?: Set<string>;
|
9155
9391
|
clone(): ModuleGraphConnection;
|
9156
9392
|
addCondition(
|
9157
9393
|
condition: (
|
9158
|
-
|
9159
|
-
|
9394
|
+
moduleGraphConnection: ModuleGraphConnection,
|
9395
|
+
runtime: RuntimeSpec
|
9160
9396
|
) => ConnectionState
|
9161
9397
|
): void;
|
9162
9398
|
addExplanation(explanation: string): void;
|
@@ -9178,12 +9414,7 @@ type ModuleInfo = ConcatenatedModuleInfo | ExternalModuleInfo;
|
|
9178
9414
|
declare interface ModuleMemCachesItem {
|
9179
9415
|
buildInfo: BuildInfo;
|
9180
9416
|
references?: WeakMap<Dependency, Module>;
|
9181
|
-
memCache: WeakTupleMap<
|
9182
|
-
}
|
9183
|
-
declare interface ModuleObject {
|
9184
|
-
id: string;
|
9185
|
-
exports: any;
|
9186
|
-
loaded: boolean;
|
9417
|
+
memCache: WeakTupleMap<Module[], string>;
|
9187
9418
|
}
|
9188
9419
|
|
9189
9420
|
/**
|
@@ -9323,7 +9554,7 @@ declare interface ModuleOptionsNormalized {
|
|
9323
9554
|
declare interface ModulePathData {
|
9324
9555
|
id: string | number;
|
9325
9556
|
hash: string;
|
9326
|
-
hashWithLength?: (
|
9557
|
+
hashWithLength?: (length: number) => string;
|
9327
9558
|
}
|
9328
9559
|
declare abstract class ModuleProfile {
|
9329
9560
|
startTime: number;
|
@@ -9433,10 +9664,10 @@ declare abstract class ModuleTemplate {
|
|
9433
9664
|
| string
|
9434
9665
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
9435
9666
|
fn: (
|
9436
|
-
|
9437
|
-
|
9438
|
-
|
9439
|
-
|
9667
|
+
source: Source,
|
9668
|
+
module: Module,
|
9669
|
+
chunkRenderContext: ChunkRenderContextJavascriptModulesPlugin,
|
9670
|
+
dependencyTemplates: DependencyTemplates
|
9440
9671
|
) => Source
|
9441
9672
|
) => void;
|
9442
9673
|
};
|
@@ -9446,10 +9677,10 @@ declare abstract class ModuleTemplate {
|
|
9446
9677
|
| string
|
9447
9678
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
9448
9679
|
fn: (
|
9449
|
-
|
9450
|
-
|
9451
|
-
|
9452
|
-
|
9680
|
+
source: Source,
|
9681
|
+
module: Module,
|
9682
|
+
chunkRenderContext: ChunkRenderContextJavascriptModulesPlugin,
|
9683
|
+
dependencyTemplates: DependencyTemplates
|
9453
9684
|
) => Source
|
9454
9685
|
) => void;
|
9455
9686
|
};
|
@@ -9459,10 +9690,10 @@ declare abstract class ModuleTemplate {
|
|
9459
9690
|
| string
|
9460
9691
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
9461
9692
|
fn: (
|
9462
|
-
|
9463
|
-
|
9464
|
-
|
9465
|
-
|
9693
|
+
source: Source,
|
9694
|
+
module: Module,
|
9695
|
+
chunkRenderContext: ChunkRenderContextJavascriptModulesPlugin,
|
9696
|
+
dependencyTemplates: DependencyTemplates
|
9466
9697
|
) => Source
|
9467
9698
|
) => void;
|
9468
9699
|
};
|
@@ -9472,10 +9703,10 @@ declare abstract class ModuleTemplate {
|
|
9472
9703
|
| string
|
9473
9704
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
9474
9705
|
fn: (
|
9475
|
-
|
9476
|
-
|
9477
|
-
|
9478
|
-
|
9706
|
+
source: Source,
|
9707
|
+
module: Module,
|
9708
|
+
chunkRenderContext: ChunkRenderContextJavascriptModulesPlugin,
|
9709
|
+
dependencyTemplates: DependencyTemplates
|
9479
9710
|
) => Source
|
9480
9711
|
) => void;
|
9481
9712
|
};
|
@@ -9484,7 +9715,7 @@ declare abstract class ModuleTemplate {
|
|
9484
9715
|
options:
|
9485
9716
|
| string
|
9486
9717
|
| (TapOptions & { name: string } & IfSet<AdditionalOptions>),
|
9487
|
-
fn: (
|
9718
|
+
fn: (hash: Hash) => void
|
9488
9719
|
) => void;
|
9489
9720
|
};
|
9490
9721
|
}>;
|
@@ -9504,7 +9735,9 @@ declare class MultiCompiler {
|
|
9504
9735
|
run: MultiHook<AsyncSeriesHook<[Compiler]>>;
|
9505
9736
|
watchClose: SyncHook<[]>;
|
9506
9737
|
watchRun: MultiHook<AsyncSeriesHook<[Compiler]>>;
|
9507
|
-
infrastructureLog: MultiHook<
|
9738
|
+
infrastructureLog: MultiHook<
|
9739
|
+
SyncBailHook<[string, string, undefined | any[]], true | void>
|
9740
|
+
>;
|
9508
9741
|
}>;
|
9509
9742
|
compilers: Compiler[];
|
9510
9743
|
dependencies: WeakMap<Compiler, string[]>;
|
@@ -9602,6 +9835,9 @@ declare interface NeedBuildContext {
|
|
9602
9835
|
fileSystemInfo: FileSystemInfo;
|
9603
9836
|
valueCacheVersions: Map<string, string | Set<string>>;
|
9604
9837
|
}
|
9838
|
+
declare interface NewContentCreateContextMap {
|
9839
|
+
[index: string]: string;
|
9840
|
+
}
|
9605
9841
|
declare class NoEmitOnErrorsPlugin {
|
9606
9842
|
constructor();
|
9607
9843
|
|
@@ -9612,24 +9848,20 @@ declare class NoEmitOnErrorsPlugin {
|
|
9612
9848
|
}
|
9613
9849
|
type Node = false | NodeOptions;
|
9614
9850
|
declare class NodeEnvironmentPlugin {
|
9615
|
-
constructor(options:
|
9616
|
-
|
9617
|
-
* infrastructure logging options
|
9618
|
-
*/
|
9619
|
-
infrastructureLogging: InfrastructureLogging;
|
9620
|
-
});
|
9621
|
-
options: {
|
9622
|
-
/**
|
9623
|
-
* infrastructure logging options
|
9624
|
-
*/
|
9625
|
-
infrastructureLogging: InfrastructureLogging;
|
9626
|
-
};
|
9851
|
+
constructor(options: NodeEnvironmentPluginOptions);
|
9852
|
+
options: NodeEnvironmentPluginOptions;
|
9627
9853
|
|
9628
9854
|
/**
|
9629
9855
|
* Apply the plugin
|
9630
9856
|
*/
|
9631
9857
|
apply(compiler: Compiler): void;
|
9632
9858
|
}
|
9859
|
+
declare interface NodeEnvironmentPluginOptions {
|
9860
|
+
/**
|
9861
|
+
* infrastructure logging options
|
9862
|
+
*/
|
9863
|
+
infrastructureLogging: InfrastructureLogging;
|
9864
|
+
}
|
9633
9865
|
|
9634
9866
|
/**
|
9635
9867
|
* Options object for node compatibility features.
|
@@ -9691,7 +9923,7 @@ declare class NormalModule extends Module {
|
|
9691
9923
|
generator?: Generator;
|
9692
9924
|
generatorOptions?: GeneratorOptions;
|
9693
9925
|
resource: string;
|
9694
|
-
resourceResolveData
|
9926
|
+
resourceResolveData: any;
|
9695
9927
|
matchResource?: string;
|
9696
9928
|
loaders: LoaderItem[];
|
9697
9929
|
error: null | WebpackError;
|
@@ -9700,7 +9932,7 @@ declare class NormalModule extends Module {
|
|
9700
9932
|
* restore unsafe cache data
|
9701
9933
|
*/
|
9702
9934
|
restoreFromUnsafeCache(
|
9703
|
-
unsafeCacheData:
|
9935
|
+
unsafeCacheData: UnsafeCacheData,
|
9704
9936
|
normalModuleFactory: NormalModuleFactory
|
9705
9937
|
): void;
|
9706
9938
|
createSourceForAsset(
|
@@ -9743,6 +9975,9 @@ declare interface NormalModuleCompilationHooks {
|
|
9743
9975
|
null | string | Buffer
|
9744
9976
|
>
|
9745
9977
|
>;
|
9978
|
+
processResult: SyncWaterfallHook<
|
9979
|
+
[[string | Buffer, string | SourceMapSource, PreparsedAst], NormalModule]
|
9980
|
+
>;
|
9746
9981
|
needBuild: AsyncSeriesBailHook<[NormalModule, NeedBuildContext], boolean>;
|
9747
9982
|
}
|
9748
9983
|
declare interface NormalModuleCreateData {
|
@@ -9784,7 +10019,7 @@ declare interface NormalModuleCreateData {
|
|
9784
10019
|
/**
|
9785
10020
|
* resource resolve data
|
9786
10021
|
*/
|
9787
|
-
resourceResolveData?:
|
10022
|
+
resourceResolveData?: any;
|
9788
10023
|
|
9789
10024
|
/**
|
9790
10025
|
* context directory for resolving
|
@@ -9859,8 +10094,8 @@ declare abstract class NormalModuleFactory extends ModuleFactory {
|
|
9859
10094
|
ruleSet: RuleSet;
|
9860
10095
|
context: string;
|
9861
10096
|
fs: InputFileSystem;
|
9862
|
-
parserCache: Map<string, WeakMap<
|
9863
|
-
generatorCache: Map<string, WeakMap<
|
10097
|
+
parserCache: Map<string, WeakMap<ParserOptions, Parser>>;
|
10098
|
+
generatorCache: Map<string, WeakMap<GeneratorOptions, Generator>>;
|
9864
10099
|
cleanupForCache(): void;
|
9865
10100
|
resolveResource(
|
9866
10101
|
contextInfo: ModuleFactoryCreateDataContextInfo,
|
@@ -9954,22 +10189,16 @@ declare class NormalModuleReplacementPlugin {
|
|
9954
10189
|
*/
|
9955
10190
|
constructor(
|
9956
10191
|
resourceRegExp: RegExp,
|
9957
|
-
newResource: string | ((
|
10192
|
+
newResource: string | ((resolveData: ResolveData) => void)
|
9958
10193
|
);
|
9959
10194
|
resourceRegExp: RegExp;
|
9960
|
-
newResource: string | ((
|
10195
|
+
newResource: string | ((resolveData: ResolveData) => void);
|
9961
10196
|
|
9962
10197
|
/**
|
9963
10198
|
* Apply the plugin
|
9964
10199
|
*/
|
9965
10200
|
apply(compiler: Compiler): void;
|
9966
10201
|
}
|
9967
|
-
type NormalModuleUnsafeCacheData = UnsafeCacheData & {
|
9968
|
-
parser?: Parser;
|
9969
|
-
parserOptions?: ParserOptions;
|
9970
|
-
generator?: Generator;
|
9971
|
-
generatorOptions?: GeneratorOptions;
|
9972
|
-
};
|
9973
10202
|
type NormalizedStatsOptions = KnownNormalizedStatsOptions &
|
9974
10203
|
Omit<
|
9975
10204
|
StatsOptions,
|
@@ -10025,7 +10254,7 @@ declare class NullDependencyTemplate extends DependencyTemplate {
|
|
10025
10254
|
}
|
10026
10255
|
declare interface ObjectDeserializerContext {
|
10027
10256
|
read: () => any;
|
10028
|
-
setCircularReference: (
|
10257
|
+
setCircularReference: (value?: any) => void;
|
10029
10258
|
}
|
10030
10259
|
declare interface ObjectEncodingOptions {
|
10031
10260
|
encoding?:
|
@@ -10037,24 +10266,34 @@ declare interface ObjectEncodingOptions {
|
|
10037
10266
|
| "utf-16le"
|
10038
10267
|
| "ucs2"
|
10039
10268
|
| "ucs-2"
|
10040
|
-
| "latin1"
|
10041
|
-
| "binary"
|
10042
10269
|
| "base64"
|
10043
10270
|
| "base64url"
|
10271
|
+
| "latin1"
|
10272
|
+
| "binary"
|
10044
10273
|
| "hex";
|
10045
10274
|
}
|
10046
10275
|
declare interface ObjectForExtract {
|
10047
10276
|
[index: string]: any;
|
10048
10277
|
}
|
10049
10278
|
declare interface ObjectSerializer {
|
10050
|
-
serialize: (
|
10051
|
-
deserialize: (
|
10279
|
+
serialize: (value: any, context: ObjectSerializerContext) => void;
|
10280
|
+
deserialize: (context: ObjectDeserializerContext) => any;
|
10052
10281
|
}
|
10053
10282
|
declare interface ObjectSerializerContext {
|
10054
|
-
write: (
|
10055
|
-
|
10056
|
-
|
10057
|
-
|
10283
|
+
write: (value?: any) => void;
|
10284
|
+
setCircularReference: (value?: any) => void;
|
10285
|
+
snapshot: () => ObjectSerializerSnapshot;
|
10286
|
+
rollback: (snapshot: ObjectSerializerSnapshot) => void;
|
10287
|
+
writeLazy?: (item?: any) => void;
|
10288
|
+
writeSeparate?: (item?: any, obj?: any) => () => any;
|
10289
|
+
}
|
10290
|
+
declare interface ObjectSerializerSnapshot {
|
10291
|
+
length: number;
|
10292
|
+
cycleStackSize: number;
|
10293
|
+
referenceableSize: number;
|
10294
|
+
currentPos: number;
|
10295
|
+
objectTypeLookupSize: number;
|
10296
|
+
currentPosTypeLookup: number;
|
10058
10297
|
}
|
10059
10298
|
declare class OccurrenceChunkIdsPlugin {
|
10060
10299
|
constructor(options?: OccurrenceChunkIdsPluginOptions);
|
@@ -10091,16 +10330,16 @@ declare interface Open {
|
|
10091
10330
|
file: PathLikeFs,
|
10092
10331
|
flags: undefined | string | number,
|
10093
10332
|
mode: undefined | null | string | number,
|
10094
|
-
callback: (
|
10333
|
+
callback: (err: null | NodeJS.ErrnoException, result?: number) => void
|
10095
10334
|
): void;
|
10096
10335
|
(
|
10097
10336
|
file: PathLikeFs,
|
10098
10337
|
flags: undefined | string | number,
|
10099
|
-
callback: (
|
10338
|
+
callback: (err: null | NodeJS.ErrnoException, result?: number) => void
|
10100
10339
|
): void;
|
10101
10340
|
(
|
10102
10341
|
file: PathLikeFs,
|
10103
|
-
callback: (
|
10342
|
+
callback: (err: null | NodeJS.ErrnoException, result?: number) => void
|
10104
10343
|
): void;
|
10105
10344
|
}
|
10106
10345
|
|
@@ -10290,7 +10529,7 @@ declare interface OptimizationSplitChunksCacheGroup {
|
|
10290
10529
|
/**
|
10291
10530
|
* Assign modules to a cache group by module layer.
|
10292
10531
|
*/
|
10293
|
-
layer?: string |
|
10532
|
+
layer?: string | RegExp | ((layer: null | string) => boolean);
|
10294
10533
|
|
10295
10534
|
/**
|
10296
10535
|
* Maximum number of requests which are accepted for on-demand loading.
|
@@ -10340,7 +10579,10 @@ declare interface OptimizationSplitChunksCacheGroup {
|
|
10340
10579
|
/**
|
10341
10580
|
* Give chunks for this cache group a name (chunks with equal name are merged).
|
10342
10581
|
*/
|
10343
|
-
name?:
|
10582
|
+
name?:
|
10583
|
+
| string
|
10584
|
+
| false
|
10585
|
+
| ((module: Module, chunks: Chunk[], key: string) => undefined | string);
|
10344
10586
|
|
10345
10587
|
/**
|
10346
10588
|
* Priority of this cache group.
|
@@ -10355,12 +10597,15 @@ declare interface OptimizationSplitChunksCacheGroup {
|
|
10355
10597
|
/**
|
10356
10598
|
* Assign modules to a cache group by module name.
|
10357
10599
|
*/
|
10358
|
-
test?:
|
10600
|
+
test?:
|
10601
|
+
| string
|
10602
|
+
| RegExp
|
10603
|
+
| ((module: Module, context: CacheGroupsContext) => boolean);
|
10359
10604
|
|
10360
10605
|
/**
|
10361
10606
|
* Assign modules to a cache group by module type.
|
10362
10607
|
*/
|
10363
|
-
type?: string |
|
10608
|
+
type?: string | RegExp | ((type: string) => boolean);
|
10364
10609
|
|
10365
10610
|
/**
|
10366
10611
|
* Compare used exports when checking common modules. Modules will only be put in the same chunk when exports are equal.
|
@@ -10496,7 +10741,10 @@ declare interface OptimizationSplitChunksOptions {
|
|
10496
10741
|
/**
|
10497
10742
|
* Give chunks created a name (chunks with equal name are merged).
|
10498
10743
|
*/
|
10499
|
-
name?:
|
10744
|
+
name?:
|
10745
|
+
| string
|
10746
|
+
| false
|
10747
|
+
| ((module: Module, chunks: Chunk[], key: string) => undefined | string);
|
10500
10748
|
|
10501
10749
|
/**
|
10502
10750
|
* Compare used exports when checking common modules. Modules will only be put in the same chunk when exports are equal.
|
@@ -10645,12 +10893,12 @@ declare interface Output {
|
|
10645
10893
|
/**
|
10646
10894
|
* Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
|
10647
10895
|
*/
|
10648
|
-
devtoolFallbackModuleFilenameTemplate?: string |
|
10896
|
+
devtoolFallbackModuleFilenameTemplate?: string | ((context?: any) => string);
|
10649
10897
|
|
10650
10898
|
/**
|
10651
10899
|
* Filename template string of function for the sources array in a generated SourceMap.
|
10652
10900
|
*/
|
10653
|
-
devtoolModuleFilenameTemplate?: string |
|
10901
|
+
devtoolModuleFilenameTemplate?: string | ((context?: any) => string);
|
10654
10902
|
|
10655
10903
|
/**
|
10656
10904
|
* Module namespace to use when interpolating filename template string for the sources array in a generated SourceMap. Defaults to `output.library` if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.
|
@@ -10848,15 +11096,15 @@ declare interface OutputFileSystem {
|
|
10848
11096
|
readdir?: ReaddirFs;
|
10849
11097
|
rmdir?: Rmdir;
|
10850
11098
|
unlink?: (
|
10851
|
-
|
10852
|
-
|
11099
|
+
pathLike: PathLikeFs,
|
11100
|
+
callback: (err: null | NodeJS.ErrnoException) => void
|
10853
11101
|
) => void;
|
10854
11102
|
stat: StatFs;
|
10855
11103
|
lstat?: LStatFs;
|
10856
11104
|
readFile: ReadFileFs;
|
10857
|
-
join?: (
|
10858
|
-
relative?: (
|
10859
|
-
dirname?: (
|
11105
|
+
join?: (path1: string, path2: string) => string;
|
11106
|
+
relative?: (from: string, to: string) => string;
|
11107
|
+
dirname?: (dirname: string) => string;
|
10860
11108
|
}
|
10861
11109
|
|
10862
11110
|
/**
|
@@ -10939,12 +11187,12 @@ declare interface OutputNormalized {
|
|
10939
11187
|
/**
|
10940
11188
|
* Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
|
10941
11189
|
*/
|
10942
|
-
devtoolFallbackModuleFilenameTemplate?: string |
|
11190
|
+
devtoolFallbackModuleFilenameTemplate?: string | ((context?: any) => string);
|
10943
11191
|
|
10944
11192
|
/**
|
10945
11193
|
* Filename template string of function for the sources array in a generated SourceMap.
|
10946
11194
|
*/
|
10947
|
-
devtoolModuleFilenameTemplate?: string |
|
11195
|
+
devtoolModuleFilenameTemplate?: string | ((context?: any) => string);
|
10948
11196
|
|
10949
11197
|
/**
|
10950
11198
|
* Module namespace to use when interpolating filename template string for the sources array in a generated SourceMap. Defaults to `output.library` if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.
|
@@ -11121,8 +11369,8 @@ declare interface OutputNormalized {
|
|
11121
11369
|
*/
|
11122
11370
|
workerWasmLoading?: string | false;
|
11123
11371
|
}
|
11124
|
-
declare interface ParameterizedComparator<TArg, T> {
|
11125
|
-
(
|
11372
|
+
declare interface ParameterizedComparator<TArg extends object, T> {
|
11373
|
+
(tArg: TArg): Comparator<T>;
|
11126
11374
|
}
|
11127
11375
|
declare interface ParsedIdentifier {
|
11128
11376
|
request: string;
|
@@ -11223,12 +11471,12 @@ declare interface ParserStateBase {
|
|
11223
11471
|
current: NormalModule;
|
11224
11472
|
module: NormalModule;
|
11225
11473
|
compilation: Compilation;
|
11226
|
-
options:
|
11474
|
+
options: WebpackOptionsNormalized;
|
11227
11475
|
}
|
11228
11476
|
declare interface PathData {
|
11229
11477
|
chunkGraph?: ChunkGraph;
|
11230
11478
|
hash?: string;
|
11231
|
-
hashWithLength?: (
|
11479
|
+
hashWithLength?: (length: number) => string;
|
11232
11480
|
chunk?: Chunk | ChunkPathData;
|
11233
11481
|
module?: Module | ModulePathData;
|
11234
11482
|
runtime?: RuntimeSpec;
|
@@ -11237,12 +11485,12 @@ declare interface PathData {
|
|
11237
11485
|
query?: string;
|
11238
11486
|
contentHashType?: string;
|
11239
11487
|
contentHash?: string;
|
11240
|
-
contentHashWithLength?: (
|
11488
|
+
contentHashWithLength?: (length: number) => string;
|
11241
11489
|
noChunkHash?: boolean;
|
11242
11490
|
url?: string;
|
11243
11491
|
}
|
11244
11492
|
type PathLikeFs = string | Buffer | URL;
|
11245
|
-
type PathLikeTypes = string |
|
11493
|
+
type PathLikeTypes = string | URL_url | Buffer;
|
11246
11494
|
type PathOrFileDescriptorFs = string | number | Buffer | URL;
|
11247
11495
|
type PathOrFileDescriptorTypes = string | number | Buffer | URL_url;
|
11248
11496
|
type Pattern =
|
@@ -11305,32 +11553,32 @@ declare interface PlatformTargetProperties {
|
|
11305
11553
|
/**
|
11306
11554
|
* web platform, importing of http(s) and std: is available
|
11307
11555
|
*/
|
11308
|
-
web
|
11556
|
+
web?: null | boolean;
|
11309
11557
|
|
11310
11558
|
/**
|
11311
11559
|
* browser platform, running in a normal web browser
|
11312
11560
|
*/
|
11313
|
-
browser
|
11561
|
+
browser?: null | boolean;
|
11314
11562
|
|
11315
11563
|
/**
|
11316
11564
|
* (Web)Worker platform, running in a web/shared/service worker
|
11317
11565
|
*/
|
11318
|
-
webworker
|
11566
|
+
webworker?: null | boolean;
|
11319
11567
|
|
11320
11568
|
/**
|
11321
11569
|
* node platform, require of node built-in modules is available
|
11322
11570
|
*/
|
11323
|
-
node
|
11571
|
+
node?: null | boolean;
|
11324
11572
|
|
11325
11573
|
/**
|
11326
11574
|
* nwjs platform, require of legacy nw.gui is available
|
11327
11575
|
*/
|
11328
|
-
nwjs
|
11576
|
+
nwjs?: null | boolean;
|
11329
11577
|
|
11330
11578
|
/**
|
11331
11579
|
* electron platform, require of some electron built-in modules is available
|
11332
11580
|
*/
|
11333
|
-
electron
|
11581
|
+
electron?: null | boolean;
|
11334
11582
|
}
|
11335
11583
|
type Plugin =
|
11336
11584
|
| undefined
|
@@ -11373,7 +11621,7 @@ declare interface Problem {
|
|
11373
11621
|
type: ProblemType;
|
11374
11622
|
path: string;
|
11375
11623
|
argument: string;
|
11376
|
-
value?:
|
11624
|
+
value?: string | number | boolean | RegExp;
|
11377
11625
|
index?: number;
|
11378
11626
|
expected?: string;
|
11379
11627
|
}
|
@@ -11384,7 +11632,7 @@ type ProblemType =
|
|
11384
11632
|
| "multiple-values-unexpected"
|
11385
11633
|
| "invalid-value";
|
11386
11634
|
declare interface ProcessAssetsAdditionalOptions {
|
11387
|
-
additionalAssets?:
|
11635
|
+
additionalAssets?: any;
|
11388
11636
|
}
|
11389
11637
|
declare class Profiler {
|
11390
11638
|
constructor(inspector?: any);
|
@@ -11392,7 +11640,7 @@ declare class Profiler {
|
|
11392
11640
|
inspector: any;
|
11393
11641
|
hasSession(): boolean;
|
11394
11642
|
startProfiling(): Promise<void> | Promise<[any, any, any]>;
|
11395
|
-
sendCommand(method: string, params
|
11643
|
+
sendCommand(method: string, params: Record<string, any>): Promise<any>;
|
11396
11644
|
destroy(): Promise<void>;
|
11397
11645
|
stopProfiling(): Promise<{ profile: any }>;
|
11398
11646
|
}
|
@@ -11595,7 +11843,10 @@ declare interface RawSourceMap {
|
|
11595
11843
|
mappings: string;
|
11596
11844
|
file: string;
|
11597
11845
|
}
|
11598
|
-
declare interface Read<
|
11846
|
+
declare interface Read<
|
11847
|
+
TBuffer extends
|
11848
|
+
ArrayBufferView<ArrayBufferLike> = ArrayBufferView<ArrayBufferLike>
|
11849
|
+
> {
|
11599
11850
|
(
|
11600
11851
|
fd: number,
|
11601
11852
|
buffer: TBuffer,
|
@@ -11622,11 +11873,13 @@ declare interface Read<TBuffer extends ArrayBufferView = Buffer> {
|
|
11622
11873
|
callback: (
|
11623
11874
|
err: null | NodeJS.ErrnoException,
|
11624
11875
|
bytesRead: number,
|
11625
|
-
buffer: ArrayBufferView
|
11876
|
+
buffer: ArrayBufferView<ArrayBufferLike>
|
11626
11877
|
) => void
|
11627
11878
|
): void;
|
11628
11879
|
}
|
11629
|
-
declare interface ReadAsyncOptions<
|
11880
|
+
declare interface ReadAsyncOptions<
|
11881
|
+
TBuffer extends ArrayBufferView<ArrayBufferLike>
|
11882
|
+
> {
|
11630
11883
|
offset?: number;
|
11631
11884
|
length?: number;
|
11632
11885
|
position?: null | number | bigint;
|
@@ -11673,11 +11926,12 @@ declare interface ReadFileFs {
|
|
11673
11926
|
| undefined
|
11674
11927
|
| null
|
11675
11928
|
| ({ encoding?: null; flag?: string } & Abortable),
|
11676
|
-
callback: (
|
11929
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void
|
11677
11930
|
): void;
|
11678
11931
|
(
|
11679
11932
|
path: PathOrFileDescriptorFs,
|
11680
11933
|
options:
|
11934
|
+
| ({ encoding: BufferEncoding; flag?: string } & Abortable)
|
11681
11935
|
| "ascii"
|
11682
11936
|
| "utf8"
|
11683
11937
|
| "utf-8"
|
@@ -11685,13 +11939,12 @@ declare interface ReadFileFs {
|
|
11685
11939
|
| "utf-16le"
|
11686
11940
|
| "ucs2"
|
11687
11941
|
| "ucs-2"
|
11688
|
-
| "latin1"
|
11689
|
-
| "binary"
|
11690
|
-
| ({ encoding: BufferEncoding; flag?: string } & Abortable)
|
11691
11942
|
| "base64"
|
11692
11943
|
| "base64url"
|
11944
|
+
| "latin1"
|
11945
|
+
| "binary"
|
11693
11946
|
| "hex",
|
11694
|
-
callback: (
|
11947
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
11695
11948
|
): void;
|
11696
11949
|
(
|
11697
11950
|
path: PathOrFileDescriptorFs,
|
@@ -11705,20 +11958,20 @@ declare interface ReadFileFs {
|
|
11705
11958
|
| "utf-16le"
|
11706
11959
|
| "ucs2"
|
11707
11960
|
| "ucs-2"
|
11708
|
-
| "latin1"
|
11709
|
-
| "binary"
|
11710
11961
|
| "base64"
|
11711
11962
|
| "base64url"
|
11963
|
+
| "latin1"
|
11964
|
+
| "binary"
|
11712
11965
|
| "hex"
|
11713
11966
|
| (ObjectEncodingOptions & { flag?: string } & Abortable),
|
11714
11967
|
callback: (
|
11715
|
-
|
11716
|
-
|
11968
|
+
err: null | NodeJS.ErrnoException,
|
11969
|
+
result?: string | Buffer
|
11717
11970
|
) => void
|
11718
11971
|
): void;
|
11719
11972
|
(
|
11720
11973
|
path: PathOrFileDescriptorFs,
|
11721
|
-
callback: (
|
11974
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void
|
11722
11975
|
): void;
|
11723
11976
|
}
|
11724
11977
|
declare interface ReadFileSync {
|
@@ -11736,10 +11989,10 @@ declare interface ReadFileSync {
|
|
11736
11989
|
| "utf-16le"
|
11737
11990
|
| "ucs2"
|
11738
11991
|
| "ucs-2"
|
11739
|
-
| "latin1"
|
11740
|
-
| "binary"
|
11741
11992
|
| "base64"
|
11742
11993
|
| "base64url"
|
11994
|
+
| "latin1"
|
11995
|
+
| "binary"
|
11743
11996
|
| "hex"
|
11744
11997
|
| { encoding: BufferEncoding; flag?: string }
|
11745
11998
|
): string;
|
@@ -11754,10 +12007,10 @@ declare interface ReadFileSync {
|
|
11754
12007
|
| "utf-16le"
|
11755
12008
|
| "ucs2"
|
11756
12009
|
| "ucs-2"
|
11757
|
-
| "latin1"
|
11758
|
-
| "binary"
|
11759
12010
|
| "base64"
|
11760
12011
|
| "base64url"
|
12012
|
+
| "latin1"
|
12013
|
+
| "binary"
|
11761
12014
|
| "hex"
|
11762
12015
|
| (ObjectEncodingOptions & { flag?: string })
|
11763
12016
|
): string | Buffer;
|
@@ -11781,10 +12034,10 @@ declare interface ReadFileTypes {
|
|
11781
12034
|
| "utf-16le"
|
11782
12035
|
| "ucs2"
|
11783
12036
|
| "ucs-2"
|
11784
|
-
| "latin1"
|
11785
|
-
| "binary"
|
11786
12037
|
| "base64"
|
11787
12038
|
| "base64url"
|
12039
|
+
| "latin1"
|
12040
|
+
| "binary"
|
11788
12041
|
| "hex"
|
11789
12042
|
| ({ encoding: BufferEncoding; flag?: string } & Abortable),
|
11790
12043
|
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
@@ -11801,10 +12054,10 @@ declare interface ReadFileTypes {
|
|
11801
12054
|
| "utf-16le"
|
11802
12055
|
| "ucs2"
|
11803
12056
|
| "ucs-2"
|
11804
|
-
| "latin1"
|
11805
|
-
| "binary"
|
11806
12057
|
| "base64"
|
11807
12058
|
| "base64url"
|
12059
|
+
| "latin1"
|
12060
|
+
| "binary"
|
11808
12061
|
| "hex"
|
11809
12062
|
| (ObjectEncodingOptions & { flag?: string } & Abortable),
|
11810
12063
|
callback: (
|
@@ -11830,10 +12083,10 @@ declare interface ReaddirFs {
|
|
11830
12083
|
| "utf-16le"
|
11831
12084
|
| "ucs2"
|
11832
12085
|
| "ucs-2"
|
11833
|
-
| "latin1"
|
11834
|
-
| "binary"
|
11835
12086
|
| "base64"
|
11836
12087
|
| "base64url"
|
12088
|
+
| "latin1"
|
12089
|
+
| "binary"
|
11837
12090
|
| "hex"
|
11838
12091
|
| {
|
11839
12092
|
encoding:
|
@@ -11845,26 +12098,26 @@ declare interface ReaddirFs {
|
|
11845
12098
|
| "utf-16le"
|
11846
12099
|
| "ucs2"
|
11847
12100
|
| "ucs-2"
|
11848
|
-
| "latin1"
|
11849
|
-
| "binary"
|
11850
12101
|
| "base64"
|
11851
12102
|
| "base64url"
|
12103
|
+
| "latin1"
|
12104
|
+
| "binary"
|
11852
12105
|
| "hex";
|
11853
12106
|
withFileTypes?: false;
|
11854
12107
|
recursive?: boolean;
|
11855
12108
|
},
|
11856
|
-
callback: (
|
12109
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string[]) => void
|
11857
12110
|
): void;
|
11858
12111
|
(
|
11859
12112
|
path: PathLikeFs,
|
11860
12113
|
options:
|
11861
12114
|
| "buffer"
|
11862
12115
|
| { encoding: "buffer"; withFileTypes?: false; recursive?: boolean },
|
11863
|
-
callback: (
|
12116
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Buffer[]) => void
|
11864
12117
|
): void;
|
11865
12118
|
(
|
11866
12119
|
path: PathLikeFs,
|
11867
|
-
callback: (
|
12120
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string[]) => void
|
11868
12121
|
): void;
|
11869
12122
|
(
|
11870
12123
|
path: PathLikeFs,
|
@@ -11878,18 +12131,18 @@ declare interface ReaddirFs {
|
|
11878
12131
|
| "utf-16le"
|
11879
12132
|
| "ucs2"
|
11880
12133
|
| "ucs-2"
|
11881
|
-
| "latin1"
|
11882
|
-
| "binary"
|
11883
12134
|
| "base64"
|
11884
12135
|
| "base64url"
|
12136
|
+
| "latin1"
|
12137
|
+
| "binary"
|
11885
12138
|
| "hex"
|
11886
12139
|
| (ObjectEncodingOptions & {
|
11887
12140
|
withFileTypes?: false;
|
11888
12141
|
recursive?: boolean;
|
11889
12142
|
}),
|
11890
12143
|
callback: (
|
11891
|
-
|
11892
|
-
|
12144
|
+
err: null | NodeJS.ErrnoException,
|
12145
|
+
result?: string[] | Buffer[]
|
11893
12146
|
) => void
|
11894
12147
|
): void;
|
11895
12148
|
(
|
@@ -11898,7 +12151,7 @@ declare interface ReaddirFs {
|
|
11898
12151
|
withFileTypes: true;
|
11899
12152
|
recursive?: boolean;
|
11900
12153
|
},
|
11901
|
-
callback: (
|
12154
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Dirent[]) => void
|
11902
12155
|
): void;
|
11903
12156
|
}
|
11904
12157
|
declare interface ReaddirSync {
|
@@ -11913,10 +12166,10 @@ declare interface ReaddirSync {
|
|
11913
12166
|
| "utf-16le"
|
11914
12167
|
| "ucs2"
|
11915
12168
|
| "ucs-2"
|
11916
|
-
| "latin1"
|
11917
|
-
| "binary"
|
11918
12169
|
| "base64"
|
11919
12170
|
| "base64url"
|
12171
|
+
| "latin1"
|
12172
|
+
| "binary"
|
11920
12173
|
| "hex"
|
11921
12174
|
| {
|
11922
12175
|
encoding:
|
@@ -11928,10 +12181,10 @@ declare interface ReaddirSync {
|
|
11928
12181
|
| "utf-16le"
|
11929
12182
|
| "ucs2"
|
11930
12183
|
| "ucs-2"
|
11931
|
-
| "latin1"
|
11932
|
-
| "binary"
|
11933
12184
|
| "base64"
|
11934
12185
|
| "base64url"
|
12186
|
+
| "latin1"
|
12187
|
+
| "binary"
|
11935
12188
|
| "hex";
|
11936
12189
|
withFileTypes?: false;
|
11937
12190
|
recursive?: boolean;
|
@@ -11954,10 +12207,10 @@ declare interface ReaddirSync {
|
|
11954
12207
|
| "utf-16le"
|
11955
12208
|
| "ucs2"
|
11956
12209
|
| "ucs-2"
|
11957
|
-
| "latin1"
|
11958
|
-
| "binary"
|
11959
12210
|
| "base64"
|
11960
12211
|
| "base64url"
|
12212
|
+
| "latin1"
|
12213
|
+
| "binary"
|
11961
12214
|
| "hex"
|
11962
12215
|
| (ObjectEncodingOptions & { withFileTypes?: false; recursive?: boolean })
|
11963
12216
|
): string[] | Buffer[];
|
@@ -11982,10 +12235,10 @@ declare interface ReaddirTypes {
|
|
11982
12235
|
| "utf-16le"
|
11983
12236
|
| "ucs2"
|
11984
12237
|
| "ucs-2"
|
11985
|
-
| "latin1"
|
11986
|
-
| "binary"
|
11987
12238
|
| "base64"
|
11988
12239
|
| "base64url"
|
12240
|
+
| "latin1"
|
12241
|
+
| "binary"
|
11989
12242
|
| "hex"
|
11990
12243
|
| {
|
11991
12244
|
encoding:
|
@@ -11997,10 +12250,10 @@ declare interface ReaddirTypes {
|
|
11997
12250
|
| "utf-16le"
|
11998
12251
|
| "ucs2"
|
11999
12252
|
| "ucs-2"
|
12000
|
-
| "latin1"
|
12001
|
-
| "binary"
|
12002
12253
|
| "base64"
|
12003
12254
|
| "base64url"
|
12255
|
+
| "latin1"
|
12256
|
+
| "binary"
|
12004
12257
|
| "hex";
|
12005
12258
|
withFileTypes?: false;
|
12006
12259
|
recursive?: boolean;
|
@@ -12030,10 +12283,10 @@ declare interface ReaddirTypes {
|
|
12030
12283
|
| "utf-16le"
|
12031
12284
|
| "ucs2"
|
12032
12285
|
| "ucs-2"
|
12033
|
-
| "latin1"
|
12034
|
-
| "binary"
|
12035
12286
|
| "base64"
|
12036
12287
|
| "base64url"
|
12288
|
+
| "latin1"
|
12289
|
+
| "binary"
|
12037
12290
|
| "hex"
|
12038
12291
|
| (ObjectEncodingOptions & {
|
12039
12292
|
withFileTypes?: false;
|
@@ -12057,24 +12310,24 @@ declare interface ReadlinkFs {
|
|
12057
12310
|
(
|
12058
12311
|
path: PathLikeFs,
|
12059
12312
|
options: EncodingOption,
|
12060
|
-
callback: (
|
12313
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
12061
12314
|
): void;
|
12062
12315
|
(
|
12063
12316
|
path: PathLikeFs,
|
12064
12317
|
options: BufferEncodingOption,
|
12065
|
-
callback: (
|
12318
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void
|
12066
12319
|
): void;
|
12067
12320
|
(
|
12068
12321
|
path: PathLikeFs,
|
12069
12322
|
options: EncodingOption,
|
12070
12323
|
callback: (
|
12071
|
-
|
12072
|
-
|
12324
|
+
err: null | NodeJS.ErrnoException,
|
12325
|
+
result?: string | Buffer
|
12073
12326
|
) => void
|
12074
12327
|
): void;
|
12075
12328
|
(
|
12076
12329
|
path: PathLikeFs,
|
12077
|
-
callback: (
|
12330
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
12078
12331
|
): void;
|
12079
12332
|
}
|
12080
12333
|
declare interface ReadlinkSync {
|
@@ -12107,16 +12360,7 @@ declare interface ReadlinkTypes {
|
|
12107
12360
|
): void;
|
12108
12361
|
}
|
12109
12362
|
declare class RealContentHashPlugin {
|
12110
|
-
constructor(__0:
|
12111
|
-
/**
|
12112
|
-
* the hash function to use
|
12113
|
-
*/
|
12114
|
-
hashFunction: string | typeof Hash;
|
12115
|
-
/**
|
12116
|
-
* the hash digest to use
|
12117
|
-
*/
|
12118
|
-
hashDigest: string;
|
12119
|
-
});
|
12363
|
+
constructor(__0: RealContentHashPluginOptions);
|
12120
12364
|
|
12121
12365
|
/**
|
12122
12366
|
* Apply the plugin
|
@@ -12126,6 +12370,17 @@ declare class RealContentHashPlugin {
|
|
12126
12370
|
compilation: Compilation
|
12127
12371
|
): CompilationHooksRealContentHashPlugin;
|
12128
12372
|
}
|
12373
|
+
declare interface RealContentHashPluginOptions {
|
12374
|
+
/**
|
12375
|
+
* the hash function to use
|
12376
|
+
*/
|
12377
|
+
hashFunction: string | typeof Hash;
|
12378
|
+
|
12379
|
+
/**
|
12380
|
+
* the hash digest to use
|
12381
|
+
*/
|
12382
|
+
hashDigest?: string;
|
12383
|
+
}
|
12129
12384
|
declare interface RealDependencyLocation {
|
12130
12385
|
start: SourcePosition;
|
12131
12386
|
end?: SourcePosition;
|
@@ -12135,24 +12390,24 @@ declare interface RealPathFs {
|
|
12135
12390
|
(
|
12136
12391
|
path: PathLikeFs,
|
12137
12392
|
options: EncodingOption,
|
12138
|
-
callback: (
|
12393
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
12139
12394
|
): void;
|
12140
12395
|
(
|
12141
12396
|
path: PathLikeFs,
|
12142
12397
|
options: BufferEncodingOption,
|
12143
|
-
callback: (
|
12398
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void
|
12144
12399
|
): void;
|
12145
12400
|
(
|
12146
12401
|
path: PathLikeFs,
|
12147
12402
|
options: EncodingOption,
|
12148
12403
|
callback: (
|
12149
|
-
|
12150
|
-
|
12404
|
+
err: null | NodeJS.ErrnoException,
|
12405
|
+
result?: string | Buffer
|
12151
12406
|
) => void
|
12152
12407
|
): void;
|
12153
12408
|
(
|
12154
12409
|
path: PathLikeFs,
|
12155
|
-
callback: (
|
12410
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
12156
12411
|
): void;
|
12157
12412
|
}
|
12158
12413
|
declare interface RealPathSync {
|
@@ -12184,6 +12439,9 @@ declare interface RealPathTypes {
|
|
12184
12439
|
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
12185
12440
|
): void;
|
12186
12441
|
}
|
12442
|
+
declare interface Records {
|
12443
|
+
[index: string]: any;
|
12444
|
+
}
|
12187
12445
|
type RecursiveArrayOrRecord<T> =
|
12188
12446
|
| { [index: string]: RecursiveArrayOrRecord<T> }
|
12189
12447
|
| RecursiveArrayOrRecord<T>[]
|
@@ -12378,7 +12636,7 @@ declare interface RequestRecord {
|
|
12378
12636
|
[index: string]: string | string[];
|
12379
12637
|
}
|
12380
12638
|
declare abstract class RequestShortener {
|
12381
|
-
contextify: (
|
12639
|
+
contextify: (value: string) => string;
|
12382
12640
|
shorten(request?: null | string): undefined | null | string;
|
12383
12641
|
}
|
12384
12642
|
declare interface ResolveBuildDependenciesResult {
|
@@ -12405,20 +12663,7 @@ declare interface ResolveBuildDependenciesResult {
|
|
12405
12663
|
/**
|
12406
12664
|
* dependencies of the resolving
|
12407
12665
|
*/
|
12408
|
-
resolveDependencies:
|
12409
|
-
/**
|
12410
|
-
* list of files
|
12411
|
-
*/
|
12412
|
-
files: Set<string>;
|
12413
|
-
/**
|
12414
|
-
* list of directories
|
12415
|
-
*/
|
12416
|
-
directories: Set<string>;
|
12417
|
-
/**
|
12418
|
-
* list of missing entries
|
12419
|
-
*/
|
12420
|
-
missing: Set<string>;
|
12421
|
-
};
|
12666
|
+
resolveDependencies: ResolveDependencies;
|
12422
12667
|
}
|
12423
12668
|
declare interface ResolveContext {
|
12424
12669
|
contextDependencies?: WriteOnlySet<string>;
|
@@ -12453,7 +12698,7 @@ declare interface ResolveData {
|
|
12453
12698
|
resolveOptions?: ResolveOptions;
|
12454
12699
|
context: string;
|
12455
12700
|
request: string;
|
12456
|
-
assertions?:
|
12701
|
+
assertions?: ImportAttributes;
|
12457
12702
|
dependencies: ModuleDependency[];
|
12458
12703
|
dependencyType: string;
|
12459
12704
|
createData: Partial<NormalModuleCreateData & { settings: ModuleSettings }>;
|
@@ -12467,6 +12712,22 @@ declare interface ResolveData {
|
|
12467
12712
|
*/
|
12468
12713
|
cacheable: boolean;
|
12469
12714
|
}
|
12715
|
+
declare interface ResolveDependencies {
|
12716
|
+
/**
|
12717
|
+
* list of files
|
12718
|
+
*/
|
12719
|
+
files: Set<string>;
|
12720
|
+
|
12721
|
+
/**
|
12722
|
+
* list of directories
|
12723
|
+
*/
|
12724
|
+
directories: Set<string>;
|
12725
|
+
|
12726
|
+
/**
|
12727
|
+
* list of missing entries
|
12728
|
+
*/
|
12729
|
+
missing: Set<string>;
|
12730
|
+
}
|
12470
12731
|
|
12471
12732
|
/**
|
12472
12733
|
* Options object for resolving requests.
|
@@ -12920,7 +13181,7 @@ declare abstract class Resolver {
|
|
12920
13181
|
normalize(path: string): string;
|
12921
13182
|
}
|
12922
13183
|
declare interface ResolverCache {
|
12923
|
-
direct: WeakMap<
|
13184
|
+
direct: WeakMap<ResolveOptionsWithDependencyType, ResolverWithOptions>;
|
12924
13185
|
stringified: Map<string, ResolverWithOptions>;
|
12925
13186
|
}
|
12926
13187
|
declare abstract class ResolverFactory {
|
@@ -12955,10 +13216,10 @@ declare interface ResourceDataWithData {
|
|
12955
13216
|
data: Record<string, any>;
|
12956
13217
|
}
|
12957
13218
|
declare abstract class RestoreProvidedData {
|
12958
|
-
exports: any;
|
12959
|
-
otherProvided
|
12960
|
-
otherCanMangleProvide
|
12961
|
-
otherTerminalBinding:
|
13219
|
+
exports: any[];
|
13220
|
+
otherProvided?: null | boolean;
|
13221
|
+
otherCanMangleProvide?: boolean;
|
13222
|
+
otherTerminalBinding: boolean;
|
12962
13223
|
serialize(__0: ObjectSerializerContext): void;
|
12963
13224
|
}
|
12964
13225
|
declare interface RmDirOptions {
|
@@ -12969,12 +13230,12 @@ declare interface RmDirOptions {
|
|
12969
13230
|
declare interface Rmdir {
|
12970
13231
|
(
|
12971
13232
|
file: PathLikeFs,
|
12972
|
-
callback: (
|
13233
|
+
callback: (err: null | NodeJS.ErrnoException) => void
|
12973
13234
|
): void;
|
12974
13235
|
(
|
12975
13236
|
file: PathLikeFs,
|
12976
13237
|
options: RmDirOptions,
|
12977
|
-
callback: (
|
13238
|
+
callback: (err: null | NodeJS.ErrnoException) => void
|
12978
13239
|
): void;
|
12979
13240
|
}
|
12980
13241
|
type Rule = string | RegExp;
|
@@ -12982,12 +13243,12 @@ declare interface RuleSet {
|
|
12982
13243
|
/**
|
12983
13244
|
* map of references in the rule set (may grow over time)
|
12984
13245
|
*/
|
12985
|
-
references: Map<string,
|
13246
|
+
references: Map<string, RuleSetLoaderOptions>;
|
12986
13247
|
|
12987
13248
|
/**
|
12988
13249
|
* execute the rule set
|
12989
13250
|
*/
|
12990
|
-
exec: (
|
13251
|
+
exec: (effectData: EffectData) => Effect[];
|
12991
13252
|
}
|
12992
13253
|
type RuleSetCondition =
|
12993
13254
|
| string
|
@@ -13007,6 +13268,7 @@ type RuleSetConditionOrConditions =
|
|
13007
13268
|
| ((value: string) => boolean)
|
13008
13269
|
| RuleSetLogicalConditions
|
13009
13270
|
| RuleSetCondition[];
|
13271
|
+
type RuleSetLoaderOptions = string | { [index: string]: any };
|
13010
13272
|
|
13011
13273
|
/**
|
13012
13274
|
* Logic operators used in a condition matcher.
|
@@ -13472,16 +13734,16 @@ declare interface RuntimeRequirementsContext {
|
|
13472
13734
|
codeGenerationResults: CodeGenerationResults;
|
13473
13735
|
}
|
13474
13736
|
type RuntimeSpec = undefined | string | SortableSet<string>;
|
13475
|
-
declare class RuntimeSpecMap<T> {
|
13476
|
-
constructor(clone?: RuntimeSpecMap<T>);
|
13477
|
-
get(runtime: RuntimeSpec): undefined |
|
13737
|
+
declare class RuntimeSpecMap<T, R = T> {
|
13738
|
+
constructor(clone?: RuntimeSpecMap<T, R>);
|
13739
|
+
get(runtime: RuntimeSpec): undefined | R;
|
13478
13740
|
has(runtime: RuntimeSpec): boolean;
|
13479
|
-
set(runtime: RuntimeSpec, value:
|
13480
|
-
provide(runtime: RuntimeSpec, computer: () =>
|
13741
|
+
set(runtime: RuntimeSpec, value: R): void;
|
13742
|
+
provide(runtime: RuntimeSpec, computer: () => R): R;
|
13481
13743
|
delete(runtime: RuntimeSpec): void;
|
13482
|
-
update(runtime: RuntimeSpec, fn: (
|
13744
|
+
update(runtime: RuntimeSpec, fn: (value?: R) => R): void;
|
13483
13745
|
keys(): RuntimeSpec[];
|
13484
|
-
values(): IterableIterator<
|
13746
|
+
values(): IterableIterator<R>;
|
13485
13747
|
get size(): number;
|
13486
13748
|
}
|
13487
13749
|
declare class RuntimeSpecSet {
|
@@ -13772,7 +14034,7 @@ declare abstract class RuntimeTemplate {
|
|
13772
14034
|
*/
|
13773
14035
|
runtimeRequirements: Set<string>;
|
13774
14036
|
}): [string, string];
|
13775
|
-
exportFromImport(__0: {
|
14037
|
+
exportFromImport<GenerateContext>(__0: {
|
13776
14038
|
/**
|
13777
14039
|
* the module graph
|
13778
14040
|
*/
|
@@ -13816,7 +14078,7 @@ declare abstract class RuntimeTemplate {
|
|
13816
14078
|
/**
|
13817
14079
|
* init fragments will be added here
|
13818
14080
|
*/
|
13819
|
-
initFragments: InitFragment<
|
14081
|
+
initFragments: InitFragment<GenerateContext>[];
|
13820
14082
|
/**
|
13821
14083
|
* runtime for which this code will be generated
|
13822
14084
|
*/
|
@@ -13892,7 +14154,7 @@ declare abstract class RuntimeTemplate {
|
|
13892
14154
|
}): string;
|
13893
14155
|
}
|
13894
14156
|
declare abstract class RuntimeValue {
|
13895
|
-
fn: (
|
14157
|
+
fn: (value: {
|
13896
14158
|
module: NormalModule;
|
13897
14159
|
key: string;
|
13898
14160
|
readonly version: ValueCacheVersion;
|
@@ -13927,6 +14189,12 @@ declare interface ScopeInfo {
|
|
13927
14189
|
inTry: boolean;
|
13928
14190
|
isStrict: boolean;
|
13929
14191
|
isAsmJs: boolean;
|
14192
|
+
|
14193
|
+
/**
|
14194
|
+
* false for unknown state
|
14195
|
+
*/
|
14196
|
+
inExecutedPath: boolean;
|
14197
|
+
terminated?: "return" | "throw";
|
13930
14198
|
}
|
13931
14199
|
declare interface Selector<A, B> {
|
13932
14200
|
(input: A): undefined | null | B;
|
@@ -13941,17 +14209,13 @@ declare abstract class Serializer {
|
|
13941
14209
|
declare abstract class SerializerMiddleware<DeserializedType, SerializedType> {
|
13942
14210
|
serialize(
|
13943
14211
|
data: DeserializedType,
|
13944
|
-
context
|
13945
|
-
): SerializedType | Promise<SerializedType>;
|
14212
|
+
context?: any
|
14213
|
+
): null | SerializedType | Promise<SerializedType>;
|
13946
14214
|
deserialize(
|
13947
14215
|
data: SerializedType,
|
13948
|
-
context
|
14216
|
+
context?: any
|
13949
14217
|
): DeserializedType | Promise<DeserializedType>;
|
13950
14218
|
}
|
13951
|
-
type ServerOptionsHttps<
|
13952
|
-
Request extends typeof IncomingMessage = typeof IncomingMessage,
|
13953
|
-
Response extends typeof ServerResponse = typeof ServerResponse
|
13954
|
-
> = SecureContextOptions & TlsOptions & ServerOptionsImport<Request, Response>;
|
13955
14219
|
declare class SharePlugin {
|
13956
14220
|
constructor(options: SharePluginOptions);
|
13957
14221
|
|
@@ -14190,7 +14454,7 @@ declare interface SnapshotOptionsWebpackOptions {
|
|
14190
14454
|
unmanagedPaths?: (string | RegExp)[];
|
14191
14455
|
}
|
14192
14456
|
declare interface SortFunction<T> {
|
14193
|
-
(
|
14457
|
+
(a: T, b: T): number;
|
14194
14458
|
}
|
14195
14459
|
declare abstract class SortableSet<T> extends Set<T> {
|
14196
14460
|
/**
|
@@ -14202,12 +14466,12 @@ declare abstract class SortableSet<T> extends Set<T> {
|
|
14202
14466
|
/**
|
14203
14467
|
* Get data from cache
|
14204
14468
|
*/
|
14205
|
-
getFromCache<R>(fn: (
|
14469
|
+
getFromCache<R extends unknown>(fn: (set: SortableSet<T>) => R): R;
|
14206
14470
|
|
14207
14471
|
/**
|
14208
14472
|
* Get data from cache (ignoring sorting)
|
14209
14473
|
*/
|
14210
|
-
getFromUnorderedCache<R>(fn: (
|
14474
|
+
getFromUnorderedCache<R>(fn: (set: SortableSet<T>) => R): R;
|
14211
14475
|
toJSON(): T[];
|
14212
14476
|
}
|
14213
14477
|
declare class Source {
|
@@ -14238,9 +14502,9 @@ declare class SourceMapDevToolPlugin {
|
|
14238
14502
|
sourceMappingURLComment:
|
14239
14503
|
| string
|
14240
14504
|
| false
|
14241
|
-
| ((
|
14242
|
-
moduleFilenameTemplate: string |
|
14243
|
-
fallbackModuleFilenameTemplate: string |
|
14505
|
+
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
14506
|
+
moduleFilenameTemplate: string | ((context?: any) => string);
|
14507
|
+
fallbackModuleFilenameTemplate: string | ((context?: any) => string);
|
14244
14508
|
namespace: string;
|
14245
14509
|
options: SourceMapDevToolPluginOptions;
|
14246
14510
|
|
@@ -14277,7 +14541,7 @@ declare interface SourceMapDevToolPluginOptions {
|
|
14277
14541
|
/**
|
14278
14542
|
* Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap used only if 'moduleFilenameTemplate' would result in a conflict.
|
14279
14543
|
*/
|
14280
|
-
fallbackModuleFilenameTemplate?: string |
|
14544
|
+
fallbackModuleFilenameTemplate?: string | ((context?: any) => string);
|
14281
14545
|
|
14282
14546
|
/**
|
14283
14547
|
* Path prefix to which the [file] placeholder is relative to.
|
@@ -14302,7 +14566,7 @@ declare interface SourceMapDevToolPluginOptions {
|
|
14302
14566
|
/**
|
14303
14567
|
* Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap.
|
14304
14568
|
*/
|
14305
|
-
moduleFilenameTemplate?: string |
|
14569
|
+
moduleFilenameTemplate?: string | ((context?: any) => string);
|
14306
14570
|
|
14307
14571
|
/**
|
14308
14572
|
* Namespace prefix to allow multiple webpack roots in the devtools.
|
@@ -14364,17 +14628,13 @@ declare interface SplitChunksOptions {
|
|
14364
14628
|
maxAsyncRequests: number;
|
14365
14629
|
maxInitialRequests: number;
|
14366
14630
|
hidePathInfo: boolean;
|
14367
|
-
filename:
|
14631
|
+
filename?: string | ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
14368
14632
|
automaticNameDelimiter: string;
|
14369
14633
|
getCacheGroups: (
|
14370
14634
|
module: Module,
|
14371
14635
|
context: CacheGroupsContext
|
14372
|
-
) => CacheGroupSource[];
|
14373
|
-
getName: (
|
14374
|
-
module?: Module,
|
14375
|
-
chunks?: Chunk[],
|
14376
|
-
key?: string
|
14377
|
-
) => undefined | string;
|
14636
|
+
) => null | CacheGroupSource[];
|
14637
|
+
getName: (module: Module, chunks: Chunk[], key: string) => undefined | string;
|
14378
14638
|
usedExports: boolean;
|
14379
14639
|
fallbackCacheGroup: FallbackCacheGroup;
|
14380
14640
|
}
|
@@ -14410,24 +14670,24 @@ type StartupRenderContext = RenderContextJavascriptModulesPlugin & {
|
|
14410
14670
|
declare interface StatFs {
|
14411
14671
|
(
|
14412
14672
|
path: PathLikeFs,
|
14413
|
-
callback: (
|
14673
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void
|
14414
14674
|
): void;
|
14415
14675
|
(
|
14416
14676
|
path: PathLikeFs,
|
14417
14677
|
options: undefined | (StatOptions & { bigint?: false }),
|
14418
|
-
callback: (
|
14678
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void
|
14419
14679
|
): void;
|
14420
14680
|
(
|
14421
14681
|
path: PathLikeFs,
|
14422
14682
|
options: StatOptions & { bigint: true },
|
14423
|
-
callback: (
|
14683
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IBigIntStats) => void
|
14424
14684
|
): void;
|
14425
14685
|
(
|
14426
14686
|
path: PathLikeFs,
|
14427
14687
|
options: undefined | StatOptions,
|
14428
14688
|
callback: (
|
14429
|
-
|
14430
|
-
|
14689
|
+
err: null | NodeJS.ErrnoException,
|
14690
|
+
result?: IStats | IBigIntStats
|
14431
14691
|
) => void
|
14432
14692
|
): void;
|
14433
14693
|
}
|
@@ -14538,8 +14798,10 @@ type StatementPathItem =
|
|
14538
14798
|
| UpdateExpression
|
14539
14799
|
| YieldExpression
|
14540
14800
|
| FunctionDeclaration
|
14801
|
+
| MaybeNamedFunctionDeclaration
|
14541
14802
|
| VariableDeclaration
|
14542
14803
|
| ClassDeclaration
|
14804
|
+
| MaybeNamedClassDeclaration
|
14543
14805
|
| ExpressionStatement
|
14544
14806
|
| BlockStatement
|
14545
14807
|
| StaticBlock
|
@@ -14571,12 +14833,12 @@ declare class Stats {
|
|
14571
14833
|
toJson(options?: string | boolean | StatsOptions): StatsCompilation;
|
14572
14834
|
toString(options?: string | boolean | StatsOptions): string;
|
14573
14835
|
}
|
14574
|
-
type StatsAsset = Record<string, any
|
14575
|
-
type StatsChunk = Record<string, any
|
14576
|
-
type StatsChunkGroup = Record<string, any
|
14577
|
-
type StatsChunkOrigin = Record<string, any
|
14578
|
-
type StatsCompilation = Record<string, any
|
14579
|
-
type StatsError = Record<string, any
|
14836
|
+
type StatsAsset = KnownStatsAsset & Record<string, any>;
|
14837
|
+
type StatsChunk = KnownStatsChunk & Record<string, any>;
|
14838
|
+
type StatsChunkGroup = KnownStatsChunkGroup & Record<string, any>;
|
14839
|
+
type StatsChunkOrigin = KnownStatsChunkOrigin & Record<string, any>;
|
14840
|
+
type StatsCompilation = KnownStatsCompilation & Record<string, any>;
|
14841
|
+
type StatsError = KnownStatsError & Record<string, any>;
|
14580
14842
|
declare abstract class StatsFactory {
|
14581
14843
|
hooks: StatsFactoryHooks;
|
14582
14844
|
create(
|
@@ -14585,7 +14847,7 @@ declare abstract class StatsFactory {
|
|
14585
14847
|
baseContext: Omit<StatsFactoryContext, "type">
|
14586
14848
|
): any;
|
14587
14849
|
}
|
14588
|
-
type StatsFactoryContext = Record<string, any
|
14850
|
+
type StatsFactoryContext = KnownStatsFactoryContext & Record<string, any>;
|
14589
14851
|
declare interface StatsFactoryHooks {
|
14590
14852
|
extract: HookMap<
|
14591
14853
|
SyncBailHook<[ObjectForExtract, any, StatsFactoryContext], void>
|
@@ -14595,7 +14857,7 @@ declare interface StatsFactoryHooks {
|
|
14595
14857
|
>;
|
14596
14858
|
sort: HookMap<
|
14597
14859
|
SyncBailHook<
|
14598
|
-
[((
|
14860
|
+
[((a?: any, b?: any) => 0 | 1 | -1)[], StatsFactoryContext],
|
14599
14861
|
void
|
14600
14862
|
>
|
14601
14863
|
>;
|
@@ -14607,7 +14869,7 @@ declare interface StatsFactoryHooks {
|
|
14607
14869
|
>;
|
14608
14870
|
sortResults: HookMap<
|
14609
14871
|
SyncBailHook<
|
14610
|
-
[((
|
14872
|
+
[((a?: any, b?: any) => 0 | 1 | -1)[], StatsFactoryContext],
|
14611
14873
|
void
|
14612
14874
|
>
|
14613
14875
|
>;
|
@@ -14621,14 +14883,14 @@ declare interface StatsFactoryHooks {
|
|
14621
14883
|
SyncBailHook<[any, StatsFactoryContext], void | StatsFactory>
|
14622
14884
|
>;
|
14623
14885
|
}
|
14624
|
-
type StatsLogging = Record<string, any
|
14625
|
-
type StatsLoggingEntry = Record<string, any
|
14626
|
-
type StatsModule = Record<string, any
|
14627
|
-
type StatsModuleIssuer = Record<string, any
|
14628
|
-
type StatsModuleReason = Record<string, any
|
14629
|
-
type StatsModuleTraceDependency =
|
14630
|
-
|
14631
|
-
type StatsModuleTraceItem = Record<string, any
|
14886
|
+
type StatsLogging = KnownStatsLogging & Record<string, any>;
|
14887
|
+
type StatsLoggingEntry = KnownStatsLoggingEntry & Record<string, any>;
|
14888
|
+
type StatsModule = KnownStatsModule & Record<string, any>;
|
14889
|
+
type StatsModuleIssuer = KnownStatsModuleIssuer & Record<string, any>;
|
14890
|
+
type StatsModuleReason = KnownStatsModuleReason & Record<string, any>;
|
14891
|
+
type StatsModuleTraceDependency = KnownStatsModuleTraceDependency &
|
14892
|
+
Record<string, any>;
|
14893
|
+
type StatsModuleTraceItem = KnownStatsModuleTraceItem & Record<string, any>;
|
14632
14894
|
|
14633
14895
|
/**
|
14634
14896
|
* Stats options object.
|
@@ -14647,7 +14909,7 @@ declare interface StatsOptions {
|
|
14647
14909
|
/**
|
14648
14910
|
* Sort the assets by that field.
|
14649
14911
|
*/
|
14650
|
-
assetsSort?: string;
|
14912
|
+
assetsSort?: string | false;
|
14651
14913
|
|
14652
14914
|
/**
|
14653
14915
|
* Space to display assets (groups will be collapsed to fit this space).
|
@@ -14727,7 +14989,7 @@ declare interface StatsOptions {
|
|
14727
14989
|
/**
|
14728
14990
|
* Sort the chunks by that field.
|
14729
14991
|
*/
|
14730
|
-
chunksSort?: string;
|
14992
|
+
chunksSort?: string | false;
|
14731
14993
|
|
14732
14994
|
/**
|
14733
14995
|
* Enables/Disables colorful output.
|
@@ -14956,7 +15218,7 @@ declare interface StatsOptions {
|
|
14956
15218
|
/**
|
14957
15219
|
* Sort the modules by that field.
|
14958
15220
|
*/
|
14959
|
-
modulesSort?: string;
|
15221
|
+
modulesSort?: string | false;
|
14960
15222
|
|
14961
15223
|
/**
|
14962
15224
|
* Space to display modules (groups will be collapsed to fit this space, value is in number of modules/groups).
|
@@ -15096,11 +15358,11 @@ declare abstract class StatsPrinter {
|
|
15096
15358
|
hooks: StatsPrintHooks;
|
15097
15359
|
print(type: string, object?: any, baseContext?: StatsPrinterContext): string;
|
15098
15360
|
}
|
15099
|
-
type StatsPrinterContext =
|
15100
|
-
|
15101
|
-
|
15102
|
-
|
15103
|
-
type StatsProfile = Record<string, any
|
15361
|
+
type StatsPrinterContext = KnownStatsPrinterColorFn &
|
15362
|
+
KnownStatsPrinterFormatters &
|
15363
|
+
KnownStatsPrinterContext &
|
15364
|
+
Record<string, any>;
|
15365
|
+
type StatsProfile = KnownStatsProfile & Record<string, any>;
|
15104
15366
|
type StatsValue =
|
15105
15367
|
| boolean
|
15106
15368
|
| StatsOptions
|
@@ -15114,30 +15376,34 @@ type StatsValue =
|
|
15114
15376
|
| "detailed";
|
15115
15377
|
type Supports = undefined | string;
|
15116
15378
|
declare class SyncModuleIdsPlugin {
|
15117
|
-
constructor(__0:
|
15118
|
-
/**
|
15119
|
-
* path to file
|
15120
|
-
*/
|
15121
|
-
path: string;
|
15122
|
-
/**
|
15123
|
-
* context for module names
|
15124
|
-
*/
|
15125
|
-
context?: string;
|
15126
|
-
/**
|
15127
|
-
* selector for modules
|
15128
|
-
*/
|
15129
|
-
test: (arg0: Module) => boolean;
|
15130
|
-
/**
|
15131
|
-
* operation mode (defaults to merge)
|
15132
|
-
*/
|
15133
|
-
mode?: "read" | "create" | "merge" | "update";
|
15134
|
-
});
|
15379
|
+
constructor(__0: SyncModuleIdsPluginOptions);
|
15135
15380
|
|
15136
15381
|
/**
|
15137
15382
|
* Apply the plugin
|
15138
15383
|
*/
|
15139
15384
|
apply(compiler: Compiler): void;
|
15140
15385
|
}
|
15386
|
+
declare interface SyncModuleIdsPluginOptions {
|
15387
|
+
/**
|
15388
|
+
* path to file
|
15389
|
+
*/
|
15390
|
+
path: string;
|
15391
|
+
|
15392
|
+
/**
|
15393
|
+
* context for module names
|
15394
|
+
*/
|
15395
|
+
context?: string;
|
15396
|
+
|
15397
|
+
/**
|
15398
|
+
* selector for modules
|
15399
|
+
*/
|
15400
|
+
test?: (module: Module) => boolean;
|
15401
|
+
|
15402
|
+
/**
|
15403
|
+
* operation mode (defaults to merge)
|
15404
|
+
*/
|
15405
|
+
mode?: "read" | "create" | "merge" | "update";
|
15406
|
+
}
|
15141
15407
|
declare interface SyntheticDependencyLocation {
|
15142
15408
|
name: string;
|
15143
15409
|
index?: number;
|
@@ -15145,6 +15411,9 @@ declare interface SyntheticDependencyLocation {
|
|
15145
15411
|
declare const TOMBSTONE: unique symbol;
|
15146
15412
|
declare const TRANSITIVE: unique symbol;
|
15147
15413
|
declare const TRANSITIVE_ONLY: unique symbol;
|
15414
|
+
declare interface TagData {
|
15415
|
+
[index: string]: any;
|
15416
|
+
}
|
15148
15417
|
|
15149
15418
|
/**
|
15150
15419
|
* Helper function for joining two ranges into a single range. This is useful
|
@@ -15152,11 +15421,11 @@ declare const TRANSITIVE_ONLY: unique symbol;
|
|
15152
15421
|
* to create the range of the _parent node_.
|
15153
15422
|
*/
|
15154
15423
|
declare interface TagInfo {
|
15155
|
-
tag:
|
15156
|
-
data
|
15424
|
+
tag: symbol;
|
15425
|
+
data?: TagData;
|
15157
15426
|
next?: TagInfo;
|
15158
15427
|
}
|
15159
|
-
declare interface
|
15428
|
+
declare interface TargetItemWithConnection {
|
15160
15429
|
module: Module;
|
15161
15430
|
connection: ModuleGraphConnection;
|
15162
15431
|
export?: string[];
|
@@ -15167,7 +15436,7 @@ declare interface TargetItemWithoutConnection {
|
|
15167
15436
|
}
|
15168
15437
|
declare class Template {
|
15169
15438
|
constructor();
|
15170
|
-
static getFunctionContent(fn:
|
15439
|
+
static getFunctionContent<T extends Function>(fn: T): string;
|
15171
15440
|
static toIdentifier(str: string): string;
|
15172
15441
|
static toComment(str: string): string;
|
15173
15442
|
static toNormalComment(str: string): string;
|
@@ -15181,7 +15450,7 @@ declare class Template {
|
|
15181
15450
|
static renderChunkModules(
|
15182
15451
|
renderContext: ChunkRenderContextJavascriptModulesPlugin,
|
15183
15452
|
modules: Module[],
|
15184
|
-
renderModule: (
|
15453
|
+
renderModule: (module: Module) => null | Source,
|
15185
15454
|
prefix?: string
|
15186
15455
|
): null | Source;
|
15187
15456
|
static renderRuntimeModules(
|
@@ -15197,7 +15466,9 @@ declare class Template {
|
|
15197
15466
|
static NUMBER_OF_IDENTIFIER_START_CHARS: number;
|
15198
15467
|
static NUMBER_OF_IDENTIFIER_CONTINUATION_CHARS: number;
|
15199
15468
|
}
|
15200
|
-
type TemplatePath =
|
15469
|
+
type TemplatePath =
|
15470
|
+
| string
|
15471
|
+
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
15201
15472
|
declare interface TimestampAndHash {
|
15202
15473
|
safeTime: number;
|
15203
15474
|
timestamp?: number;
|
@@ -15229,10 +15500,7 @@ declare const UNDEFINED_MARKER: unique symbol;
|
|
15229
15500
|
* https://nodejs.org/api/url.html#the-whatwg-url-api
|
15230
15501
|
*/
|
15231
15502
|
declare interface URL_url extends URL {}
|
15232
|
-
|
15233
|
-
factoryMeta?: FactoryMeta;
|
15234
|
-
resolveOptions?: ResolveOptions;
|
15235
|
-
}
|
15503
|
+
type UnsafeCacheData = KnownUnsafeCacheData & Record<string, any>;
|
15236
15504
|
declare interface UpdateHashContextDependency {
|
15237
15505
|
chunkGraph: ChunkGraph;
|
15238
15506
|
runtime: RuntimeSpec;
|
@@ -15261,11 +15529,6 @@ declare class VariableInfo {
|
|
15261
15529
|
freeName?: string | true;
|
15262
15530
|
tagInfo?: TagInfo;
|
15263
15531
|
}
|
15264
|
-
declare interface VariableInfoInterface {
|
15265
|
-
declaredScope: ScopeInfo;
|
15266
|
-
freeName?: string | true;
|
15267
|
-
tagInfo?: TagInfo;
|
15268
|
-
}
|
15269
15532
|
type WarningFilterItemTypes =
|
15270
15533
|
| string
|
15271
15534
|
| RegExp
|
@@ -15278,13 +15541,13 @@ declare interface WatchFileSystem {
|
|
15278
15541
|
startTime: number,
|
15279
15542
|
options: WatchOptions,
|
15280
15543
|
callback: (
|
15281
|
-
|
15282
|
-
|
15283
|
-
|
15284
|
-
|
15285
|
-
|
15544
|
+
err: null | Error,
|
15545
|
+
timeInfoEntries1?: Map<string, FileSystemInfoEntry | "ignore">,
|
15546
|
+
timeInfoEntries2?: Map<string, FileSystemInfoEntry | "ignore">,
|
15547
|
+
changes?: Set<string>,
|
15548
|
+
removals?: Set<string>
|
15286
15549
|
) => void,
|
15287
|
-
callbackUndelayed: (
|
15550
|
+
callbackUndelayed: (value: string, num: number) => void
|
15288
15551
|
) => Watcher;
|
15289
15552
|
}
|
15290
15553
|
declare class WatchIgnorePlugin {
|
@@ -15493,7 +15756,7 @@ declare class WebpackError extends Error {
|
|
15493
15756
|
static stackTraceLimit: number;
|
15494
15757
|
}
|
15495
15758
|
declare abstract class WebpackLogger {
|
15496
|
-
getChildLogger: (
|
15759
|
+
getChildLogger: (name: string | (() => string)) => WebpackLogger;
|
15497
15760
|
error(...args: any[]): void;
|
15498
15761
|
warn(...args: any[]): void;
|
15499
15762
|
info(...args: any[]): void;
|
@@ -15741,6 +16004,12 @@ declare interface WebpackPluginInstance {
|
|
15741
16004
|
*/
|
15742
16005
|
apply: (compiler: Compiler) => void;
|
15743
16006
|
}
|
16007
|
+
|
16008
|
+
declare interface WebpackRequire {
|
16009
|
+
(id: string): any;
|
16010
|
+
i?: ((options: ExecuteOptions) => void)[];
|
16011
|
+
c?: Record<string, ExecuteModuleObject>;
|
16012
|
+
}
|
15744
16013
|
declare interface WithId {
|
15745
16014
|
id: string | number;
|
15746
16015
|
}
|
@@ -15749,7 +16018,7 @@ declare interface WithOptions {
|
|
15749
16018
|
* create a resolver with additional/different options
|
15750
16019
|
*/
|
15751
16020
|
withOptions: (
|
15752
|
-
|
16021
|
+
options: Partial<ResolveOptionsWithDependencyType>
|
15753
16022
|
) => ResolverWithOptions;
|
15754
16023
|
}
|
15755
16024
|
declare interface WriteFile {
|
@@ -15757,38 +16026,38 @@ declare interface WriteFile {
|
|
15757
16026
|
file: PathOrFileDescriptorFs,
|
15758
16027
|
data:
|
15759
16028
|
| string
|
15760
|
-
| Uint8Array
|
15761
|
-
| Uint8ClampedArray
|
15762
|
-
| Uint16Array
|
15763
|
-
| Uint32Array
|
15764
|
-
| Int8Array
|
15765
|
-
| Int16Array
|
15766
|
-
| Int32Array
|
15767
|
-
| BigUint64Array
|
15768
|
-
| BigInt64Array
|
15769
|
-
| Float32Array
|
15770
|
-
| Float64Array
|
15771
|
-
| DataView
|
16029
|
+
| Uint8Array
|
16030
|
+
| Uint8ClampedArray
|
16031
|
+
| Uint16Array
|
16032
|
+
| Uint32Array
|
16033
|
+
| Int8Array
|
16034
|
+
| Int16Array
|
16035
|
+
| Int32Array
|
16036
|
+
| BigUint64Array
|
16037
|
+
| BigInt64Array
|
16038
|
+
| Float32Array
|
16039
|
+
| Float64Array
|
16040
|
+
| DataView,
|
15772
16041
|
options: WriteFileOptions,
|
15773
|
-
callback: (
|
16042
|
+
callback: (err: null | NodeJS.ErrnoException) => void
|
15774
16043
|
): void;
|
15775
16044
|
(
|
15776
16045
|
file: PathOrFileDescriptorFs,
|
15777
16046
|
data:
|
15778
16047
|
| string
|
15779
|
-
| Uint8Array
|
15780
|
-
| Uint8ClampedArray
|
15781
|
-
| Uint16Array
|
15782
|
-
| Uint32Array
|
15783
|
-
| Int8Array
|
15784
|
-
| Int16Array
|
15785
|
-
| Int32Array
|
15786
|
-
| BigUint64Array
|
15787
|
-
| BigInt64Array
|
15788
|
-
| Float32Array
|
15789
|
-
| Float64Array
|
15790
|
-
| DataView
|
15791
|
-
callback: (
|
16048
|
+
| Uint8Array
|
16049
|
+
| Uint8ClampedArray
|
16050
|
+
| Uint16Array
|
16051
|
+
| Uint32Array
|
16052
|
+
| Int8Array
|
16053
|
+
| Int16Array
|
16054
|
+
| Int32Array
|
16055
|
+
| BigUint64Array
|
16056
|
+
| BigInt64Array
|
16057
|
+
| Float32Array
|
16058
|
+
| Float64Array
|
16059
|
+
| DataView,
|
16060
|
+
callback: (err: null | NodeJS.ErrnoException) => void
|
15792
16061
|
): void;
|
15793
16062
|
}
|
15794
16063
|
type WriteFileOptions =
|
@@ -15800,10 +16069,10 @@ type WriteFileOptions =
|
|
15800
16069
|
| "utf-16le"
|
15801
16070
|
| "ucs2"
|
15802
16071
|
| "ucs-2"
|
15803
|
-
| "latin1"
|
15804
|
-
| "binary"
|
15805
16072
|
| "base64"
|
15806
16073
|
| "base64url"
|
16074
|
+
| "latin1"
|
16075
|
+
| "binary"
|
15807
16076
|
| "hex"
|
15808
16077
|
| (ObjectEncodingOptions &
|
15809
16078
|
Abortable & { mode?: string | number; flag?: string; flush?: boolean });
|
@@ -15821,10 +16090,10 @@ declare interface WriteStreamOptions {
|
|
15821
16090
|
| "utf-16le"
|
15822
16091
|
| "ucs2"
|
15823
16092
|
| "ucs-2"
|
15824
|
-
| "latin1"
|
15825
|
-
| "binary"
|
15826
16093
|
| "base64"
|
15827
16094
|
| "base64url"
|
16095
|
+
| "latin1"
|
16096
|
+
| "binary"
|
15828
16097
|
| "hex";
|
15829
16098
|
fd?: any;
|
15830
16099
|
mode?: number;
|
@@ -15906,7 +16175,9 @@ declare namespace exports {
|
|
15906
16175
|
callback?: CallbackWebpack<MultiStats>
|
15907
16176
|
): MultiCompiler;
|
15908
16177
|
};
|
15909
|
-
export const validate: (
|
16178
|
+
export const validate: (
|
16179
|
+
configuration: Configuration | Configuration[]
|
16180
|
+
) => void;
|
15910
16181
|
export const validateSchema: (
|
15911
16182
|
schema: Parameters<typeof validateFunction>[0],
|
15912
16183
|
options: Parameters<typeof validateFunction>[1],
|
@@ -15914,7 +16185,45 @@ declare namespace exports {
|
|
15914
16185
|
) => void;
|
15915
16186
|
export const version: string;
|
15916
16187
|
export namespace cli {
|
15917
|
-
export let getArguments: (
|
16188
|
+
export let getArguments: (
|
16189
|
+
schema?:
|
16190
|
+
| (JSONSchema4 &
|
16191
|
+
Extend & {
|
16192
|
+
absolutePath: boolean;
|
16193
|
+
instanceof: string;
|
16194
|
+
cli: {
|
16195
|
+
helper?: boolean;
|
16196
|
+
exclude?: boolean;
|
16197
|
+
description?: string;
|
16198
|
+
negatedDescription?: string;
|
16199
|
+
resetDescription?: string;
|
16200
|
+
};
|
16201
|
+
})
|
16202
|
+
| (JSONSchema6 &
|
16203
|
+
Extend & {
|
16204
|
+
absolutePath: boolean;
|
16205
|
+
instanceof: string;
|
16206
|
+
cli: {
|
16207
|
+
helper?: boolean;
|
16208
|
+
exclude?: boolean;
|
16209
|
+
description?: string;
|
16210
|
+
negatedDescription?: string;
|
16211
|
+
resetDescription?: string;
|
16212
|
+
};
|
16213
|
+
})
|
16214
|
+
| (JSONSchema7 &
|
16215
|
+
Extend & {
|
16216
|
+
absolutePath: boolean;
|
16217
|
+
instanceof: string;
|
16218
|
+
cli: {
|
16219
|
+
helper?: boolean;
|
16220
|
+
exclude?: boolean;
|
16221
|
+
description?: string;
|
16222
|
+
negatedDescription?: string;
|
16223
|
+
resetDescription?: string;
|
16224
|
+
};
|
16225
|
+
})
|
16226
|
+
) => Flags;
|
15918
16227
|
export let processArguments: (
|
15919
16228
|
args: Flags,
|
15920
16229
|
config: any,
|
@@ -15946,19 +16255,10 @@ declare namespace exports {
|
|
15946
16255
|
export let REGEXP_NAMESPACE: RegExp;
|
15947
16256
|
export let createFilename: (
|
15948
16257
|
module: string | Module,
|
15949
|
-
options: any,
|
16258
|
+
options: { namespace?: string; moduleFilenameTemplate?: any },
|
15950
16259
|
__2: {
|
15951
|
-
/**
|
15952
|
-
* requestShortener
|
15953
|
-
*/
|
15954
16260
|
requestShortener: RequestShortener;
|
15955
|
-
/**
|
15956
|
-
* chunk graph
|
15957
|
-
*/
|
15958
16261
|
chunkGraph: ChunkGraph;
|
15959
|
-
/**
|
15960
|
-
* the hash function to use
|
15961
|
-
*/
|
15962
16262
|
hashFunction?: string | typeof Hash;
|
15963
16263
|
}
|
15964
16264
|
) => string;
|
@@ -16116,7 +16416,7 @@ declare namespace exports {
|
|
16116
16416
|
export let inferDependencyUsage: (state: ParserState) => void;
|
16117
16417
|
export let onUsage: (
|
16118
16418
|
state: ParserState,
|
16119
|
-
onUsageCallback: (
|
16419
|
+
onUsageCallback: (value?: boolean | Set<string>) => void
|
16120
16420
|
) => void;
|
16121
16421
|
export let setTopLevelSymbol: (
|
16122
16422
|
state: ParserState,
|
@@ -16142,7 +16442,10 @@ declare namespace exports {
|
|
16142
16442
|
) =>
|
16143
16443
|
| null
|
16144
16444
|
| false
|
16145
|
-
| ((
|
16445
|
+
| ((
|
16446
|
+
moduleGraphConnection: ModuleGraphConnection,
|
16447
|
+
runtime: RuntimeSpec
|
16448
|
+
) => ConnectionState);
|
16146
16449
|
export { TopLevelSymbol, topLevelSymbolTag };
|
16147
16450
|
}
|
16148
16451
|
export {
|
@@ -16287,7 +16590,7 @@ declare namespace exports {
|
|
16287
16590
|
) => RuntimeSpec;
|
16288
16591
|
export let forEachRuntime: (
|
16289
16592
|
runtime: RuntimeSpec,
|
16290
|
-
fn: (
|
16593
|
+
fn: (runtime?: string) => void,
|
16291
16594
|
deterministicOrder?: boolean
|
16292
16595
|
) => void;
|
16293
16596
|
export let getRuntimeKey: (runtime: RuntimeSpec) => string;
|
@@ -16328,7 +16631,7 @@ declare namespace exports {
|
|
16328
16631
|
) => RuntimeCondition;
|
16329
16632
|
export let filterRuntime: (
|
16330
16633
|
runtime: RuntimeSpec,
|
16331
|
-
filter: (
|
16634
|
+
filter: (runtime?: RuntimeSpec) => boolean
|
16332
16635
|
) => undefined | string | boolean | SortableSet<string>;
|
16333
16636
|
export { RuntimeSpecMap, RuntimeSpecSet };
|
16334
16637
|
}
|
@@ -16341,7 +16644,7 @@ declare namespace exports {
|
|
16341
16644
|
) => void;
|
16342
16645
|
export const registerLoader: (
|
16343
16646
|
regExp: RegExp,
|
16344
|
-
loader: (
|
16647
|
+
loader: (request: string) => boolean
|
16345
16648
|
) => void;
|
16346
16649
|
export const registerNotSerializable: (Constructor: Constructor) => void;
|
16347
16650
|
export const NOT_SERIALIZABLE: object;
|
@@ -16358,12 +16661,12 @@ declare namespace exports {
|
|
16358
16661
|
) => T | O | (T & O);
|
16359
16662
|
export function compileBooleanMatcher(
|
16360
16663
|
map: Record<string | number, boolean>
|
16361
|
-
): boolean | ((
|
16664
|
+
): boolean | ((value: string) => string);
|
16362
16665
|
export namespace compileBooleanMatcher {
|
16363
16666
|
export let fromLists: (
|
16364
16667
|
positiveItems: string[],
|
16365
16668
|
negativeItems: string[]
|
16366
|
-
) => (
|
16669
|
+
) => (value: string) => string;
|
16367
16670
|
export let itemsToRegexp: (itemsArr: string[]) => string;
|
16368
16671
|
}
|
16369
16672
|
export { LazySet };
|