webpack 5.90.3 → 5.92.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.
Potentially problematic release.
This version of webpack might be problematic. Click here for more details.
- package/README.md +5 -5
- package/bin/webpack.js +6 -3
- package/lib/APIPlugin.js +14 -6
- package/lib/AutomaticPrefetchPlugin.js +1 -1
- package/lib/BannerPlugin.js +3 -1
- package/lib/Cache.js +8 -2
- package/lib/CacheFacade.js +3 -3
- package/lib/Chunk.js +7 -4
- package/lib/ChunkGraph.js +52 -25
- package/lib/ChunkGroup.js +23 -17
- package/lib/CleanPlugin.js +8 -6
- package/lib/Compilation.js +295 -120
- package/lib/Compiler.js +223 -87
- package/lib/ConcatenationScope.js +3 -3
- package/lib/ConditionalInitFragment.js +4 -5
- package/lib/ContextModule.js +95 -41
- package/lib/ContextModuleFactory.js +4 -2
- package/lib/ContextReplacementPlugin.js +3 -2
- package/lib/DefinePlugin.js +18 -6
- package/lib/Dependency.js +12 -10
- package/lib/DependencyTemplate.js +17 -7
- package/lib/DllModule.js +1 -0
- package/lib/DllReferencePlugin.js +7 -3
- package/lib/EntryOptionPlugin.js +4 -1
- package/lib/EntryPlugin.js +6 -1
- package/lib/Entrypoint.js +1 -1
- package/lib/EvalDevToolModulePlugin.js +11 -0
- package/lib/ExportsInfo.js +23 -8
- package/lib/ExternalModule.js +160 -35
- package/lib/ExternalModuleFactoryPlugin.js +37 -2
- package/lib/FileSystemInfo.js +69 -42
- package/lib/FlagDependencyExportsPlugin.js +21 -7
- package/lib/Generator.js +4 -4
- package/lib/HookWebpackError.js +2 -2
- package/lib/HotModuleReplacementPlugin.js +108 -45
- package/lib/IgnorePlugin.js +4 -1
- package/lib/InitFragment.js +5 -3
- package/lib/LibManifestPlugin.js +17 -9
- package/lib/Module.js +41 -14
- package/lib/ModuleFactory.js +3 -3
- package/lib/ModuleFilenameHelpers.js +30 -17
- package/lib/ModuleGraph.js +60 -31
- package/lib/ModuleGraphConnection.js +2 -1
- package/lib/MultiCompiler.js +62 -9
- package/lib/NodeStuffPlugin.js +14 -3
- package/lib/NormalModule.js +13 -13
- package/lib/NormalModuleFactory.js +18 -9
- package/lib/NormalModuleReplacementPlugin.js +5 -1
- package/lib/Parser.js +1 -1
- package/lib/PlatformPlugin.js +39 -0
- package/lib/ProgressPlugin.js +1 -1
- package/lib/ProvidePlugin.js +3 -1
- package/lib/RawModule.js +2 -1
- package/lib/RecordIdsPlugin.js +4 -4
- package/lib/ResolverFactory.js +6 -4
- package/lib/RuntimeModule.js +4 -4
- package/lib/RuntimePlugin.js +1 -0
- package/lib/RuntimeTemplate.js +124 -52
- package/lib/SourceMapDevToolPlugin.js +4 -1
- package/lib/Stats.js +11 -4
- package/lib/Template.js +5 -5
- package/lib/TemplatedPathPlugin.js +48 -7
- package/lib/Watching.js +67 -60
- package/lib/WebpackError.js +6 -6
- package/lib/WebpackOptionsApply.js +18 -5
- package/lib/asset/AssetGenerator.js +15 -0
- package/lib/asset/RawDataUrlModule.js +3 -1
- package/lib/async-modules/AwaitDependenciesInitFragment.js +2 -2
- package/lib/buildChunkGraph.js +120 -67
- package/lib/cache/IdleFileCachePlugin.js +8 -3
- package/lib/cache/MemoryCachePlugin.js +1 -1
- package/lib/cache/MemoryWithGcCachePlugin.js +6 -2
- package/lib/cache/PackFileCacheStrategy.js +51 -18
- package/lib/cache/ResolverCachePlugin.js +22 -14
- package/lib/cache/getLazyHashedEtag.js +2 -2
- package/lib/cli.js +5 -5
- package/lib/config/browserslistTargetHandler.js +7 -1
- package/lib/config/defaults.js +108 -34
- package/lib/config/normalization.js +3 -1
- package/lib/config/target.js +18 -11
- package/lib/container/ContainerEntryDependency.js +2 -1
- package/lib/container/ContainerEntryModule.js +4 -2
- package/lib/container/ContainerPlugin.js +14 -10
- package/lib/container/FallbackModule.js +1 -1
- package/lib/container/RemoteRuntimeModule.js +12 -3
- package/lib/css/CssExportsGenerator.js +68 -25
- package/lib/css/CssGenerator.js +34 -6
- package/lib/css/CssLoadingRuntimeModule.js +217 -98
- package/lib/css/CssModulesPlugin.js +238 -107
- package/lib/css/CssParser.js +24 -15
- package/lib/css/walkCssTokens.js +1 -1
- package/lib/debug/ProfilingPlugin.js +28 -3
- package/lib/dependencies/AMDDefineDependencyParserPlugin.js +9 -5
- package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +4 -1
- package/lib/dependencies/CommonJsDependencyHelpers.js +2 -1
- package/lib/dependencies/CommonJsExportRequireDependency.js +33 -18
- package/lib/dependencies/CommonJsExportsDependency.js +13 -5
- package/lib/dependencies/CommonJsExportsParserPlugin.js +20 -15
- package/lib/dependencies/CommonJsImportsParserPlugin.js +1 -2
- package/lib/dependencies/ContextDependencyHelpers.js +49 -29
- package/lib/dependencies/ContextElementDependency.js +8 -1
- package/lib/dependencies/CssExportDependency.js +2 -2
- package/lib/dependencies/CssLocalIdentifierDependency.js +71 -9
- package/lib/dependencies/CssUrlDependency.js +10 -7
- package/lib/dependencies/ExportsInfoDependency.js +5 -4
- package/lib/dependencies/ExternalModuleDependency.js +4 -2
- package/lib/dependencies/ExternalModuleInitFragment.js +5 -3
- package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +4 -4
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +43 -23
- package/lib/dependencies/HarmonyExportHeaderDependency.js +1 -1
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +73 -32
- package/lib/dependencies/HarmonyExportInitFragment.js +10 -2
- package/lib/dependencies/HarmonyImportDependency.js +28 -12
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +70 -19
- package/lib/dependencies/HarmonyImportSideEffectDependency.js +7 -6
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +47 -35
- package/lib/dependencies/ImportDependency.js +9 -2
- package/lib/dependencies/ImportEagerDependency.js +4 -2
- package/lib/dependencies/ImportMetaContextDependency.js +7 -0
- package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +25 -14
- package/lib/dependencies/ImportMetaPlugin.js +1 -1
- package/lib/dependencies/ImportParserPlugin.js +15 -5
- package/lib/dependencies/ImportWeakDependency.js +4 -2
- package/lib/dependencies/LoaderDependency.js +2 -1
- package/lib/dependencies/LoaderImportDependency.js +2 -1
- package/lib/dependencies/LoaderPlugin.js +2 -2
- package/lib/dependencies/ModuleDependency.js +4 -5
- package/lib/dependencies/PureExpressionDependency.js +64 -47
- package/lib/dependencies/RequireContextPlugin.js +1 -1
- package/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +26 -14
- package/lib/dependencies/RequireEnsureDependency.js +1 -1
- package/lib/dependencies/URLDependency.js +7 -4
- package/lib/dependencies/WorkerDependency.js +1 -1
- package/lib/dependencies/WorkerPlugin.js +2 -1
- package/lib/dependencies/getFunctionExpression.js +3 -1
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +92 -3
- package/lib/hmr/LazyCompilationPlugin.js +2 -2
- package/lib/ids/ChunkModuleIdRangePlugin.js +1 -1
- package/lib/ids/DeterministicChunkIdsPlugin.js +1 -1
- package/lib/ids/DeterministicModuleIdsPlugin.js +1 -1
- package/lib/ids/IdHelpers.js +6 -6
- package/lib/ids/NamedChunkIdsPlugin.js +1 -1
- package/lib/ids/NamedModuleIdsPlugin.js +1 -1
- package/lib/ids/SyncModuleIdsPlugin.js +2 -2
- package/lib/index.js +11 -0
- package/lib/javascript/BasicEvaluatedExpression.js +2 -2
- package/lib/javascript/ChunkHelpers.js +2 -2
- package/lib/javascript/CommonJsChunkFormatPlugin.js +1 -1
- package/lib/javascript/JavascriptGenerator.js +0 -1
- package/lib/javascript/JavascriptModulesPlugin.js +174 -17
- package/lib/javascript/JavascriptParser.js +204 -71
- package/lib/javascript/JavascriptParserHelpers.js +1 -1
- package/lib/javascript/StartupHelpers.js +22 -5
- package/lib/library/AbstractLibraryPlugin.js +2 -2
- package/lib/library/AmdLibraryPlugin.js +2 -2
- package/lib/library/AssignLibraryPlugin.js +3 -3
- package/lib/library/ExportPropertyLibraryPlugin.js +2 -2
- package/lib/library/JsonpLibraryPlugin.js +2 -2
- package/lib/library/ModuleLibraryPlugin.js +2 -2
- package/lib/library/SystemLibraryPlugin.js +2 -2
- package/lib/library/UmdLibraryPlugin.js +33 -12
- package/lib/logging/Logger.js +27 -2
- package/lib/logging/createConsoleLogger.js +13 -9
- package/lib/node/CommonJsChunkLoadingPlugin.js +2 -1
- package/lib/node/NodeEnvironmentPlugin.js +14 -8
- package/lib/node/NodeTemplatePlugin.js +1 -1
- package/lib/node/NodeWatchFileSystem.js +37 -26
- package/lib/node/ReadFileChunkLoadingRuntimeModule.js +2 -1
- package/lib/node/ReadFileCompileWasmPlugin.js +1 -1
- package/lib/node/RequireChunkLoadingRuntimeModule.js +2 -1
- package/lib/node/nodeConsole.js +24 -1
- package/lib/optimize/AggressiveMergingPlugin.js +1 -1
- package/lib/optimize/AggressiveSplittingPlugin.js +1 -0
- package/lib/optimize/ConcatenatedModule.js +140 -121
- package/lib/optimize/EnsureChunkConditionsPlugin.js +1 -1
- package/lib/optimize/InnerGraph.js +8 -3
- package/lib/optimize/InnerGraphPlugin.js +36 -13
- package/lib/optimize/LimitChunkCountPlugin.js +1 -2
- package/lib/optimize/ModuleConcatenationPlugin.js +13 -3
- package/lib/optimize/RealContentHashPlugin.js +3 -3
- package/lib/optimize/RemoveParentModulesPlugin.js +1 -0
- package/lib/optimize/RuntimeChunkPlugin.js +6 -1
- package/lib/optimize/SideEffectsFlagPlugin.js +48 -17
- package/lib/optimize/SplitChunksPlugin.js +10 -10
- package/lib/performance/SizeLimitsPlugin.js +13 -2
- package/lib/rules/ObjectMatcherRulePlugin.js +15 -1
- package/lib/rules/RuleSetCompiler.js +9 -7
- package/lib/runtime/EnsureChunkRuntimeModule.js +2 -1
- package/lib/runtime/GetTrustedTypesPolicyRuntimeModule.js +2 -1
- package/lib/runtime/LoadScriptRuntimeModule.js +1 -1
- package/lib/runtime/StartupChunkDependenciesPlugin.js +1 -1
- package/lib/schemes/HttpUriPlugin.js +1 -1
- package/lib/serialization/BinaryMiddleware.js +4 -4
- package/lib/serialization/FileMiddleware.js +4 -3
- package/lib/serialization/NullPrototypeObjectSerializer.js +2 -2
- package/lib/serialization/ObjectMiddleware.js +8 -5
- package/lib/serialization/PlainObjectSerializer.js +2 -2
- package/lib/serialization/Serializer.js +19 -0
- package/lib/serialization/SerializerMiddleware.js +2 -2
- package/lib/serialization/SingleItemMiddleware.js +2 -2
- package/lib/serialization/types.js +1 -1
- package/lib/sharing/ConsumeSharedModule.js +2 -2
- package/lib/sharing/ConsumeSharedPlugin.js +17 -3
- package/lib/sharing/ConsumeSharedRuntimeModule.js +9 -2
- package/lib/sharing/ProvideSharedPlugin.js +13 -6
- package/lib/sharing/resolveMatchedConfigs.js +3 -3
- package/lib/sharing/utils.js +13 -6
- package/lib/stats/DefaultStatsFactoryPlugin.js +20 -20
- package/lib/stats/DefaultStatsPrinterPlugin.js +1 -1
- package/lib/stats/StatsFactory.js +2 -2
- package/lib/stats/StatsPrinter.js +6 -6
- package/lib/util/ArrayQueue.js +14 -21
- package/lib/util/AsyncQueue.js +1 -1
- package/lib/util/Queue.js +8 -2
- package/lib/util/SortableSet.js +16 -4
- package/lib/util/StackedCacheMap.js +26 -0
- package/lib/util/TupleQueue.js +8 -2
- package/lib/util/WeakTupleMap.js +57 -13
- package/lib/util/binarySearchBounds.js +1 -1
- package/lib/util/cleverMerge.js +26 -13
- package/lib/util/comparators.js +37 -15
- package/lib/util/conventions.js +129 -0
- package/lib/util/createHash.js +3 -5
- package/lib/util/deprecation.js +3 -3
- package/lib/util/deterministicGrouping.js +2 -2
- package/lib/util/findGraphRoots.js +1 -1
- package/lib/util/fs.js +383 -69
- package/lib/util/hash/BatchedHash.js +3 -0
- package/lib/util/hash/xxhash64.js +2 -2
- package/lib/util/identifier.js +5 -5
- package/lib/util/mergeScope.js +79 -0
- package/lib/util/runtime.js +2 -17
- package/lib/util/semver.js +3 -0
- package/lib/util/smartGrouping.js +3 -3
- package/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js +4 -2
- package/lib/wasm-async/AsyncWebAssemblyGenerator.js +1 -1
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +4 -2
- package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +3 -3
- package/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +16 -7
- package/lib/wasm-sync/WebAssemblyGenerator.js +40 -19
- package/lib/wasm-sync/WebAssemblyModulesPlugin.js +1 -1
- package/lib/wasm-sync/WebAssemblyParser.js +7 -4
- package/lib/wasm-sync/WebAssemblyUtils.js +2 -1
- package/lib/web/FetchCompileWasmPlugin.js +1 -1
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +3 -2
- package/lib/webpack.js +19 -6
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +2 -1
- package/package.json +40 -39
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +97 -8
- package/schemas/plugins/BannerPlugin.check.js +1 -1
- package/schemas/plugins/BannerPlugin.json +5 -1
- package/schemas/plugins/css/CssAutoGeneratorOptions.check.js +1 -1
- package/schemas/plugins/css/CssGeneratorOptions.check.js +1 -1
- package/schemas/plugins/css/CssGlobalGeneratorOptions.check.js +1 -1
- package/schemas/plugins/css/CssModuleGeneratorOptions.check.js +1 -1
- package/types.d.ts +1826 -639
package/types.d.ts
CHANGED
@@ -83,7 +83,6 @@ import {
|
|
83
83
|
WithStatement,
|
84
84
|
YieldExpression
|
85
85
|
} from "estree";
|
86
|
-
import { Dirent } from "fs";
|
87
86
|
import {
|
88
87
|
IncomingMessage,
|
89
88
|
ServerOptions as ServerOptionsImport,
|
@@ -106,8 +105,15 @@ import {
|
|
106
105
|
SyncWaterfallHook
|
107
106
|
} from "tapable";
|
108
107
|
import { SecureContextOptions, TlsOptions } from "tls";
|
108
|
+
import { URL } from "url";
|
109
109
|
import { Context } from "vm";
|
110
110
|
|
111
|
+
declare interface Abortable {
|
112
|
+
/**
|
113
|
+
* When provided the corresponding `AbortController` can be used to cancel an asynchronous action.
|
114
|
+
*/
|
115
|
+
signal?: AbortSignal;
|
116
|
+
}
|
111
117
|
declare class AbstractLibraryPlugin<T> {
|
112
118
|
constructor(__0: {
|
113
119
|
/**
|
@@ -237,9 +243,19 @@ declare interface ArgumentConfig {
|
|
237
243
|
type: "string" | "number" | "boolean" | "path" | "enum" | "RegExp" | "reset";
|
238
244
|
values?: any[];
|
239
245
|
}
|
240
|
-
|
241
|
-
|
242
|
-
|
246
|
+
type ArrayBufferView =
|
247
|
+
| Uint8Array
|
248
|
+
| Uint8ClampedArray
|
249
|
+
| Uint16Array
|
250
|
+
| Uint32Array
|
251
|
+
| Int8Array
|
252
|
+
| Int16Array
|
253
|
+
| Int32Array
|
254
|
+
| BigUint64Array
|
255
|
+
| BigInt64Array
|
256
|
+
| Float32Array
|
257
|
+
| Float64Array
|
258
|
+
| DataView;
|
243
259
|
declare interface Asset {
|
244
260
|
/**
|
245
261
|
* the filename of the asset
|
@@ -430,7 +446,7 @@ declare interface BackendApi {
|
|
430
446
|
declare class BannerPlugin {
|
431
447
|
constructor(options: BannerPluginArgument);
|
432
448
|
options: BannerPluginOptions;
|
433
|
-
banner: (data: { hash
|
449
|
+
banner: (data: { hash?: string; chunk: Chunk; filename: string }) => string;
|
434
450
|
|
435
451
|
/**
|
436
452
|
* Apply the plugin
|
@@ -440,14 +456,14 @@ declare class BannerPlugin {
|
|
440
456
|
type BannerPluginArgument =
|
441
457
|
| string
|
442
458
|
| BannerPluginOptions
|
443
|
-
| ((data: { hash
|
459
|
+
| ((data: { hash?: string; chunk: Chunk; filename: string }) => string);
|
444
460
|
declare interface BannerPluginOptions {
|
445
461
|
/**
|
446
462
|
* Specifies the banner.
|
447
463
|
*/
|
448
464
|
banner:
|
449
465
|
| string
|
450
|
-
| ((data: { hash
|
466
|
+
| ((data: { hash?: string; chunk: Chunk; filename: string }) => string);
|
451
467
|
|
452
468
|
/**
|
453
469
|
* If true, the banner will only be added to the entry chunks.
|
@@ -474,6 +490,11 @@ declare interface BannerPluginOptions {
|
|
474
490
|
*/
|
475
491
|
raw?: boolean;
|
476
492
|
|
493
|
+
/**
|
494
|
+
* Specifies the banner.
|
495
|
+
*/
|
496
|
+
stage?: number;
|
497
|
+
|
477
498
|
/**
|
478
499
|
* Include all modules that pass test assertion.
|
479
500
|
*/
|
@@ -484,7 +505,7 @@ declare interface BaseResolveRequest {
|
|
484
505
|
context?: object;
|
485
506
|
descriptionFilePath?: string;
|
486
507
|
descriptionFileRoot?: string;
|
487
|
-
descriptionFileData?:
|
508
|
+
descriptionFileData?: JsonObjectTypes;
|
488
509
|
relativePath?: string;
|
489
510
|
ignoreSymlinks?: boolean;
|
490
511
|
fullySpecified?: boolean;
|
@@ -683,9 +704,9 @@ declare abstract class BasicEvaluatedExpression {
|
|
683
704
|
* Wraps an array of expressions with a prefix and postfix expression.
|
684
705
|
*/
|
685
706
|
setWrapped(
|
686
|
-
prefix
|
687
|
-
postfix
|
688
|
-
innerExpressions
|
707
|
+
prefix?: null | BasicEvaluatedExpression,
|
708
|
+
postfix?: null | BasicEvaluatedExpression,
|
709
|
+
innerExpressions?: BasicEvaluatedExpression[]
|
689
710
|
): BasicEvaluatedExpression;
|
690
711
|
|
691
712
|
/**
|
@@ -817,6 +838,20 @@ declare abstract class BasicEvaluatedExpression {
|
|
817
838
|
| TemplateElement
|
818
839
|
): BasicEvaluatedExpression;
|
819
840
|
}
|
841
|
+
type BufferEncoding =
|
842
|
+
| "ascii"
|
843
|
+
| "utf8"
|
844
|
+
| "utf-8"
|
845
|
+
| "utf16le"
|
846
|
+
| "utf-16le"
|
847
|
+
| "ucs2"
|
848
|
+
| "ucs-2"
|
849
|
+
| "latin1"
|
850
|
+
| "binary"
|
851
|
+
| "base64"
|
852
|
+
| "base64url"
|
853
|
+
| "hex";
|
854
|
+
type BufferEncodingOption = "buffer" | { encoding: "buffer" };
|
820
855
|
type BuildInfo = KnownBuildInfo & Record<string, any>;
|
821
856
|
type BuildMeta = KnownBuildMeta & Record<string, any>;
|
822
857
|
declare abstract class ByTypeGenerator extends Generator {
|
@@ -843,13 +878,13 @@ declare class Cache {
|
|
843
878
|
get<T>(
|
844
879
|
identifier: string,
|
845
880
|
etag: null | Etag,
|
846
|
-
callback:
|
881
|
+
callback: CallbackCacheCache<T>
|
847
882
|
): void;
|
848
883
|
store<T>(
|
849
884
|
identifier: string,
|
850
885
|
etag: null | Etag,
|
851
886
|
data: T,
|
852
|
-
callback:
|
887
|
+
callback: CallbackCacheCache<void>
|
853
888
|
): void;
|
854
889
|
|
855
890
|
/**
|
@@ -857,11 +892,11 @@ declare class Cache {
|
|
857
892
|
*/
|
858
893
|
storeBuildDependencies(
|
859
894
|
dependencies: Iterable<string>,
|
860
|
-
callback:
|
895
|
+
callback: CallbackCacheCache<void>
|
861
896
|
): void;
|
862
897
|
beginIdle(): void;
|
863
|
-
endIdle(callback:
|
864
|
-
shutdown(callback:
|
898
|
+
endIdle(callback: CallbackCacheCache<void>): void;
|
899
|
+
shutdown(callback: CallbackCacheCache<void>): void;
|
865
900
|
static STAGE_MEMORY: number;
|
866
901
|
static STAGE_DEFAULT: number;
|
867
902
|
static STAGE_DISK: number;
|
@@ -875,14 +910,14 @@ declare abstract class CacheFacade {
|
|
875
910
|
get<T>(
|
876
911
|
identifier: string,
|
877
912
|
etag: null | Etag,
|
878
|
-
callback:
|
913
|
+
callback: CallbackCacheCacheFacade<T>
|
879
914
|
): void;
|
880
915
|
getPromise<T>(identifier: string, etag: null | Etag): Promise<T>;
|
881
916
|
store<T>(
|
882
917
|
identifier: string,
|
883
918
|
etag: null | Etag,
|
884
919
|
data: T,
|
885
|
-
callback:
|
920
|
+
callback: CallbackCacheCacheFacade<void>
|
886
921
|
): void;
|
887
922
|
storePromise<T>(
|
888
923
|
identifier: string,
|
@@ -953,18 +988,27 @@ declare interface CallExpressionInfo {
|
|
953
988
|
declare interface CallbackAsyncQueue<T> {
|
954
989
|
(err?: null | WebpackError, result?: T): any;
|
955
990
|
}
|
956
|
-
declare interface
|
957
|
-
(err
|
991
|
+
declare interface CallbackCacheCache<T> {
|
992
|
+
(err: null | WebpackError, result?: T): void;
|
993
|
+
}
|
994
|
+
declare interface CallbackCacheCacheFacade<T> {
|
995
|
+
(err?: null | Error, result?: null | T): void;
|
958
996
|
}
|
959
997
|
declare interface CallbackFunction_1<T> {
|
960
|
-
(err
|
998
|
+
(err: null | Error, result?: T): any;
|
961
999
|
}
|
962
1000
|
declare interface CallbackFunction_2<T> {
|
963
|
-
(err?: null | Error,
|
1001
|
+
(err?: null | Error, result?: T): any;
|
964
1002
|
}
|
965
1003
|
declare interface CallbackNormalErrorCache<T> {
|
966
1004
|
(err?: null | Error, result?: T): void;
|
967
1005
|
}
|
1006
|
+
declare interface CallbackNormalModuleFactory<T> {
|
1007
|
+
(err?: null | Error, stats?: T): void;
|
1008
|
+
}
|
1009
|
+
declare interface CallbackWebpack<T> {
|
1010
|
+
(err: null | Error, stats?: T): void;
|
1011
|
+
}
|
968
1012
|
type Cell<T> = undefined | T;
|
969
1013
|
declare class Chunk {
|
970
1014
|
constructor(name?: string, backCompat?: boolean);
|
@@ -1157,14 +1201,14 @@ declare class ChunkGraph {
|
|
1157
1201
|
getChunkEntryModulesWithChunkGroupIterable(
|
1158
1202
|
chunk: Chunk
|
1159
1203
|
): Iterable<[Module, undefined | Entrypoint]>;
|
1160
|
-
getBlockChunkGroup(depBlock: AsyncDependenciesBlock): ChunkGroup;
|
1204
|
+
getBlockChunkGroup(depBlock: AsyncDependenciesBlock): undefined | ChunkGroup;
|
1161
1205
|
connectBlockAndChunkGroup(
|
1162
1206
|
depBlock: AsyncDependenciesBlock,
|
1163
1207
|
chunkGroup: ChunkGroup
|
1164
1208
|
): void;
|
1165
1209
|
disconnectChunkGroup(chunkGroup: ChunkGroup): void;
|
1166
|
-
getModuleId(module: Module):
|
1167
|
-
setModuleId(module: Module, id:
|
1210
|
+
getModuleId(module: Module): ModuleId;
|
1211
|
+
setModuleId(module: Module, id: ModuleId): void;
|
1168
1212
|
getRuntimeId(runtime: string): string | number;
|
1169
1213
|
setRuntimeId(runtime: string, id: string | number): void;
|
1170
1214
|
hasModuleHashes(module: Module, runtime: RuntimeSpec): boolean;
|
@@ -1257,7 +1301,7 @@ declare abstract class ChunkGroup {
|
|
1257
1301
|
* add a chunk into ChunkGroup. Is pushed on or prepended
|
1258
1302
|
*/
|
1259
1303
|
pushChunk(chunk: Chunk): boolean;
|
1260
|
-
replaceChunk(oldChunk: Chunk, newChunk: Chunk): boolean;
|
1304
|
+
replaceChunk(oldChunk: Chunk, newChunk: Chunk): undefined | boolean;
|
1261
1305
|
removeChunk(chunk: Chunk): boolean;
|
1262
1306
|
isInitial(): boolean;
|
1263
1307
|
addChild(group: ChunkGroup): boolean;
|
@@ -1516,15 +1560,10 @@ declare interface CodeGenerationContext {
|
|
1516
1560
|
*/
|
1517
1561
|
chunkGraph: ChunkGraph;
|
1518
1562
|
|
1519
|
-
/**
|
1520
|
-
* the runtime code should be generated for
|
1521
|
-
*/
|
1522
|
-
runtime: RuntimeSpec;
|
1523
|
-
|
1524
1563
|
/**
|
1525
1564
|
* the runtimes code should be generated for
|
1526
1565
|
*/
|
1527
|
-
|
1566
|
+
runtime: RuntimeSpec;
|
1528
1567
|
|
1529
1568
|
/**
|
1530
1569
|
* when in concatenated module, information about other concatenated modules
|
@@ -1534,7 +1573,7 @@ declare interface CodeGenerationContext {
|
|
1534
1573
|
/**
|
1535
1574
|
* code generation results of other modules (need to have a codeGenerationDependency to use that)
|
1536
1575
|
*/
|
1537
|
-
codeGenerationResults
|
1576
|
+
codeGenerationResults?: CodeGenerationResults;
|
1538
1577
|
|
1539
1578
|
/**
|
1540
1579
|
* the compilation
|
@@ -1667,13 +1706,16 @@ declare class Compilation {
|
|
1667
1706
|
optimize: SyncHook<[]>;
|
1668
1707
|
optimizeModules: SyncBailHook<[Iterable<Module>], any>;
|
1669
1708
|
afterOptimizeModules: SyncHook<[Iterable<Module>]>;
|
1670
|
-
optimizeChunks: SyncBailHook<
|
1709
|
+
optimizeChunks: SyncBailHook<
|
1710
|
+
[Iterable<Chunk>, ChunkGroup[]],
|
1711
|
+
boolean | void
|
1712
|
+
>;
|
1671
1713
|
afterOptimizeChunks: SyncHook<[Iterable<Chunk>, ChunkGroup[]]>;
|
1672
1714
|
optimizeTree: AsyncSeriesHook<[Iterable<Chunk>, Iterable<Module>]>;
|
1673
1715
|
afterOptimizeTree: SyncHook<[Iterable<Chunk>, Iterable<Module>]>;
|
1674
1716
|
optimizeChunkModules: AsyncSeriesBailHook<
|
1675
1717
|
[Iterable<Chunk>, Iterable<Module>],
|
1676
|
-
|
1718
|
+
void
|
1677
1719
|
>;
|
1678
1720
|
afterOptimizeChunkModules: SyncHook<[Iterable<Chunk>, Iterable<Module>]>;
|
1679
1721
|
shouldRecord: SyncBailHook<[], undefined | boolean>;
|
@@ -1681,7 +1723,7 @@ declare class Compilation {
|
|
1681
1723
|
[Chunk, Set<string>, RuntimeRequirementsContext]
|
1682
1724
|
>;
|
1683
1725
|
runtimeRequirementInChunk: HookMap<
|
1684
|
-
SyncBailHook<[Chunk, Set<string>, RuntimeRequirementsContext],
|
1726
|
+
SyncBailHook<[Chunk, Set<string>, RuntimeRequirementsContext], void>
|
1685
1727
|
>;
|
1686
1728
|
additionalModuleRuntimeRequirements: SyncHook<
|
1687
1729
|
[Module, Set<string>, RuntimeRequirementsContext]
|
@@ -1755,7 +1797,7 @@ declare class Compilation {
|
|
1755
1797
|
>;
|
1756
1798
|
afterProcessAssets: SyncHook<[CompilationAssets]>;
|
1757
1799
|
processAdditionalAssets: AsyncSeriesHook<[CompilationAssets]>;
|
1758
|
-
needAdditionalSeal: SyncBailHook<[], boolean>;
|
1800
|
+
needAdditionalSeal: SyncBailHook<[], undefined | boolean>;
|
1759
1801
|
afterSeal: AsyncSeriesHook<[]>;
|
1760
1802
|
renderManifest: SyncWaterfallHook<
|
1761
1803
|
[RenderManifestEntry[], RenderManifestOptions]
|
@@ -1764,7 +1806,7 @@ declare class Compilation {
|
|
1764
1806
|
chunkHash: SyncHook<[Chunk, Hash, ChunkHashContext]>;
|
1765
1807
|
moduleAsset: SyncHook<[Module, string]>;
|
1766
1808
|
chunkAsset: SyncHook<[Chunk, string]>;
|
1767
|
-
assetPath: SyncWaterfallHook<[string, object, AssetInfo]>;
|
1809
|
+
assetPath: SyncWaterfallHook<[string, object, undefined | AssetInfo]>;
|
1768
1810
|
needAdditionalPass: SyncBailHook<[], boolean>;
|
1769
1811
|
childCompiler: SyncHook<[Compiler, string, number]>;
|
1770
1812
|
log: SyncBailHook<[string, LogEntry], true>;
|
@@ -1781,8 +1823,8 @@ declare class Compilation {
|
|
1781
1823
|
get normalModuleLoader(): SyncHook<[object, NormalModule]>;
|
1782
1824
|
}>;
|
1783
1825
|
name?: string;
|
1784
|
-
startTime
|
1785
|
-
endTime
|
1826
|
+
startTime?: number;
|
1827
|
+
endTime?: number;
|
1786
1828
|
compiler: Compiler;
|
1787
1829
|
resolverFactory: ResolverFactory;
|
1788
1830
|
inputFileSystem: InputFileSystem;
|
@@ -1799,7 +1841,7 @@ declare class Compilation {
|
|
1799
1841
|
mainTemplate: MainTemplate;
|
1800
1842
|
chunkTemplate: ChunkTemplate;
|
1801
1843
|
runtimeTemplate: RuntimeTemplate;
|
1802
|
-
moduleTemplates:
|
1844
|
+
moduleTemplates: ModuleTemplates;
|
1803
1845
|
moduleMemCaches?: Map<Module, WeakTupleMap<any, any>>;
|
1804
1846
|
moduleMemCaches2?: Map<Module, WeakTupleMap<any, any>>;
|
1805
1847
|
moduleGraph: ModuleGraph;
|
@@ -1853,14 +1895,14 @@ declare class Compilation {
|
|
1853
1895
|
contextDependencies: LazySet<string>;
|
1854
1896
|
missingDependencies: LazySet<string>;
|
1855
1897
|
buildDependencies: LazySet<string>;
|
1856
|
-
compilationDependencies: { add: (item
|
1898
|
+
compilationDependencies: { add: (item: string) => LazySet<string> };
|
1857
1899
|
getStats(): Stats;
|
1858
1900
|
createStatsOptions(
|
1859
1901
|
optionsOrPreset?: string | boolean | StatsOptions,
|
1860
1902
|
context?: CreateStatsOptionsContext
|
1861
1903
|
): NormalizedStatsOptions;
|
1862
|
-
createStatsFactory(options
|
1863
|
-
createStatsPrinter(options
|
1904
|
+
createStatsFactory(options: NormalizedStatsOptions): StatsFactory;
|
1905
|
+
createStatsPrinter(options: NormalizedStatsOptions): StatsPrinter;
|
1864
1906
|
getCache(name: string): CacheFacade;
|
1865
1907
|
getLogger(name: string | (() => string)): WebpackLogger;
|
1866
1908
|
addModule(
|
@@ -1932,14 +1974,14 @@ declare class Compilation {
|
|
1932
1974
|
module: Module,
|
1933
1975
|
callback: (err?: null | WebpackError, result?: Module) => void
|
1934
1976
|
): void;
|
1935
|
-
finish(callback?:
|
1977
|
+
finish(callback: (err?: null | WebpackError) => void): void;
|
1936
1978
|
unseal(): void;
|
1937
1979
|
seal(callback: (err?: null | WebpackError) => void): void;
|
1938
1980
|
reportDependencyErrorsAndWarnings(
|
1939
1981
|
module: Module,
|
1940
1982
|
blocks: DependenciesBlock[]
|
1941
1983
|
): boolean;
|
1942
|
-
codeGeneration(callback?:
|
1984
|
+
codeGeneration(callback: (err?: null | WebpackError) => void): void;
|
1943
1985
|
processRuntimeRequirements(__0?: {
|
1944
1986
|
/**
|
1945
1987
|
* the chunk graph
|
@@ -2019,7 +2061,7 @@ declare class Compilation {
|
|
2019
2061
|
newSourceOrFunction: Source | ((arg0: Source) => Source),
|
2020
2062
|
assetInfoUpdateOrFunction?: AssetInfo | ((arg0?: AssetInfo) => AssetInfo)
|
2021
2063
|
): void;
|
2022
|
-
renameAsset(file
|
2064
|
+
renameAsset(file: string, newFile: string): void;
|
2023
2065
|
deleteAsset(file: string): void;
|
2024
2066
|
getAssets(): Readonly<Asset>[];
|
2025
2067
|
getAsset(name: string): undefined | Readonly<Asset>;
|
@@ -2238,13 +2280,13 @@ declare class Compiler {
|
|
2238
2280
|
root: Compiler;
|
2239
2281
|
outputPath: string;
|
2240
2282
|
watching?: Watching;
|
2241
|
-
outputFileSystem: OutputFileSystem;
|
2242
|
-
intermediateFileSystem: IntermediateFileSystem;
|
2243
|
-
inputFileSystem: InputFileSystem;
|
2244
|
-
watchFileSystem: WatchFileSystem;
|
2283
|
+
outputFileSystem: null | OutputFileSystem;
|
2284
|
+
intermediateFileSystem: null | IntermediateFileSystem;
|
2285
|
+
inputFileSystem: null | InputFileSystem;
|
2286
|
+
watchFileSystem: null | WatchFileSystem;
|
2245
2287
|
recordsInputPath: null | string;
|
2246
2288
|
recordsOutputPath: null | string;
|
2247
|
-
records:
|
2289
|
+
records: Record<string, any>;
|
2248
2290
|
managedPaths: Set<string | RegExp>;
|
2249
2291
|
unmanagedPaths: Set<string | RegExp>;
|
2250
2292
|
immutablePaths: Set<string | RegExp>;
|
@@ -2257,7 +2299,8 @@ declare class Compiler {
|
|
2257
2299
|
>;
|
2258
2300
|
fsStartTime?: number;
|
2259
2301
|
resolverFactory: ResolverFactory;
|
2260
|
-
infrastructureLogger: any;
|
2302
|
+
infrastructureLogger?: (arg0: string, arg1: LogTypeEnum, arg2: any[]) => void;
|
2303
|
+
platform: Readonly<PlatformTargetProperties>;
|
2261
2304
|
options: WebpackOptionsNormalized;
|
2262
2305
|
context: string;
|
2263
2306
|
requestShortener: RequestShortener;
|
@@ -2265,8 +2308,8 @@ declare class Compiler {
|
|
2265
2308
|
moduleMemCaches?: Map<
|
2266
2309
|
Module,
|
2267
2310
|
{
|
2268
|
-
buildInfo:
|
2269
|
-
references
|
2311
|
+
buildInfo: BuildInfo;
|
2312
|
+
references?: WeakMap<Dependency, Module>;
|
2270
2313
|
memCache: WeakTupleMap<any, any>;
|
2271
2314
|
}
|
2272
2315
|
>;
|
@@ -2276,14 +2319,11 @@ declare class Compiler {
|
|
2276
2319
|
watchMode: boolean;
|
2277
2320
|
getCache(name: string): CacheFacade;
|
2278
2321
|
getInfrastructureLogger(name: string | (() => string)): WebpackLogger;
|
2279
|
-
watch(
|
2280
|
-
|
2281
|
-
handler: CallbackFunction_1<Stats>
|
2282
|
-
): Watching;
|
2283
|
-
run(callback: CallbackFunction_1<Stats>): void;
|
2322
|
+
watch(watchOptions: WatchOptions, handler: RunCallback<Stats>): Watching;
|
2323
|
+
run(callback: RunCallback<Stats>): void;
|
2284
2324
|
runAsChild(
|
2285
2325
|
callback: (
|
2286
|
-
err
|
2326
|
+
err: null | Error,
|
2287
2327
|
entries?: Chunk[],
|
2288
2328
|
compilation?: Compilation
|
2289
2329
|
) => any
|
@@ -2291,10 +2331,10 @@ declare class Compiler {
|
|
2291
2331
|
purgeInputFileSystem(): void;
|
2292
2332
|
emitAssets(
|
2293
2333
|
compilation: Compilation,
|
2294
|
-
callback:
|
2334
|
+
callback: CallbackFunction_2<void>
|
2295
2335
|
): void;
|
2296
|
-
emitRecords(callback:
|
2297
|
-
readRecords(callback:
|
2336
|
+
emitRecords(callback: CallbackFunction_2<void>): void;
|
2337
|
+
readRecords(callback: CallbackFunction_2<void>): void;
|
2298
2338
|
createChildCompiler(
|
2299
2339
|
compilation: Compilation,
|
2300
2340
|
compilerName: string,
|
@@ -2303,7 +2343,7 @@ declare class Compiler {
|
|
2303
2343
|
plugins?: WebpackPluginInstance[]
|
2304
2344
|
): Compiler;
|
2305
2345
|
isChild(): boolean;
|
2306
|
-
createCompilation(params
|
2346
|
+
createCompilation(params: CompilationParams): Compilation;
|
2307
2347
|
newCompilation(params: CompilationParams): Compilation;
|
2308
2348
|
createNormalModuleFactory(): NormalModuleFactory;
|
2309
2349
|
createContextModuleFactory(): ContextModuleFactory;
|
@@ -2311,8 +2351,8 @@ declare class Compiler {
|
|
2311
2351
|
normalModuleFactory: NormalModuleFactory;
|
2312
2352
|
contextModuleFactory: ContextModuleFactory;
|
2313
2353
|
};
|
2314
|
-
compile(callback:
|
2315
|
-
close(callback:
|
2354
|
+
compile(callback: RunCallback<Compilation>): void;
|
2355
|
+
close(callback: RunCallback<void>): void;
|
2316
2356
|
}
|
2317
2357
|
declare class ConcatSource extends Source {
|
2318
2358
|
constructor(...args: (string | Source)[]);
|
@@ -2576,12 +2616,12 @@ declare interface Configuration {
|
|
2576
2616
|
/**
|
2577
2617
|
* Options for the resolver.
|
2578
2618
|
*/
|
2579
|
-
resolve?:
|
2619
|
+
resolve?: ResolveOptions;
|
2580
2620
|
|
2581
2621
|
/**
|
2582
2622
|
* Options for the resolver when resolving loaders.
|
2583
2623
|
*/
|
2584
|
-
resolveLoader?:
|
2624
|
+
resolveLoader?: ResolveOptions;
|
2585
2625
|
|
2586
2626
|
/**
|
2587
2627
|
* Options affecting how file system snapshots are created and validated.
|
@@ -2858,6 +2898,7 @@ declare interface ContextModuleOptions {
|
|
2858
2898
|
*/
|
2859
2899
|
referencedExports?: null | string[][];
|
2860
2900
|
layer?: string;
|
2901
|
+
attributes?: ImportAttributes;
|
2861
2902
|
resource: string | false | string[];
|
2862
2903
|
resourceQuery?: string;
|
2863
2904
|
resourceFragment?: string;
|
@@ -2891,15 +2932,40 @@ declare interface ContextTimestampAndHash {
|
|
2891
2932
|
}
|
2892
2933
|
type CreateStatsOptionsContext = KnownCreateStatsOptionsContext &
|
2893
2934
|
Record<string, any>;
|
2935
|
+
type CreateWriteStreamFSImplementation = FSImplementation & {
|
2936
|
+
write: (...args: any[]) => any;
|
2937
|
+
close?: (...args: any[]) => any;
|
2938
|
+
};
|
2894
2939
|
|
2895
2940
|
/**
|
2896
2941
|
* Generator options for css/auto modules.
|
2897
2942
|
*/
|
2898
2943
|
declare interface CssAutoGeneratorOptions {
|
2944
|
+
/**
|
2945
|
+
* Configure the generated JS modules that use the ES modules syntax.
|
2946
|
+
*/
|
2947
|
+
esModule?: boolean;
|
2948
|
+
|
2949
|
+
/**
|
2950
|
+
* Specifies the convention of exported names.
|
2951
|
+
*/
|
2952
|
+
exportsConvention?:
|
2953
|
+
| "as-is"
|
2954
|
+
| "camel-case"
|
2955
|
+
| "camel-case-only"
|
2956
|
+
| "dashes"
|
2957
|
+
| "dashes-only"
|
2958
|
+
| ((name: string) => string);
|
2959
|
+
|
2899
2960
|
/**
|
2900
2961
|
* Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
|
2901
2962
|
*/
|
2902
2963
|
exportsOnly?: boolean;
|
2964
|
+
|
2965
|
+
/**
|
2966
|
+
* Configure the generated local ident name.
|
2967
|
+
*/
|
2968
|
+
localIdentName?: string;
|
2903
2969
|
}
|
2904
2970
|
|
2905
2971
|
/**
|
@@ -2916,6 +2982,11 @@ declare interface CssAutoParserOptions {
|
|
2916
2982
|
* Generator options for css modules.
|
2917
2983
|
*/
|
2918
2984
|
declare interface CssGeneratorOptions {
|
2985
|
+
/**
|
2986
|
+
* Configure the generated JS modules that use the ES modules syntax.
|
2987
|
+
*/
|
2988
|
+
esModule?: boolean;
|
2989
|
+
|
2919
2990
|
/**
|
2920
2991
|
* Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
|
2921
2992
|
*/
|
@@ -2926,10 +2997,31 @@ declare interface CssGeneratorOptions {
|
|
2926
2997
|
* Generator options for css/global modules.
|
2927
2998
|
*/
|
2928
2999
|
declare interface CssGlobalGeneratorOptions {
|
3000
|
+
/**
|
3001
|
+
* Configure the generated JS modules that use the ES modules syntax.
|
3002
|
+
*/
|
3003
|
+
esModule?: boolean;
|
3004
|
+
|
3005
|
+
/**
|
3006
|
+
* Specifies the convention of exported names.
|
3007
|
+
*/
|
3008
|
+
exportsConvention?:
|
3009
|
+
| "as-is"
|
3010
|
+
| "camel-case"
|
3011
|
+
| "camel-case-only"
|
3012
|
+
| "dashes"
|
3013
|
+
| "dashes-only"
|
3014
|
+
| ((name: string) => string);
|
3015
|
+
|
2929
3016
|
/**
|
2930
3017
|
* Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
|
2931
3018
|
*/
|
2932
3019
|
exportsOnly?: boolean;
|
3020
|
+
|
3021
|
+
/**
|
3022
|
+
* Configure the generated local ident name.
|
3023
|
+
*/
|
3024
|
+
localIdentName?: string;
|
2933
3025
|
}
|
2934
3026
|
|
2935
3027
|
/**
|
@@ -2941,15 +3033,41 @@ declare interface CssGlobalParserOptions {
|
|
2941
3033
|
*/
|
2942
3034
|
namedExports?: boolean;
|
2943
3035
|
}
|
3036
|
+
declare interface CssImportDependencyMeta {
|
3037
|
+
layer?: string;
|
3038
|
+
supports?: string;
|
3039
|
+
media?: string;
|
3040
|
+
}
|
2944
3041
|
|
2945
3042
|
/**
|
2946
3043
|
* Generator options for css/module modules.
|
2947
3044
|
*/
|
2948
3045
|
declare interface CssModuleGeneratorOptions {
|
3046
|
+
/**
|
3047
|
+
* Configure the generated JS modules that use the ES modules syntax.
|
3048
|
+
*/
|
3049
|
+
esModule?: boolean;
|
3050
|
+
|
3051
|
+
/**
|
3052
|
+
* Specifies the convention of exported names.
|
3053
|
+
*/
|
3054
|
+
exportsConvention?:
|
3055
|
+
| "as-is"
|
3056
|
+
| "camel-case"
|
3057
|
+
| "camel-case-only"
|
3058
|
+
| "dashes"
|
3059
|
+
| "dashes-only"
|
3060
|
+
| ((name: string) => string);
|
3061
|
+
|
2949
3062
|
/**
|
2950
3063
|
* Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
|
2951
3064
|
*/
|
2952
3065
|
exportsOnly?: boolean;
|
3066
|
+
|
3067
|
+
/**
|
3068
|
+
* Configure the generated local ident name.
|
3069
|
+
*/
|
3070
|
+
localIdentName?: string;
|
2953
3071
|
}
|
2954
3072
|
|
2955
3073
|
/**
|
@@ -3145,15 +3263,10 @@ declare interface DependencyTemplateContext {
|
|
3145
3263
|
*/
|
3146
3264
|
module: Module;
|
3147
3265
|
|
3148
|
-
/**
|
3149
|
-
* current runtime, for which code is generated
|
3150
|
-
*/
|
3151
|
-
runtime: RuntimeSpec;
|
3152
|
-
|
3153
3266
|
/**
|
3154
3267
|
* current runtimes, for which code is generated
|
3155
3268
|
*/
|
3156
|
-
|
3269
|
+
runtime: RuntimeSpec;
|
3157
3270
|
|
3158
3271
|
/**
|
3159
3272
|
* mutable array of init fragments for the current module
|
@@ -3185,6 +3298,17 @@ declare abstract class DependencyTemplates {
|
|
3185
3298
|
getHash(): string;
|
3186
3299
|
clone(): DependencyTemplates;
|
3187
3300
|
}
|
3301
|
+
|
3302
|
+
/**
|
3303
|
+
* Helper function for joining two ranges into a single range. This is useful
|
3304
|
+
* when working with AST nodes, as it allows you to combine the ranges of child nodes
|
3305
|
+
* to create the range of the _parent node_.
|
3306
|
+
*/
|
3307
|
+
declare interface DestructuringAssignmentProperty {
|
3308
|
+
id: string;
|
3309
|
+
range?: [number, number];
|
3310
|
+
shorthand: string | boolean;
|
3311
|
+
}
|
3188
3312
|
declare class DeterministicChunkIdsPlugin {
|
3189
3313
|
constructor(options?: DeterministicChunkIdsPluginOptions);
|
3190
3314
|
options: DeterministicChunkIdsPluginOptions;
|
@@ -3245,6 +3369,18 @@ declare interface DeterministicModuleIdsPluginOptions {
|
|
3245
3369
|
*/
|
3246
3370
|
failOnConflict?: boolean;
|
3247
3371
|
}
|
3372
|
+
type DevtoolModuleFilenameTemplate = string | Function;
|
3373
|
+
declare interface Dirent {
|
3374
|
+
isFile: () => boolean;
|
3375
|
+
isDirectory: () => boolean;
|
3376
|
+
isBlockDevice: () => boolean;
|
3377
|
+
isCharacterDevice: () => boolean;
|
3378
|
+
isSymbolicLink: () => boolean;
|
3379
|
+
isFIFO: () => boolean;
|
3380
|
+
isSocket: () => boolean;
|
3381
|
+
name: string;
|
3382
|
+
path: string;
|
3383
|
+
}
|
3248
3384
|
declare class DllPlugin {
|
3249
3385
|
constructor(options: DllPluginOptions);
|
3250
3386
|
options: {
|
@@ -3524,6 +3660,22 @@ declare class EnableWasmLoadingPlugin {
|
|
3524
3660
|
static setEnabled(compiler: Compiler, type: string): void;
|
3525
3661
|
static checkEnabled(compiler: Compiler, type: string): void;
|
3526
3662
|
}
|
3663
|
+
type EncodingOption =
|
3664
|
+
| undefined
|
3665
|
+
| null
|
3666
|
+
| "ascii"
|
3667
|
+
| "utf8"
|
3668
|
+
| "utf-8"
|
3669
|
+
| "utf16le"
|
3670
|
+
| "utf-16le"
|
3671
|
+
| "ucs2"
|
3672
|
+
| "ucs-2"
|
3673
|
+
| "latin1"
|
3674
|
+
| "binary"
|
3675
|
+
| "base64"
|
3676
|
+
| "base64url"
|
3677
|
+
| "hex"
|
3678
|
+
| ObjectEncodingOptions;
|
3527
3679
|
type Entry =
|
3528
3680
|
| string
|
3529
3681
|
| (() => string | EntryObject | string[] | Promise<EntryStatic>)
|
@@ -3774,6 +3926,11 @@ declare interface Environment {
|
|
3774
3926
|
*/
|
3775
3927
|
destructuring?: boolean;
|
3776
3928
|
|
3929
|
+
/**
|
3930
|
+
* The environment supports 'document'.
|
3931
|
+
*/
|
3932
|
+
document?: boolean;
|
3933
|
+
|
3777
3934
|
/**
|
3778
3935
|
* The environment supports an async import() function to import EcmaScript modules.
|
3779
3936
|
*/
|
@@ -3799,6 +3956,11 @@ declare interface Environment {
|
|
3799
3956
|
*/
|
3800
3957
|
module?: boolean;
|
3801
3958
|
|
3959
|
+
/**
|
3960
|
+
* The environment supports `node:` prefix for Node.js core modules.
|
3961
|
+
*/
|
3962
|
+
nodePrefixForCoreModules?: boolean;
|
3963
|
+
|
3802
3964
|
/**
|
3803
3965
|
* The environment supports optional chaining ('obj?.a' or 'obj?.()').
|
3804
3966
|
*/
|
@@ -3824,16 +3986,32 @@ declare interface Etag {
|
|
3824
3986
|
toString: () => string;
|
3825
3987
|
}
|
3826
3988
|
declare class EvalDevToolModulePlugin {
|
3827
|
-
constructor(options?:
|
3828
|
-
namespace:
|
3829
|
-
sourceUrlComment:
|
3830
|
-
moduleFilenameTemplate:
|
3989
|
+
constructor(options?: EvalDevToolModulePluginOptions);
|
3990
|
+
namespace: string;
|
3991
|
+
sourceUrlComment: string;
|
3992
|
+
moduleFilenameTemplate: DevtoolModuleFilenameTemplate;
|
3831
3993
|
|
3832
3994
|
/**
|
3833
3995
|
* Apply the plugin
|
3834
3996
|
*/
|
3835
3997
|
apply(compiler: Compiler): void;
|
3836
3998
|
}
|
3999
|
+
declare interface EvalDevToolModulePluginOptions {
|
4000
|
+
/**
|
4001
|
+
* namespace
|
4002
|
+
*/
|
4003
|
+
namespace?: string;
|
4004
|
+
|
4005
|
+
/**
|
4006
|
+
* source url comment
|
4007
|
+
*/
|
4008
|
+
sourceUrlComment?: string;
|
4009
|
+
|
4010
|
+
/**
|
4011
|
+
* module filename template
|
4012
|
+
*/
|
4013
|
+
moduleFilenameTemplate?: string | Function;
|
4014
|
+
}
|
3837
4015
|
declare class EvalSourceMapDevToolPlugin {
|
3838
4016
|
constructor(inputOptions: string | SourceMapDevToolPluginOptions);
|
3839
4017
|
sourceMapComment: string;
|
@@ -4114,7 +4292,7 @@ declare abstract class ExportsInfo {
|
|
4114
4292
|
get exports(): Iterable<ExportInfo>;
|
4115
4293
|
get orderedExports(): Iterable<ExportInfo>;
|
4116
4294
|
get otherExportsInfo(): ExportInfo;
|
4117
|
-
setRedirectNamedTo(exportsInfo?:
|
4295
|
+
setRedirectNamedTo(exportsInfo?: ExportsInfo): boolean;
|
4118
4296
|
setHasProvideInfo(): void;
|
4119
4297
|
setHasUseInfo(): void;
|
4120
4298
|
getOwnExportInfo(name: string): ExportInfo;
|
@@ -4143,7 +4321,7 @@ declare abstract class ExportsInfo {
|
|
4143
4321
|
isEquallyUsed(runtimeA: RuntimeSpec, runtimeB: RuntimeSpec): boolean;
|
4144
4322
|
getUsed(name: string | string[], runtime: RuntimeSpec): UsageStateType;
|
4145
4323
|
getUsedName(
|
4146
|
-
name: string | string[],
|
4324
|
+
name: undefined | string | string[],
|
4147
4325
|
runtime: RuntimeSpec
|
4148
4326
|
): string | false | string[];
|
4149
4327
|
updateHash(hash: Hash, runtime: RuntimeSpec): void;
|
@@ -4298,7 +4476,7 @@ declare interface ExternalItemFunctionData {
|
|
4298
4476
|
* Get a resolve function with the current resolver options.
|
4299
4477
|
*/
|
4300
4478
|
getResolve?: (
|
4301
|
-
options?:
|
4479
|
+
options?: ResolveOptions
|
4302
4480
|
) =>
|
4303
4481
|
| ((
|
4304
4482
|
context: string,
|
@@ -4334,16 +4512,22 @@ declare interface ExternalItemObjectUnknown {
|
|
4334
4512
|
type ExternalItemValue = string | boolean | string[] | { [index: string]: any };
|
4335
4513
|
declare class ExternalModule extends Module {
|
4336
4514
|
constructor(
|
4337
|
-
request: string | string[] |
|
4338
|
-
type:
|
4339
|
-
userRequest: string
|
4515
|
+
request: string | string[] | RequestRecord,
|
4516
|
+
type: string,
|
4517
|
+
userRequest: string,
|
4518
|
+
dependencyMeta?: ImportDependencyMeta | CssImportDependencyMeta
|
4340
4519
|
);
|
4341
4520
|
request: string | string[] | Record<string, string | string[]>;
|
4342
4521
|
externalType: string;
|
4343
4522
|
userRequest: string;
|
4523
|
+
dependencyMeta?: ImportDependencyMeta | CssImportDependencyMeta;
|
4524
|
+
|
4525
|
+
/**
|
4526
|
+
* restore unsafe cache data
|
4527
|
+
*/
|
4344
4528
|
restoreFromUnsafeCache(
|
4345
|
-
unsafeCacheData
|
4346
|
-
normalModuleFactory
|
4529
|
+
unsafeCacheData: object,
|
4530
|
+
normalModuleFactory: NormalModuleFactory
|
4347
4531
|
): void;
|
4348
4532
|
}
|
4349
4533
|
declare interface ExternalModuleInfo {
|
@@ -4440,6 +4624,10 @@ type ExternalsType =
|
|
4440
4624
|
| "promise"
|
4441
4625
|
| "script"
|
4442
4626
|
| "node-commonjs";
|
4627
|
+
declare interface FSImplementation {
|
4628
|
+
open?: (...args: any[]) => any;
|
4629
|
+
close?: (...args: any[]) => any;
|
4630
|
+
}
|
4443
4631
|
declare interface FactorizeModuleOptions {
|
4444
4632
|
currentProfile: ModuleProfile;
|
4445
4633
|
factory: ModuleFactory;
|
@@ -4594,71 +4782,19 @@ declare interface FileCacheOptions {
|
|
4594
4782
|
version?: string;
|
4595
4783
|
}
|
4596
4784
|
declare interface FileSystem {
|
4597
|
-
readFile:
|
4598
|
-
|
4599
|
-
|
4600
|
-
|
4601
|
-
|
4602
|
-
|
4603
|
-
|
4604
|
-
};
|
4605
|
-
readdir: (
|
4606
|
-
arg0: string,
|
4607
|
-
arg1?:
|
4608
|
-
| null
|
4609
|
-
| "ascii"
|
4610
|
-
| "utf8"
|
4611
|
-
| "utf16le"
|
4612
|
-
| "ucs2"
|
4613
|
-
| "latin1"
|
4614
|
-
| "binary"
|
4615
|
-
| ((
|
4616
|
-
arg0?: null | NodeJS.ErrnoException,
|
4617
|
-
arg1?: (string | Buffer)[] | Dirent[]
|
4618
|
-
) => void)
|
4619
|
-
| ReaddirOptions
|
4620
|
-
| "utf-8"
|
4621
|
-
| "ucs-2"
|
4622
|
-
| "base64"
|
4623
|
-
| "base64url"
|
4624
|
-
| "hex"
|
4625
|
-
| "buffer",
|
4626
|
-
arg2?: (
|
4627
|
-
arg0?: null | NodeJS.ErrnoException,
|
4628
|
-
arg1?: (string | Buffer)[] | Dirent[]
|
4785
|
+
readFile: ReadFileTypes;
|
4786
|
+
readdir: ReaddirTypes;
|
4787
|
+
readJson?: (
|
4788
|
+
arg0: PathOrFileDescriptorTypes,
|
4789
|
+
arg1: (
|
4790
|
+
arg0: null | Error | NodeJS.ErrnoException,
|
4791
|
+
arg1?: JsonObjectTypes
|
4629
4792
|
) => void
|
4630
4793
|
) => void;
|
4631
|
-
|
4632
|
-
|
4633
|
-
|
4634
|
-
|
4635
|
-
readlink: {
|
4636
|
-
(arg0: string, arg1: FileSystemCallback<string | Buffer>): void;
|
4637
|
-
(
|
4638
|
-
arg0: string,
|
4639
|
-
arg1: object,
|
4640
|
-
arg2: FileSystemCallback<string | Buffer>
|
4641
|
-
): void;
|
4642
|
-
};
|
4643
|
-
lstat?: {
|
4644
|
-
(arg0: string, arg1: FileSystemCallback<FileSystemStats>): void;
|
4645
|
-
(
|
4646
|
-
arg0: string,
|
4647
|
-
arg1: object,
|
4648
|
-
arg2: FileSystemCallback<string | Buffer>
|
4649
|
-
): void;
|
4650
|
-
};
|
4651
|
-
stat: {
|
4652
|
-
(arg0: string, arg1: FileSystemCallback<FileSystemStats>): void;
|
4653
|
-
(
|
4654
|
-
arg0: string,
|
4655
|
-
arg1: object,
|
4656
|
-
arg2: FileSystemCallback<string | Buffer>
|
4657
|
-
): void;
|
4658
|
-
};
|
4659
|
-
}
|
4660
|
-
declare interface FileSystemCallback<T> {
|
4661
|
-
(err?: null | (PossibleFileSystemError & Error), result?: T): any;
|
4794
|
+
readlink: ReadlinkTypes;
|
4795
|
+
lstat?: LStatTypes;
|
4796
|
+
stat: StatTypes;
|
4797
|
+
realpath?: RealPathTypes;
|
4662
4798
|
}
|
4663
4799
|
declare abstract class FileSystemInfo {
|
4664
4800
|
fs: InputFileSystem;
|
@@ -4735,9 +4871,9 @@ declare abstract class FileSystemInfo {
|
|
4735
4871
|
): void;
|
4736
4872
|
createSnapshot(
|
4737
4873
|
startTime: undefined | null | number,
|
4738
|
-
files: Iterable<string>,
|
4739
|
-
directories: Iterable<string>,
|
4740
|
-
missing: Iterable<string>,
|
4874
|
+
files: null | Iterable<string>,
|
4875
|
+
directories: null | Iterable<string>,
|
4876
|
+
missing: null | Iterable<string>,
|
4741
4877
|
options: undefined | null | SnapshotOptionsFileSystemInfo,
|
4742
4878
|
callback: (arg0?: null | WebpackError, arg1?: null | Snapshot) => void
|
4743
4879
|
): void;
|
@@ -4753,10 +4889,6 @@ declare interface FileSystemInfoEntry {
|
|
4753
4889
|
safeTime: number;
|
4754
4890
|
timestamp?: number;
|
4755
4891
|
}
|
4756
|
-
declare interface FileSystemStats {
|
4757
|
-
isDirectory: () => boolean;
|
4758
|
-
isFile: () => boolean;
|
4759
|
-
}
|
4760
4892
|
type FilterItemTypes = string | RegExp | ((value: string) => boolean);
|
4761
4893
|
declare interface GenerateContext {
|
4762
4894
|
/**
|
@@ -4789,11 +4921,6 @@ declare interface GenerateContext {
|
|
4789
4921
|
*/
|
4790
4922
|
runtime: RuntimeSpec;
|
4791
4923
|
|
4792
|
-
/**
|
4793
|
-
* the runtimes
|
4794
|
-
*/
|
4795
|
-
runtimes?: RuntimeSpec[];
|
4796
|
-
|
4797
4924
|
/**
|
4798
4925
|
* when in concatenated module, information about other concatenated modules
|
4799
4926
|
*/
|
@@ -4972,7 +5099,11 @@ declare interface HandleModuleCreationOptions {
|
|
4972
5099
|
checkCycle?: boolean;
|
4973
5100
|
}
|
4974
5101
|
declare class HarmonyImportDependency extends ModuleDependency {
|
4975
|
-
constructor(
|
5102
|
+
constructor(
|
5103
|
+
request: string,
|
5104
|
+
sourceOrder: number,
|
5105
|
+
attributes?: ImportAttributes
|
5106
|
+
);
|
4976
5107
|
sourceOrder: number;
|
4977
5108
|
getImportVar(moduleGraph: ModuleGraph): string;
|
4978
5109
|
getImportStatement(
|
@@ -4990,7 +5121,7 @@ declare class HarmonyImportDependency extends ModuleDependency {
|
|
4990
5121
|
WARN: 1;
|
4991
5122
|
AUTO: 2;
|
4992
5123
|
ERROR: 3;
|
4993
|
-
fromUserOption(str
|
5124
|
+
fromUserOption(str: string | false): 0 | 1 | 2 | 3;
|
4994
5125
|
};
|
4995
5126
|
static NO_EXPORTS_REFERENCED: string[][];
|
4996
5127
|
static EXPORTS_OBJECT_REFERENCED: string[][];
|
@@ -5051,8 +5182,8 @@ declare interface HashedModuleIdsPluginOptions {
|
|
5051
5182
|
}
|
5052
5183
|
declare abstract class HelperRuntimeModule extends RuntimeModule {}
|
5053
5184
|
declare class HotModuleReplacementPlugin {
|
5054
|
-
constructor(options?:
|
5055
|
-
options:
|
5185
|
+
constructor(options?: object);
|
5186
|
+
options: object;
|
5056
5187
|
|
5057
5188
|
/**
|
5058
5189
|
* Apply the plugin
|
@@ -5113,7 +5244,13 @@ declare class HttpUriPlugin {
|
|
5113
5244
|
*/
|
5114
5245
|
apply(compiler: Compiler): void;
|
5115
5246
|
}
|
5116
|
-
|
5247
|
+
type IBigIntStats = IStatsBase<bigint> & {
|
5248
|
+
atimeNs: bigint;
|
5249
|
+
mtimeNs: bigint;
|
5250
|
+
ctimeNs: bigint;
|
5251
|
+
birthtimeNs: bigint;
|
5252
|
+
};
|
5253
|
+
declare interface IStats {
|
5117
5254
|
isFile: () => boolean;
|
5118
5255
|
isDirectory: () => boolean;
|
5119
5256
|
isBlockDevice: () => boolean;
|
@@ -5121,9 +5258,26 @@ declare interface IDirent {
|
|
5121
5258
|
isSymbolicLink: () => boolean;
|
5122
5259
|
isFIFO: () => boolean;
|
5123
5260
|
isSocket: () => boolean;
|
5124
|
-
|
5261
|
+
dev: number;
|
5262
|
+
ino: number;
|
5263
|
+
mode: number;
|
5264
|
+
nlink: number;
|
5265
|
+
uid: number;
|
5266
|
+
gid: number;
|
5267
|
+
rdev: number;
|
5268
|
+
size: number;
|
5269
|
+
blksize: number;
|
5270
|
+
blocks: number;
|
5271
|
+
atimeMs: number;
|
5272
|
+
mtimeMs: number;
|
5273
|
+
ctimeMs: number;
|
5274
|
+
birthtimeMs: number;
|
5275
|
+
atime: Date;
|
5276
|
+
mtime: Date;
|
5277
|
+
ctime: Date;
|
5278
|
+
birthtime: Date;
|
5125
5279
|
}
|
5126
|
-
declare interface
|
5280
|
+
declare interface IStatsBase<T> {
|
5127
5281
|
isFile: () => boolean;
|
5128
5282
|
isDirectory: () => boolean;
|
5129
5283
|
isBlockDevice: () => boolean;
|
@@ -5131,20 +5285,20 @@ declare interface IStats {
|
|
5131
5285
|
isSymbolicLink: () => boolean;
|
5132
5286
|
isFIFO: () => boolean;
|
5133
5287
|
isSocket: () => boolean;
|
5134
|
-
dev:
|
5135
|
-
ino:
|
5136
|
-
mode:
|
5137
|
-
nlink:
|
5138
|
-
uid:
|
5139
|
-
gid:
|
5140
|
-
rdev:
|
5141
|
-
size:
|
5142
|
-
blksize:
|
5143
|
-
blocks:
|
5144
|
-
atimeMs:
|
5145
|
-
mtimeMs:
|
5146
|
-
ctimeMs:
|
5147
|
-
birthtimeMs:
|
5288
|
+
dev: T;
|
5289
|
+
ino: T;
|
5290
|
+
mode: T;
|
5291
|
+
nlink: T;
|
5292
|
+
uid: T;
|
5293
|
+
gid: T;
|
5294
|
+
rdev: T;
|
5295
|
+
size: T;
|
5296
|
+
blksize: T;
|
5297
|
+
blocks: T;
|
5298
|
+
atimeMs: T;
|
5299
|
+
mtimeMs: T;
|
5300
|
+
ctimeMs: T;
|
5301
|
+
birthtimeMs: T;
|
5148
5302
|
atime: Date;
|
5149
5303
|
mtime: Date;
|
5150
5304
|
ctime: Date;
|
@@ -5182,6 +5336,10 @@ type IgnorePluginOptions =
|
|
5182
5336
|
*/
|
5183
5337
|
checkResource: (resource: string, context: string) => boolean;
|
5184
5338
|
};
|
5339
|
+
type ImportAttributes = Record<string, string> & {};
|
5340
|
+
declare interface ImportDependencyMeta {
|
5341
|
+
attributes?: ImportAttributes;
|
5342
|
+
}
|
5185
5343
|
declare interface ImportModuleOptions {
|
5186
5344
|
/**
|
5187
5345
|
* the target layer
|
@@ -5245,51 +5403,59 @@ declare interface InfrastructureLogging {
|
|
5245
5403
|
*/
|
5246
5404
|
stream?: NodeJS.WritableStream;
|
5247
5405
|
}
|
5248
|
-
declare
|
5249
|
-
|
5406
|
+
declare class InitFragment<GenerateContext> {
|
5407
|
+
constructor(
|
5408
|
+
content: undefined | string | Source,
|
5409
|
+
stage: number,
|
5410
|
+
position: number,
|
5411
|
+
key?: string,
|
5412
|
+
endContent?: string | Source
|
5413
|
+
);
|
5414
|
+
content?: string | Source;
|
5250
5415
|
stage: number;
|
5251
5416
|
position: number;
|
5252
5417
|
key?: string;
|
5253
5418
|
endContent?: string | Source;
|
5254
|
-
getContent(context: GenerateContext): string | Source;
|
5419
|
+
getContent(context: GenerateContext): undefined | string | Source;
|
5255
5420
|
getEndContent(context: GenerateContext): undefined | string | Source;
|
5256
5421
|
serialize(context: ObjectSerializerContext): void;
|
5257
5422
|
deserialize(context: ObjectDeserializerContext): void;
|
5258
5423
|
merge: any;
|
5424
|
+
static addToSource<Context, T>(
|
5425
|
+
source: Source,
|
5426
|
+
initFragments: InitFragment<T>[],
|
5427
|
+
context: Context
|
5428
|
+
): Source;
|
5429
|
+
static STAGE_CONSTANTS: number;
|
5430
|
+
static STAGE_ASYNC_BOUNDARY: number;
|
5431
|
+
static STAGE_HARMONY_EXPORTS: number;
|
5432
|
+
static STAGE_HARMONY_IMPORTS: number;
|
5433
|
+
static STAGE_PROVIDES: number;
|
5434
|
+
static STAGE_ASYNC_DEPENDENCIES: number;
|
5435
|
+
static STAGE_ASYNC_HARMONY_IMPORTS: number;
|
5259
5436
|
}
|
5260
5437
|
declare interface InputFileSystem {
|
5261
|
-
readFile:
|
5262
|
-
|
5263
|
-
|
5264
|
-
|
5438
|
+
readFile: ReadFileFs;
|
5439
|
+
readFileSync?: ReadFileSync;
|
5440
|
+
readlink: ReadlinkFs;
|
5441
|
+
readlinkSync?: ReadlinkSync;
|
5442
|
+
readdir: ReaddirFs;
|
5443
|
+
readdirSync?: ReaddirSync;
|
5444
|
+
stat: StatFs;
|
5445
|
+
statSync?: StatSync;
|
5446
|
+
lstat?: LStatFs;
|
5447
|
+
lstatSync?: LStatSync;
|
5448
|
+
realpath?: RealPathFs;
|
5449
|
+
realpathSync?: RealPathSync;
|
5265
5450
|
readJson?: (
|
5266
|
-
arg0:
|
5267
|
-
arg1: (arg0?: null | Error | NodeJS.ErrnoException, arg1?: any) => void
|
5268
|
-
) => void;
|
5269
|
-
readlink: (
|
5270
|
-
arg0: string,
|
5271
|
-
arg1: (arg0?: null | NodeJS.ErrnoException, arg1?: string | Buffer) => void
|
5272
|
-
) => void;
|
5273
|
-
readdir: (
|
5274
|
-
arg0: string,
|
5451
|
+
arg0: PathOrFileDescriptorFs,
|
5275
5452
|
arg1: (
|
5276
|
-
arg0
|
5277
|
-
arg1?:
|
5453
|
+
arg0: null | Error | NodeJS.ErrnoException,
|
5454
|
+
arg1?: JsonObjectFs
|
5278
5455
|
) => void
|
5279
5456
|
) => void;
|
5280
|
-
|
5281
|
-
|
5282
|
-
arg1: (arg0?: null | NodeJS.ErrnoException, arg1?: IStats) => void
|
5283
|
-
) => void;
|
5284
|
-
lstat?: (
|
5285
|
-
arg0: string,
|
5286
|
-
arg1: (arg0?: null | NodeJS.ErrnoException, arg1?: IStats) => void
|
5287
|
-
) => void;
|
5288
|
-
realpath?: (
|
5289
|
-
arg0: string,
|
5290
|
-
arg1: (arg0?: null | NodeJS.ErrnoException, arg1?: string | Buffer) => void
|
5291
|
-
) => void;
|
5292
|
-
purge?: (arg0?: string) => void;
|
5457
|
+
readJsonSync?: (arg0: PathOrFileDescriptorFs) => JsonObjectFs;
|
5458
|
+
purge?: (arg0?: string | string[] | Set<string>) => void;
|
5293
5459
|
join?: (arg0: string, arg1: string) => string;
|
5294
5460
|
relative?: (arg0: string, arg1: string) => string;
|
5295
5461
|
dirname?: (arg0: string) => string;
|
@@ -5298,36 +5464,41 @@ type IntermediateFileSystem = InputFileSystem &
|
|
5298
5464
|
OutputFileSystem &
|
5299
5465
|
IntermediateFileSystemExtras;
|
5300
5466
|
declare interface IntermediateFileSystemExtras {
|
5301
|
-
mkdirSync:
|
5302
|
-
createWriteStream: (
|
5303
|
-
|
5304
|
-
|
5305
|
-
|
5306
|
-
|
5307
|
-
|
5308
|
-
|
5309
|
-
|
5310
|
-
|
5311
|
-
|
5312
|
-
|
5313
|
-
|
5314
|
-
|
5315
|
-
|
5467
|
+
mkdirSync: MkdirSync;
|
5468
|
+
createWriteStream: (
|
5469
|
+
arg0: PathLikeFs,
|
5470
|
+
arg1?:
|
5471
|
+
| "ascii"
|
5472
|
+
| "utf8"
|
5473
|
+
| "utf-8"
|
5474
|
+
| "utf16le"
|
5475
|
+
| "utf-16le"
|
5476
|
+
| "ucs2"
|
5477
|
+
| "ucs-2"
|
5478
|
+
| "latin1"
|
5479
|
+
| "binary"
|
5480
|
+
| "base64"
|
5481
|
+
| "base64url"
|
5482
|
+
| "hex"
|
5483
|
+
| WriteStreamOptions
|
5484
|
+
) => NodeJS.WritableStream;
|
5485
|
+
open: Open;
|
5486
|
+
read: Read<Buffer>;
|
5316
5487
|
close: (
|
5317
5488
|
arg0: number,
|
5318
|
-
arg1: (arg0
|
5489
|
+
arg1: (arg0: null | NodeJS.ErrnoException) => void
|
5319
5490
|
) => void;
|
5320
5491
|
rename: (
|
5321
|
-
arg0:
|
5322
|
-
arg1:
|
5323
|
-
arg2: (arg0
|
5492
|
+
arg0: PathLikeFs,
|
5493
|
+
arg1: PathLikeFs,
|
5494
|
+
arg2: (arg0: null | NodeJS.ErrnoException) => void
|
5324
5495
|
) => void;
|
5325
5496
|
}
|
5326
5497
|
type InternalCell<T> = T | typeof TOMBSTONE | typeof UNDEFINED_MARKER;
|
5327
5498
|
declare abstract class ItemCacheFacade {
|
5328
|
-
get<T>(callback:
|
5499
|
+
get<T>(callback: CallbackCacheCacheFacade<T>): void;
|
5329
5500
|
getPromise<T>(): Promise<T>;
|
5330
|
-
store<T>(data: T, callback:
|
5501
|
+
store<T>(data: T, callback: CallbackCacheCacheFacade<void>): void;
|
5331
5502
|
storePromise<T>(data: T): Promise<void>;
|
5332
5503
|
provide<T>(
|
5333
5504
|
computer: (arg0: CallbackNormalErrorCache<T>) => void,
|
@@ -5377,6 +5548,18 @@ declare class JavascriptModulesPlugin {
|
|
5377
5548
|
renderContext: RenderBootstrapContext,
|
5378
5549
|
hooks: CompilationHooksJavascriptModulesPlugin
|
5379
5550
|
): string;
|
5551
|
+
renameInlineModule(
|
5552
|
+
allModules: Module[],
|
5553
|
+
renderContext: MainRenderContext,
|
5554
|
+
inlinedModules: Set<Module>,
|
5555
|
+
chunkRenderContext: ChunkRenderContext,
|
5556
|
+
hooks: CompilationHooksJavascriptModulesPlugin
|
5557
|
+
): Map<Module, Source>;
|
5558
|
+
findNewName(
|
5559
|
+
oldName: string,
|
5560
|
+
usedName: Set<string>,
|
5561
|
+
extraInfo: string
|
5562
|
+
): string;
|
5380
5563
|
static getCompilationHooks(
|
5381
5564
|
compilation: Compilation
|
5382
5565
|
): CompilationHooksJavascriptModulesPlugin;
|
@@ -5418,7 +5601,7 @@ declare class JavascriptParser extends Parser {
|
|
5418
5601
|
>;
|
5419
5602
|
evaluateCallExpressionMember: HookMap<
|
5420
5603
|
SyncBailHook<
|
5421
|
-
[CallExpression,
|
5604
|
+
[CallExpression, BasicEvaluatedExpression],
|
5422
5605
|
undefined | null | BasicEvaluatedExpression
|
5423
5606
|
>
|
5424
5607
|
>;
|
@@ -5583,7 +5766,7 @@ declare class JavascriptParser extends Parser {
|
|
5583
5766
|
boolean | void
|
5584
5767
|
>;
|
5585
5768
|
export: SyncBailHook<
|
5586
|
-
[ExportNamedDeclaration |
|
5769
|
+
[ExportNamedDeclaration | ExportDefaultDeclaration],
|
5587
5770
|
boolean | void
|
5588
5771
|
>;
|
5589
5772
|
exportImport: SyncBailHook<
|
@@ -5591,16 +5774,27 @@ declare class JavascriptParser extends Parser {
|
|
5591
5774
|
boolean | void
|
5592
5775
|
>;
|
5593
5776
|
exportDeclaration: SyncBailHook<
|
5594
|
-
[
|
5777
|
+
[
|
5778
|
+
(
|
5779
|
+
| ExportNamedDeclaration
|
5780
|
+
| ExportDefaultDeclaration
|
5781
|
+
| ExportAllDeclaration
|
5782
|
+
),
|
5783
|
+
Declaration
|
5784
|
+
],
|
5595
5785
|
boolean | void
|
5596
5786
|
>;
|
5597
5787
|
exportExpression: SyncBailHook<
|
5598
|
-
[ExportDefaultDeclaration,
|
5788
|
+
[ExportDefaultDeclaration, FunctionDeclaration | ClassDeclaration],
|
5599
5789
|
boolean | void
|
5600
5790
|
>;
|
5601
5791
|
exportSpecifier: SyncBailHook<
|
5602
5792
|
[
|
5603
|
-
|
5793
|
+
(
|
5794
|
+
| ExportNamedDeclaration
|
5795
|
+
| ExportDefaultDeclaration
|
5796
|
+
| ExportAllDeclaration
|
5797
|
+
),
|
5604
5798
|
string,
|
5605
5799
|
string,
|
5606
5800
|
undefined | number
|
@@ -5635,7 +5829,39 @@ declare class JavascriptParser extends Parser {
|
|
5635
5829
|
>;
|
5636
5830
|
typeof: HookMap<SyncBailHook<[Expression], boolean | void>>;
|
5637
5831
|
importCall: SyncBailHook<[ImportExpression], boolean | void>;
|
5638
|
-
topLevelAwait: SyncBailHook<
|
5832
|
+
topLevelAwait: SyncBailHook<
|
5833
|
+
[
|
5834
|
+
| UnaryExpression
|
5835
|
+
| ArrayExpression
|
5836
|
+
| ArrowFunctionExpression
|
5837
|
+
| AssignmentExpression
|
5838
|
+
| AwaitExpression
|
5839
|
+
| BinaryExpression
|
5840
|
+
| SimpleCallExpression
|
5841
|
+
| NewExpression
|
5842
|
+
| ChainExpression
|
5843
|
+
| ClassExpression
|
5844
|
+
| ConditionalExpression
|
5845
|
+
| FunctionExpression
|
5846
|
+
| Identifier
|
5847
|
+
| ImportExpression
|
5848
|
+
| SimpleLiteral
|
5849
|
+
| RegExpLiteral
|
5850
|
+
| BigIntLiteral
|
5851
|
+
| LogicalExpression
|
5852
|
+
| MemberExpression
|
5853
|
+
| MetaProperty
|
5854
|
+
| ObjectExpression
|
5855
|
+
| SequenceExpression
|
5856
|
+
| TaggedTemplateExpression
|
5857
|
+
| TemplateLiteral
|
5858
|
+
| ThisExpression
|
5859
|
+
| UpdateExpression
|
5860
|
+
| YieldExpression
|
5861
|
+
| ForOfStatement
|
5862
|
+
],
|
5863
|
+
boolean | void
|
5864
|
+
>;
|
5639
5865
|
call: HookMap<SyncBailHook<[CallExpression], boolean | void>>;
|
5640
5866
|
callMemberChain: HookMap<
|
5641
5867
|
SyncBailHook<
|
@@ -5745,12 +5971,15 @@ declare class JavascriptParser extends Parser {
|
|
5745
5971
|
| ExportNamedDeclaration
|
5746
5972
|
| ExportDefaultDeclaration
|
5747
5973
|
| ExportAllDeclaration;
|
5748
|
-
destructuringAssignmentProperties?: WeakMap<
|
5974
|
+
destructuringAssignmentProperties?: WeakMap<
|
5975
|
+
Expression,
|
5976
|
+
Set<DestructuringAssignmentProperty>
|
5977
|
+
>;
|
5749
5978
|
currentTagData: any;
|
5750
5979
|
magicCommentContext: Context;
|
5751
5980
|
destructuringAssignmentPropertiesFor(
|
5752
5981
|
node: Expression
|
5753
|
-
): undefined | Set<
|
5982
|
+
): undefined | Set<DestructuringAssignmentProperty>;
|
5754
5983
|
getRenameIdentifier(
|
5755
5984
|
expr: Expression
|
5756
5985
|
): undefined | string | VariableInfoInterface;
|
@@ -5979,19 +6208,19 @@ declare class JavascriptParser extends Parser {
|
|
5979
6208
|
walkForStatement(statement: ForStatement): void;
|
5980
6209
|
preWalkForInStatement(statement: ForInStatement): void;
|
5981
6210
|
walkForInStatement(statement: ForInStatement): void;
|
5982
|
-
preWalkForOfStatement(statement
|
6211
|
+
preWalkForOfStatement(statement: ForOfStatement): void;
|
5983
6212
|
walkForOfStatement(statement: ForOfStatement): void;
|
5984
6213
|
preWalkFunctionDeclaration(statement: FunctionDeclaration): void;
|
5985
6214
|
walkFunctionDeclaration(statement: FunctionDeclaration): void;
|
5986
6215
|
blockPreWalkExpressionStatement(statement: ExpressionStatement): void;
|
5987
6216
|
preWalkAssignmentExpression(expression: AssignmentExpression): void;
|
5988
|
-
blockPreWalkImportDeclaration(statement
|
6217
|
+
blockPreWalkImportDeclaration(statement: ImportDeclaration): void;
|
5989
6218
|
enterDeclaration(declaration: Declaration, onIdent?: any): void;
|
5990
|
-
blockPreWalkExportNamedDeclaration(statement
|
6219
|
+
blockPreWalkExportNamedDeclaration(statement: ExportNamedDeclaration): void;
|
5991
6220
|
walkExportNamedDeclaration(statement: ExportNamedDeclaration): void;
|
5992
6221
|
blockPreWalkExportDefaultDeclaration(statement?: any): void;
|
5993
|
-
walkExportDefaultDeclaration(statement
|
5994
|
-
blockPreWalkExportAllDeclaration(statement
|
6222
|
+
walkExportDefaultDeclaration(statement: ExportDefaultDeclaration): void;
|
6223
|
+
blockPreWalkExportAllDeclaration(statement: ExportAllDeclaration): void;
|
5995
6224
|
preWalkVariableDeclaration(statement: VariableDeclaration): void;
|
5996
6225
|
blockPreWalkVariableDeclaration(statement: VariableDeclaration): void;
|
5997
6226
|
preWalkVariableDeclarator(declarator: VariableDeclarator): void;
|
@@ -6004,7 +6233,7 @@ declare class JavascriptParser extends Parser {
|
|
6004
6233
|
walkCatchClause(catchClause: CatchClause): void;
|
6005
6234
|
walkPattern(pattern: Pattern): void;
|
6006
6235
|
walkAssignmentPattern(pattern: AssignmentPattern): void;
|
6007
|
-
walkObjectPattern(pattern
|
6236
|
+
walkObjectPattern(pattern: ObjectPattern): void;
|
6008
6237
|
walkArrayPattern(pattern: ArrayPattern): void;
|
6009
6238
|
walkRestElement(pattern: RestElement): void;
|
6010
6239
|
walkExpressions(
|
@@ -6065,7 +6294,7 @@ declare class JavascriptParser extends Parser {
|
|
6065
6294
|
walkClassExpression(expression: ClassExpression): void;
|
6066
6295
|
walkChainExpression(expression: ChainExpression): void;
|
6067
6296
|
walkImportExpression(expression: ImportExpression): void;
|
6068
|
-
walkCallExpression(expression
|
6297
|
+
walkCallExpression(expression: CallExpression): void;
|
6069
6298
|
walkMemberExpression(expression: MemberExpression): void;
|
6070
6299
|
walkMemberExpressionWithExpressionName(
|
6071
6300
|
expression: any,
|
@@ -6156,6 +6385,7 @@ declare class JavascriptParser extends Parser {
|
|
6156
6385
|
): void;
|
6157
6386
|
enterPatterns(
|
6158
6387
|
patterns: (
|
6388
|
+
| string
|
6159
6389
|
| Identifier
|
6160
6390
|
| MemberExpression
|
6161
6391
|
| ObjectPattern
|
@@ -6184,7 +6414,7 @@ declare class JavascriptParser extends Parser {
|
|
6184
6414
|
enterAssignmentPattern(pattern: AssignmentPattern, onIdent?: any): void;
|
6185
6415
|
evaluateExpression(expression?: any): BasicEvaluatedExpression;
|
6186
6416
|
parseString(expression: Expression): string;
|
6187
|
-
parseCalculatedString(expression
|
6417
|
+
parseCalculatedString(expression: Expression): any;
|
6188
6418
|
evaluate(source: string): BasicEvaluatedExpression;
|
6189
6419
|
isPure(
|
6190
6420
|
expr:
|
@@ -6482,19 +6712,42 @@ declare interface JavascriptParserOptions {
|
|
6482
6712
|
*/
|
6483
6713
|
wrappedContextRegExp?: RegExp;
|
6484
6714
|
}
|
6485
|
-
type
|
6715
|
+
type JsonObjectFs = { [index: string]: JsonValueFs } & {
|
6716
|
+
[index: string]:
|
6717
|
+
| undefined
|
6718
|
+
| null
|
6719
|
+
| string
|
6720
|
+
| number
|
6721
|
+
| boolean
|
6722
|
+
| JsonObjectFs
|
6723
|
+
| JsonValueFs[];
|
6724
|
+
};
|
6725
|
+
type JsonObjectTypes = { [index: string]: JsonValueTypes } & {
|
6486
6726
|
[index: string]:
|
6487
6727
|
| undefined
|
6488
6728
|
| null
|
6489
6729
|
| string
|
6490
6730
|
| number
|
6491
6731
|
| boolean
|
6492
|
-
|
|
6493
|
-
|
|
6732
|
+
| JsonObjectTypes
|
6733
|
+
| JsonValueTypes[];
|
6494
6734
|
};
|
6495
|
-
type
|
6735
|
+
type JsonValueFs =
|
6736
|
+
| null
|
6737
|
+
| string
|
6738
|
+
| number
|
6739
|
+
| boolean
|
6740
|
+
| JsonObjectFs
|
6741
|
+
| JsonValueFs[];
|
6742
|
+
type JsonValueTypes =
|
6743
|
+
| null
|
6744
|
+
| string
|
6745
|
+
| number
|
6746
|
+
| boolean
|
6747
|
+
| JsonObjectTypes
|
6748
|
+
| JsonValueTypes[];
|
6496
6749
|
declare class JsonpChunkLoadingRuntimeModule extends RuntimeModule {
|
6497
|
-
constructor(runtimeRequirements:
|
6750
|
+
constructor(runtimeRequirements: ReadonlySet<string>);
|
6498
6751
|
static getCompilationHooks(
|
6499
6752
|
compilation: Compilation
|
6500
6753
|
): JsonpCompilationPluginHooks;
|
@@ -6919,21 +7172,90 @@ declare interface KnownStatsProfile {
|
|
6919
7172
|
factory: number;
|
6920
7173
|
dependencies: number;
|
6921
7174
|
}
|
6922
|
-
|
6923
|
-
|
6924
|
-
|
6925
|
-
|
6926
|
-
|
6927
|
-
|
6928
|
-
|
6929
|
-
|
6930
|
-
|
6931
|
-
|
6932
|
-
|
6933
|
-
|
6934
|
-
|
6935
|
-
|
6936
|
-
|
7175
|
+
declare interface LStatFs {
|
7176
|
+
(
|
7177
|
+
path: PathLikeFs,
|
7178
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: IStats) => void
|
7179
|
+
): void;
|
7180
|
+
(
|
7181
|
+
path: PathLikeFs,
|
7182
|
+
options: undefined | (StatOptions & { bigint?: false }),
|
7183
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: IStats) => void
|
7184
|
+
): void;
|
7185
|
+
(
|
7186
|
+
path: PathLikeFs,
|
7187
|
+
options: StatOptions & { bigint: true },
|
7188
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: IBigIntStats) => void
|
7189
|
+
): void;
|
7190
|
+
(
|
7191
|
+
path: PathLikeFs,
|
7192
|
+
options: undefined | StatOptions,
|
7193
|
+
callback: (
|
7194
|
+
arg0: null | NodeJS.ErrnoException,
|
7195
|
+
arg1?: IStats | IBigIntStats
|
7196
|
+
) => void
|
7197
|
+
): void;
|
7198
|
+
}
|
7199
|
+
declare interface LStatSync {
|
7200
|
+
(path: PathLikeFs, options?: undefined): IStats;
|
7201
|
+
(
|
7202
|
+
path: PathLikeFs,
|
7203
|
+
options?: StatSyncOptions & { bigint?: false; throwIfNoEntry: false }
|
7204
|
+
): undefined | IStats;
|
7205
|
+
(
|
7206
|
+
path: PathLikeFs,
|
7207
|
+
options: StatSyncOptions & { bigint: true; throwIfNoEntry: false }
|
7208
|
+
): undefined | IBigIntStats;
|
7209
|
+
(path: PathLikeFs, options?: StatSyncOptions & { bigint?: false }): IStats;
|
7210
|
+
(path: PathLikeFs, options: StatSyncOptions & { bigint: true }): IBigIntStats;
|
7211
|
+
(
|
7212
|
+
path: PathLikeFs,
|
7213
|
+
options: StatSyncOptions & { bigint: boolean; throwIfNoEntry?: false }
|
7214
|
+
): IStats | IBigIntStats;
|
7215
|
+
(
|
7216
|
+
path: PathLikeFs,
|
7217
|
+
options?: StatSyncOptions
|
7218
|
+
): undefined | IStats | IBigIntStats;
|
7219
|
+
}
|
7220
|
+
declare interface LStatTypes {
|
7221
|
+
(
|
7222
|
+
path: PathLikeTypes,
|
7223
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: IStats) => void
|
7224
|
+
): void;
|
7225
|
+
(
|
7226
|
+
path: PathLikeTypes,
|
7227
|
+
options: undefined | (StatOptions & { bigint?: false }),
|
7228
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: IStats) => void
|
7229
|
+
): void;
|
7230
|
+
(
|
7231
|
+
path: PathLikeTypes,
|
7232
|
+
options: StatOptions & { bigint: true },
|
7233
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: IBigIntStats) => void
|
7234
|
+
): void;
|
7235
|
+
(
|
7236
|
+
path: PathLikeTypes,
|
7237
|
+
options: undefined | StatOptions,
|
7238
|
+
callback: (
|
7239
|
+
arg0: null | NodeJS.ErrnoException,
|
7240
|
+
arg1?: IStats | IBigIntStats
|
7241
|
+
) => void
|
7242
|
+
): void;
|
7243
|
+
}
|
7244
|
+
|
7245
|
+
/**
|
7246
|
+
* Options for the default backend.
|
7247
|
+
*/
|
7248
|
+
declare interface LazyCompilationDefaultBackendOptions {
|
7249
|
+
/**
|
7250
|
+
* A custom client.
|
7251
|
+
*/
|
7252
|
+
client?: string;
|
7253
|
+
|
7254
|
+
/**
|
7255
|
+
* Specifies where to listen to from the server.
|
7256
|
+
*/
|
7257
|
+
listen?: number | ListenOptions | ((server: Server) => void);
|
7258
|
+
|
6937
7259
|
/**
|
6938
7260
|
* Specifies the protocol the client should use to connect to the server.
|
6939
7261
|
*/
|
@@ -7006,7 +7328,7 @@ declare interface LibIdentOptions {
|
|
7006
7328
|
/**
|
7007
7329
|
* object for caching
|
7008
7330
|
*/
|
7009
|
-
associatedObjectForCache?:
|
7331
|
+
associatedObjectForCache?: object;
|
7010
7332
|
}
|
7011
7333
|
declare class LibManifestPlugin {
|
7012
7334
|
constructor(options: LibManifestPluginOptions);
|
@@ -7472,6 +7794,21 @@ declare interface LogEntry {
|
|
7472
7794
|
time: number;
|
7473
7795
|
trace?: string[];
|
7474
7796
|
}
|
7797
|
+
type LogTypeEnum =
|
7798
|
+
| "error"
|
7799
|
+
| "warn"
|
7800
|
+
| "info"
|
7801
|
+
| "log"
|
7802
|
+
| "debug"
|
7803
|
+
| "profile"
|
7804
|
+
| "trace"
|
7805
|
+
| "group"
|
7806
|
+
| "groupCollapsed"
|
7807
|
+
| "groupEnd"
|
7808
|
+
| "profileEnd"
|
7809
|
+
| "time"
|
7810
|
+
| "clear"
|
7811
|
+
| "status";
|
7475
7812
|
declare const MEASURE_END_OPERATION: unique symbol;
|
7476
7813
|
declare const MEASURE_START_OPERATION: unique symbol;
|
7477
7814
|
declare interface MainRenderContext {
|
@@ -7555,6 +7892,10 @@ declare abstract class MainTemplate {
|
|
7555
7892
|
get requireFn(): "__webpack_require__";
|
7556
7893
|
get outputOptions(): Output;
|
7557
7894
|
}
|
7895
|
+
declare interface MakeDirectoryOptions {
|
7896
|
+
recursive?: boolean;
|
7897
|
+
mode?: string | number;
|
7898
|
+
}
|
7558
7899
|
declare interface MapOptions {
|
7559
7900
|
columns?: boolean;
|
7560
7901
|
module?: boolean;
|
@@ -7618,6 +7959,50 @@ declare interface MinChunkSizePluginOptions {
|
|
7618
7959
|
*/
|
7619
7960
|
minChunkSize: number;
|
7620
7961
|
}
|
7962
|
+
declare interface Mkdir {
|
7963
|
+
(
|
7964
|
+
file: PathLikeFs,
|
7965
|
+
options: MakeDirectoryOptions & { recursive: true },
|
7966
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
7967
|
+
): void;
|
7968
|
+
(
|
7969
|
+
file: PathLikeFs,
|
7970
|
+
options:
|
7971
|
+
| undefined
|
7972
|
+
| null
|
7973
|
+
| string
|
7974
|
+
| number
|
7975
|
+
| (MakeDirectoryOptions & { recursive?: false }),
|
7976
|
+
callback: (arg0: null | NodeJS.ErrnoException) => void
|
7977
|
+
): void;
|
7978
|
+
(
|
7979
|
+
file: PathLikeFs,
|
7980
|
+
options: undefined | null | string | number | MakeDirectoryOptions,
|
7981
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
7982
|
+
): void;
|
7983
|
+
(
|
7984
|
+
file: PathLikeFs,
|
7985
|
+
callback: (arg0: null | NodeJS.ErrnoException) => void
|
7986
|
+
): void;
|
7987
|
+
}
|
7988
|
+
declare interface MkdirSync {
|
7989
|
+
(
|
7990
|
+
path: PathLikeFs,
|
7991
|
+
options: MakeDirectoryOptions & { recursive: true }
|
7992
|
+
): undefined | string;
|
7993
|
+
(
|
7994
|
+
path: PathLikeFs,
|
7995
|
+
options?:
|
7996
|
+
| null
|
7997
|
+
| string
|
7998
|
+
| number
|
7999
|
+
| (MakeDirectoryOptions & { recursive?: false })
|
8000
|
+
): void;
|
8001
|
+
(
|
8002
|
+
path: PathLikeFs,
|
8003
|
+
options?: null | string | number | MakeDirectoryOptions
|
8004
|
+
): undefined | string;
|
8005
|
+
}
|
7621
8006
|
declare class Module extends DependenciesBlock {
|
7622
8007
|
constructor(type: string, context?: null | string, layer?: null | string);
|
7623
8008
|
type: string;
|
@@ -7625,7 +8010,7 @@ declare class Module extends DependenciesBlock {
|
|
7625
8010
|
layer: null | string;
|
7626
8011
|
needId: boolean;
|
7627
8012
|
debugId: number;
|
7628
|
-
resolveOptions?:
|
8013
|
+
resolveOptions?: ResolveOptions;
|
7629
8014
|
factoryMeta?: FactoryMeta;
|
7630
8015
|
useSourceMap: boolean;
|
7631
8016
|
useSimpleSourceMap: boolean;
|
@@ -7633,14 +8018,14 @@ declare class Module extends DependenciesBlock {
|
|
7633
8018
|
buildInfo?: BuildInfo;
|
7634
8019
|
presentationalDependencies?: Dependency[];
|
7635
8020
|
codeGenerationDependencies?: Dependency[];
|
7636
|
-
id:
|
8021
|
+
id: ModuleId;
|
7637
8022
|
get hash(): string;
|
7638
8023
|
get renderedHash(): string;
|
7639
|
-
profile
|
8024
|
+
profile?: ModuleProfile;
|
7640
8025
|
index: null | number;
|
7641
8026
|
index2: null | number;
|
7642
8027
|
depth: null | number;
|
7643
|
-
issuer
|
8028
|
+
issuer?: null | Module;
|
7644
8029
|
get usedExports(): null | boolean | SortableSet<string>;
|
7645
8030
|
get optimizationBailout(): (
|
7646
8031
|
| string
|
@@ -7770,7 +8155,7 @@ declare class ModuleDependency extends Dependency {
|
|
7770
8155
|
request: string;
|
7771
8156
|
userRequest: string;
|
7772
8157
|
range: any;
|
7773
|
-
assertions?:
|
8158
|
+
assertions?: ImportAttributes;
|
7774
8159
|
static Template: typeof DependencyTemplate;
|
7775
8160
|
static NO_EXPORTS_REFERENCED: string[][];
|
7776
8161
|
static EXPORTS_OBJECT_REFERENCED: string[][];
|
@@ -7784,7 +8169,7 @@ declare abstract class ModuleFactory {
|
|
7784
8169
|
}
|
7785
8170
|
declare interface ModuleFactoryCreateData {
|
7786
8171
|
contextInfo: ModuleFactoryCreateDataContextInfo;
|
7787
|
-
resolveOptions?:
|
8172
|
+
resolveOptions?: ResolveOptions;
|
7788
8173
|
context: string;
|
7789
8174
|
dependencies: Dependency[];
|
7790
8175
|
}
|
@@ -7898,11 +8283,11 @@ declare class ModuleGraph {
|
|
7898
8283
|
module: Module,
|
7899
8284
|
indexInBlock?: number
|
7900
8285
|
): void;
|
7901
|
-
getParentModule(dependency: Dependency): Module;
|
7902
|
-
getParentBlock(dependency: Dependency): DependenciesBlock;
|
8286
|
+
getParentModule(dependency: Dependency): undefined | Module;
|
8287
|
+
getParentBlock(dependency: Dependency): undefined | DependenciesBlock;
|
7903
8288
|
getParentBlockIndex(dependency: Dependency): number;
|
7904
8289
|
setResolvedModule(
|
7905
|
-
originModule: Module,
|
8290
|
+
originModule: null | Module,
|
7906
8291
|
dependency: Dependency,
|
7907
8292
|
module: Module
|
7908
8293
|
): void;
|
@@ -7932,13 +8317,13 @@ declare class ModuleGraph {
|
|
7932
8317
|
getOutgoingConnections(module: Module): Iterable<ModuleGraphConnection>;
|
7933
8318
|
getIncomingConnectionsByOriginModule(
|
7934
8319
|
module: Module
|
7935
|
-
): Map<undefined | Module, ReadonlyArray<ModuleGraphConnection>>;
|
8320
|
+
): Map<undefined | null | Module, ReadonlyArray<ModuleGraphConnection>>;
|
7936
8321
|
getOutgoingConnectionsByModule(
|
7937
8322
|
module: Module
|
7938
8323
|
): undefined | Map<undefined | Module, ReadonlyArray<ModuleGraphConnection>>;
|
7939
|
-
getProfile(module: Module):
|
7940
|
-
setProfile(module: Module, profile
|
7941
|
-
getIssuer(module: Module): null | Module;
|
8324
|
+
getProfile(module: Module): undefined | ModuleProfile;
|
8325
|
+
setProfile(module: Module, profile?: ModuleProfile): void;
|
8326
|
+
getIssuer(module: Module): undefined | null | Module;
|
7942
8327
|
setIssuer(module: Module, issuer: null | Module): void;
|
7943
8328
|
setIssuerIfUnset(module: Module, issuer: null | Module): void;
|
7944
8329
|
getOptimizationBailout(
|
@@ -7967,8 +8352,8 @@ declare class ModuleGraph {
|
|
7967
8352
|
setDepthIfLower(module: Module, depth: number): boolean;
|
7968
8353
|
isAsync(module: Module): boolean;
|
7969
8354
|
setAsync(module: Module): void;
|
7970
|
-
getMeta(thing?: any):
|
7971
|
-
getMetaIfExisting(thing?: any): undefined |
|
8355
|
+
getMeta(thing?: any): object;
|
8356
|
+
getMetaIfExisting(thing?: any): undefined | object;
|
7972
8357
|
freeze(cacheStage?: string): void;
|
7973
8358
|
unfreeze(): void;
|
7974
8359
|
cached<T extends any[], V>(
|
@@ -7999,6 +8384,7 @@ declare class ModuleGraphConnection {
|
|
7999
8384
|
explanation?: string,
|
8000
8385
|
weak?: boolean,
|
8001
8386
|
condition?:
|
8387
|
+
| null
|
8002
8388
|
| false
|
8003
8389
|
| ((arg0: ModuleGraphConnection, arg1: RuntimeSpec) => ConnectionState)
|
8004
8390
|
);
|
@@ -8035,6 +8421,7 @@ declare class ModuleGraphConnection {
|
|
8035
8421
|
static TRANSITIVE_ONLY: typeof TRANSITIVE_ONLY;
|
8036
8422
|
static CIRCULAR_CONNECTION: typeof CIRCULAR_CONNECTION;
|
8037
8423
|
}
|
8424
|
+
type ModuleId = string | number;
|
8038
8425
|
type ModuleInfo = ConcatenatedModuleInfo | ExternalModuleInfo;
|
8039
8426
|
|
8040
8427
|
/**
|
@@ -8253,7 +8640,7 @@ declare interface ModuleSettings {
|
|
8253
8640
|
/**
|
8254
8641
|
* Options for the resolver.
|
8255
8642
|
*/
|
8256
|
-
resolve?:
|
8643
|
+
resolve?: ResolveOptions;
|
8257
8644
|
|
8258
8645
|
/**
|
8259
8646
|
* Options for parsing.
|
@@ -8281,6 +8668,9 @@ declare abstract class ModuleTemplate {
|
|
8281
8668
|
}>;
|
8282
8669
|
get runtimeTemplate(): any;
|
8283
8670
|
}
|
8671
|
+
declare interface ModuleTemplates {
|
8672
|
+
javascript: ModuleTemplate;
|
8673
|
+
}
|
8284
8674
|
declare class MultiCompiler {
|
8285
8675
|
constructor(
|
8286
8676
|
compilers: Compiler[] | Record<string, Compiler>,
|
@@ -8336,10 +8726,10 @@ declare abstract class MultiStats {
|
|
8336
8726
|
declare abstract class MultiWatching {
|
8337
8727
|
watchings: Watching[];
|
8338
8728
|
compiler: MultiCompiler;
|
8339
|
-
invalidate(callback?:
|
8729
|
+
invalidate(callback?: CallbackFunction_2<void>): void;
|
8340
8730
|
suspend(): void;
|
8341
8731
|
resume(): void;
|
8342
|
-
close(callback:
|
8732
|
+
close(callback: CallbackFunction_2<void>): void;
|
8343
8733
|
}
|
8344
8734
|
declare class NamedChunkIdsPlugin {
|
8345
8735
|
constructor(options?: NamedChunkIdsPluginOptions);
|
@@ -8496,14 +8886,14 @@ declare class NormalModule extends Module {
|
|
8496
8886
|
name: string,
|
8497
8887
|
content: string | Buffer,
|
8498
8888
|
sourceMap?: string | SourceMap,
|
8499
|
-
associatedObjectForCache?:
|
8889
|
+
associatedObjectForCache?: object
|
8500
8890
|
): Source;
|
8501
8891
|
getCurrentLoader(loaderContext?: any, index?: number): null | LoaderItem;
|
8502
8892
|
createSource(
|
8503
8893
|
context: string,
|
8504
8894
|
content: string | Buffer,
|
8505
8895
|
sourceMap?: string | SourceMapSource,
|
8506
|
-
associatedObjectForCache?:
|
8896
|
+
associatedObjectForCache?: object
|
8507
8897
|
): Source;
|
8508
8898
|
markModuleAsErrored(error: WebpackError): void;
|
8509
8899
|
applyNoParseRule(rule: any, content: string): boolean;
|
@@ -8598,7 +8988,7 @@ declare interface NormalModuleCreateData {
|
|
8598
8988
|
/**
|
8599
8989
|
* options used for resolving requests from this module
|
8600
8990
|
*/
|
8601
|
-
resolveOptions?:
|
8991
|
+
resolveOptions?: ResolveOptions;
|
8602
8992
|
}
|
8603
8993
|
declare abstract class NormalModuleFactory extends ModuleFactory {
|
8604
8994
|
hooks: Readonly<{
|
@@ -8609,7 +8999,7 @@ declare abstract class NormalModuleFactory extends ModuleFactory {
|
|
8609
8999
|
resolveInScheme: HookMap<
|
8610
9000
|
AsyncSeriesBailHook<[ResourceDataWithData, ResolveData], true | void>
|
8611
9001
|
>;
|
8612
|
-
factorize: AsyncSeriesBailHook<[ResolveData], Module>;
|
9002
|
+
factorize: AsyncSeriesBailHook<[ResolveData], undefined | Module>;
|
8613
9003
|
beforeResolve: AsyncSeriesBailHook<[ResolveData], false | void>;
|
8614
9004
|
afterResolve: AsyncSeriesBailHook<[ResolveData], false | void>;
|
8615
9005
|
createModule: AsyncSeriesBailHook<
|
@@ -8637,8 +9027,8 @@ declare abstract class NormalModuleFactory extends ModuleFactory {
|
|
8637
9027
|
ruleSet: RuleSet;
|
8638
9028
|
context: string;
|
8639
9029
|
fs: InputFileSystem;
|
8640
|
-
parserCache: Map<string, WeakMap<
|
8641
|
-
generatorCache: Map<string, WeakMap<
|
9030
|
+
parserCache: Map<string, WeakMap<object, Parser>>;
|
9031
|
+
generatorCache: Map<string, WeakMap<object, Generator>>;
|
8642
9032
|
cleanupForCache(): void;
|
8643
9033
|
resolveResource(
|
8644
9034
|
contextInfo: ModuleFactoryCreateDataContextInfo,
|
@@ -8658,7 +9048,7 @@ declare abstract class NormalModuleFactory extends ModuleFactory {
|
|
8658
9048
|
array: LoaderItem[],
|
8659
9049
|
resolver: ResolverWithOptions,
|
8660
9050
|
resolveContext: ResolveContext,
|
8661
|
-
callback:
|
9051
|
+
callback: CallbackNormalModuleFactory<LoaderItem[]>
|
8662
9052
|
): void;
|
8663
9053
|
getParser(type: string, parserOptions?: ParserOptions): Parser;
|
8664
9054
|
createParser(type: string, parserOptions?: ParserOptions): Parser;
|
@@ -8801,12 +9191,30 @@ declare interface ObjectDeserializerContext {
|
|
8801
9191
|
read: () => any;
|
8802
9192
|
setCircularReference: (arg0?: any) => void;
|
8803
9193
|
}
|
9194
|
+
declare interface ObjectEncodingOptions {
|
9195
|
+
encoding?:
|
9196
|
+
| null
|
9197
|
+
| "ascii"
|
9198
|
+
| "utf8"
|
9199
|
+
| "utf-8"
|
9200
|
+
| "utf16le"
|
9201
|
+
| "utf-16le"
|
9202
|
+
| "ucs2"
|
9203
|
+
| "ucs-2"
|
9204
|
+
| "latin1"
|
9205
|
+
| "binary"
|
9206
|
+
| "base64"
|
9207
|
+
| "base64url"
|
9208
|
+
| "hex";
|
9209
|
+
}
|
8804
9210
|
declare interface ObjectSerializer {
|
8805
9211
|
serialize: (arg0: any, arg1: ObjectSerializerContext) => void;
|
8806
9212
|
deserialize: (arg0: ObjectDeserializerContext) => any;
|
8807
9213
|
}
|
8808
9214
|
declare interface ObjectSerializerContext {
|
8809
9215
|
write: (arg0?: any) => void;
|
9216
|
+
writeLazy?: (arg0?: any) => void;
|
9217
|
+
writeSeparate?: (arg0: any, arg1?: object) => () => any;
|
8810
9218
|
setCircularReference: (arg0?: any) => void;
|
8811
9219
|
}
|
8812
9220
|
declare class OccurrenceChunkIdsPlugin {
|
@@ -8839,6 +9247,23 @@ declare interface OccurrenceModuleIdsPluginOptions {
|
|
8839
9247
|
*/
|
8840
9248
|
prioritiseInitial?: boolean;
|
8841
9249
|
}
|
9250
|
+
declare interface Open {
|
9251
|
+
(
|
9252
|
+
file: PathLikeFs,
|
9253
|
+
flags: undefined | string | number,
|
9254
|
+
mode: undefined | null | string | number,
|
9255
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: number) => void
|
9256
|
+
): void;
|
9257
|
+
(
|
9258
|
+
file: PathLikeFs,
|
9259
|
+
flags: undefined | string | number,
|
9260
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: number) => void
|
9261
|
+
): void;
|
9262
|
+
(
|
9263
|
+
file: PathLikeFs,
|
9264
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: number) => void
|
9265
|
+
): void;
|
9266
|
+
}
|
8842
9267
|
|
8843
9268
|
/**
|
8844
9269
|
* Enables/Disables integrated optimizations.
|
@@ -9334,6 +9759,11 @@ declare interface Output {
|
|
9334
9759
|
| string
|
9335
9760
|
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
9336
9761
|
|
9762
|
+
/**
|
9763
|
+
* Compress the data in the head tag of CSS files.
|
9764
|
+
*/
|
9765
|
+
cssHeadDataCompression?: boolean;
|
9766
|
+
|
9337
9767
|
/**
|
9338
9768
|
* Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
|
9339
9769
|
*/
|
@@ -9535,42 +9965,17 @@ declare interface Output {
|
|
9535
9965
|
workerWasmLoading?: string | false;
|
9536
9966
|
}
|
9537
9967
|
declare interface OutputFileSystem {
|
9538
|
-
writeFile:
|
9539
|
-
|
9540
|
-
|
9541
|
-
|
9542
|
-
) => void;
|
9543
|
-
mkdir: (
|
9544
|
-
arg0: string,
|
9545
|
-
arg1: (arg0?: null | NodeJS.ErrnoException) => void
|
9546
|
-
) => void;
|
9547
|
-
readdir?: (
|
9548
|
-
arg0: string,
|
9549
|
-
arg1: (
|
9550
|
-
arg0?: null | NodeJS.ErrnoException,
|
9551
|
-
arg1?: (string | Buffer)[] | IDirent[]
|
9552
|
-
) => void
|
9553
|
-
) => void;
|
9554
|
-
rmdir?: (
|
9555
|
-
arg0: string,
|
9556
|
-
arg1: (arg0?: null | NodeJS.ErrnoException) => void
|
9557
|
-
) => void;
|
9968
|
+
writeFile: WriteFile;
|
9969
|
+
mkdir: Mkdir;
|
9970
|
+
readdir?: ReaddirFs;
|
9971
|
+
rmdir?: Rmdir;
|
9558
9972
|
unlink?: (
|
9559
|
-
arg0:
|
9560
|
-
arg1: (arg0
|
9561
|
-
) => void;
|
9562
|
-
stat: (
|
9563
|
-
arg0: string,
|
9564
|
-
arg1: (arg0?: null | NodeJS.ErrnoException, arg1?: IStats) => void
|
9565
|
-
) => void;
|
9566
|
-
lstat?: (
|
9567
|
-
arg0: string,
|
9568
|
-
arg1: (arg0?: null | NodeJS.ErrnoException, arg1?: IStats) => void
|
9569
|
-
) => void;
|
9570
|
-
readFile: (
|
9571
|
-
arg0: string,
|
9572
|
-
arg1: (arg0?: null | NodeJS.ErrnoException, arg1?: string | Buffer) => void
|
9973
|
+
arg0: PathLikeFs,
|
9974
|
+
arg1: (arg0: null | NodeJS.ErrnoException) => void
|
9573
9975
|
) => void;
|
9976
|
+
stat: StatFs;
|
9977
|
+
lstat?: LStatFs;
|
9978
|
+
readFile: ReadFileFs;
|
9574
9979
|
join?: (arg0: string, arg1: string) => string;
|
9575
9980
|
relative?: (arg0: string, arg1: string) => string;
|
9576
9981
|
dirname?: (arg0: string) => string;
|
@@ -9653,6 +10058,11 @@ declare interface OutputNormalized {
|
|
9653
10058
|
| string
|
9654
10059
|
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
9655
10060
|
|
10061
|
+
/**
|
10062
|
+
* Compress the data in the head tag of CSS files.
|
10063
|
+
*/
|
10064
|
+
cssHeadDataCompression?: boolean;
|
10065
|
+
|
9656
10066
|
/**
|
9657
10067
|
* Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
|
9658
10068
|
*/
|
@@ -9958,6 +10368,10 @@ declare interface PathData {
|
|
9958
10368
|
noChunkHash?: boolean;
|
9959
10369
|
url?: string;
|
9960
10370
|
}
|
10371
|
+
type PathLikeFs = string | Buffer | URL;
|
10372
|
+
type PathLikeTypes = string | Buffer | URL_url;
|
10373
|
+
type PathOrFileDescriptorFs = string | number | Buffer | URL;
|
10374
|
+
type PathOrFileDescriptorTypes = string | number | Buffer | URL_url;
|
9961
10375
|
type Pattern =
|
9962
10376
|
| Identifier
|
9963
10377
|
| MemberExpression
|
@@ -10005,6 +10419,46 @@ declare interface PitchLoaderDefinitionFunction<
|
|
10005
10419
|
data: object
|
10006
10420
|
): string | void | Buffer | Promise<string | Buffer>;
|
10007
10421
|
}
|
10422
|
+
declare class PlatformPlugin {
|
10423
|
+
constructor(platform: Partial<PlatformTargetProperties>);
|
10424
|
+
platform: Partial<PlatformTargetProperties>;
|
10425
|
+
|
10426
|
+
/**
|
10427
|
+
* Apply the plugin
|
10428
|
+
*/
|
10429
|
+
apply(compiler: Compiler): void;
|
10430
|
+
}
|
10431
|
+
declare interface PlatformTargetProperties {
|
10432
|
+
/**
|
10433
|
+
* web platform, importing of http(s) and std: is available
|
10434
|
+
*/
|
10435
|
+
web: null | boolean;
|
10436
|
+
|
10437
|
+
/**
|
10438
|
+
* browser platform, running in a normal web browser
|
10439
|
+
*/
|
10440
|
+
browser: null | boolean;
|
10441
|
+
|
10442
|
+
/**
|
10443
|
+
* (Web)Worker platform, running in a web/shared/service worker
|
10444
|
+
*/
|
10445
|
+
webworker: null | boolean;
|
10446
|
+
|
10447
|
+
/**
|
10448
|
+
* node platform, require of node built-in modules is available
|
10449
|
+
*/
|
10450
|
+
node: null | boolean;
|
10451
|
+
|
10452
|
+
/**
|
10453
|
+
* nwjs platform, require of legacy nw.gui is available
|
10454
|
+
*/
|
10455
|
+
nwjs: null | boolean;
|
10456
|
+
|
10457
|
+
/**
|
10458
|
+
* electron platform, require of some electron built-in modules is available
|
10459
|
+
*/
|
10460
|
+
electron: null | boolean;
|
10461
|
+
}
|
10008
10462
|
type Plugin =
|
10009
10463
|
| undefined
|
10010
10464
|
| null
|
@@ -10013,14 +10467,12 @@ type Plugin =
|
|
10013
10467
|
| 0
|
10014
10468
|
| { apply: (arg0: Resolver) => void }
|
10015
10469
|
| ((this: Resolver, arg1: Resolver) => void);
|
10016
|
-
declare interface
|
10017
|
-
resolveToUnqualified: (
|
10018
|
-
|
10019
|
-
|
10020
|
-
|
10021
|
-
|
10022
|
-
path?: string;
|
10023
|
-
syscall?: string;
|
10470
|
+
declare interface PnpApi {
|
10471
|
+
resolveToUnqualified: (
|
10472
|
+
arg0: string,
|
10473
|
+
arg1: string,
|
10474
|
+
arg2: object
|
10475
|
+
) => null | string;
|
10024
10476
|
}
|
10025
10477
|
declare class PrefetchPlugin {
|
10026
10478
|
constructor(context: string, request?: string);
|
@@ -10270,6 +10722,43 @@ declare interface RawSourceMap {
|
|
10270
10722
|
mappings: string;
|
10271
10723
|
file: string;
|
10272
10724
|
}
|
10725
|
+
declare interface Read<TBuffer extends ArrayBufferView = Buffer> {
|
10726
|
+
(
|
10727
|
+
fd: number,
|
10728
|
+
buffer: TBuffer,
|
10729
|
+
offset: number,
|
10730
|
+
length: number,
|
10731
|
+
position: null | number | bigint,
|
10732
|
+
callback: (
|
10733
|
+
err: null | NodeJS.ErrnoException,
|
10734
|
+
bytesRead: number,
|
10735
|
+
buffer: TBuffer
|
10736
|
+
) => void
|
10737
|
+
): void;
|
10738
|
+
(
|
10739
|
+
fd: number,
|
10740
|
+
options: ReadAsyncOptions<TBuffer>,
|
10741
|
+
callback: (
|
10742
|
+
err: null | NodeJS.ErrnoException,
|
10743
|
+
bytesRead: number,
|
10744
|
+
buffer: TBuffer
|
10745
|
+
) => void
|
10746
|
+
): void;
|
10747
|
+
(
|
10748
|
+
fd: number,
|
10749
|
+
callback: (
|
10750
|
+
err: null | NodeJS.ErrnoException,
|
10751
|
+
bytesRead: number,
|
10752
|
+
buffer: ArrayBufferView
|
10753
|
+
) => void
|
10754
|
+
): void;
|
10755
|
+
}
|
10756
|
+
declare interface ReadAsyncOptions<TBuffer extends ArrayBufferView> {
|
10757
|
+
offset?: number;
|
10758
|
+
length?: number;
|
10759
|
+
position?: null | number | bigint;
|
10760
|
+
buffer?: TBuffer;
|
10761
|
+
}
|
10273
10762
|
declare class ReadFileCompileWasmPlugin {
|
10274
10763
|
constructor(options?: ReadFileCompileWasmPluginOptions);
|
10275
10764
|
options: ReadFileCompileWasmPluginOptions;
|
@@ -10285,47 +10774,523 @@ declare interface ReadFileCompileWasmPluginOptions {
|
|
10285
10774
|
*/
|
10286
10775
|
mangleImports?: boolean;
|
10287
10776
|
}
|
10288
|
-
declare interface
|
10289
|
-
|
10290
|
-
|
10291
|
-
|
10292
|
-
|
10293
|
-
|
10294
|
-
|
10295
|
-
|
|
10296
|
-
|
10297
|
-
|
10298
|
-
|
10299
|
-
|
10300
|
-
|
10301
|
-
|
10302
|
-
|
10303
|
-
|
10777
|
+
declare interface ReadFileFs {
|
10778
|
+
(
|
10779
|
+
path: PathOrFileDescriptorFs,
|
10780
|
+
options:
|
10781
|
+
| undefined
|
10782
|
+
| null
|
10783
|
+
| ({ encoding?: null; flag?: string } & Abortable),
|
10784
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: Buffer) => void
|
10785
|
+
): void;
|
10786
|
+
(
|
10787
|
+
path: PathOrFileDescriptorFs,
|
10788
|
+
options:
|
10789
|
+
| "ascii"
|
10790
|
+
| "utf8"
|
10791
|
+
| "utf-8"
|
10792
|
+
| "utf16le"
|
10793
|
+
| "utf-16le"
|
10794
|
+
| "ucs2"
|
10795
|
+
| "ucs-2"
|
10796
|
+
| "latin1"
|
10797
|
+
| "binary"
|
10798
|
+
| ({ encoding: BufferEncoding; flag?: string } & Abortable)
|
10799
|
+
| "base64"
|
10800
|
+
| "base64url"
|
10801
|
+
| "hex",
|
10802
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
10803
|
+
): void;
|
10804
|
+
(
|
10805
|
+
path: PathOrFileDescriptorFs,
|
10806
|
+
options:
|
10807
|
+
| undefined
|
10808
|
+
| null
|
10809
|
+
| "ascii"
|
10810
|
+
| "utf8"
|
10811
|
+
| "utf-8"
|
10812
|
+
| "utf16le"
|
10813
|
+
| "utf-16le"
|
10814
|
+
| "ucs2"
|
10815
|
+
| "ucs-2"
|
10816
|
+
| "latin1"
|
10817
|
+
| "binary"
|
10818
|
+
| "base64"
|
10819
|
+
| "base64url"
|
10820
|
+
| "hex"
|
10821
|
+
| (ObjectEncodingOptions & { flag?: string } & Abortable),
|
10822
|
+
callback: (
|
10823
|
+
arg0: null | NodeJS.ErrnoException,
|
10824
|
+
arg1?: string | Buffer
|
10825
|
+
) => void
|
10826
|
+
): void;
|
10827
|
+
(
|
10828
|
+
path: PathOrFileDescriptorFs,
|
10829
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: Buffer) => void
|
10830
|
+
): void;
|
10304
10831
|
}
|
10305
|
-
declare
|
10306
|
-
|
10307
|
-
|
10308
|
-
|
10309
|
-
|
10310
|
-
|
10311
|
-
|
10312
|
-
|
10313
|
-
|
10314
|
-
|
10315
|
-
|
10316
|
-
|
10317
|
-
|
10318
|
-
|
10319
|
-
|
10320
|
-
|
10321
|
-
|
10322
|
-
|
10323
|
-
|
10832
|
+
declare interface ReadFileSync {
|
10833
|
+
(
|
10834
|
+
path: PathOrFileDescriptorFs,
|
10835
|
+
options?: null | { encoding?: null; flag?: string }
|
10836
|
+
): Buffer;
|
10837
|
+
(
|
10838
|
+
path: PathOrFileDescriptorFs,
|
10839
|
+
options:
|
10840
|
+
| "ascii"
|
10841
|
+
| "utf8"
|
10842
|
+
| "utf-8"
|
10843
|
+
| "utf16le"
|
10844
|
+
| "utf-16le"
|
10845
|
+
| "ucs2"
|
10846
|
+
| "ucs-2"
|
10847
|
+
| "latin1"
|
10848
|
+
| "binary"
|
10849
|
+
| "base64"
|
10850
|
+
| "base64url"
|
10851
|
+
| "hex"
|
10852
|
+
| { encoding: BufferEncoding; flag?: string }
|
10853
|
+
): string;
|
10854
|
+
(
|
10855
|
+
path: PathOrFileDescriptorFs,
|
10856
|
+
options?:
|
10857
|
+
| null
|
10858
|
+
| "ascii"
|
10859
|
+
| "utf8"
|
10860
|
+
| "utf-8"
|
10861
|
+
| "utf16le"
|
10862
|
+
| "utf-16le"
|
10863
|
+
| "ucs2"
|
10864
|
+
| "ucs-2"
|
10865
|
+
| "latin1"
|
10866
|
+
| "binary"
|
10867
|
+
| "base64"
|
10868
|
+
| "base64url"
|
10869
|
+
| "hex"
|
10870
|
+
| (ObjectEncodingOptions & { flag?: string })
|
10871
|
+
): string | Buffer;
|
10324
10872
|
}
|
10325
|
-
declare interface
|
10326
|
-
|
10327
|
-
|
10328
|
-
|
10873
|
+
declare interface ReadFileTypes {
|
10874
|
+
(
|
10875
|
+
path: PathOrFileDescriptorTypes,
|
10876
|
+
options:
|
10877
|
+
| undefined
|
10878
|
+
| null
|
10879
|
+
| ({ encoding?: null; flag?: string } & Abortable),
|
10880
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: Buffer) => void
|
10881
|
+
): void;
|
10882
|
+
(
|
10883
|
+
path: PathOrFileDescriptorTypes,
|
10884
|
+
options:
|
10885
|
+
| "ascii"
|
10886
|
+
| "utf8"
|
10887
|
+
| "utf-8"
|
10888
|
+
| "utf16le"
|
10889
|
+
| "utf-16le"
|
10890
|
+
| "ucs2"
|
10891
|
+
| "ucs-2"
|
10892
|
+
| "latin1"
|
10893
|
+
| "binary"
|
10894
|
+
| "base64"
|
10895
|
+
| "base64url"
|
10896
|
+
| "hex"
|
10897
|
+
| ({ encoding: BufferEncoding; flag?: string } & Abortable),
|
10898
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
10899
|
+
): void;
|
10900
|
+
(
|
10901
|
+
path: PathOrFileDescriptorTypes,
|
10902
|
+
options:
|
10903
|
+
| undefined
|
10904
|
+
| null
|
10905
|
+
| "ascii"
|
10906
|
+
| "utf8"
|
10907
|
+
| "utf-8"
|
10908
|
+
| "utf16le"
|
10909
|
+
| "utf-16le"
|
10910
|
+
| "ucs2"
|
10911
|
+
| "ucs-2"
|
10912
|
+
| "latin1"
|
10913
|
+
| "binary"
|
10914
|
+
| "base64"
|
10915
|
+
| "base64url"
|
10916
|
+
| "hex"
|
10917
|
+
| (ObjectEncodingOptions & { flag?: string } & Abortable),
|
10918
|
+
callback: (
|
10919
|
+
arg0: null | NodeJS.ErrnoException,
|
10920
|
+
arg1?: string | Buffer
|
10921
|
+
) => void
|
10922
|
+
): void;
|
10923
|
+
(
|
10924
|
+
path: PathOrFileDescriptorTypes,
|
10925
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: Buffer) => void
|
10926
|
+
): void;
|
10927
|
+
}
|
10928
|
+
declare interface ReaddirFs {
|
10929
|
+
(
|
10930
|
+
path: PathLikeFs,
|
10931
|
+
options:
|
10932
|
+
| undefined
|
10933
|
+
| null
|
10934
|
+
| "ascii"
|
10935
|
+
| "utf8"
|
10936
|
+
| "utf-8"
|
10937
|
+
| "utf16le"
|
10938
|
+
| "utf-16le"
|
10939
|
+
| "ucs2"
|
10940
|
+
| "ucs-2"
|
10941
|
+
| "latin1"
|
10942
|
+
| "binary"
|
10943
|
+
| "base64"
|
10944
|
+
| "base64url"
|
10945
|
+
| "hex"
|
10946
|
+
| {
|
10947
|
+
encoding:
|
10948
|
+
| null
|
10949
|
+
| "ascii"
|
10950
|
+
| "utf8"
|
10951
|
+
| "utf-8"
|
10952
|
+
| "utf16le"
|
10953
|
+
| "utf-16le"
|
10954
|
+
| "ucs2"
|
10955
|
+
| "ucs-2"
|
10956
|
+
| "latin1"
|
10957
|
+
| "binary"
|
10958
|
+
| "base64"
|
10959
|
+
| "base64url"
|
10960
|
+
| "hex";
|
10961
|
+
withFileTypes?: false;
|
10962
|
+
recursive?: boolean;
|
10963
|
+
},
|
10964
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string[]) => void
|
10965
|
+
): void;
|
10966
|
+
(
|
10967
|
+
path: PathLikeFs,
|
10968
|
+
options:
|
10969
|
+
| "buffer"
|
10970
|
+
| { encoding: "buffer"; withFileTypes?: false; recursive?: boolean },
|
10971
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: Buffer[]) => void
|
10972
|
+
): void;
|
10973
|
+
(
|
10974
|
+
path: PathLikeFs,
|
10975
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string[]) => void
|
10976
|
+
): void;
|
10977
|
+
(
|
10978
|
+
path: PathLikeFs,
|
10979
|
+
options:
|
10980
|
+
| undefined
|
10981
|
+
| null
|
10982
|
+
| "ascii"
|
10983
|
+
| "utf8"
|
10984
|
+
| "utf-8"
|
10985
|
+
| "utf16le"
|
10986
|
+
| "utf-16le"
|
10987
|
+
| "ucs2"
|
10988
|
+
| "ucs-2"
|
10989
|
+
| "latin1"
|
10990
|
+
| "binary"
|
10991
|
+
| "base64"
|
10992
|
+
| "base64url"
|
10993
|
+
| "hex"
|
10994
|
+
| (ObjectEncodingOptions & {
|
10995
|
+
withFileTypes?: false;
|
10996
|
+
recursive?: boolean;
|
10997
|
+
}),
|
10998
|
+
callback: (
|
10999
|
+
arg0: null | NodeJS.ErrnoException,
|
11000
|
+
arg1?: string[] | Buffer[]
|
11001
|
+
) => void
|
11002
|
+
): void;
|
11003
|
+
(
|
11004
|
+
path: PathLikeFs,
|
11005
|
+
options: ObjectEncodingOptions & {
|
11006
|
+
withFileTypes: true;
|
11007
|
+
recursive?: boolean;
|
11008
|
+
},
|
11009
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: Dirent[]) => void
|
11010
|
+
): void;
|
11011
|
+
}
|
11012
|
+
declare interface ReaddirSync {
|
11013
|
+
(
|
11014
|
+
path: PathLikeFs,
|
11015
|
+
options?:
|
11016
|
+
| null
|
11017
|
+
| "ascii"
|
11018
|
+
| "utf8"
|
11019
|
+
| "utf-8"
|
11020
|
+
| "utf16le"
|
11021
|
+
| "utf-16le"
|
11022
|
+
| "ucs2"
|
11023
|
+
| "ucs-2"
|
11024
|
+
| "latin1"
|
11025
|
+
| "binary"
|
11026
|
+
| "base64"
|
11027
|
+
| "base64url"
|
11028
|
+
| "hex"
|
11029
|
+
| {
|
11030
|
+
encoding:
|
11031
|
+
| null
|
11032
|
+
| "ascii"
|
11033
|
+
| "utf8"
|
11034
|
+
| "utf-8"
|
11035
|
+
| "utf16le"
|
11036
|
+
| "utf-16le"
|
11037
|
+
| "ucs2"
|
11038
|
+
| "ucs-2"
|
11039
|
+
| "latin1"
|
11040
|
+
| "binary"
|
11041
|
+
| "base64"
|
11042
|
+
| "base64url"
|
11043
|
+
| "hex";
|
11044
|
+
withFileTypes?: false;
|
11045
|
+
recursive?: boolean;
|
11046
|
+
}
|
11047
|
+
): string[];
|
11048
|
+
(
|
11049
|
+
path: PathLikeFs,
|
11050
|
+
options:
|
11051
|
+
| "buffer"
|
11052
|
+
| { encoding: "buffer"; withFileTypes?: false; recursive?: boolean }
|
11053
|
+
): Buffer[];
|
11054
|
+
(
|
11055
|
+
path: PathLikeFs,
|
11056
|
+
options?:
|
11057
|
+
| null
|
11058
|
+
| "ascii"
|
11059
|
+
| "utf8"
|
11060
|
+
| "utf-8"
|
11061
|
+
| "utf16le"
|
11062
|
+
| "utf-16le"
|
11063
|
+
| "ucs2"
|
11064
|
+
| "ucs-2"
|
11065
|
+
| "latin1"
|
11066
|
+
| "binary"
|
11067
|
+
| "base64"
|
11068
|
+
| "base64url"
|
11069
|
+
| "hex"
|
11070
|
+
| (ObjectEncodingOptions & { withFileTypes?: false; recursive?: boolean })
|
11071
|
+
): string[] | Buffer[];
|
11072
|
+
(
|
11073
|
+
path: PathLikeFs,
|
11074
|
+
options: ObjectEncodingOptions & {
|
11075
|
+
withFileTypes: true;
|
11076
|
+
recursive?: boolean;
|
11077
|
+
}
|
11078
|
+
): Dirent[];
|
11079
|
+
}
|
11080
|
+
declare interface ReaddirTypes {
|
11081
|
+
(
|
11082
|
+
path: PathLikeTypes,
|
11083
|
+
options:
|
11084
|
+
| undefined
|
11085
|
+
| null
|
11086
|
+
| "ascii"
|
11087
|
+
| "utf8"
|
11088
|
+
| "utf-8"
|
11089
|
+
| "utf16le"
|
11090
|
+
| "utf-16le"
|
11091
|
+
| "ucs2"
|
11092
|
+
| "ucs-2"
|
11093
|
+
| "latin1"
|
11094
|
+
| "binary"
|
11095
|
+
| "base64"
|
11096
|
+
| "base64url"
|
11097
|
+
| "hex"
|
11098
|
+
| {
|
11099
|
+
encoding:
|
11100
|
+
| null
|
11101
|
+
| "ascii"
|
11102
|
+
| "utf8"
|
11103
|
+
| "utf-8"
|
11104
|
+
| "utf16le"
|
11105
|
+
| "utf-16le"
|
11106
|
+
| "ucs2"
|
11107
|
+
| "ucs-2"
|
11108
|
+
| "latin1"
|
11109
|
+
| "binary"
|
11110
|
+
| "base64"
|
11111
|
+
| "base64url"
|
11112
|
+
| "hex";
|
11113
|
+
withFileTypes?: false;
|
11114
|
+
recursive?: boolean;
|
11115
|
+
},
|
11116
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string[]) => void
|
11117
|
+
): void;
|
11118
|
+
(
|
11119
|
+
path: PathLikeTypes,
|
11120
|
+
options:
|
11121
|
+
| "buffer"
|
11122
|
+
| { encoding: "buffer"; withFileTypes?: false; recursive?: boolean },
|
11123
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: Buffer[]) => void
|
11124
|
+
): void;
|
11125
|
+
(
|
11126
|
+
path: PathLikeTypes,
|
11127
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string[]) => void
|
11128
|
+
): void;
|
11129
|
+
(
|
11130
|
+
path: PathLikeTypes,
|
11131
|
+
options:
|
11132
|
+
| undefined
|
11133
|
+
| null
|
11134
|
+
| "ascii"
|
11135
|
+
| "utf8"
|
11136
|
+
| "utf-8"
|
11137
|
+
| "utf16le"
|
11138
|
+
| "utf-16le"
|
11139
|
+
| "ucs2"
|
11140
|
+
| "ucs-2"
|
11141
|
+
| "latin1"
|
11142
|
+
| "binary"
|
11143
|
+
| "base64"
|
11144
|
+
| "base64url"
|
11145
|
+
| "hex"
|
11146
|
+
| (ObjectEncodingOptions & {
|
11147
|
+
withFileTypes?: false;
|
11148
|
+
recursive?: boolean;
|
11149
|
+
}),
|
11150
|
+
callback: (
|
11151
|
+
arg0: null | NodeJS.ErrnoException,
|
11152
|
+
arg1?: string[] | Buffer[]
|
11153
|
+
) => void
|
11154
|
+
): void;
|
11155
|
+
(
|
11156
|
+
path: PathLikeTypes,
|
11157
|
+
options: ObjectEncodingOptions & {
|
11158
|
+
withFileTypes: true;
|
11159
|
+
recursive?: boolean;
|
11160
|
+
},
|
11161
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: Dirent[]) => void
|
11162
|
+
): void;
|
11163
|
+
}
|
11164
|
+
declare interface ReadlinkFs {
|
11165
|
+
(
|
11166
|
+
path: PathLikeFs,
|
11167
|
+
options: EncodingOption,
|
11168
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
11169
|
+
): void;
|
11170
|
+
(
|
11171
|
+
path: PathLikeFs,
|
11172
|
+
options: BufferEncodingOption,
|
11173
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: Buffer) => void
|
11174
|
+
): void;
|
11175
|
+
(
|
11176
|
+
path: PathLikeFs,
|
11177
|
+
options: EncodingOption,
|
11178
|
+
callback: (
|
11179
|
+
arg0: null | NodeJS.ErrnoException,
|
11180
|
+
arg1?: string | Buffer
|
11181
|
+
) => void
|
11182
|
+
): void;
|
11183
|
+
(
|
11184
|
+
path: PathLikeFs,
|
11185
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
11186
|
+
): void;
|
11187
|
+
}
|
11188
|
+
declare interface ReadlinkSync {
|
11189
|
+
(path: PathLikeFs, options?: EncodingOption): string;
|
11190
|
+
(path: PathLikeFs, options: BufferEncodingOption): Buffer;
|
11191
|
+
(path: PathLikeFs, options?: EncodingOption): string | Buffer;
|
11192
|
+
}
|
11193
|
+
declare interface ReadlinkTypes {
|
11194
|
+
(
|
11195
|
+
path: PathLikeTypes,
|
11196
|
+
options: EncodingOption,
|
11197
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
11198
|
+
): void;
|
11199
|
+
(
|
11200
|
+
path: PathLikeTypes,
|
11201
|
+
options: BufferEncodingOption,
|
11202
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: Buffer) => void
|
11203
|
+
): void;
|
11204
|
+
(
|
11205
|
+
path: PathLikeTypes,
|
11206
|
+
options: EncodingOption,
|
11207
|
+
callback: (
|
11208
|
+
arg0: null | NodeJS.ErrnoException,
|
11209
|
+
arg1?: string | Buffer
|
11210
|
+
) => void
|
11211
|
+
): void;
|
11212
|
+
(
|
11213
|
+
path: PathLikeTypes,
|
11214
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
11215
|
+
): void;
|
11216
|
+
}
|
11217
|
+
declare class RealContentHashPlugin {
|
11218
|
+
constructor(__0: {
|
11219
|
+
/**
|
11220
|
+
* the hash function to use
|
11221
|
+
*/
|
11222
|
+
hashFunction: string | typeof Hash;
|
11223
|
+
/**
|
11224
|
+
* the hash digest to use
|
11225
|
+
*/
|
11226
|
+
hashDigest: string;
|
11227
|
+
});
|
11228
|
+
|
11229
|
+
/**
|
11230
|
+
* Apply the plugin
|
11231
|
+
*/
|
11232
|
+
apply(compiler: Compiler): void;
|
11233
|
+
static getCompilationHooks(
|
11234
|
+
compilation: Compilation
|
11235
|
+
): CompilationHooksRealContentHashPlugin;
|
11236
|
+
}
|
11237
|
+
declare interface RealDependencyLocation {
|
11238
|
+
start: SourcePosition;
|
11239
|
+
end?: SourcePosition;
|
11240
|
+
index?: number;
|
11241
|
+
}
|
11242
|
+
declare interface RealPathFs {
|
11243
|
+
(
|
11244
|
+
path: PathLikeFs,
|
11245
|
+
options: EncodingOption,
|
11246
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
11247
|
+
): void;
|
11248
|
+
(
|
11249
|
+
path: PathLikeFs,
|
11250
|
+
options: BufferEncodingOption,
|
11251
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: Buffer) => void
|
11252
|
+
): void;
|
11253
|
+
(
|
11254
|
+
path: PathLikeFs,
|
11255
|
+
options: EncodingOption,
|
11256
|
+
callback: (
|
11257
|
+
arg0: null | NodeJS.ErrnoException,
|
11258
|
+
arg1?: string | Buffer
|
11259
|
+
) => void
|
11260
|
+
): void;
|
11261
|
+
(
|
11262
|
+
path: PathLikeFs,
|
11263
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
11264
|
+
): void;
|
11265
|
+
}
|
11266
|
+
declare interface RealPathSync {
|
11267
|
+
(path: PathLikeFs, options?: EncodingOption): string;
|
11268
|
+
(path: PathLikeFs, options: BufferEncodingOption): Buffer;
|
11269
|
+
(path: PathLikeFs, options?: EncodingOption): string | Buffer;
|
11270
|
+
}
|
11271
|
+
declare interface RealPathTypes {
|
11272
|
+
(
|
11273
|
+
path: PathLikeTypes,
|
11274
|
+
options: EncodingOption,
|
11275
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
11276
|
+
): void;
|
11277
|
+
(
|
11278
|
+
path: PathLikeTypes,
|
11279
|
+
options: BufferEncodingOption,
|
11280
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: Buffer) => void
|
11281
|
+
): void;
|
11282
|
+
(
|
11283
|
+
path: PathLikeTypes,
|
11284
|
+
options: EncodingOption,
|
11285
|
+
callback: (
|
11286
|
+
arg0: null | NodeJS.ErrnoException,
|
11287
|
+
arg1?: string | Buffer
|
11288
|
+
) => void
|
11289
|
+
): void;
|
11290
|
+
(
|
11291
|
+
path: PathLikeTypes,
|
11292
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string) => void
|
11293
|
+
): void;
|
10329
11294
|
}
|
10330
11295
|
type RecursiveArrayOrRecord<T> =
|
10331
11296
|
| { [index: string]: RecursiveArrayOrRecord<T> }
|
@@ -10481,6 +11446,9 @@ declare class ReplaceSource extends Source {
|
|
10481
11446
|
name: string;
|
10482
11447
|
}[];
|
10483
11448
|
}
|
11449
|
+
declare interface RequestRecord {
|
11450
|
+
[index: string]: string | string[];
|
11451
|
+
}
|
10484
11452
|
declare abstract class RequestShortener {
|
10485
11453
|
contextify: (arg0: string) => string;
|
10486
11454
|
shorten(request?: null | string): undefined | null | string;
|
@@ -10524,10 +11492,6 @@ declare interface ResolveBuildDependenciesResult {
|
|
10524
11492
|
missing: Set<string>;
|
10525
11493
|
};
|
10526
11494
|
}
|
10527
|
-
|
10528
|
-
/**
|
10529
|
-
* Resolve context
|
10530
|
-
*/
|
10531
11495
|
declare interface ResolveContext {
|
10532
11496
|
contextDependencies?: WriteOnlySet<string>;
|
10533
11497
|
|
@@ -10558,7 +11522,7 @@ declare interface ResolveContext {
|
|
10558
11522
|
}
|
10559
11523
|
declare interface ResolveData {
|
10560
11524
|
contextInfo: ModuleFactoryCreateDataContextInfo;
|
10561
|
-
resolveOptions?:
|
11525
|
+
resolveOptions?: ResolveOptions;
|
10562
11526
|
context: string;
|
10563
11527
|
request: string;
|
10564
11528
|
assertions?: Record<string, any>;
|
@@ -10574,44 +11538,11 @@ declare interface ResolveData {
|
|
10574
11538
|
*/
|
10575
11539
|
cacheable: boolean;
|
10576
11540
|
}
|
10577
|
-
declare interface ResolveOptionsTypes {
|
10578
|
-
alias: AliasOption[];
|
10579
|
-
fallback: AliasOption[];
|
10580
|
-
aliasFields: Set<string | string[]>;
|
10581
|
-
extensionAlias: ExtensionAliasOption[];
|
10582
|
-
cachePredicate: (arg0: ResolveRequest) => boolean;
|
10583
|
-
cacheWithContext: boolean;
|
10584
|
-
|
10585
|
-
/**
|
10586
|
-
* A list of exports field condition names.
|
10587
|
-
*/
|
10588
|
-
conditionNames: Set<string>;
|
10589
|
-
descriptionFiles: string[];
|
10590
|
-
enforceExtension: boolean;
|
10591
|
-
exportsFields: Set<string | string[]>;
|
10592
|
-
importsFields: Set<string | string[]>;
|
10593
|
-
extensions: Set<string>;
|
10594
|
-
fileSystem: FileSystem;
|
10595
|
-
unsafeCache: false | object;
|
10596
|
-
symlinks: boolean;
|
10597
|
-
resolver?: Resolver;
|
10598
|
-
modules: (string | string[])[];
|
10599
|
-
mainFields: { name: string[]; forceRelative: boolean }[];
|
10600
|
-
mainFiles: Set<string>;
|
10601
|
-
plugins: Plugin[];
|
10602
|
-
pnpApi: null | PnpApiImpl;
|
10603
|
-
roots: Set<string>;
|
10604
|
-
fullySpecified: boolean;
|
10605
|
-
resolveToContext: boolean;
|
10606
|
-
restrictions: Set<string | RegExp>;
|
10607
|
-
preferRelative: boolean;
|
10608
|
-
preferAbsolute: boolean;
|
10609
|
-
}
|
10610
11541
|
|
10611
11542
|
/**
|
10612
11543
|
* Options object for resolving requests.
|
10613
11544
|
*/
|
10614
|
-
declare interface
|
11545
|
+
declare interface ResolveOptions {
|
10615
11546
|
/**
|
10616
11547
|
* Redirect module requests.
|
10617
11548
|
*/
|
@@ -10640,7 +11571,7 @@ declare interface ResolveOptionsWebpackOptions {
|
|
10640
11571
|
/**
|
10641
11572
|
* Extra resolve options per dependency category. Typical categories are "commonjs", "amd", "esm".
|
10642
11573
|
*/
|
10643
|
-
byDependency?: { [index: string]:
|
11574
|
+
byDependency?: { [index: string]: ResolveOptions };
|
10644
11575
|
|
10645
11576
|
/**
|
10646
11577
|
* Enable caching of successfully resolved requests (cache entries are revalidated).
|
@@ -10746,7 +11677,14 @@ declare interface ResolveOptionsWebpackOptions {
|
|
10746
11677
|
| false
|
10747
11678
|
| ""
|
10748
11679
|
| 0
|
10749
|
-
|
|
11680
|
+
| {
|
11681
|
+
[index: string]: any;
|
11682
|
+
/**
|
11683
|
+
* The run point of the plugin, required method.
|
11684
|
+
*/
|
11685
|
+
apply: (arg0: Resolver) => void;
|
11686
|
+
}
|
11687
|
+
| ((this: Resolver, arg1: Resolver) => void)
|
10750
11688
|
| "..."
|
10751
11689
|
)[];
|
10752
11690
|
|
@@ -10778,34 +11716,209 @@ declare interface ResolveOptionsWebpackOptions {
|
|
10778
11716
|
/**
|
10779
11717
|
* Enable resolving symlinks to the original location.
|
10780
11718
|
*/
|
10781
|
-
symlinks?: boolean;
|
11719
|
+
symlinks?: boolean;
|
11720
|
+
|
11721
|
+
/**
|
11722
|
+
* Enable caching of successfully resolved requests (cache entries are not revalidated).
|
11723
|
+
*/
|
11724
|
+
unsafeCache?: boolean | { [index: string]: any };
|
11725
|
+
|
11726
|
+
/**
|
11727
|
+
* Use synchronous filesystem calls for the resolver.
|
11728
|
+
*/
|
11729
|
+
useSyncFileSystemCalls?: boolean;
|
11730
|
+
}
|
11731
|
+
declare interface ResolveOptionsResolverFactoryObject1 {
|
11732
|
+
alias: AliasOption[];
|
11733
|
+
fallback: AliasOption[];
|
11734
|
+
aliasFields: Set<string | string[]>;
|
11735
|
+
extensionAlias: ExtensionAliasOption[];
|
11736
|
+
cachePredicate: (arg0: ResolveRequest) => boolean;
|
11737
|
+
cacheWithContext: boolean;
|
11738
|
+
|
11739
|
+
/**
|
11740
|
+
* A list of exports field condition names.
|
11741
|
+
*/
|
11742
|
+
conditionNames: Set<string>;
|
11743
|
+
descriptionFiles: string[];
|
11744
|
+
enforceExtension: boolean;
|
11745
|
+
exportsFields: Set<string | string[]>;
|
11746
|
+
importsFields: Set<string | string[]>;
|
11747
|
+
extensions: Set<string>;
|
11748
|
+
fileSystem: FileSystem;
|
11749
|
+
unsafeCache: false | object;
|
11750
|
+
symlinks: boolean;
|
11751
|
+
resolver?: Resolver;
|
11752
|
+
modules: (string | string[])[];
|
11753
|
+
mainFields: { name: string[]; forceRelative: boolean }[];
|
11754
|
+
mainFiles: Set<string>;
|
11755
|
+
plugins: Plugin[];
|
11756
|
+
pnpApi: null | PnpApi;
|
11757
|
+
roots: Set<string>;
|
11758
|
+
fullySpecified: boolean;
|
11759
|
+
resolveToContext: boolean;
|
11760
|
+
restrictions: Set<string | RegExp>;
|
11761
|
+
preferRelative: boolean;
|
11762
|
+
preferAbsolute: boolean;
|
11763
|
+
}
|
11764
|
+
declare interface ResolveOptionsResolverFactoryObject2 {
|
11765
|
+
/**
|
11766
|
+
* A list of module alias configurations or an object which maps key to value
|
11767
|
+
*/
|
11768
|
+
alias?: AliasOption[] | AliasOptions;
|
11769
|
+
|
11770
|
+
/**
|
11771
|
+
* A list of module alias configurations or an object which maps key to value, applied only after modules option
|
11772
|
+
*/
|
11773
|
+
fallback?: AliasOption[] | AliasOptions;
|
11774
|
+
|
11775
|
+
/**
|
11776
|
+
* An object which maps extension to extension aliases
|
11777
|
+
*/
|
11778
|
+
extensionAlias?: ExtensionAliasOptions;
|
11779
|
+
|
11780
|
+
/**
|
11781
|
+
* A list of alias fields in description files
|
11782
|
+
*/
|
11783
|
+
aliasFields?: (string | string[])[];
|
11784
|
+
|
11785
|
+
/**
|
11786
|
+
* A function which decides whether a request should be cached or not. An object is passed with at least `path` and `request` properties.
|
11787
|
+
*/
|
11788
|
+
cachePredicate?: (arg0: ResolveRequest) => boolean;
|
11789
|
+
|
11790
|
+
/**
|
11791
|
+
* Whether or not the unsafeCache should include request context as part of the cache key.
|
11792
|
+
*/
|
11793
|
+
cacheWithContext?: boolean;
|
11794
|
+
|
11795
|
+
/**
|
11796
|
+
* A list of description files to read from
|
11797
|
+
*/
|
11798
|
+
descriptionFiles?: string[];
|
11799
|
+
|
11800
|
+
/**
|
11801
|
+
* A list of exports field condition names.
|
11802
|
+
*/
|
11803
|
+
conditionNames?: string[];
|
11804
|
+
|
11805
|
+
/**
|
11806
|
+
* Enforce that a extension from extensions must be used
|
11807
|
+
*/
|
11808
|
+
enforceExtension?: boolean;
|
11809
|
+
|
11810
|
+
/**
|
11811
|
+
* A list of exports fields in description files
|
11812
|
+
*/
|
11813
|
+
exportsFields?: (string | string[])[];
|
11814
|
+
|
11815
|
+
/**
|
11816
|
+
* A list of imports fields in description files
|
11817
|
+
*/
|
11818
|
+
importsFields?: (string | string[])[];
|
11819
|
+
|
11820
|
+
/**
|
11821
|
+
* A list of extensions which should be tried for files
|
11822
|
+
*/
|
11823
|
+
extensions?: string[];
|
11824
|
+
|
11825
|
+
/**
|
11826
|
+
* The file system which should be used
|
11827
|
+
*/
|
11828
|
+
fileSystem: FileSystem;
|
11829
|
+
|
11830
|
+
/**
|
11831
|
+
* Use this cache object to unsafely cache the successful requests
|
11832
|
+
*/
|
11833
|
+
unsafeCache?: boolean | object;
|
11834
|
+
|
11835
|
+
/**
|
11836
|
+
* Resolve symlinks to their symlinked location
|
11837
|
+
*/
|
11838
|
+
symlinks?: boolean;
|
11839
|
+
|
11840
|
+
/**
|
11841
|
+
* A prepared Resolver to which the plugins are attached
|
11842
|
+
*/
|
11843
|
+
resolver?: Resolver;
|
11844
|
+
|
11845
|
+
/**
|
11846
|
+
* A list of directories to resolve modules from, can be absolute path or folder name
|
11847
|
+
*/
|
11848
|
+
modules?: string | string[];
|
11849
|
+
|
11850
|
+
/**
|
11851
|
+
* A list of main fields in description files
|
11852
|
+
*/
|
11853
|
+
mainFields?: (
|
11854
|
+
| string
|
11855
|
+
| string[]
|
11856
|
+
| { name: string | string[]; forceRelative: boolean }
|
11857
|
+
)[];
|
11858
|
+
|
11859
|
+
/**
|
11860
|
+
* A list of main files in directories
|
11861
|
+
*/
|
11862
|
+
mainFiles?: string[];
|
11863
|
+
|
11864
|
+
/**
|
11865
|
+
* A list of additional resolve plugins which should be applied
|
11866
|
+
*/
|
11867
|
+
plugins?: Plugin[];
|
11868
|
+
|
11869
|
+
/**
|
11870
|
+
* A PnP API that should be used - null is "never", undefined is "auto"
|
11871
|
+
*/
|
11872
|
+
pnpApi?: null | PnpApi;
|
11873
|
+
|
11874
|
+
/**
|
11875
|
+
* A list of root paths
|
11876
|
+
*/
|
11877
|
+
roots?: string[];
|
11878
|
+
|
11879
|
+
/**
|
11880
|
+
* The request is already fully specified and no extensions or directories are resolved for it
|
11881
|
+
*/
|
11882
|
+
fullySpecified?: boolean;
|
11883
|
+
|
11884
|
+
/**
|
11885
|
+
* Resolve to a context instead of a file
|
11886
|
+
*/
|
11887
|
+
resolveToContext?: boolean;
|
11888
|
+
|
11889
|
+
/**
|
11890
|
+
* A list of resolve restrictions
|
11891
|
+
*/
|
11892
|
+
restrictions?: (string | RegExp)[];
|
11893
|
+
|
11894
|
+
/**
|
11895
|
+
* Use only the sync constraints of the file system calls
|
11896
|
+
*/
|
11897
|
+
useSyncFileSystemCalls?: boolean;
|
10782
11898
|
|
10783
11899
|
/**
|
10784
|
-
*
|
11900
|
+
* Prefer to resolve module requests as relative requests before falling back to modules
|
10785
11901
|
*/
|
10786
|
-
|
11902
|
+
preferRelative?: boolean;
|
10787
11903
|
|
10788
11904
|
/**
|
10789
|
-
*
|
11905
|
+
* Prefer to resolve server-relative urls as absolute paths before falling back to resolve in roots
|
10790
11906
|
*/
|
10791
|
-
|
11907
|
+
preferAbsolute?: boolean;
|
10792
11908
|
}
|
10793
|
-
type ResolveOptionsWithDependencyType =
|
11909
|
+
type ResolveOptionsWithDependencyType = ResolveOptions & {
|
10794
11910
|
dependencyType?: string;
|
10795
11911
|
resolveToContext?: boolean;
|
10796
11912
|
};
|
10797
|
-
|
10798
|
-
|
10799
|
-
|
10800
|
-
|
10801
|
-
|
10802
|
-
|
10803
|
-
|
10804
|
-
|
10805
|
-
|
10806
|
-
*/
|
10807
|
-
apply: (resolver: Resolver) => void;
|
10808
|
-
}
|
11913
|
+
type ResolvePluginInstance =
|
11914
|
+
| {
|
11915
|
+
[index: string]: any;
|
11916
|
+
/**
|
11917
|
+
* The run point of the plugin, required method.
|
11918
|
+
*/
|
11919
|
+
apply: (arg0: Resolver) => void;
|
11920
|
+
}
|
11921
|
+
| ((this: Resolver, arg1: Resolver) => void);
|
10809
11922
|
type ResolveRequest = BaseResolveRequest & Partial<ParsedIdentifier>;
|
10810
11923
|
declare interface ResolvedContextFileSystemInfoEntry {
|
10811
11924
|
safeTime: number;
|
@@ -10816,9 +11929,15 @@ declare interface ResolvedContextTimestampAndHash {
|
|
10816
11929
|
timestampHash?: string;
|
10817
11930
|
hash: string;
|
10818
11931
|
}
|
11932
|
+
declare interface ResolvedOptions {
|
11933
|
+
/**
|
11934
|
+
* - platform target properties
|
11935
|
+
*/
|
11936
|
+
platform: false | PlatformTargetProperties;
|
11937
|
+
}
|
10819
11938
|
declare abstract class Resolver {
|
10820
11939
|
fileSystem: FileSystem;
|
10821
|
-
options:
|
11940
|
+
options: ResolveOptionsResolverFactoryObject1;
|
10822
11941
|
hooks: KnownHooks;
|
10823
11942
|
ensureHook(
|
10824
11943
|
name:
|
@@ -10872,7 +11991,7 @@ declare abstract class Resolver {
|
|
10872
11991
|
normalize(path: string): string;
|
10873
11992
|
}
|
10874
11993
|
declare interface ResolverCache {
|
10875
|
-
direct: WeakMap<
|
11994
|
+
direct: WeakMap<object, ResolverWithOptions>;
|
10876
11995
|
stringified: Map<string, ResolverWithOptions>;
|
10877
11996
|
}
|
10878
11997
|
declare abstract class ResolverFactory {
|
@@ -10881,7 +12000,13 @@ declare abstract class ResolverFactory {
|
|
10881
12000
|
SyncWaterfallHook<[ResolveOptionsWithDependencyType]>
|
10882
12001
|
>;
|
10883
12002
|
resolver: HookMap<
|
10884
|
-
SyncHook<
|
12003
|
+
SyncHook<
|
12004
|
+
[
|
12005
|
+
Resolver,
|
12006
|
+
ResolveOptionsResolverFactoryObject2,
|
12007
|
+
ResolveOptionsWithDependencyType
|
12008
|
+
]
|
12009
|
+
>
|
10885
12010
|
>;
|
10886
12011
|
}>;
|
10887
12012
|
cache: Map<string, ResolverCache>;
|
@@ -10900,6 +12025,22 @@ declare interface ResourceDataWithData {
|
|
10900
12025
|
context?: string;
|
10901
12026
|
data: Record<string, any>;
|
10902
12027
|
}
|
12028
|
+
declare interface RmDirOptions {
|
12029
|
+
maxRetries?: number;
|
12030
|
+
recursive?: boolean;
|
12031
|
+
retryDelay?: number;
|
12032
|
+
}
|
12033
|
+
declare interface Rmdir {
|
12034
|
+
(
|
12035
|
+
file: PathLikeFs,
|
12036
|
+
callback: (arg0: null | NodeJS.ErrnoException) => void
|
12037
|
+
): void;
|
12038
|
+
(
|
12039
|
+
file: PathLikeFs,
|
12040
|
+
options: RmDirOptions,
|
12041
|
+
callback: (arg0: null | NodeJS.ErrnoException) => void
|
12042
|
+
): void;
|
12043
|
+
}
|
10903
12044
|
type Rule = string | RegExp;
|
10904
12045
|
declare interface RuleSet {
|
10905
12046
|
/**
|
@@ -11113,7 +12254,7 @@ declare interface RuleSetRule {
|
|
11113
12254
|
/**
|
11114
12255
|
* Options for the resolver.
|
11115
12256
|
*/
|
11116
|
-
resolve?:
|
12257
|
+
resolve?: ResolveOptions;
|
11117
12258
|
|
11118
12259
|
/**
|
11119
12260
|
* Match the resource path of the module.
|
@@ -11246,6 +12387,11 @@ declare interface RuleSetRule {
|
|
11246
12387
|
options?: string | { [index: string]: any };
|
11247
12388
|
}
|
11248
12389
|
| __TypeWebpackOptions;
|
12390
|
+
|
12391
|
+
/**
|
12392
|
+
* Match on import attributes of the dependency.
|
12393
|
+
*/
|
12394
|
+
with?: { [index: string]: RuleSetConditionOrConditions };
|
11249
12395
|
}
|
11250
12396
|
type RuleSetUse =
|
11251
12397
|
| string
|
@@ -11327,9 +12473,16 @@ type RuleSetUseItem =
|
|
11327
12473
|
options?: string | { [index: string]: any };
|
11328
12474
|
}
|
11329
12475
|
| __TypeWebpackOptions;
|
12476
|
+
declare interface RunCallback<T> {
|
12477
|
+
(err: null | Error, result?: T): any;
|
12478
|
+
}
|
11330
12479
|
declare class RuntimeChunkPlugin {
|
11331
|
-
constructor(options?:
|
11332
|
-
options:
|
12480
|
+
constructor(options: { name?: (entrypoint: { name: string }) => string });
|
12481
|
+
options: {
|
12482
|
+
name:
|
12483
|
+
| ((entrypoint: { name: string }) => string)
|
12484
|
+
| ((entrypoint: Entrypoint) => string);
|
12485
|
+
};
|
11333
12486
|
|
11334
12487
|
/**
|
11335
12488
|
* Apply the plugin
|
@@ -11420,15 +12573,16 @@ declare abstract class RuntimeTemplate {
|
|
11420
12573
|
supportsDynamicImport(): undefined | boolean;
|
11421
12574
|
supportsEcmaScriptModuleSyntax(): undefined | boolean;
|
11422
12575
|
supportTemplateLiteral(): undefined | boolean;
|
11423
|
-
|
11424
|
-
|
12576
|
+
supportNodePrefixForCoreModules(): undefined | boolean;
|
12577
|
+
returningFunction(returnValue: string, args?: string): string;
|
12578
|
+
basicFunction(args: string, body: string | string[]): string;
|
11425
12579
|
concatenation(...args: (string | { expr: string })[]): string;
|
11426
|
-
expressionFunction(expression
|
11427
|
-
emptyFunction():
|
11428
|
-
destructureArray(items
|
11429
|
-
destructureObject(items
|
11430
|
-
iife(args
|
11431
|
-
forEach(variable
|
12580
|
+
expressionFunction(expression: string, args?: string): string;
|
12581
|
+
emptyFunction(): string;
|
12582
|
+
destructureArray(items: string[], value: string): string;
|
12583
|
+
destructureObject(items: string[], value: string): string;
|
12584
|
+
iife(args: string, body: string): string;
|
12585
|
+
forEach(variable: string, array: string, body: string | string[]): string;
|
11432
12586
|
|
11433
12587
|
/**
|
11434
12588
|
* Add a comment
|
@@ -11497,7 +12651,7 @@ declare abstract class RuntimeTemplate {
|
|
11497
12651
|
/**
|
11498
12652
|
* the request that should be printed as comment
|
11499
12653
|
*/
|
11500
|
-
request
|
12654
|
+
request?: string;
|
11501
12655
|
/**
|
11502
12656
|
* expression to use as id expression
|
11503
12657
|
*/
|
@@ -11519,7 +12673,7 @@ declare abstract class RuntimeTemplate {
|
|
11519
12673
|
/**
|
11520
12674
|
* the request that should be printed as comment
|
11521
12675
|
*/
|
11522
|
-
request
|
12676
|
+
request?: string;
|
11523
12677
|
/**
|
11524
12678
|
* if the dependency is weak (will create a nice error message)
|
11525
12679
|
*/
|
@@ -11537,7 +12691,7 @@ declare abstract class RuntimeTemplate {
|
|
11537
12691
|
/**
|
11538
12692
|
* the request that should be printed as comment
|
11539
12693
|
*/
|
11540
|
-
request
|
12694
|
+
request?: string;
|
11541
12695
|
/**
|
11542
12696
|
* if the dependency is weak (will create a nice error message)
|
11543
12697
|
*/
|
@@ -11739,7 +12893,7 @@ declare abstract class RuntimeTemplate {
|
|
11739
12893
|
/**
|
11740
12894
|
* the async block
|
11741
12895
|
*/
|
11742
|
-
block
|
12896
|
+
block?: AsyncDependenciesBlock;
|
11743
12897
|
/**
|
11744
12898
|
* the message
|
11745
12899
|
*/
|
@@ -11804,10 +12958,6 @@ declare abstract class RuntimeTemplate {
|
|
11804
12958
|
* the module
|
11805
12959
|
*/
|
11806
12960
|
module: Module;
|
11807
|
-
/**
|
11808
|
-
* the public path
|
11809
|
-
*/
|
11810
|
-
publicPath: string;
|
11811
12961
|
/**
|
11812
12962
|
* runtime
|
11813
12963
|
*/
|
@@ -11856,14 +13006,24 @@ declare interface ScopeInfo {
|
|
11856
13006
|
isAsmJs: boolean;
|
11857
13007
|
}
|
11858
13008
|
declare interface Selector<A, B> {
|
11859
|
-
(input: A): B;
|
13009
|
+
(input: A): undefined | null | B;
|
11860
13010
|
}
|
11861
13011
|
declare abstract class Serializer {
|
11862
|
-
serializeMiddlewares: any;
|
11863
|
-
deserializeMiddlewares: any;
|
13012
|
+
serializeMiddlewares: SerializerMiddleware<any, any>[];
|
13013
|
+
deserializeMiddlewares: SerializerMiddleware<any, any>[];
|
11864
13014
|
context: any;
|
11865
|
-
serialize(obj?: any, context?: any): any
|
11866
|
-
deserialize(value?: any, context?: any): any
|
13015
|
+
serialize(obj?: any, context?: any): Promise<any>;
|
13016
|
+
deserialize(value?: any, context?: any): Promise<any>;
|
13017
|
+
}
|
13018
|
+
declare abstract class SerializerMiddleware<DeserializedType, SerializedType> {
|
13019
|
+
serialize(
|
13020
|
+
data: DeserializedType,
|
13021
|
+
context: object
|
13022
|
+
): SerializedType | Promise<SerializedType>;
|
13023
|
+
deserialize(
|
13024
|
+
data: SerializedType,
|
13025
|
+
context: object
|
13026
|
+
): DeserializedType | Promise<DeserializedType>;
|
11867
13027
|
}
|
11868
13028
|
type ServerOptionsHttps<
|
11869
13029
|
Request extends typeof IncomingMessage = typeof IncomingMessage,
|
@@ -11981,7 +13141,7 @@ declare abstract class Snapshot {
|
|
11981
13141
|
managedMissing?: Set<string>;
|
11982
13142
|
children?: Set<Snapshot>;
|
11983
13143
|
hasStartTime(): boolean;
|
11984
|
-
setStartTime(value
|
13144
|
+
setStartTime(value: number): void;
|
11985
13145
|
setMergedStartTime(value?: any, snapshot?: any): void;
|
11986
13146
|
hasFileTimestamps(): boolean;
|
11987
13147
|
setFileTimestamps(value?: any): void;
|
@@ -12313,6 +13473,82 @@ declare abstract class StackedMap<K, V> {
|
|
12313
13473
|
createChild(): StackedMap<K, V>;
|
12314
13474
|
}
|
12315
13475
|
type StartupRenderContext = RenderContext & { inlined: boolean };
|
13476
|
+
declare interface StatFs {
|
13477
|
+
(
|
13478
|
+
path: PathLikeFs,
|
13479
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: IStats) => void
|
13480
|
+
): void;
|
13481
|
+
(
|
13482
|
+
path: PathLikeFs,
|
13483
|
+
options: undefined | (StatOptions & { bigint?: false }),
|
13484
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: IStats) => void
|
13485
|
+
): void;
|
13486
|
+
(
|
13487
|
+
path: PathLikeFs,
|
13488
|
+
options: StatOptions & { bigint: true },
|
13489
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: IBigIntStats) => void
|
13490
|
+
): void;
|
13491
|
+
(
|
13492
|
+
path: PathLikeFs,
|
13493
|
+
options: undefined | StatOptions,
|
13494
|
+
callback: (
|
13495
|
+
arg0: null | NodeJS.ErrnoException,
|
13496
|
+
arg1?: IStats | IBigIntStats
|
13497
|
+
) => void
|
13498
|
+
): void;
|
13499
|
+
}
|
13500
|
+
declare interface StatOptions {
|
13501
|
+
bigint?: boolean;
|
13502
|
+
}
|
13503
|
+
declare interface StatSync {
|
13504
|
+
(path: PathLikeFs, options?: undefined): IStats;
|
13505
|
+
(
|
13506
|
+
path: PathLikeFs,
|
13507
|
+
options?: StatSyncOptions & { bigint?: false; throwIfNoEntry: false }
|
13508
|
+
): undefined | IStats;
|
13509
|
+
(
|
13510
|
+
path: PathLikeFs,
|
13511
|
+
options: StatSyncOptions & { bigint: true; throwIfNoEntry: false }
|
13512
|
+
): undefined | IBigIntStats;
|
13513
|
+
(path: PathLikeFs, options?: StatSyncOptions & { bigint?: false }): IStats;
|
13514
|
+
(path: PathLikeFs, options: StatSyncOptions & { bigint: true }): IBigIntStats;
|
13515
|
+
(
|
13516
|
+
path: PathLikeFs,
|
13517
|
+
options: StatSyncOptions & { bigint: boolean; throwIfNoEntry?: false }
|
13518
|
+
): IStats | IBigIntStats;
|
13519
|
+
(
|
13520
|
+
path: PathLikeFs,
|
13521
|
+
options?: StatSyncOptions
|
13522
|
+
): undefined | IStats | IBigIntStats;
|
13523
|
+
}
|
13524
|
+
declare interface StatSyncOptions {
|
13525
|
+
bigint?: boolean;
|
13526
|
+
throwIfNoEntry?: boolean;
|
13527
|
+
}
|
13528
|
+
declare interface StatTypes {
|
13529
|
+
(
|
13530
|
+
path: PathLikeTypes,
|
13531
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: IStats) => void
|
13532
|
+
): void;
|
13533
|
+
(
|
13534
|
+
path: PathLikeTypes,
|
13535
|
+
options: undefined | (StatOptions & { bigint?: false }),
|
13536
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: IStats) => void
|
13537
|
+
): void;
|
13538
|
+
(
|
13539
|
+
path: PathLikeTypes,
|
13540
|
+
options: StatOptions & { bigint: true },
|
13541
|
+
callback: (arg0: null | NodeJS.ErrnoException, arg1?: IBigIntStats) => void
|
13542
|
+
): void;
|
13543
|
+
(
|
13544
|
+
path: PathLikeTypes,
|
13545
|
+
options: undefined | StatOptions,
|
13546
|
+
callback: (
|
13547
|
+
arg0: null | NodeJS.ErrnoException,
|
13548
|
+
arg1?: IStats | IBigIntStats
|
13549
|
+
) => void
|
13550
|
+
): void;
|
13551
|
+
}
|
12316
13552
|
type Statement =
|
12317
13553
|
| FunctionDeclaration
|
12318
13554
|
| VariableDeclaration
|
@@ -12394,8 +13630,8 @@ declare class Stats {
|
|
12394
13630
|
constructor(compilation: Compilation);
|
12395
13631
|
compilation: Compilation;
|
12396
13632
|
get hash(): string;
|
12397
|
-
get startTime():
|
12398
|
-
get endTime():
|
13633
|
+
get startTime(): number;
|
13634
|
+
get endTime(): number;
|
12399
13635
|
hasWarnings(): boolean;
|
12400
13636
|
hasErrors(): boolean;
|
12401
13637
|
toJson(options?: string | boolean | StatsOptions): StatsCompilation;
|
@@ -12409,7 +13645,7 @@ type StatsCompilation = KnownStatsCompilation & Record<string, any>;
|
|
12409
13645
|
type StatsError = KnownStatsError & Record<string, any>;
|
12410
13646
|
declare abstract class StatsFactory {
|
12411
13647
|
hooks: Readonly<{
|
12412
|
-
extract: HookMap<SyncBailHook<[
|
13648
|
+
extract: HookMap<SyncBailHook<[object, any, StatsFactoryContext], any>>;
|
12413
13649
|
filter: HookMap<
|
12414
13650
|
SyncBailHook<[any, StatsFactoryContext, number, number], any>
|
12415
13651
|
>;
|
@@ -12914,7 +14150,7 @@ declare abstract class StatsPrinter {
|
|
12914
14150
|
print: HookMap<SyncBailHook<[{}, StatsPrinterContext], string>>;
|
12915
14151
|
result: HookMap<SyncWaterfallHook<[string, StatsPrinterContext]>>;
|
12916
14152
|
}>;
|
12917
|
-
print(type: string, object:
|
14153
|
+
print(type: string, object: object, baseContext?: object): string;
|
12918
14154
|
}
|
12919
14155
|
type StatsPrinterContext = KnownStatsPrinterContext & Record<string, any>;
|
12920
14156
|
type StatsProfile = KnownStatsProfile & Record<string, any>;
|
@@ -13029,9 +14265,15 @@ declare interface TrustedTypes {
|
|
13029
14265
|
policyName?: string;
|
13030
14266
|
}
|
13031
14267
|
declare const UNDEFINED_MARKER: unique symbol;
|
14268
|
+
|
14269
|
+
/**
|
14270
|
+
* `URL` class is a global reference for `require('url').URL`
|
14271
|
+
* https://nodejs.org/api/url.html#the-whatwg-url-api
|
14272
|
+
*/
|
14273
|
+
declare interface URL_url extends URL {}
|
13032
14274
|
declare interface UnsafeCacheData {
|
13033
14275
|
factoryMeta?: FactoryMeta;
|
13034
|
-
resolveOptions?:
|
14276
|
+
resolveOptions?: ResolveOptions;
|
13035
14277
|
}
|
13036
14278
|
declare interface UpdateHashContextDependency {
|
13037
14279
|
chunkGraph: ChunkGraph;
|
@@ -13048,151 +14290,6 @@ declare interface UpdateHashContextGenerator {
|
|
13048
14290
|
runtimeTemplate?: RuntimeTemplate;
|
13049
14291
|
}
|
13050
14292
|
type UsageStateType = 0 | 1 | 2 | 3 | 4;
|
13051
|
-
declare interface UserResolveOptions {
|
13052
|
-
/**
|
13053
|
-
* A list of module alias configurations or an object which maps key to value
|
13054
|
-
*/
|
13055
|
-
alias?: AliasOption[] | AliasOptions;
|
13056
|
-
|
13057
|
-
/**
|
13058
|
-
* A list of module alias configurations or an object which maps key to value, applied only after modules option
|
13059
|
-
*/
|
13060
|
-
fallback?: AliasOption[] | AliasOptions;
|
13061
|
-
|
13062
|
-
/**
|
13063
|
-
* An object which maps extension to extension aliases
|
13064
|
-
*/
|
13065
|
-
extensionAlias?: ExtensionAliasOptions;
|
13066
|
-
|
13067
|
-
/**
|
13068
|
-
* A list of alias fields in description files
|
13069
|
-
*/
|
13070
|
-
aliasFields?: (string | string[])[];
|
13071
|
-
|
13072
|
-
/**
|
13073
|
-
* A function which decides whether a request should be cached or not. An object is passed with at least `path` and `request` properties.
|
13074
|
-
*/
|
13075
|
-
cachePredicate?: (arg0: ResolveRequest) => boolean;
|
13076
|
-
|
13077
|
-
/**
|
13078
|
-
* Whether or not the unsafeCache should include request context as part of the cache key.
|
13079
|
-
*/
|
13080
|
-
cacheWithContext?: boolean;
|
13081
|
-
|
13082
|
-
/**
|
13083
|
-
* A list of description files to read from
|
13084
|
-
*/
|
13085
|
-
descriptionFiles?: string[];
|
13086
|
-
|
13087
|
-
/**
|
13088
|
-
* A list of exports field condition names.
|
13089
|
-
*/
|
13090
|
-
conditionNames?: string[];
|
13091
|
-
|
13092
|
-
/**
|
13093
|
-
* Enforce that a extension from extensions must be used
|
13094
|
-
*/
|
13095
|
-
enforceExtension?: boolean;
|
13096
|
-
|
13097
|
-
/**
|
13098
|
-
* A list of exports fields in description files
|
13099
|
-
*/
|
13100
|
-
exportsFields?: (string | string[])[];
|
13101
|
-
|
13102
|
-
/**
|
13103
|
-
* A list of imports fields in description files
|
13104
|
-
*/
|
13105
|
-
importsFields?: (string | string[])[];
|
13106
|
-
|
13107
|
-
/**
|
13108
|
-
* A list of extensions which should be tried for files
|
13109
|
-
*/
|
13110
|
-
extensions?: string[];
|
13111
|
-
|
13112
|
-
/**
|
13113
|
-
* The file system which should be used
|
13114
|
-
*/
|
13115
|
-
fileSystem: FileSystem;
|
13116
|
-
|
13117
|
-
/**
|
13118
|
-
* Use this cache object to unsafely cache the successful requests
|
13119
|
-
*/
|
13120
|
-
unsafeCache?: boolean | object;
|
13121
|
-
|
13122
|
-
/**
|
13123
|
-
* Resolve symlinks to their symlinked location
|
13124
|
-
*/
|
13125
|
-
symlinks?: boolean;
|
13126
|
-
|
13127
|
-
/**
|
13128
|
-
* A prepared Resolver to which the plugins are attached
|
13129
|
-
*/
|
13130
|
-
resolver?: Resolver;
|
13131
|
-
|
13132
|
-
/**
|
13133
|
-
* A list of directories to resolve modules from, can be absolute path or folder name
|
13134
|
-
*/
|
13135
|
-
modules?: string | string[];
|
13136
|
-
|
13137
|
-
/**
|
13138
|
-
* A list of main fields in description files
|
13139
|
-
*/
|
13140
|
-
mainFields?: (
|
13141
|
-
| string
|
13142
|
-
| string[]
|
13143
|
-
| { name: string | string[]; forceRelative: boolean }
|
13144
|
-
)[];
|
13145
|
-
|
13146
|
-
/**
|
13147
|
-
* A list of main files in directories
|
13148
|
-
*/
|
13149
|
-
mainFiles?: string[];
|
13150
|
-
|
13151
|
-
/**
|
13152
|
-
* A list of additional resolve plugins which should be applied
|
13153
|
-
*/
|
13154
|
-
plugins?: Plugin[];
|
13155
|
-
|
13156
|
-
/**
|
13157
|
-
* A PnP API that should be used - null is "never", undefined is "auto"
|
13158
|
-
*/
|
13159
|
-
pnpApi?: null | PnpApiImpl;
|
13160
|
-
|
13161
|
-
/**
|
13162
|
-
* A list of root paths
|
13163
|
-
*/
|
13164
|
-
roots?: string[];
|
13165
|
-
|
13166
|
-
/**
|
13167
|
-
* The request is already fully specified and no extensions or directories are resolved for it
|
13168
|
-
*/
|
13169
|
-
fullySpecified?: boolean;
|
13170
|
-
|
13171
|
-
/**
|
13172
|
-
* Resolve to a context instead of a file
|
13173
|
-
*/
|
13174
|
-
resolveToContext?: boolean;
|
13175
|
-
|
13176
|
-
/**
|
13177
|
-
* A list of resolve restrictions
|
13178
|
-
*/
|
13179
|
-
restrictions?: (string | RegExp)[];
|
13180
|
-
|
13181
|
-
/**
|
13182
|
-
* Use only the sync constraints of the file system calls
|
13183
|
-
*/
|
13184
|
-
useSyncFileSystemCalls?: boolean;
|
13185
|
-
|
13186
|
-
/**
|
13187
|
-
* Prefer to resolve module requests as relative requests before falling back to modules
|
13188
|
-
*/
|
13189
|
-
preferRelative?: boolean;
|
13190
|
-
|
13191
|
-
/**
|
13192
|
-
* Prefer to resolve server-relative urls as absolute paths before falling back to resolve in roots
|
13193
|
-
*/
|
13194
|
-
preferAbsolute?: boolean;
|
13195
|
-
}
|
13196
14293
|
declare abstract class VariableInfo {
|
13197
14294
|
declaredScope: ScopeInfo;
|
13198
14295
|
freeName?: string | true;
|
@@ -13215,7 +14312,7 @@ declare interface WatchFileSystem {
|
|
13215
14312
|
startTime: number,
|
13216
14313
|
options: WatchOptions,
|
13217
14314
|
callback: (
|
13218
|
-
arg0:
|
14315
|
+
arg0: null | Error,
|
13219
14316
|
arg1: Map<string, FileSystemInfoEntry | "ignore">,
|
13220
14317
|
arg2: Map<string, FileSystemInfoEntry | "ignore">,
|
13221
14318
|
arg3: Set<string>,
|
@@ -13374,7 +14471,7 @@ declare abstract class Watching {
|
|
13374
14471
|
declare abstract class WeakTupleMap<T extends any[], V> {
|
13375
14472
|
set(...args: [T, ...V[]]): void;
|
13376
14473
|
has(...args: T): boolean;
|
13377
|
-
get(...args: T): V;
|
14474
|
+
get(...args: T): undefined | V;
|
13378
14475
|
provide(...args: [T, ...(() => V)[]]): V;
|
13379
14476
|
delete(...args: T): void;
|
13380
14477
|
clear(): void;
|
@@ -13463,13 +14560,13 @@ declare abstract class WebpackLogger {
|
|
13463
14560
|
group(...args: any[]): void;
|
13464
14561
|
groupCollapsed(...args: any[]): void;
|
13465
14562
|
groupEnd(...args: any[]): void;
|
13466
|
-
profile(label?:
|
13467
|
-
profileEnd(label?:
|
13468
|
-
time(label
|
13469
|
-
timeLog(label?:
|
13470
|
-
timeEnd(label?:
|
13471
|
-
timeAggregate(label?:
|
13472
|
-
timeAggregateEnd(label?:
|
14563
|
+
profile(label?: string): void;
|
14564
|
+
profileEnd(label?: string): void;
|
14565
|
+
time(label: string): void;
|
14566
|
+
timeLog(label?: string): void;
|
14567
|
+
timeEnd(label?: string): void;
|
14568
|
+
timeAggregate(label?: string): void;
|
14569
|
+
timeAggregateEnd(label?: string): void;
|
13473
14570
|
}
|
13474
14571
|
declare class WebpackOptionsApply extends OptionsApply {
|
13475
14572
|
constructor();
|
@@ -13653,12 +14750,12 @@ declare interface WebpackOptionsNormalized {
|
|
13653
14750
|
/**
|
13654
14751
|
* Options for the resolver.
|
13655
14752
|
*/
|
13656
|
-
resolve:
|
14753
|
+
resolve: ResolveOptions;
|
13657
14754
|
|
13658
14755
|
/**
|
13659
14756
|
* Options for the resolver when resolving loaders.
|
13660
14757
|
*/
|
13661
|
-
resolveLoader:
|
14758
|
+
resolveLoader: ResolveOptions;
|
13662
14759
|
|
13663
14760
|
/**
|
13664
14761
|
* Options affecting how file system snapshots are created and validated.
|
@@ -13708,9 +14805,88 @@ declare interface WithOptions {
|
|
13708
14805
|
arg0: Partial<ResolveOptionsWithDependencyType>
|
13709
14806
|
) => ResolverWithOptions;
|
13710
14807
|
}
|
14808
|
+
declare interface WriteFile {
|
14809
|
+
(
|
14810
|
+
file: PathOrFileDescriptorFs,
|
14811
|
+
data:
|
14812
|
+
| string
|
14813
|
+
| Uint8Array
|
14814
|
+
| Uint8ClampedArray
|
14815
|
+
| Uint16Array
|
14816
|
+
| Uint32Array
|
14817
|
+
| Int8Array
|
14818
|
+
| Int16Array
|
14819
|
+
| Int32Array
|
14820
|
+
| BigUint64Array
|
14821
|
+
| BigInt64Array
|
14822
|
+
| Float32Array
|
14823
|
+
| Float64Array
|
14824
|
+
| DataView,
|
14825
|
+
options: WriteFileOptions,
|
14826
|
+
callback: (arg0: null | NodeJS.ErrnoException) => void
|
14827
|
+
): void;
|
14828
|
+
(
|
14829
|
+
file: PathOrFileDescriptorFs,
|
14830
|
+
data:
|
14831
|
+
| string
|
14832
|
+
| Uint8Array
|
14833
|
+
| Uint8ClampedArray
|
14834
|
+
| Uint16Array
|
14835
|
+
| Uint32Array
|
14836
|
+
| Int8Array
|
14837
|
+
| Int16Array
|
14838
|
+
| Int32Array
|
14839
|
+
| BigUint64Array
|
14840
|
+
| BigInt64Array
|
14841
|
+
| Float32Array
|
14842
|
+
| Float64Array
|
14843
|
+
| DataView,
|
14844
|
+
callback: (arg0: null | NodeJS.ErrnoException) => void
|
14845
|
+
): void;
|
14846
|
+
}
|
14847
|
+
type WriteFileOptions =
|
14848
|
+
| null
|
14849
|
+
| "ascii"
|
14850
|
+
| "utf8"
|
14851
|
+
| "utf-8"
|
14852
|
+
| "utf16le"
|
14853
|
+
| "utf-16le"
|
14854
|
+
| "ucs2"
|
14855
|
+
| "ucs-2"
|
14856
|
+
| "latin1"
|
14857
|
+
| "binary"
|
14858
|
+
| "base64"
|
14859
|
+
| "base64url"
|
14860
|
+
| "hex"
|
14861
|
+
| (ObjectEncodingOptions &
|
14862
|
+
Abortable & { mode?: string | number; flag?: string; flush?: boolean });
|
13711
14863
|
declare interface WriteOnlySet<T> {
|
13712
14864
|
add: (item: T) => void;
|
13713
14865
|
}
|
14866
|
+
|
14867
|
+
declare interface WriteStreamOptions {
|
14868
|
+
flags?: string;
|
14869
|
+
encoding?:
|
14870
|
+
| "ascii"
|
14871
|
+
| "utf8"
|
14872
|
+
| "utf-8"
|
14873
|
+
| "utf16le"
|
14874
|
+
| "utf-16le"
|
14875
|
+
| "ucs2"
|
14876
|
+
| "ucs-2"
|
14877
|
+
| "latin1"
|
14878
|
+
| "binary"
|
14879
|
+
| "base64"
|
14880
|
+
| "base64url"
|
14881
|
+
| "hex";
|
14882
|
+
fd?: any;
|
14883
|
+
mode?: number;
|
14884
|
+
autoClose?: boolean;
|
14885
|
+
emitClose?: boolean;
|
14886
|
+
start?: number;
|
14887
|
+
signal?: null | AbortSignal;
|
14888
|
+
fs?: null | CreateWriteStreamFSImplementation;
|
14889
|
+
}
|
13714
14890
|
type __TypeWebpackOptions = (data: object) =>
|
13715
14891
|
| string
|
13716
14892
|
| {
|
@@ -13769,18 +14945,18 @@ type __Type_2 =
|
|
13769
14945
|
| __Type_2[]);
|
13770
14946
|
declare function exports(
|
13771
14947
|
options: Configuration,
|
13772
|
-
callback?:
|
14948
|
+
callback?: CallbackWebpack<Stats>
|
13773
14949
|
): Compiler;
|
13774
14950
|
declare function exports(
|
13775
14951
|
options: ReadonlyArray<Configuration> & MultiCompilerOptions,
|
13776
|
-
callback?:
|
14952
|
+
callback?: CallbackWebpack<MultiStats>
|
13777
14953
|
): MultiCompiler;
|
13778
14954
|
declare namespace exports {
|
13779
14955
|
export const webpack: {
|
13780
|
-
(options: Configuration, callback?:
|
14956
|
+
(options: Configuration, callback?: CallbackWebpack<Stats>): Compiler;
|
13781
14957
|
(
|
13782
14958
|
options: ReadonlyArray<Configuration> & MultiCompilerOptions,
|
13783
|
-
callback?:
|
14959
|
+
callback?: CallbackWebpack<MultiStats>
|
13784
14960
|
): MultiCompiler;
|
13785
14961
|
};
|
13786
14962
|
export const validate: (options?: any) => void;
|
@@ -13843,7 +15019,7 @@ declare namespace exports {
|
|
13843
15019
|
/**
|
13844
15020
|
* the hash function to use
|
13845
15021
|
*/
|
13846
|
-
hashFunction
|
15022
|
+
hashFunction?: string | typeof Hash;
|
13847
15023
|
}
|
13848
15024
|
) => string;
|
13849
15025
|
export let replaceDuplicates: <T>(
|
@@ -13950,8 +15126,9 @@ declare namespace exports {
|
|
13950
15126
|
config: Configuration
|
13951
15127
|
) => WebpackOptionsNormalized;
|
13952
15128
|
export const applyWebpackOptionsDefaults: (
|
13953
|
-
options: WebpackOptionsNormalized
|
13954
|
-
|
15129
|
+
options: WebpackOptionsNormalized,
|
15130
|
+
compilerIndex?: number
|
15131
|
+
) => ResolvedOptions;
|
13955
15132
|
}
|
13956
15133
|
export namespace dependencies {
|
13957
15134
|
export {
|
@@ -14097,7 +15274,7 @@ declare namespace exports {
|
|
14097
15274
|
export { ProfilingPlugin };
|
14098
15275
|
}
|
14099
15276
|
export namespace util {
|
14100
|
-
export const createHash: (algorithm
|
15277
|
+
export const createHash: (algorithm: string | typeof Hash) => Hash;
|
14101
15278
|
export namespace comparators {
|
14102
15279
|
export let compareChunksById: (a: Chunk, b: Chunk) => 0 | 1 | -1;
|
14103
15280
|
export let compareModulesByIdentifier: (
|
@@ -14173,10 +15350,6 @@ declare namespace exports {
|
|
14173
15350
|
export let runtimeEqual: (a: RuntimeSpec, b: RuntimeSpec) => boolean;
|
14174
15351
|
export let compareRuntime: (a: RuntimeSpec, b: RuntimeSpec) => 0 | 1 | -1;
|
14175
15352
|
export let mergeRuntime: (a: RuntimeSpec, b: RuntimeSpec) => RuntimeSpec;
|
14176
|
-
export let deepMergeRuntime: (
|
14177
|
-
runtimes: RuntimeSpec[],
|
14178
|
-
runtime: RuntimeSpec
|
14179
|
-
) => RuntimeSpec;
|
14180
15353
|
export let mergeRuntimeCondition: (
|
14181
15354
|
a: RuntimeCondition,
|
14182
15355
|
b: RuntimeCondition,
|
@@ -14231,6 +15404,16 @@ declare namespace exports {
|
|
14231
15404
|
export { MEASURE_START_OPERATION, MEASURE_END_OPERATION };
|
14232
15405
|
}
|
14233
15406
|
export const cleverMerge: <T, O>(first: T, second: O) => T | O | (T & O);
|
15407
|
+
export function compileBooleanMatcher(
|
15408
|
+
map: Record<string | number, boolean>
|
15409
|
+
): boolean | ((arg0: string) => string);
|
15410
|
+
export namespace compileBooleanMatcher {
|
15411
|
+
export let fromLists: (
|
15412
|
+
positiveItems: string[],
|
15413
|
+
negativeItems: string[]
|
15414
|
+
) => (arg0: string) => string;
|
15415
|
+
export let itemsToRegexp: (itemsArr: string[]) => string;
|
15416
|
+
}
|
14234
15417
|
export { LazySet };
|
14235
15418
|
}
|
14236
15419
|
export namespace sources {
|
@@ -14288,6 +15471,7 @@ declare namespace exports {
|
|
14288
15471
|
Generator,
|
14289
15472
|
HotUpdateChunk,
|
14290
15473
|
HotModuleReplacementPlugin,
|
15474
|
+
InitFragment,
|
14291
15475
|
IgnorePlugin,
|
14292
15476
|
JavascriptModulesPlugin,
|
14293
15477
|
LibManifestPlugin,
|
@@ -14302,6 +15486,7 @@ declare namespace exports {
|
|
14302
15486
|
NormalModuleReplacementPlugin,
|
14303
15487
|
MultiCompiler,
|
14304
15488
|
Parser,
|
15489
|
+
PlatformPlugin,
|
14305
15490
|
PrefetchPlugin,
|
14306
15491
|
ProgressPlugin,
|
14307
15492
|
ProvidePlugin,
|
@@ -14328,7 +15513,7 @@ declare namespace exports {
|
|
14328
15513
|
LibraryOptions,
|
14329
15514
|
MemoryCacheOptions,
|
14330
15515
|
ModuleOptions,
|
14331
|
-
|
15516
|
+
ResolveOptions,
|
14332
15517
|
RuleSetCondition,
|
14333
15518
|
RuleSetConditionAbsolute,
|
14334
15519
|
RuleSetRule,
|
@@ -14367,6 +15552,8 @@ declare namespace exports {
|
|
14367
15552
|
StatsModuleTraceDependency,
|
14368
15553
|
StatsModuleTraceItem,
|
14369
15554
|
StatsProfile,
|
15555
|
+
InputFileSystem,
|
15556
|
+
OutputFileSystem,
|
14370
15557
|
LoaderModule,
|
14371
15558
|
RawLoaderDefinition,
|
14372
15559
|
LoaderDefinition,
|