webpack 5.99.9 → 5.100.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/webpack.js +8 -2
- package/hot/log.js +15 -15
- package/hot/poll.js +1 -0
- package/lib/APIPlugin.js +3 -3
- package/lib/AbstractMethodError.js +1 -0
- package/lib/AutomaticPrefetchPlugin.js +1 -0
- package/lib/BannerPlugin.js +1 -1
- package/lib/CaseSensitiveModulesWarning.js +4 -4
- package/lib/Chunk.js +6 -6
- package/lib/ChunkGraph.js +37 -31
- package/lib/ChunkGroup.js +4 -4
- package/lib/ChunkTemplate.js +1 -1
- package/lib/CleanPlugin.js +94 -17
- package/lib/CodeGenerationResults.js +1 -1
- package/lib/CompatibilityPlugin.js +5 -2
- package/lib/Compilation.js +67 -45
- package/lib/Compiler.js +46 -16
- package/lib/ConcatenationScope.js +15 -6
- package/lib/ConstPlugin.js +5 -3
- package/lib/ContextModule.js +16 -12
- package/lib/ContextModuleFactory.js +4 -3
- package/lib/ContextReplacementPlugin.js +4 -2
- package/lib/CssModule.js +2 -2
- package/lib/DefinePlugin.js +111 -3
- package/lib/DelegatedModuleFactoryPlugin.js +18 -18
- package/lib/Dependency.js +11 -4
- package/lib/DependencyTemplate.js +1 -0
- package/lib/DllEntryPlugin.js +3 -1
- package/lib/DllPlugin.js +4 -3
- package/lib/DllReferencePlugin.js +2 -2
- package/lib/DynamicEntryPlugin.js +1 -1
- package/lib/EntryOptionPlugin.js +5 -0
- package/lib/ErrorHelpers.js +4 -4
- package/lib/EvalDevToolModulePlugin.js +3 -3
- package/lib/EvalSourceMapDevToolPlugin.js +7 -7
- package/lib/ExportsInfo.js +48 -39
- package/lib/ExternalModule.js +15 -11
- package/lib/ExternalModuleFactoryPlugin.js +5 -2
- package/lib/FileSystemInfo.js +51 -36
- package/lib/FlagDependencyExportsPlugin.js +14 -7
- package/lib/FlagDependencyUsagePlugin.js +1 -1
- package/lib/Generator.js +14 -1
- package/lib/HookWebpackError.js +1 -0
- package/lib/HotModuleReplacementPlugin.js +77 -50
- package/lib/IgnorePlugin.js +5 -2
- package/lib/InvalidDependenciesModuleWarning.js +1 -1
- package/lib/JavascriptMetaInfoPlugin.js +0 -1
- package/lib/LibManifestPlugin.js +4 -2
- package/lib/LoaderOptionsPlugin.js +6 -4
- package/lib/MainTemplate.js +2 -2
- package/lib/Module.js +21 -6
- package/lib/ModuleFactory.js +1 -0
- package/lib/ModuleGraph.js +24 -2
- package/lib/ModuleGraphConnection.js +5 -5
- package/lib/ModuleInfoHeaderPlugin.js +2 -1
- package/lib/ModuleParseError.js +1 -0
- package/lib/ModuleSourceTypesConstants.js +12 -12
- package/lib/ModuleTemplate.js +1 -1
- package/lib/ModuleTypeConstants.js +21 -21
- package/lib/MultiCompiler.js +6 -6
- package/lib/NormalModule.js +31 -44
- package/lib/NormalModuleFactory.js +34 -20
- package/lib/NormalModuleReplacementPlugin.js +1 -1
- package/lib/NullFactory.js +1 -0
- package/lib/OptimizationStages.js +1 -1
- package/lib/Parser.js +1 -0
- package/lib/ProgressPlugin.js +12 -5
- package/lib/ProvidePlugin.js +5 -1
- package/lib/RawModule.js +14 -0
- package/lib/RecordIdsPlugin.js +3 -3
- package/lib/RuntimeGlobals.js +175 -155
- package/lib/RuntimeModule.js +1 -0
- package/lib/RuntimePlugin.js +33 -7
- package/lib/RuntimeTemplate.js +111 -11
- package/lib/SourceMapDevToolModuleOptionsPlugin.js +15 -25
- package/lib/SourceMapDevToolPlugin.js +19 -17
- package/lib/Template.js +2 -2
- package/lib/TemplatedPathPlugin.js +1 -1
- package/lib/WarnDeprecatedOptionPlugin.js +7 -8
- package/lib/WatchIgnorePlugin.js +4 -3
- package/lib/WebpackIsIncludedPlugin.js +2 -1
- package/lib/WebpackOptionsApply.js +115 -27
- package/lib/asset/AssetGenerator.js +15 -11
- package/lib/asset/AssetModulesPlugin.js +19 -17
- package/lib/asset/AssetSourceGenerator.js +4 -4
- package/lib/asset/RawDataUrlModule.js +4 -2
- package/lib/async-modules/AwaitDependenciesInitFragment.js +1 -1
- package/lib/buildChunkGraph.js +6 -3
- package/lib/cache/AddBuildDependenciesPlugin.js +5 -6
- package/lib/cache/IdleFileCachePlugin.js +7 -4
- package/lib/cache/MemoryCachePlugin.js +1 -0
- package/lib/cache/MemoryWithGcCachePlugin.js +1 -0
- package/lib/cache/PackFileCacheStrategy.js +26 -20
- package/lib/cache/ResolverCachePlugin.js +16 -8
- package/lib/cli.js +15 -10
- package/lib/config/browserslistTargetHandler.js +3 -3
- package/lib/config/defaults.js +25 -17
- package/lib/config/normalization.js +2 -1
- package/lib/config/target.js +6 -5
- package/lib/container/ContainerPlugin.js +1 -1
- package/lib/container/ContainerReferencePlugin.js +1 -1
- package/lib/container/FallbackModule.js +2 -1
- package/lib/container/HoistContainerReferencesPlugin.js +1 -1
- package/lib/container/ModuleFederationPlugin.js +2 -2
- package/lib/container/RemoteModule.js +1 -1
- package/lib/css/CssGenerator.js +9 -6
- package/lib/css/CssModulesPlugin.js +44 -31
- package/lib/css/CssParser.js +6 -4
- package/lib/css/walkCssTokens.js +33 -37
- package/lib/debug/ProfilingPlugin.js +6 -6
- package/lib/dependencies/AMDDefineDependencyParserPlugin.js +8 -8
- package/lib/dependencies/AMDPlugin.js +12 -8
- package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +28 -26
- package/lib/dependencies/CachedConstDependency.js +1 -5
- package/lib/dependencies/CommonJsExportRequireDependency.js +6 -4
- package/lib/dependencies/CommonJsExportsParserPlugin.js +22 -25
- package/lib/dependencies/CommonJsFullRequireDependency.js +1 -9
- package/lib/dependencies/CommonJsImportsParserPlugin.js +100 -114
- package/lib/dependencies/CommonJsPlugin.js +15 -16
- package/lib/dependencies/ContextDependencyHelpers.js +2 -1
- package/lib/dependencies/ContextDependencyTemplateAsId.js +1 -0
- package/lib/dependencies/ContextDependencyTemplateAsRequireCall.js +1 -0
- package/lib/dependencies/CssIcssExportDependency.js +1 -1
- package/lib/dependencies/CssLocalIdentifierDependency.js +2 -2
- package/lib/dependencies/CssSelfLocalIdentifierDependency.js +2 -1
- package/lib/dependencies/DynamicExports.js +9 -9
- package/lib/dependencies/ExportsInfoDependency.js +1 -1
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +122 -101
- package/lib/dependencies/HarmonyExportExpressionDependency.js +1 -1
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +95 -19
- package/lib/dependencies/HarmonyExportInitFragment.js +1 -1
- package/lib/dependencies/HarmonyImportDependency.js +11 -5
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +238 -162
- package/lib/dependencies/HarmonyImportSideEffectDependency.js +4 -1
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +20 -9
- package/lib/dependencies/HarmonyModulesPlugin.js +23 -12
- package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +1 -0
- package/lib/dependencies/ImportMetaContextPlugin.js +2 -1
- package/lib/dependencies/ImportMetaPlugin.js +2 -2
- package/lib/dependencies/ImportParserPlugin.js +40 -9
- package/lib/dependencies/ImportPlugin.js +3 -1
- package/lib/dependencies/LoaderPlugin.js +1 -0
- package/lib/dependencies/ModuleDependency.js +3 -1
- package/lib/dependencies/ModuleDependencyTemplateAsRequireId.js +1 -0
- package/lib/dependencies/RequireContextPlugin.js +3 -1
- package/lib/dependencies/RequireEnsurePlugin.js +6 -6
- package/lib/dependencies/RequireIncludeDependencyParserPlugin.js +33 -34
- package/lib/dependencies/RequireIncludePlugin.js +1 -0
- package/lib/dependencies/RuntimeRequirementsDependency.js +1 -1
- package/lib/dependencies/SystemPlugin.js +1 -1
- package/lib/dependencies/URLContextDependency.js +65 -0
- package/lib/dependencies/URLPlugin.js +17 -157
- package/lib/dependencies/WorkerPlugin.js +23 -10
- package/lib/dependencies/processExportInfo.js +2 -1
- package/lib/esm/ModuleChunkFormatPlugin.js +269 -185
- package/lib/esm/ModuleChunkLoadingPlugin.js +39 -1
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +70 -3
- package/lib/hmr/HotModuleReplacement.runtime.js +0 -1
- package/lib/hmr/HotModuleReplacementRuntimeModule.js +1 -1
- package/lib/hmr/JavascriptHotModuleReplacementHelper.js +37 -0
- package/lib/hmr/LazyCompilationPlugin.js +4 -2
- package/lib/hmr/lazyCompilationBackend.js +4 -2
- package/lib/ids/ChunkModuleIdRangePlugin.js +6 -3
- package/lib/ids/DeterministicChunkIdsPlugin.js +30 -35
- package/lib/ids/DeterministicModuleIdsPlugin.js +4 -3
- package/lib/ids/HashedModuleIdsPlugin.js +5 -4
- package/lib/ids/IdHelpers.js +21 -17
- package/lib/ids/NamedChunkIdsPlugin.js +5 -5
- package/lib/ids/NamedModuleIdsPlugin.js +4 -4
- package/lib/ids/NaturalChunkIdsPlugin.js +2 -1
- package/lib/ids/NaturalModuleIdsPlugin.js +1 -1
- package/lib/ids/OccurrenceChunkIdsPlugin.js +3 -2
- package/lib/ids/OccurrenceModuleIdsPlugin.js +1 -1
- package/lib/ids/SyncModuleIdsPlugin.js +1 -1
- package/lib/index.js +13 -3
- package/lib/javascript/ArrayPushCallbackChunkFormatPlugin.js +113 -119
- package/lib/javascript/BasicEvaluatedExpression.js +2 -1
- package/lib/javascript/ChunkHelpers.js +1 -0
- package/lib/javascript/CommonJsChunkFormatPlugin.js +121 -136
- package/lib/javascript/EnableChunkLoadingPlugin.js +6 -3
- package/lib/javascript/JavascriptGenerator.js +14 -2
- package/lib/javascript/JavascriptModulesPlugin.js +68 -27
- package/lib/javascript/JavascriptParser.js +117 -76
- package/lib/javascript/JavascriptParserHelpers.js +41 -41
- package/lib/javascript/StartupHelpers.js +17 -17
- package/lib/json/JsonGenerator.js +4 -2
- package/lib/json/JsonModulesPlugin.js +2 -2
- package/lib/json/JsonParser.js +1 -1
- package/lib/library/AbstractLibraryPlugin.js +6 -2
- package/lib/library/AssignLibraryPlugin.js +21 -6
- package/lib/library/EnableLibraryPlugin.js +23 -3
- package/lib/library/UmdLibraryPlugin.js +15 -6
- package/lib/logging/createConsoleLogger.js +3 -3
- package/lib/logging/runtime.js +9 -9
- package/lib/node/ReadFileChunkLoadingRuntimeModule.js +4 -22
- package/lib/node/RequireChunkLoadingRuntimeModule.js +4 -22
- package/lib/node/nodeConsole.js +4 -2
- package/lib/optimize/AggressiveMergingPlugin.js +45 -46
- package/lib/optimize/AggressiveSplittingPlugin.js +13 -12
- package/lib/optimize/ConcatenatedModule.js +227 -57
- package/lib/optimize/EnsureChunkConditionsPlugin.js +58 -58
- package/lib/optimize/FlagIncludedChunksPlugin.js +3 -1
- package/lib/optimize/InnerGraph.js +115 -112
- package/lib/optimize/InnerGraphPlugin.js +2 -2
- package/lib/optimize/LimitChunkCountPlugin.js +4 -2
- package/lib/optimize/MangleExportsPlugin.js +4 -3
- package/lib/optimize/MergeDuplicateChunksPlugin.js +80 -81
- package/lib/optimize/MinChunkSizePlugin.js +6 -3
- package/lib/optimize/ModuleConcatenationPlugin.js +31 -22
- package/lib/optimize/RealContentHashPlugin.js +26 -20
- package/lib/optimize/RemoveEmptyChunksPlugin.js +2 -1
- package/lib/optimize/RemoveParentModulesPlugin.js +1 -0
- package/lib/optimize/SideEffectsFlagPlugin.js +3 -2
- package/lib/optimize/SplitChunksPlugin.js +16 -13
- package/lib/rules/BasicEffectRulePlugin.js +4 -2
- package/lib/rules/BasicMatcherRulePlugin.js +3 -1
- package/lib/rules/ObjectMatcherRulePlugin.js +3 -1
- package/lib/rules/RuleSetCompiler.js +19 -5
- package/lib/rules/UseEffectRulePlugin.js +17 -9
- package/lib/runtime/AsyncModuleRuntimeModule.js +64 -9
- package/lib/runtime/CreateFakeNamespaceObjectRuntimeModule.js +1 -1
- package/lib/runtime/MakeDeferredNamespaceObjectRuntime.js +214 -0
- package/lib/runtime/RuntimeIdRuntimeModule.js +2 -1
- package/lib/runtime/StartupChunkDependenciesRuntimeModule.js +8 -7
- package/lib/schemes/FileUriPlugin.js +1 -1
- package/lib/schemes/HttpUriPlugin.js +27 -19
- package/lib/schemes/VirtualUrlPlugin.js +222 -0
- package/lib/serialization/AggregateErrorSerializer.js +1 -1
- package/lib/serialization/BinaryMiddleware.js +5 -4
- package/lib/serialization/FileMiddleware.js +7 -4
- package/lib/serialization/ObjectMiddleware.js +14 -8
- package/lib/serialization/Serializer.js +5 -3
- package/lib/serialization/SerializerMiddleware.js +2 -0
- package/lib/sharing/ConsumeSharedModule.js +1 -1
- package/lib/sharing/ConsumeSharedPlugin.js +3 -3
- package/lib/sharing/ConsumeSharedRuntimeModule.js +2 -2
- package/lib/sharing/ProvideSharedModule.js +1 -1
- package/lib/sharing/ProvideSharedPlugin.js +3 -2
- package/lib/sharing/SharePlugin.js +2 -1
- package/lib/sharing/ShareRuntimeModule.js +3 -5
- package/lib/sharing/utils.js +34 -34
- package/lib/stats/DefaultStatsFactoryPlugin.js +49 -46
- package/lib/stats/DefaultStatsPresetPlugin.js +13 -13
- package/lib/stats/DefaultStatsPrinterPlugin.js +15 -9
- package/lib/stats/StatsFactory.js +6 -3
- package/lib/stats/StatsPrinter.js +6 -7
- package/lib/url/URLParserPlugin.js +266 -0
- package/lib/util/ArrayQueue.js +1 -1
- package/lib/util/AsyncQueue.js +1 -1
- package/lib/util/Hash.js +2 -0
- package/lib/util/IterableHelpers.js +1 -1
- package/lib/util/LazyBucketSortedSet.js +2 -1
- package/lib/util/LazySet.js +11 -6
- package/lib/util/ParallelismFactorCalculator.js +1 -1
- package/lib/util/SetHelpers.js +3 -3
- package/lib/util/SortableSet.js +2 -2
- package/lib/util/StackedCacheMap.js +3 -1
- package/lib/util/StackedMap.js +2 -2
- package/lib/util/StringXor.js +1 -0
- package/lib/util/TupleSet.js +1 -0
- package/lib/util/URLAbsoluteSpecifier.js +1 -1
- package/lib/util/cleverMerge.js +95 -58
- package/lib/util/comparators.js +154 -127
- package/lib/util/compileBooleanMatcher.js +8 -3
- package/lib/util/concatenate.js +8 -7
- package/lib/util/conventions.js +72 -73
- package/lib/util/create-schema-validation.js +2 -1
- package/lib/util/createHash.js +10 -4
- package/lib/util/deprecation.js +69 -66
- package/lib/util/deterministicGrouping.js +4 -2
- package/lib/util/extractUrlAndGlobal.js +1 -1
- package/lib/util/findGraphRoots.js +2 -2
- package/lib/util/fs.js +30 -23
- package/lib/util/hash/md4.js +2 -2
- package/lib/util/hash/wasm-hash.js +4 -2
- package/lib/util/identifier.js +13 -12
- package/lib/util/internalSerializables.js +2 -0
- package/lib/util/magicComment.js +5 -5
- package/lib/util/processAsyncTree.js +1 -1
- package/lib/util/propertyAccess.js +1 -1
- package/lib/util/propertyName.js +1 -1
- package/lib/util/registerExternalSerializer.js +1 -2
- package/lib/util/removeBOM.js +1 -1
- package/lib/util/runtime.js +29 -21
- package/lib/util/semver.js +1 -1
- package/lib/util/serialization.js +3 -0
- package/lib/util/source.js +3 -2
- package/lib/validateSchema.js +1 -0
- package/lib/wasm/EnableWasmLoadingPlugin.js +6 -3
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +4 -1
- package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +46 -49
- package/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +2 -2
- package/lib/wasm-sync/WebAssemblyGenerator.js +2 -3
- package/lib/wasm-sync/WebAssemblyInInitialChunkError.js +3 -2
- package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +3 -0
- package/lib/wasm-sync/WebAssemblyUtils.js +1 -1
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +4 -22
- package/lib/webpack.js +4 -5
- package/lib/webworker/ImportScriptsChunkLoadingPlugin.js +1 -0
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +6 -24
- package/lib/webworker/WebWorkerTemplatePlugin.js +1 -0
- package/package.json +119 -113
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +17 -0
- package/schemas/plugins/schemes/VirtualUrlPlugin.check.d.ts +7 -0
- package/schemas/plugins/schemes/VirtualUrlPlugin.check.js +6 -0
- package/schemas/plugins/schemes/VirtualUrlPlugin.json +77 -0
- package/types.d.ts +1243 -409
package/types.d.ts
CHANGED
|
@@ -252,20 +252,6 @@ declare interface ArgumentConfig {
|
|
|
252
252
|
type: "string" | "number" | "boolean" | "path" | "enum" | "RegExp" | "reset";
|
|
253
253
|
values?: EnumValue[];
|
|
254
254
|
}
|
|
255
|
-
type ArrayBufferLike = ArrayBuffer | SharedArrayBuffer;
|
|
256
|
-
type ArrayBufferView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =
|
|
257
|
-
| Uint8Array
|
|
258
|
-
| Uint8ClampedArray
|
|
259
|
-
| Uint16Array
|
|
260
|
-
| Uint32Array
|
|
261
|
-
| Int8Array
|
|
262
|
-
| Int16Array
|
|
263
|
-
| Int32Array
|
|
264
|
-
| BigUint64Array
|
|
265
|
-
| BigInt64Array
|
|
266
|
-
| Float32Array
|
|
267
|
-
| Float64Array
|
|
268
|
-
| DataView;
|
|
269
255
|
declare interface Asset {
|
|
270
256
|
/**
|
|
271
257
|
* the filename of the asset
|
|
@@ -529,16 +515,59 @@ declare interface BannerPluginOptions {
|
|
|
529
515
|
test?: string | RegExp | Rule[];
|
|
530
516
|
}
|
|
531
517
|
declare interface BaseResolveRequest {
|
|
518
|
+
/**
|
|
519
|
+
* path
|
|
520
|
+
*/
|
|
532
521
|
path: string | false;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* content
|
|
525
|
+
*/
|
|
533
526
|
context?: object;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* description file path
|
|
530
|
+
*/
|
|
534
531
|
descriptionFilePath?: string;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* description file root
|
|
535
|
+
*/
|
|
535
536
|
descriptionFileRoot?: string;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* description file data
|
|
540
|
+
*/
|
|
536
541
|
descriptionFileData?: JsonObjectTypes;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* relative path
|
|
545
|
+
*/
|
|
537
546
|
relativePath?: string;
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* true when need to ignore symlinks, otherwise false
|
|
550
|
+
*/
|
|
538
551
|
ignoreSymlinks?: boolean;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* true when full specified, otherwise false
|
|
555
|
+
*/
|
|
539
556
|
fullySpecified?: boolean;
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* inner request for internal usage
|
|
560
|
+
*/
|
|
540
561
|
__innerRequest?: string;
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* inner request for internal usage
|
|
565
|
+
*/
|
|
541
566
|
__innerRequest_request?: string;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* inner relative path for internal usage
|
|
570
|
+
*/
|
|
542
571
|
__innerRequest_relativePath?: string;
|
|
543
572
|
}
|
|
544
573
|
declare abstract class BasicEvaluatedExpression {
|
|
@@ -895,6 +924,46 @@ type BufferEncoding =
|
|
|
895
924
|
| "binary"
|
|
896
925
|
| "hex";
|
|
897
926
|
type BufferEncodingOption = "buffer" | { encoding: "buffer" };
|
|
927
|
+
declare interface BufferEntry {
|
|
928
|
+
map?: null | RawSourceMap;
|
|
929
|
+
bufferedMap?: null | BufferedMap;
|
|
930
|
+
}
|
|
931
|
+
declare interface BufferedMap {
|
|
932
|
+
/**
|
|
933
|
+
* version
|
|
934
|
+
*/
|
|
935
|
+
version: number;
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* sources
|
|
939
|
+
*/
|
|
940
|
+
sources: string[];
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* name
|
|
944
|
+
*/
|
|
945
|
+
names: string[];
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* source root
|
|
949
|
+
*/
|
|
950
|
+
sourceRoot?: string;
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* sources content
|
|
954
|
+
*/
|
|
955
|
+
sourcesContent?: ("" | Buffer)[];
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* mappings
|
|
959
|
+
*/
|
|
960
|
+
mappings?: Buffer;
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* file
|
|
964
|
+
*/
|
|
965
|
+
file: string;
|
|
966
|
+
}
|
|
898
967
|
type BuildInfo = KnownBuildInfo & Record<string, any>;
|
|
899
968
|
type BuildMeta = KnownBuildMeta & Record<string, any>;
|
|
900
969
|
declare abstract class ByTypeGenerator extends Generator {
|
|
@@ -906,7 +975,7 @@ declare abstract class ByTypeGenerator extends Generator {
|
|
|
906
975
|
) => null | Source;
|
|
907
976
|
}
|
|
908
977
|
declare const CIRCULAR_CONNECTION: unique symbol;
|
|
909
|
-
declare class
|
|
978
|
+
declare class CacheClass {
|
|
910
979
|
constructor();
|
|
911
980
|
hooks: {
|
|
912
981
|
get: AsyncSeriesBailHook<
|
|
@@ -1014,12 +1083,64 @@ declare interface CacheGroupsContext {
|
|
|
1014
1083
|
chunkGraph: ChunkGraph;
|
|
1015
1084
|
}
|
|
1016
1085
|
type CacheOptionsNormalized = false | FileCacheOptions | MemoryCacheOptions;
|
|
1086
|
+
declare interface CacheTypes {
|
|
1087
|
+
[index: string]: undefined | ResolveRequest | ResolveRequest[];
|
|
1088
|
+
}
|
|
1089
|
+
declare interface CachedData {
|
|
1090
|
+
/**
|
|
1091
|
+
* source
|
|
1092
|
+
*/
|
|
1093
|
+
source?: boolean;
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* buffer
|
|
1097
|
+
*/
|
|
1098
|
+
buffer: Buffer;
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* size
|
|
1102
|
+
*/
|
|
1103
|
+
size?: number;
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* maps
|
|
1107
|
+
*/
|
|
1108
|
+
maps: Map<string, BufferEntry>;
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* hash
|
|
1112
|
+
*/
|
|
1113
|
+
hash?: (string | Buffer)[];
|
|
1114
|
+
}
|
|
1017
1115
|
declare class CachedSource extends Source {
|
|
1018
|
-
constructor(source: Source);
|
|
1019
|
-
|
|
1020
|
-
original(): Source;
|
|
1116
|
+
constructor(source: Source | (() => Source), cachedData?: CachedData);
|
|
1117
|
+
getCachedData(): CachedData;
|
|
1021
1118
|
originalLazy(): Source | (() => Source);
|
|
1022
|
-
|
|
1119
|
+
original(): Source;
|
|
1120
|
+
streamChunks(
|
|
1121
|
+
options: StreamChunksOptions,
|
|
1122
|
+
onChunk: (
|
|
1123
|
+
chunk: undefined | string,
|
|
1124
|
+
generatedLine: number,
|
|
1125
|
+
generatedColumn: number,
|
|
1126
|
+
sourceIndex: number,
|
|
1127
|
+
originalLine: number,
|
|
1128
|
+
originalColumn: number,
|
|
1129
|
+
nameIndex: number
|
|
1130
|
+
) => void,
|
|
1131
|
+
onSource: (
|
|
1132
|
+
sourceIndex: number,
|
|
1133
|
+
source: null | string,
|
|
1134
|
+
sourceContent?: string
|
|
1135
|
+
) => void,
|
|
1136
|
+
onName: (nameIndex: number, name: string) => void
|
|
1137
|
+
): GeneratedSourceInfo;
|
|
1138
|
+
}
|
|
1139
|
+
declare interface CalculatedStringResult {
|
|
1140
|
+
range?: [number, number];
|
|
1141
|
+
value: string;
|
|
1142
|
+
code: boolean;
|
|
1143
|
+
conditional: false | CalculatedStringResult[];
|
|
1023
1144
|
}
|
|
1024
1145
|
type CallExpression = SimpleCallExpression | NewExpression;
|
|
1025
1146
|
declare interface CallExpressionInfo {
|
|
@@ -1444,12 +1565,19 @@ declare interface ChunkHashContext {
|
|
|
1444
1565
|
*/
|
|
1445
1566
|
chunkGraph: ChunkGraph;
|
|
1446
1567
|
}
|
|
1568
|
+
declare interface ChunkHashes {
|
|
1569
|
+
[index: number]: string;
|
|
1570
|
+
[index: string]: string;
|
|
1571
|
+
}
|
|
1447
1572
|
type ChunkId = string | number;
|
|
1448
1573
|
declare interface ChunkMaps {
|
|
1449
1574
|
hash: Record<string | number, string>;
|
|
1450
1575
|
contentHash: Record<string | number, Record<string, string>>;
|
|
1451
1576
|
name: Record<string | number, string>;
|
|
1452
1577
|
}
|
|
1578
|
+
declare interface ChunkModuleHashes {
|
|
1579
|
+
[index: string]: string;
|
|
1580
|
+
}
|
|
1453
1581
|
declare class ChunkModuleIdRangePlugin {
|
|
1454
1582
|
constructor(options: ChunkModuleIdRangePluginOptions);
|
|
1455
1583
|
options: ChunkModuleIdRangePluginOptions;
|
|
@@ -1480,6 +1608,10 @@ declare interface ChunkModuleIdRangePluginOptions {
|
|
|
1480
1608
|
*/
|
|
1481
1609
|
end?: number;
|
|
1482
1610
|
}
|
|
1611
|
+
declare interface ChunkModuleIds {
|
|
1612
|
+
[index: number]: ModuleId[];
|
|
1613
|
+
[index: string]: ModuleId[];
|
|
1614
|
+
}
|
|
1483
1615
|
declare interface ChunkModuleMaps {
|
|
1484
1616
|
id: Record<string | number, (string | number)[]>;
|
|
1485
1617
|
hash: Record<string | number, string>;
|
|
@@ -1564,6 +1696,10 @@ declare interface ChunkRenderContextJavascriptModulesPlugin {
|
|
|
1564
1696
|
*/
|
|
1565
1697
|
strictMode?: boolean;
|
|
1566
1698
|
}
|
|
1699
|
+
declare interface ChunkRuntime {
|
|
1700
|
+
[index: number]: string;
|
|
1701
|
+
[index: string]: string;
|
|
1702
|
+
}
|
|
1567
1703
|
declare interface ChunkSizeOptions {
|
|
1568
1704
|
/**
|
|
1569
1705
|
* constant overhead for a chunk
|
|
@@ -1973,7 +2109,7 @@ declare class Compilation {
|
|
|
1973
2109
|
statsFactory: SyncHook<[StatsFactory, NormalizedStatsOptions]>;
|
|
1974
2110
|
statsPrinter: SyncHook<[StatsPrinter, NormalizedStatsOptions]>;
|
|
1975
2111
|
get normalModuleLoader(): SyncHook<
|
|
1976
|
-
[
|
|
2112
|
+
[LoaderContextObject<any>, NormalModule]
|
|
1977
2113
|
>;
|
|
1978
2114
|
}>;
|
|
1979
2115
|
name?: string;
|
|
@@ -2461,7 +2597,7 @@ declare class Compiler {
|
|
|
2461
2597
|
watchFileSystem: null | WatchFileSystem;
|
|
2462
2598
|
recordsInputPath: null | string;
|
|
2463
2599
|
recordsOutputPath: null | string;
|
|
2464
|
-
records:
|
|
2600
|
+
records: Records;
|
|
2465
2601
|
managedPaths: Set<string | RegExp>;
|
|
2466
2602
|
unmanagedPaths: Set<string | RegExp>;
|
|
2467
2603
|
immutablePaths: Set<string | RegExp>;
|
|
@@ -2480,7 +2616,7 @@ declare class Compiler {
|
|
|
2480
2616
|
options: WebpackOptionsNormalized;
|
|
2481
2617
|
context: string;
|
|
2482
2618
|
requestShortener: RequestShortener;
|
|
2483
|
-
cache:
|
|
2619
|
+
cache: CacheClass;
|
|
2484
2620
|
moduleMemCaches?: Map<Module, ModuleMemCachesItem>;
|
|
2485
2621
|
compilerPath: string;
|
|
2486
2622
|
running: boolean;
|
|
@@ -2524,11 +2660,30 @@ declare class Compiler {
|
|
|
2524
2660
|
close(callback: RunCallback<void>): void;
|
|
2525
2661
|
}
|
|
2526
2662
|
declare class ConcatSource extends Source {
|
|
2527
|
-
constructor(...args:
|
|
2663
|
+
constructor(...args: ConcatSourceChild[]);
|
|
2528
2664
|
getChildren(): Source[];
|
|
2529
|
-
add(item:
|
|
2530
|
-
addAllSkipOptimizing(items:
|
|
2665
|
+
add(item: ConcatSourceChild): void;
|
|
2666
|
+
addAllSkipOptimizing(items: ConcatSourceChild[]): void;
|
|
2667
|
+
streamChunks(
|
|
2668
|
+
options: StreamChunksOptions,
|
|
2669
|
+
onChunk: (
|
|
2670
|
+
chunk: undefined | string,
|
|
2671
|
+
generatedLine: number,
|
|
2672
|
+
generatedColumn: number,
|
|
2673
|
+
sourceIndex: number,
|
|
2674
|
+
originalLine: number,
|
|
2675
|
+
originalColumn: number,
|
|
2676
|
+
nameIndex: number
|
|
2677
|
+
) => void,
|
|
2678
|
+
onSource: (
|
|
2679
|
+
sourceIndex: number,
|
|
2680
|
+
source: null | string,
|
|
2681
|
+
sourceContent?: string
|
|
2682
|
+
) => void,
|
|
2683
|
+
onName: (nameIndex: number, name: string) => void
|
|
2684
|
+
): GeneratedSourceInfo;
|
|
2531
2685
|
}
|
|
2686
|
+
type ConcatSourceChild = string | Source | SourceLike;
|
|
2532
2687
|
declare interface ConcatenatedModuleInfo {
|
|
2533
2688
|
type: "concatenated";
|
|
2534
2689
|
module: Module;
|
|
@@ -2545,11 +2700,35 @@ declare interface ConcatenatedModuleInfo {
|
|
|
2545
2700
|
rawExportMap?: Map<string, string>;
|
|
2546
2701
|
namespaceExportSymbol?: string;
|
|
2547
2702
|
namespaceObjectName?: string;
|
|
2703
|
+
|
|
2704
|
+
/**
|
|
2705
|
+
* "default-with-named" namespace
|
|
2706
|
+
*/
|
|
2548
2707
|
interopNamespaceObjectUsed: boolean;
|
|
2708
|
+
|
|
2709
|
+
/**
|
|
2710
|
+
* "default-with-named" namespace
|
|
2711
|
+
*/
|
|
2549
2712
|
interopNamespaceObjectName?: string;
|
|
2713
|
+
|
|
2714
|
+
/**
|
|
2715
|
+
* "default-only" namespace
|
|
2716
|
+
*/
|
|
2550
2717
|
interopNamespaceObject2Used: boolean;
|
|
2718
|
+
|
|
2719
|
+
/**
|
|
2720
|
+
* "default-only" namespace
|
|
2721
|
+
*/
|
|
2551
2722
|
interopNamespaceObject2Name?: string;
|
|
2723
|
+
|
|
2724
|
+
/**
|
|
2725
|
+
* runtime namespace object that detects "__esModule"
|
|
2726
|
+
*/
|
|
2552
2727
|
interopDefaultAccessUsed: boolean;
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* runtime namespace object that detects "__esModule"
|
|
2731
|
+
*/
|
|
2553
2732
|
interopDefaultAccessName?: string;
|
|
2554
2733
|
}
|
|
2555
2734
|
declare interface ConcatenationBailoutReasonContext {
|
|
@@ -2838,8 +3017,8 @@ declare interface Configuration {
|
|
|
2838
3017
|
}
|
|
2839
3018
|
type ConnectionState =
|
|
2840
3019
|
| boolean
|
|
2841
|
-
| typeof
|
|
2842
|
-
| typeof
|
|
3020
|
+
| typeof CIRCULAR_CONNECTION
|
|
3021
|
+
| typeof TRANSITIVE_ONLY;
|
|
2843
3022
|
declare class ConstDependency extends NullDependency {
|
|
2844
3023
|
constructor(
|
|
2845
3024
|
expression: string,
|
|
@@ -3293,7 +3472,7 @@ declare abstract class CssModule extends NormalModule {
|
|
|
3293
3472
|
cssLayer: CssLayer;
|
|
3294
3473
|
supports: Supports;
|
|
3295
3474
|
media: Media;
|
|
3296
|
-
inheritance
|
|
3475
|
+
inheritance?: [CssLayer, Supports, Media][];
|
|
3297
3476
|
}
|
|
3298
3477
|
|
|
3299
3478
|
/**
|
|
@@ -3463,7 +3642,8 @@ declare interface DependenciesBlockLike {
|
|
|
3463
3642
|
declare class Dependency {
|
|
3464
3643
|
constructor();
|
|
3465
3644
|
weak: boolean;
|
|
3466
|
-
|
|
3645
|
+
defer?: boolean;
|
|
3646
|
+
optional?: boolean;
|
|
3467
3647
|
get type(): string;
|
|
3468
3648
|
get category(): string;
|
|
3469
3649
|
loc: DependencyLocation;
|
|
@@ -3685,16 +3865,59 @@ declare interface DeterministicModuleIdsPluginOptions {
|
|
|
3685
3865
|
failOnConflict?: boolean;
|
|
3686
3866
|
}
|
|
3687
3867
|
type DevtoolModuleFilenameTemplate = string | ((context?: any) => string);
|
|
3688
|
-
declare interface Dirent {
|
|
3868
|
+
declare interface Dirent<T extends string | Buffer = string> {
|
|
3869
|
+
/**
|
|
3870
|
+
* true when is file, otherwise false
|
|
3871
|
+
*/
|
|
3689
3872
|
isFile: () => boolean;
|
|
3873
|
+
|
|
3874
|
+
/**
|
|
3875
|
+
* true when is directory, otherwise false
|
|
3876
|
+
*/
|
|
3690
3877
|
isDirectory: () => boolean;
|
|
3878
|
+
|
|
3879
|
+
/**
|
|
3880
|
+
* true when is block device, otherwise false
|
|
3881
|
+
*/
|
|
3691
3882
|
isBlockDevice: () => boolean;
|
|
3883
|
+
|
|
3884
|
+
/**
|
|
3885
|
+
* true when is character device, otherwise false
|
|
3886
|
+
*/
|
|
3692
3887
|
isCharacterDevice: () => boolean;
|
|
3888
|
+
|
|
3889
|
+
/**
|
|
3890
|
+
* true when is symbolic link, otherwise false
|
|
3891
|
+
*/
|
|
3693
3892
|
isSymbolicLink: () => boolean;
|
|
3893
|
+
|
|
3894
|
+
/**
|
|
3895
|
+
* true when is FIFO, otherwise false
|
|
3896
|
+
*/
|
|
3694
3897
|
isFIFO: () => boolean;
|
|
3898
|
+
|
|
3899
|
+
/**
|
|
3900
|
+
* true when is socket, otherwise false
|
|
3901
|
+
*/
|
|
3695
3902
|
isSocket: () => boolean;
|
|
3696
|
-
|
|
3697
|
-
|
|
3903
|
+
|
|
3904
|
+
/**
|
|
3905
|
+
* name
|
|
3906
|
+
*/
|
|
3907
|
+
name: T;
|
|
3908
|
+
|
|
3909
|
+
/**
|
|
3910
|
+
* path
|
|
3911
|
+
*/
|
|
3912
|
+
parentPath: string;
|
|
3913
|
+
|
|
3914
|
+
/**
|
|
3915
|
+
* path
|
|
3916
|
+
*/
|
|
3917
|
+
path?: string;
|
|
3918
|
+
}
|
|
3919
|
+
declare interface Disposable {
|
|
3920
|
+
[Symbol.dispose](): void;
|
|
3698
3921
|
}
|
|
3699
3922
|
declare class DllPlugin {
|
|
3700
3923
|
constructor(options: DllPluginOptions);
|
|
@@ -3920,7 +4143,8 @@ declare class DynamicEntryPlugin {
|
|
|
3920
4143
|
*/
|
|
3921
4144
|
apply(compiler: Compiler): void;
|
|
3922
4145
|
}
|
|
3923
|
-
|
|
4146
|
+
type Effect = EffectUse | EffectBasic;
|
|
4147
|
+
declare interface EffectBasic {
|
|
3924
4148
|
type: string;
|
|
3925
4149
|
value: any;
|
|
3926
4150
|
}
|
|
@@ -3938,6 +4162,15 @@ declare interface EffectData {
|
|
|
3938
4162
|
issuer: string;
|
|
3939
4163
|
issuerLayer: string;
|
|
3940
4164
|
}
|
|
4165
|
+
declare interface EffectUse {
|
|
4166
|
+
type: EffectUseType;
|
|
4167
|
+
value: {
|
|
4168
|
+
loader: string;
|
|
4169
|
+
options?: null | string | Record<string, any>;
|
|
4170
|
+
ident?: string;
|
|
4171
|
+
};
|
|
4172
|
+
}
|
|
4173
|
+
type EffectUseType = "use" | "use-pre" | "use-post";
|
|
3941
4174
|
declare class ElectronTargetPlugin {
|
|
3942
4175
|
constructor(context?: "main" | "preload" | "renderer");
|
|
3943
4176
|
|
|
@@ -4492,6 +4725,11 @@ declare interface ExperimentsExtra {
|
|
|
4492
4725
|
*/
|
|
4493
4726
|
css?: boolean;
|
|
4494
4727
|
|
|
4728
|
+
/**
|
|
4729
|
+
* Enable experimental tc39 proposal https://github.com/tc39/proposal-defer-import-eval. This allows to defer execution of a module until it's first use.
|
|
4730
|
+
*/
|
|
4731
|
+
deferImport?: boolean;
|
|
4732
|
+
|
|
4495
4733
|
/**
|
|
4496
4734
|
* Compile entrypoints and import()s only when they are accessed.
|
|
4497
4735
|
*/
|
|
@@ -4513,6 +4751,11 @@ declare interface ExperimentsNormalizedExtra {
|
|
|
4513
4751
|
*/
|
|
4514
4752
|
css?: boolean;
|
|
4515
4753
|
|
|
4754
|
+
/**
|
|
4755
|
+
* Enable experimental tc39 proposal https://github.com/tc39/proposal-defer-import-eval. This allows to defer execution of a module until it's first use.
|
|
4756
|
+
*/
|
|
4757
|
+
deferImport?: boolean;
|
|
4758
|
+
|
|
4516
4759
|
/**
|
|
4517
4760
|
* Compile entrypoints and import()s only when they are accessed.
|
|
4518
4761
|
*/
|
|
@@ -4746,6 +4989,11 @@ declare interface ExportsSpec {
|
|
|
4746
4989
|
*/
|
|
4747
4990
|
dependencies?: Module[];
|
|
4748
4991
|
}
|
|
4992
|
+
type ExportsType =
|
|
4993
|
+
| "namespace"
|
|
4994
|
+
| "default-only"
|
|
4995
|
+
| "default-with-named"
|
|
4996
|
+
| "dynamic";
|
|
4749
4997
|
type Exposes = (string | ExposesObject)[] | ExposesObject;
|
|
4750
4998
|
|
|
4751
4999
|
/**
|
|
@@ -4926,12 +5174,60 @@ declare interface ExternalModuleInfo {
|
|
|
4926
5174
|
module: Module;
|
|
4927
5175
|
runtimeCondition?: string | boolean | SortableSet<string>;
|
|
4928
5176
|
index: number;
|
|
5177
|
+
|
|
5178
|
+
/**
|
|
5179
|
+
* module.exports / harmony namespace object
|
|
5180
|
+
*/
|
|
4929
5181
|
name?: string;
|
|
5182
|
+
|
|
5183
|
+
/**
|
|
5184
|
+
* deferred module.exports / harmony namespace object
|
|
5185
|
+
*/
|
|
5186
|
+
deferredName?: string;
|
|
5187
|
+
|
|
5188
|
+
/**
|
|
5189
|
+
* the module is deferred at least once
|
|
5190
|
+
*/
|
|
5191
|
+
deferred: boolean;
|
|
5192
|
+
|
|
5193
|
+
/**
|
|
5194
|
+
* deferred namespace object that being used in a not-analyzable way so it must be materialized
|
|
5195
|
+
*/
|
|
5196
|
+
deferredNamespaceObjectUsed: boolean;
|
|
5197
|
+
|
|
5198
|
+
/**
|
|
5199
|
+
* deferred namespace object that being used in a not-analyzable way so it must be materialized
|
|
5200
|
+
*/
|
|
5201
|
+
deferredNamespaceObjectName?: string;
|
|
5202
|
+
|
|
5203
|
+
/**
|
|
5204
|
+
* "default-with-named" namespace
|
|
5205
|
+
*/
|
|
4930
5206
|
interopNamespaceObjectUsed: boolean;
|
|
5207
|
+
|
|
5208
|
+
/**
|
|
5209
|
+
* "default-with-named" namespace
|
|
5210
|
+
*/
|
|
4931
5211
|
interopNamespaceObjectName?: string;
|
|
5212
|
+
|
|
5213
|
+
/**
|
|
5214
|
+
* "default-only" namespace
|
|
5215
|
+
*/
|
|
4932
5216
|
interopNamespaceObject2Used: boolean;
|
|
5217
|
+
|
|
5218
|
+
/**
|
|
5219
|
+
* "default-only" namespace
|
|
5220
|
+
*/
|
|
4933
5221
|
interopNamespaceObject2Name?: string;
|
|
5222
|
+
|
|
5223
|
+
/**
|
|
5224
|
+
* runtime namespace object that detects "__esModule"
|
|
5225
|
+
*/
|
|
4934
5226
|
interopDefaultAccessUsed: boolean;
|
|
5227
|
+
|
|
5228
|
+
/**
|
|
5229
|
+
* runtime namespace object that detects "__esModule"
|
|
5230
|
+
*/
|
|
4935
5231
|
interopDefaultAccessName?: string;
|
|
4936
5232
|
}
|
|
4937
5233
|
type Externals =
|
|
@@ -5183,18 +5479,45 @@ declare interface FileCacheOptions {
|
|
|
5183
5479
|
version?: string;
|
|
5184
5480
|
}
|
|
5185
5481
|
declare interface FileSystem {
|
|
5482
|
+
/**
|
|
5483
|
+
* read file method
|
|
5484
|
+
*/
|
|
5186
5485
|
readFile: ReadFileTypes;
|
|
5486
|
+
|
|
5487
|
+
/**
|
|
5488
|
+
* readdir method
|
|
5489
|
+
*/
|
|
5187
5490
|
readdir: ReaddirTypes;
|
|
5491
|
+
|
|
5492
|
+
/**
|
|
5493
|
+
* read json method
|
|
5494
|
+
*/
|
|
5188
5495
|
readJson?: (
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5496
|
+
pathOrFileDescription: PathOrFileDescriptorTypes,
|
|
5497
|
+
callback: (
|
|
5498
|
+
err: null | Error | NodeJS.ErrnoException,
|
|
5499
|
+
result?: JsonObjectTypes
|
|
5193
5500
|
) => void
|
|
5194
5501
|
) => void;
|
|
5502
|
+
|
|
5503
|
+
/**
|
|
5504
|
+
* read link method
|
|
5505
|
+
*/
|
|
5195
5506
|
readlink: ReadlinkTypes;
|
|
5507
|
+
|
|
5508
|
+
/**
|
|
5509
|
+
* lstat method
|
|
5510
|
+
*/
|
|
5196
5511
|
lstat?: LStatTypes;
|
|
5512
|
+
|
|
5513
|
+
/**
|
|
5514
|
+
* stat method
|
|
5515
|
+
*/
|
|
5197
5516
|
stat: StatTypes;
|
|
5517
|
+
|
|
5518
|
+
/**
|
|
5519
|
+
* realpath method
|
|
5520
|
+
*/
|
|
5198
5521
|
realpath?: RealPathTypes;
|
|
5199
5522
|
}
|
|
5200
5523
|
declare abstract class FileSystemInfo {
|
|
@@ -5294,6 +5617,9 @@ type FilterItemTypes = string | RegExp | ((value: string) => boolean);
|
|
|
5294
5617
|
declare interface Flags {
|
|
5295
5618
|
[index: string]: Argument;
|
|
5296
5619
|
}
|
|
5620
|
+
declare interface FullHashChunkModuleHashes {
|
|
5621
|
+
[index: string]: string;
|
|
5622
|
+
}
|
|
5297
5623
|
declare interface GenerateContext {
|
|
5298
5624
|
/**
|
|
5299
5625
|
* mapping from dependencies to templates
|
|
@@ -5343,7 +5669,30 @@ declare interface GenerateContext {
|
|
|
5343
5669
|
/**
|
|
5344
5670
|
* get access to the code generation data
|
|
5345
5671
|
*/
|
|
5346
|
-
getData?: () =>
|
|
5672
|
+
getData?: () => GenerateContextData;
|
|
5673
|
+
}
|
|
5674
|
+
type GenerateContextData = Map<"url", { [index: string]: string }> &
|
|
5675
|
+
Map<"fullContentHash", string> &
|
|
5676
|
+
Map<"contentHash", string> &
|
|
5677
|
+
Map<"filename", string> &
|
|
5678
|
+
Map<"assetInfo", AssetInfo> &
|
|
5679
|
+
Map<"chunkInitFragments", InitFragment<GenerateContext>[]> &
|
|
5680
|
+
Record<string, any>;
|
|
5681
|
+
declare interface GeneratedSourceInfo {
|
|
5682
|
+
/**
|
|
5683
|
+
* generated line
|
|
5684
|
+
*/
|
|
5685
|
+
generatedLine?: number;
|
|
5686
|
+
|
|
5687
|
+
/**
|
|
5688
|
+
* generated column
|
|
5689
|
+
*/
|
|
5690
|
+
generatedColumn?: number;
|
|
5691
|
+
|
|
5692
|
+
/**
|
|
5693
|
+
* source
|
|
5694
|
+
*/
|
|
5695
|
+
source?: string;
|
|
5347
5696
|
}
|
|
5348
5697
|
declare class Generator {
|
|
5349
5698
|
constructor();
|
|
@@ -5595,6 +5944,17 @@ declare class Hash {
|
|
|
5595
5944
|
digest(encoding?: string): string | Buffer;
|
|
5596
5945
|
}
|
|
5597
5946
|
type HashFunction = string | typeof Hash;
|
|
5947
|
+
declare interface HashLike {
|
|
5948
|
+
/**
|
|
5949
|
+
* make hash update
|
|
5950
|
+
*/
|
|
5951
|
+
update: (data: string | Buffer, inputEncoding?: string) => HashLike;
|
|
5952
|
+
|
|
5953
|
+
/**
|
|
5954
|
+
* get hash digest
|
|
5955
|
+
*/
|
|
5956
|
+
digest: (encoding?: string) => string | Buffer;
|
|
5957
|
+
}
|
|
5598
5958
|
declare interface HashableObject {
|
|
5599
5959
|
updateHash: (hash: Hash) => void;
|
|
5600
5960
|
}
|
|
@@ -5793,6 +6153,7 @@ type ImportAttribute = BaseNode & {
|
|
|
5793
6153
|
type ImportAttributes = Record<string, string> & {};
|
|
5794
6154
|
type ImportDeclarationJavascriptParser = ImportDeclarationImport & {
|
|
5795
6155
|
attributes?: ImportAttribute[];
|
|
6156
|
+
phase?: "defer";
|
|
5796
6157
|
};
|
|
5797
6158
|
declare interface ImportDependencyMeta {
|
|
5798
6159
|
attributes?: ImportAttributes;
|
|
@@ -5828,6 +6189,7 @@ type ImportExpressionJavascriptParser = ImportExpressionImport & {
|
|
|
5828
6189
|
| ThisExpression
|
|
5829
6190
|
| UpdateExpression
|
|
5830
6191
|
| YieldExpression;
|
|
6192
|
+
phase?: "defer";
|
|
5831
6193
|
};
|
|
5832
6194
|
declare interface ImportModuleOptions {
|
|
5833
6195
|
/**
|
|
@@ -5979,7 +6341,7 @@ declare interface IntermediateFileSystemExtras {
|
|
|
5979
6341
|
| WriteStreamOptions
|
|
5980
6342
|
) => NodeJS.WritableStream;
|
|
5981
6343
|
open: Open;
|
|
5982
|
-
read: Read<ArrayBufferView
|
|
6344
|
+
read: Read<NodeJS.ArrayBufferView>;
|
|
5983
6345
|
close: (
|
|
5984
6346
|
df: number,
|
|
5985
6347
|
callback: (err: null | NodeJS.ErrnoException) => void
|
|
@@ -6009,6 +6371,12 @@ declare abstract class ItemCacheFacade {
|
|
|
6009
6371
|
): void;
|
|
6010
6372
|
providePromise<T>(computer: () => T | Promise<T>): Promise<T>;
|
|
6011
6373
|
}
|
|
6374
|
+
declare interface IteratorObject<T, TReturn = unknown, TNext = unknown>
|
|
6375
|
+
extends Iterator<T, TReturn, TNext>,
|
|
6376
|
+
Disposable {
|
|
6377
|
+
[Symbol.iterator](): IteratorObject<T, TReturn, TNext>;
|
|
6378
|
+
[Symbol.dispose](): void;
|
|
6379
|
+
}
|
|
6012
6380
|
declare class JavascriptModulesPlugin {
|
|
6013
6381
|
constructor(options?: object);
|
|
6014
6382
|
options: object;
|
|
@@ -6403,10 +6771,11 @@ declare class JavascriptParser extends Parser {
|
|
|
6403
6771
|
boolean | void
|
|
6404
6772
|
>;
|
|
6405
6773
|
declarator: SyncBailHook<[VariableDeclarator, Statement], boolean | void>;
|
|
6406
|
-
varDeclaration: HookMap<SyncBailHook<[
|
|
6407
|
-
varDeclarationLet: HookMap<SyncBailHook<[
|
|
6408
|
-
varDeclarationConst: HookMap<SyncBailHook<[
|
|
6409
|
-
|
|
6774
|
+
varDeclaration: HookMap<SyncBailHook<[Identifier], boolean | void>>;
|
|
6775
|
+
varDeclarationLet: HookMap<SyncBailHook<[Identifier], boolean | void>>;
|
|
6776
|
+
varDeclarationConst: HookMap<SyncBailHook<[Identifier], boolean | void>>;
|
|
6777
|
+
varDeclarationUsing: HookMap<SyncBailHook<[Identifier], boolean | void>>;
|
|
6778
|
+
varDeclarationVar: HookMap<SyncBailHook<[Identifier], boolean | void>>;
|
|
6410
6779
|
pattern: HookMap<SyncBailHook<[Identifier], boolean | void>>;
|
|
6411
6780
|
canRename: HookMap<SyncBailHook<[Expression], boolean | void>>;
|
|
6412
6781
|
rename: HookMap<SyncBailHook<[Expression], boolean | void>>;
|
|
@@ -6815,7 +7184,7 @@ declare class JavascriptParser extends Parser {
|
|
|
6815
7184
|
*/
|
|
6816
7185
|
walkNestedStatement(statement: Statement): void;
|
|
6817
7186
|
preWalkBlockStatement(statement: BlockStatement): void;
|
|
6818
|
-
walkBlockStatement(statement: BlockStatement): void;
|
|
7187
|
+
walkBlockStatement(statement: BlockStatement | StaticBlock): void;
|
|
6819
7188
|
walkExpressionStatement(statement: ExpressionStatement): void;
|
|
6820
7189
|
preWalkIfStatement(statement: IfStatement): void;
|
|
6821
7190
|
walkIfStatement(statement: IfStatement): void;
|
|
@@ -7059,7 +7428,7 @@ declare class JavascriptParser extends Parser {
|
|
|
7059
7428
|
name: string,
|
|
7060
7429
|
rootInfo: string | VariableInfo | ScopeInfo,
|
|
7061
7430
|
getMembers: () => string[]
|
|
7062
|
-
) =>
|
|
7431
|
+
) => R),
|
|
7063
7432
|
defined: undefined | ((result?: string) => undefined | R),
|
|
7064
7433
|
...args: AsArray<T>
|
|
7065
7434
|
): undefined | R;
|
|
@@ -7076,7 +7445,7 @@ declare class JavascriptParser extends Parser {
|
|
|
7076
7445
|
callHooksForInfoWithFallback<T, R>(
|
|
7077
7446
|
hookMap: HookMap<SyncBailHook<T, R>>,
|
|
7078
7447
|
info: ExportedVariableInfo,
|
|
7079
|
-
fallback: undefined | ((name: string) =>
|
|
7448
|
+
fallback: undefined | ((name: string) => undefined | R),
|
|
7080
7449
|
defined: undefined | ((result?: string) => any),
|
|
7081
7450
|
...args: AsArray<T>
|
|
7082
7451
|
): undefined | R;
|
|
@@ -7224,12 +7593,7 @@ declare class JavascriptParser extends Parser {
|
|
|
7224
7593
|
| Super
|
|
7225
7594
|
): BasicEvaluatedExpression;
|
|
7226
7595
|
parseString(expression: Expression): string;
|
|
7227
|
-
parseCalculatedString(expression: Expression):
|
|
7228
|
-
range?: [number, number];
|
|
7229
|
-
value: string;
|
|
7230
|
-
code: boolean;
|
|
7231
|
-
conditional: any;
|
|
7232
|
-
};
|
|
7596
|
+
parseCalculatedString(expression: Expression): CalculatedStringResult;
|
|
7233
7597
|
evaluate(source: string): BasicEvaluatedExpression;
|
|
7234
7598
|
isPure(
|
|
7235
7599
|
expr:
|
|
@@ -7396,8 +7760,9 @@ declare class JavascriptParser extends Parser {
|
|
|
7396
7760
|
getMembers: () => string[];
|
|
7397
7761
|
};
|
|
7398
7762
|
static ALLOWED_MEMBER_TYPES_ALL: 3;
|
|
7399
|
-
static ALLOWED_MEMBER_TYPES_EXPRESSION: 2;
|
|
7400
7763
|
static ALLOWED_MEMBER_TYPES_CALL_EXPRESSION: 1;
|
|
7764
|
+
static ALLOWED_MEMBER_TYPES_EXPRESSION: 2;
|
|
7765
|
+
static VariableInfo: typeof VariableInfo;
|
|
7401
7766
|
static getImportAttributes: (
|
|
7402
7767
|
node:
|
|
7403
7768
|
| ImportDeclarationJavascriptParser
|
|
@@ -7405,7 +7770,6 @@ declare class JavascriptParser extends Parser {
|
|
|
7405
7770
|
| ExportAllDeclarationJavascriptParser
|
|
7406
7771
|
| ImportExpressionJavascriptParser
|
|
7407
7772
|
) => undefined | ImportAttributes;
|
|
7408
|
-
static VariableInfo: typeof VariableInfo;
|
|
7409
7773
|
}
|
|
7410
7774
|
|
|
7411
7775
|
/**
|
|
@@ -7459,6 +7823,11 @@ declare interface JavascriptParserOptions {
|
|
|
7459
7823
|
*/
|
|
7460
7824
|
dynamicImportPreload?: number | boolean;
|
|
7461
7825
|
|
|
7826
|
+
/**
|
|
7827
|
+
* Enable/disable parsing of dynamic URL.
|
|
7828
|
+
*/
|
|
7829
|
+
dynamicUrl?: boolean;
|
|
7830
|
+
|
|
7462
7831
|
/**
|
|
7463
7832
|
* Specifies the behavior of invalid export names in "import ... from ..." and "export ... from ...".
|
|
7464
7833
|
*/
|
|
@@ -7604,6 +7973,17 @@ declare interface JavascriptParserOptions {
|
|
|
7604
7973
|
*/
|
|
7605
7974
|
wrappedContextRegExp?: RegExp;
|
|
7606
7975
|
}
|
|
7976
|
+
declare abstract class JsonData {
|
|
7977
|
+
get():
|
|
7978
|
+
| undefined
|
|
7979
|
+
| null
|
|
7980
|
+
| string
|
|
7981
|
+
| number
|
|
7982
|
+
| boolean
|
|
7983
|
+
| JsonObjectFs
|
|
7984
|
+
| JsonValueFs[];
|
|
7985
|
+
updateHash(hash: Hash): void;
|
|
7986
|
+
}
|
|
7607
7987
|
|
|
7608
7988
|
/**
|
|
7609
7989
|
* Generator options for json modules.
|
|
@@ -7827,6 +8207,11 @@ declare interface KnownBuildInfo {
|
|
|
7827
8207
|
*/
|
|
7828
8208
|
assets?: Record<string, Source>;
|
|
7829
8209
|
|
|
8210
|
+
/**
|
|
8211
|
+
* using in NormalModule
|
|
8212
|
+
*/
|
|
8213
|
+
assetsInfo?: Map<string, undefined | AssetInfo>;
|
|
8214
|
+
|
|
7830
8215
|
/**
|
|
7831
8216
|
* using in NormalModule
|
|
7832
8217
|
*/
|
|
@@ -7850,17 +8235,37 @@ declare interface KnownBuildInfo {
|
|
|
7850
8235
|
/**
|
|
7851
8236
|
* for assets modules
|
|
7852
8237
|
*/
|
|
7853
|
-
|
|
8238
|
+
dataUrl?: boolean;
|
|
7854
8239
|
|
|
7855
8240
|
/**
|
|
7856
8241
|
* for assets modules
|
|
7857
8242
|
*/
|
|
7858
|
-
|
|
8243
|
+
assetInfo?: AssetInfo;
|
|
7859
8244
|
|
|
7860
8245
|
/**
|
|
7861
|
-
* for
|
|
8246
|
+
* for external modules
|
|
7862
8247
|
*/
|
|
7863
|
-
|
|
8248
|
+
javascriptModule?: boolean;
|
|
8249
|
+
|
|
8250
|
+
/**
|
|
8251
|
+
* for lazy compilation modules
|
|
8252
|
+
*/
|
|
8253
|
+
active?: boolean;
|
|
8254
|
+
|
|
8255
|
+
/**
|
|
8256
|
+
* for css modules
|
|
8257
|
+
*/
|
|
8258
|
+
cssData?: CssData;
|
|
8259
|
+
|
|
8260
|
+
/**
|
|
8261
|
+
* for json modules
|
|
8262
|
+
*/
|
|
8263
|
+
jsonData?: JsonData;
|
|
8264
|
+
|
|
8265
|
+
/**
|
|
8266
|
+
* top level declaration names
|
|
8267
|
+
*/
|
|
8268
|
+
topLevelDeclarations?: Set<string>;
|
|
7864
8269
|
}
|
|
7865
8270
|
declare interface KnownBuildMeta {
|
|
7866
8271
|
exportsType?: "namespace" | "dynamic" | "default" | "flagged";
|
|
@@ -7870,11 +8275,15 @@ declare interface KnownBuildMeta {
|
|
|
7870
8275
|
sideEffectFree?: boolean;
|
|
7871
8276
|
exportsFinalName?: Record<string, string>;
|
|
7872
8277
|
isCSSModule?: boolean;
|
|
8278
|
+
jsIncompatibleExports?: Record<string, string>;
|
|
7873
8279
|
}
|
|
7874
8280
|
declare interface KnownCreateStatsOptionsContext {
|
|
7875
8281
|
forToString?: boolean;
|
|
7876
8282
|
}
|
|
7877
8283
|
declare interface KnownHooks {
|
|
8284
|
+
/**
|
|
8285
|
+
* resolve step hook
|
|
8286
|
+
*/
|
|
7878
8287
|
resolveStep: SyncHook<
|
|
7879
8288
|
[
|
|
7880
8289
|
AsyncSeriesBailHook<
|
|
@@ -7884,11 +8293,23 @@ declare interface KnownHooks {
|
|
|
7884
8293
|
ResolveRequest
|
|
7885
8294
|
]
|
|
7886
8295
|
>;
|
|
8296
|
+
|
|
8297
|
+
/**
|
|
8298
|
+
* no resolve hook
|
|
8299
|
+
*/
|
|
7887
8300
|
noResolve: SyncHook<[ResolveRequest, Error]>;
|
|
8301
|
+
|
|
8302
|
+
/**
|
|
8303
|
+
* resolve hook
|
|
8304
|
+
*/
|
|
7888
8305
|
resolve: AsyncSeriesBailHook<
|
|
7889
8306
|
[ResolveRequest, ResolveContext],
|
|
7890
8307
|
null | ResolveRequest
|
|
7891
8308
|
>;
|
|
8309
|
+
|
|
8310
|
+
/**
|
|
8311
|
+
* result hook
|
|
8312
|
+
*/
|
|
7892
8313
|
result: AsyncSeriesHook<[ResolveRequest, ResolveContext]>;
|
|
7893
8314
|
}
|
|
7894
8315
|
declare interface KnownNormalizedStatsOptions {
|
|
@@ -7934,6 +8355,18 @@ declare interface KnownNormalizedStatsOptions {
|
|
|
7934
8355
|
loggingDebug: ((value: string) => boolean)[];
|
|
7935
8356
|
loggingTrace: boolean;
|
|
7936
8357
|
}
|
|
8358
|
+
declare interface KnownRecords {
|
|
8359
|
+
aggressiveSplits?: SplitData[];
|
|
8360
|
+
chunks?: RecordsChunks;
|
|
8361
|
+
modules?: RecordsModules;
|
|
8362
|
+
hash?: string;
|
|
8363
|
+
hotIndex?: number;
|
|
8364
|
+
fullHashChunkModuleHashes?: FullHashChunkModuleHashes;
|
|
8365
|
+
chunkModuleHashes?: ChunkModuleHashes;
|
|
8366
|
+
chunkHashes?: ChunkHashes;
|
|
8367
|
+
chunkRuntime?: ChunkRuntime;
|
|
8368
|
+
chunkModuleIds?: ChunkModuleIds;
|
|
8369
|
+
}
|
|
7937
8370
|
declare interface KnownStatsAsset {
|
|
7938
8371
|
type: string;
|
|
7939
8372
|
name: string;
|
|
@@ -8249,24 +8682,24 @@ declare interface LStatSync {
|
|
|
8249
8682
|
declare interface LStatTypes {
|
|
8250
8683
|
(
|
|
8251
8684
|
path: PathLikeTypes,
|
|
8252
|
-
callback: (
|
|
8685
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void
|
|
8253
8686
|
): void;
|
|
8254
8687
|
(
|
|
8255
8688
|
path: PathLikeTypes,
|
|
8256
8689
|
options: undefined | (StatOptions & { bigint?: false }),
|
|
8257
|
-
callback: (
|
|
8690
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void
|
|
8258
8691
|
): void;
|
|
8259
8692
|
(
|
|
8260
8693
|
path: PathLikeTypes,
|
|
8261
8694
|
options: StatOptions & { bigint: true },
|
|
8262
|
-
callback: (
|
|
8695
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IBigIntStats) => void
|
|
8263
8696
|
): void;
|
|
8264
8697
|
(
|
|
8265
8698
|
path: PathLikeTypes,
|
|
8266
8699
|
options: undefined | StatOptions,
|
|
8267
8700
|
callback: (
|
|
8268
|
-
|
|
8269
|
-
|
|
8701
|
+
err: null | NodeJS.ErrnoException,
|
|
8702
|
+
result?: IStats | IBigIntStats
|
|
8270
8703
|
) => void
|
|
8271
8704
|
): void;
|
|
8272
8705
|
}
|
|
@@ -8350,16 +8783,16 @@ declare class LazySet<T> {
|
|
|
8350
8783
|
addAll(iterable: LazySet<T> | Iterable<T>): LazySet<T>;
|
|
8351
8784
|
clear(): void;
|
|
8352
8785
|
delete(value: T): boolean;
|
|
8353
|
-
entries():
|
|
8786
|
+
entries(): SetIterator<[T, T]>;
|
|
8354
8787
|
forEach<K>(
|
|
8355
8788
|
callbackFn: (value: T, value2: T, set: Set<T>) => void,
|
|
8356
8789
|
thisArg: K
|
|
8357
8790
|
): void;
|
|
8358
8791
|
has(item: T): boolean;
|
|
8359
|
-
keys():
|
|
8360
|
-
values():
|
|
8792
|
+
keys(): SetIterator<T>;
|
|
8793
|
+
values(): SetIterator<T>;
|
|
8361
8794
|
serialize(__0: ObjectSerializerContext): void;
|
|
8362
|
-
[Symbol.iterator]():
|
|
8795
|
+
[Symbol.iterator](): SetIterator<T>;
|
|
8363
8796
|
static deserialize<T>(__0: ObjectDeserializerContext): LazySet<T>;
|
|
8364
8797
|
}
|
|
8365
8798
|
declare interface LibIdentOptions {
|
|
@@ -8584,7 +9017,7 @@ type LoaderContextDeclarationsIndex<OptionsType> =
|
|
|
8584
9017
|
LoaderRunnerLoaderContext<OptionsType> &
|
|
8585
9018
|
LoaderPluginLoaderContext &
|
|
8586
9019
|
HotModuleReplacementPluginLoaderContext;
|
|
8587
|
-
type
|
|
9020
|
+
type LoaderContextObject<T> = NormalModuleLoaderContext<T> &
|
|
8588
9021
|
LoaderRunnerLoaderContext<T> &
|
|
8589
9022
|
LoaderPluginLoaderContext &
|
|
8590
9023
|
HotModuleReplacementPluginLoaderContext;
|
|
@@ -8606,7 +9039,7 @@ declare interface LoaderDefinitionFunction<
|
|
|
8606
9039
|
HotModuleReplacementPluginLoaderContext &
|
|
8607
9040
|
ContextAdditions,
|
|
8608
9041
|
content: string,
|
|
8609
|
-
sourceMap?: string |
|
|
9042
|
+
sourceMap?: string | RawSourceMap,
|
|
8610
9043
|
additionalData?: AdditionalData
|
|
8611
9044
|
): string | void | Buffer | Promise<string | Buffer>;
|
|
8612
9045
|
}
|
|
@@ -8707,7 +9140,7 @@ declare interface LoaderRunnerLoaderContext<OptionsType> {
|
|
|
8707
9140
|
async(): (
|
|
8708
9141
|
err?: null | Error,
|
|
8709
9142
|
content?: string | Buffer,
|
|
8710
|
-
sourceMap?: null | string |
|
|
9143
|
+
sourceMap?: null | string | RawSourceMap,
|
|
8711
9144
|
additionalData?: AdditionalData
|
|
8712
9145
|
) => void;
|
|
8713
9146
|
|
|
@@ -8721,7 +9154,7 @@ declare interface LoaderRunnerLoaderContext<OptionsType> {
|
|
|
8721
9154
|
callback: (
|
|
8722
9155
|
err?: null | Error,
|
|
8723
9156
|
content?: string | Buffer,
|
|
8724
|
-
sourceMap?: null | string |
|
|
9157
|
+
sourceMap?: null | string | RawSourceMap,
|
|
8725
9158
|
additionalData?: AdditionalData
|
|
8726
9159
|
) => void;
|
|
8727
9160
|
|
|
@@ -9005,7 +9438,14 @@ declare interface MakeDirectoryOptions {
|
|
|
9005
9438
|
mode?: string | number;
|
|
9006
9439
|
}
|
|
9007
9440
|
declare interface MapOptions {
|
|
9441
|
+
/**
|
|
9442
|
+
* need columns?
|
|
9443
|
+
*/
|
|
9008
9444
|
columns?: boolean;
|
|
9445
|
+
|
|
9446
|
+
/**
|
|
9447
|
+
* is module
|
|
9448
|
+
*/
|
|
9009
9449
|
module?: boolean;
|
|
9010
9450
|
}
|
|
9011
9451
|
declare interface MatchObject {
|
|
@@ -9163,10 +9603,7 @@ declare class Module extends DependenciesBlock {
|
|
|
9163
9603
|
isProvided(exportName: string): null | boolean;
|
|
9164
9604
|
get exportsArgument(): string;
|
|
9165
9605
|
get moduleArgument(): string;
|
|
9166
|
-
getExportsType(
|
|
9167
|
-
moduleGraph: ModuleGraph,
|
|
9168
|
-
strict?: boolean
|
|
9169
|
-
): "namespace" | "default-only" | "default-with-named" | "dynamic";
|
|
9606
|
+
getExportsType(moduleGraph: ModuleGraph, strict?: boolean): ExportsType;
|
|
9170
9607
|
addPresentationalDependency(presentationalDependency: Dependency): void;
|
|
9171
9608
|
addCodeGenerationDependency(codeGenerationDependency: Dependency): void;
|
|
9172
9609
|
addWarning(warning: WebpackError): void;
|
|
@@ -9505,6 +9942,7 @@ declare class ModuleGraph {
|
|
|
9505
9942
|
setDepth(module: Module, depth: number): void;
|
|
9506
9943
|
setDepthIfLower(module: Module, depth: number): boolean;
|
|
9507
9944
|
isAsync(module: Module): boolean;
|
|
9945
|
+
isDeferred(module: Module): boolean;
|
|
9508
9946
|
setAsync(module: Module): void;
|
|
9509
9947
|
getMeta(thing: object): any;
|
|
9510
9948
|
getMetaIfExisting(thing: object): any;
|
|
@@ -9577,12 +10015,12 @@ declare class ModuleGraphConnection {
|
|
|
9577
10015
|
getActiveState(runtime: RuntimeSpec): ConnectionState;
|
|
9578
10016
|
setActive(value: boolean): void;
|
|
9579
10017
|
active: void;
|
|
10018
|
+
static CIRCULAR_CONNECTION: typeof CIRCULAR_CONNECTION;
|
|
10019
|
+
static TRANSITIVE_ONLY: typeof TRANSITIVE_ONLY;
|
|
9580
10020
|
static addConnectionStates: (
|
|
9581
10021
|
a: ConnectionState,
|
|
9582
10022
|
b: ConnectionState
|
|
9583
10023
|
) => ConnectionState;
|
|
9584
|
-
static TRANSITIVE_ONLY: typeof TRANSITIVE_ONLY;
|
|
9585
|
-
static CIRCULAR_CONNECTION: typeof CIRCULAR_CONNECTION;
|
|
9586
10024
|
}
|
|
9587
10025
|
type ModuleId = string | number;
|
|
9588
10026
|
type ModuleInfo = ConcatenatedModuleInfo | ExternalModuleInfo;
|
|
@@ -9797,6 +10235,11 @@ declare interface ModuleReferenceOptions {
|
|
|
9797
10235
|
*/
|
|
9798
10236
|
directImport: boolean;
|
|
9799
10237
|
|
|
10238
|
+
/**
|
|
10239
|
+
* true, when this referenced export is deferred
|
|
10240
|
+
*/
|
|
10241
|
+
deferredImport: boolean;
|
|
10242
|
+
|
|
9800
10243
|
/**
|
|
9801
10244
|
* if the position is ASI safe or unknown
|
|
9802
10245
|
*/
|
|
@@ -9937,7 +10380,7 @@ declare class MultiCompiler {
|
|
|
9937
10380
|
runWithDependencies(
|
|
9938
10381
|
compilers: Compiler[],
|
|
9939
10382
|
fn: (compiler: Compiler, callback: CallbackFunction_1<MultiStats>) => any,
|
|
9940
|
-
callback: CallbackFunction_1<
|
|
10383
|
+
callback: CallbackFunction_1<Stats[]>
|
|
9941
10384
|
): void;
|
|
9942
10385
|
watch(
|
|
9943
10386
|
watchOptions: WatchOptions | WatchOptions[],
|
|
@@ -10127,17 +10570,17 @@ declare class NormalModule extends Module {
|
|
|
10127
10570
|
context: string,
|
|
10128
10571
|
name: string,
|
|
10129
10572
|
content: string | Buffer,
|
|
10130
|
-
sourceMap?: string |
|
|
10573
|
+
sourceMap?: string | RawSourceMap,
|
|
10131
10574
|
associatedObjectForCache?: object
|
|
10132
10575
|
): Source;
|
|
10133
10576
|
getCurrentLoader(
|
|
10134
|
-
loaderContext:
|
|
10577
|
+
loaderContext: LoaderContextObject<any>,
|
|
10135
10578
|
index?: number
|
|
10136
10579
|
): null | LoaderItem;
|
|
10137
10580
|
createSource(
|
|
10138
10581
|
context: string,
|
|
10139
10582
|
content: string | Buffer,
|
|
10140
|
-
sourceMap?: null | string |
|
|
10583
|
+
sourceMap?: null | string | RawSourceMap,
|
|
10141
10584
|
associatedObjectForCache?: object
|
|
10142
10585
|
): Source;
|
|
10143
10586
|
markModuleAsErrored(error: WebpackError): void;
|
|
@@ -10157,9 +10600,9 @@ declare class NormalModule extends Module {
|
|
|
10157
10600
|
static deserialize(context: ObjectDeserializerContext): NormalModule;
|
|
10158
10601
|
}
|
|
10159
10602
|
declare interface NormalModuleCompilationHooks {
|
|
10160
|
-
loader: SyncHook<[
|
|
10603
|
+
loader: SyncHook<[LoaderContextObject<any>, NormalModule]>;
|
|
10161
10604
|
beforeLoaders: SyncHook<
|
|
10162
|
-
[LoaderItem[], NormalModule,
|
|
10605
|
+
[LoaderItem[], NormalModule, LoaderContextObject<any>]
|
|
10163
10606
|
>;
|
|
10164
10607
|
beforeParse: SyncHook<[NormalModule]>;
|
|
10165
10608
|
beforeSnapshot: SyncHook<[NormalModule]>;
|
|
@@ -10169,13 +10612,17 @@ declare interface NormalModuleCompilationHooks {
|
|
|
10169
10612
|
>
|
|
10170
10613
|
>;
|
|
10171
10614
|
readResource: HookMap<
|
|
10172
|
-
AsyncSeriesBailHook<
|
|
10173
|
-
[LoaderContextNormalModule<any>],
|
|
10174
|
-
null | string | Buffer
|
|
10175
|
-
>
|
|
10615
|
+
AsyncSeriesBailHook<[LoaderContextObject<any>], null | string | Buffer>
|
|
10176
10616
|
>;
|
|
10177
10617
|
processResult: SyncWaterfallHook<
|
|
10178
|
-
[
|
|
10618
|
+
[
|
|
10619
|
+
[
|
|
10620
|
+
string | Buffer,
|
|
10621
|
+
undefined | string | RawSourceMap,
|
|
10622
|
+
undefined | PreparsedAst
|
|
10623
|
+
],
|
|
10624
|
+
NormalModule
|
|
10625
|
+
]
|
|
10179
10626
|
>;
|
|
10180
10627
|
needBuild: AsyncSeriesBailHook<[NormalModule, NeedBuildContext], boolean>;
|
|
10181
10628
|
}
|
|
@@ -10188,7 +10635,7 @@ declare interface NormalModuleCreateData {
|
|
|
10188
10635
|
/**
|
|
10189
10636
|
* module type. When deserializing, this is set to an empty string "".
|
|
10190
10637
|
*/
|
|
10191
|
-
type:
|
|
10638
|
+
type: string;
|
|
10192
10639
|
|
|
10193
10640
|
/**
|
|
10194
10641
|
* request string
|
|
@@ -10287,7 +10734,15 @@ declare abstract class NormalModuleFactory extends ModuleFactory {
|
|
|
10287
10734
|
SyncBailHook<[GeneratorOptions], void | Generator>
|
|
10288
10735
|
>;
|
|
10289
10736
|
generator: HookMap<SyncBailHook<[any, GeneratorOptions], void>>;
|
|
10290
|
-
createModuleClass: HookMap<
|
|
10737
|
+
createModuleClass: HookMap<
|
|
10738
|
+
SyncBailHook<
|
|
10739
|
+
[
|
|
10740
|
+
Partial<NormalModuleCreateData & { settings: ModuleSettings }>,
|
|
10741
|
+
ResolveData
|
|
10742
|
+
],
|
|
10743
|
+
void | Module
|
|
10744
|
+
>
|
|
10745
|
+
>;
|
|
10291
10746
|
}>;
|
|
10292
10747
|
resolverFactory: ResolverFactory;
|
|
10293
10748
|
ruleSet: RuleSet;
|
|
@@ -10451,6 +10906,9 @@ declare class NullDependency extends Dependency {
|
|
|
10451
10906
|
declare class NullDependencyTemplate extends DependencyTemplate {
|
|
10452
10907
|
constructor();
|
|
10453
10908
|
}
|
|
10909
|
+
declare interface ObjectConfiguration {
|
|
10910
|
+
[index: string]: any;
|
|
10911
|
+
}
|
|
10454
10912
|
declare interface ObjectDeserializerContext {
|
|
10455
10913
|
read: () => any;
|
|
10456
10914
|
setCircularReference: (value: ReferenceableItem) => void;
|
|
@@ -11153,8 +11611,26 @@ declare interface OriginRecord {
|
|
|
11153
11611
|
request: string;
|
|
11154
11612
|
}
|
|
11155
11613
|
declare class OriginalSource extends Source {
|
|
11156
|
-
constructor(
|
|
11614
|
+
constructor(value: string | Buffer, name: string);
|
|
11157
11615
|
getName(): string;
|
|
11616
|
+
streamChunks(
|
|
11617
|
+
options: StreamChunksOptions,
|
|
11618
|
+
onChunk: (
|
|
11619
|
+
chunk: undefined | string,
|
|
11620
|
+
generatedLine: number,
|
|
11621
|
+
generatedColumn: number,
|
|
11622
|
+
sourceIndex: number,
|
|
11623
|
+
originalLine: number,
|
|
11624
|
+
originalColumn: number,
|
|
11625
|
+
nameIndex: number
|
|
11626
|
+
) => void,
|
|
11627
|
+
onSource: (
|
|
11628
|
+
sourceIndex: number,
|
|
11629
|
+
source: null | string,
|
|
11630
|
+
sourceContent?: string
|
|
11631
|
+
) => void,
|
|
11632
|
+
_onName: (nameIndex: number, name: string) => void
|
|
11633
|
+
): GeneratedSourceInfo;
|
|
11158
11634
|
}
|
|
11159
11635
|
|
|
11160
11636
|
/**
|
|
@@ -11727,12 +12203,39 @@ declare interface ParameterizedComparator<TArg extends object, T> {
|
|
|
11727
12203
|
(tArg: TArg): Comparator<T>;
|
|
11728
12204
|
}
|
|
11729
12205
|
declare interface ParsedIdentifier {
|
|
12206
|
+
/**
|
|
12207
|
+
* request
|
|
12208
|
+
*/
|
|
11730
12209
|
request: string;
|
|
12210
|
+
|
|
12211
|
+
/**
|
|
12212
|
+
* query
|
|
12213
|
+
*/
|
|
11731
12214
|
query: string;
|
|
12215
|
+
|
|
12216
|
+
/**
|
|
12217
|
+
* fragment
|
|
12218
|
+
*/
|
|
11732
12219
|
fragment: string;
|
|
12220
|
+
|
|
12221
|
+
/**
|
|
12222
|
+
* is directory
|
|
12223
|
+
*/
|
|
11733
12224
|
directory: boolean;
|
|
12225
|
+
|
|
12226
|
+
/**
|
|
12227
|
+
* is module
|
|
12228
|
+
*/
|
|
11734
12229
|
module: boolean;
|
|
12230
|
+
|
|
12231
|
+
/**
|
|
12232
|
+
* is file
|
|
12233
|
+
*/
|
|
11735
12234
|
file: boolean;
|
|
12235
|
+
|
|
12236
|
+
/**
|
|
12237
|
+
* is internal
|
|
12238
|
+
*/
|
|
11736
12239
|
internal: boolean;
|
|
11737
12240
|
}
|
|
11738
12241
|
declare class Parser {
|
|
@@ -11945,13 +12448,16 @@ type Plugin =
|
|
|
11945
12448
|
| false
|
|
11946
12449
|
| ""
|
|
11947
12450
|
| 0
|
|
11948
|
-
| { apply: (
|
|
11949
|
-
| ((this: Resolver,
|
|
12451
|
+
| { apply: (this: Resolver, resolver: Resolver) => void }
|
|
12452
|
+
| ((this: Resolver, resolver: Resolver) => void);
|
|
11950
12453
|
declare interface PnpApi {
|
|
12454
|
+
/**
|
|
12455
|
+
* resolve to unqualified
|
|
12456
|
+
*/
|
|
11951
12457
|
resolveToUnqualified: (
|
|
11952
|
-
|
|
11953
|
-
|
|
11954
|
-
|
|
12458
|
+
packageName: string,
|
|
12459
|
+
issuer: string,
|
|
12460
|
+
options: { considerBuiltins: boolean }
|
|
11955
12461
|
) => null | string;
|
|
11956
12462
|
}
|
|
11957
12463
|
declare class PrefetchPlugin {
|
|
@@ -11965,9 +12471,27 @@ declare class PrefetchPlugin {
|
|
|
11965
12471
|
apply(compiler: Compiler): void;
|
|
11966
12472
|
}
|
|
11967
12473
|
declare class PrefixSource extends Source {
|
|
11968
|
-
constructor(prefix: string, source: string | Source);
|
|
11969
|
-
original(): Source;
|
|
12474
|
+
constructor(prefix: string, source: string | Source | Buffer);
|
|
11970
12475
|
getPrefix(): string;
|
|
12476
|
+
original(): Source;
|
|
12477
|
+
streamChunks(
|
|
12478
|
+
options: StreamChunksOptions,
|
|
12479
|
+
onChunk: (
|
|
12480
|
+
chunk: undefined | string,
|
|
12481
|
+
generatedLine: number,
|
|
12482
|
+
generatedColumn: number,
|
|
12483
|
+
sourceIndex: number,
|
|
12484
|
+
originalLine: number,
|
|
12485
|
+
originalColumn: number,
|
|
12486
|
+
nameIndex: number
|
|
12487
|
+
) => void,
|
|
12488
|
+
onSource: (
|
|
12489
|
+
sourceIndex: number,
|
|
12490
|
+
source: null | string,
|
|
12491
|
+
sourceContent?: string
|
|
12492
|
+
) => void,
|
|
12493
|
+
onName: (nameIndex: number, name: string) => void
|
|
12494
|
+
): GeneratedSourceInfo;
|
|
11971
12495
|
}
|
|
11972
12496
|
declare interface PreparsedAst {
|
|
11973
12497
|
[index: string]: any;
|
|
@@ -12185,26 +12709,80 @@ declare interface RawLoaderDefinitionFunction<
|
|
|
12185
12709
|
HotModuleReplacementPluginLoaderContext &
|
|
12186
12710
|
ContextAdditions,
|
|
12187
12711
|
content: Buffer,
|
|
12188
|
-
sourceMap?: string |
|
|
12712
|
+
sourceMap?: string | RawSourceMap,
|
|
12189
12713
|
additionalData?: AdditionalData
|
|
12190
12714
|
): string | void | Buffer | Promise<string | Buffer>;
|
|
12191
12715
|
}
|
|
12192
12716
|
declare class RawSource extends Source {
|
|
12193
|
-
constructor(
|
|
12717
|
+
constructor(value: string | Buffer, convertToString?: boolean);
|
|
12194
12718
|
isBuffer(): boolean;
|
|
12719
|
+
streamChunks(
|
|
12720
|
+
options: StreamChunksOptions,
|
|
12721
|
+
onChunk: (
|
|
12722
|
+
chunk: undefined | string,
|
|
12723
|
+
generatedLine: number,
|
|
12724
|
+
generatedColumn: number,
|
|
12725
|
+
sourceIndex: number,
|
|
12726
|
+
originalLine: number,
|
|
12727
|
+
originalColumn: number,
|
|
12728
|
+
nameIndex: number
|
|
12729
|
+
) => void,
|
|
12730
|
+
onSource: (
|
|
12731
|
+
sourceIndex: number,
|
|
12732
|
+
source: null | string,
|
|
12733
|
+
sourceContent?: string
|
|
12734
|
+
) => void,
|
|
12735
|
+
onName: (nameIndex: number, name: string) => void
|
|
12736
|
+
): GeneratedSourceInfo;
|
|
12195
12737
|
}
|
|
12196
12738
|
declare interface RawSourceMap {
|
|
12739
|
+
/**
|
|
12740
|
+
* version
|
|
12741
|
+
*/
|
|
12197
12742
|
version: number;
|
|
12743
|
+
|
|
12744
|
+
/**
|
|
12745
|
+
* sources
|
|
12746
|
+
*/
|
|
12198
12747
|
sources: string[];
|
|
12748
|
+
|
|
12749
|
+
/**
|
|
12750
|
+
* names
|
|
12751
|
+
*/
|
|
12199
12752
|
names: string[];
|
|
12753
|
+
|
|
12754
|
+
/**
|
|
12755
|
+
* source root
|
|
12756
|
+
*/
|
|
12200
12757
|
sourceRoot?: string;
|
|
12758
|
+
|
|
12759
|
+
/**
|
|
12760
|
+
* sources content
|
|
12761
|
+
*/
|
|
12201
12762
|
sourcesContent?: string[];
|
|
12763
|
+
|
|
12764
|
+
/**
|
|
12765
|
+
* mappings
|
|
12766
|
+
*/
|
|
12202
12767
|
mappings: string;
|
|
12768
|
+
|
|
12769
|
+
/**
|
|
12770
|
+
* file
|
|
12771
|
+
*/
|
|
12203
12772
|
file: string;
|
|
12773
|
+
|
|
12774
|
+
/**
|
|
12775
|
+
* debug id
|
|
12776
|
+
*/
|
|
12777
|
+
debugId?: string;
|
|
12778
|
+
|
|
12779
|
+
/**
|
|
12780
|
+
* ignore list
|
|
12781
|
+
*/
|
|
12782
|
+
ignoreList?: number[];
|
|
12204
12783
|
}
|
|
12205
12784
|
declare interface Read<
|
|
12206
|
-
TBuffer extends
|
|
12207
|
-
ArrayBufferView<ArrayBufferLike> = ArrayBufferView<ArrayBufferLike>
|
|
12785
|
+
TBuffer extends NodeJS.ArrayBufferView = NodeJS.ArrayBufferView
|
|
12208
12786
|
> {
|
|
12209
12787
|
(
|
|
12210
12788
|
fd: number,
|
|
@@ -12232,13 +12810,11 @@ declare interface Read<
|
|
|
12232
12810
|
callback: (
|
|
12233
12811
|
err: null | NodeJS.ErrnoException,
|
|
12234
12812
|
bytesRead: number,
|
|
12235
|
-
buffer: ArrayBufferView
|
|
12813
|
+
buffer: NodeJS.ArrayBufferView
|
|
12236
12814
|
) => void
|
|
12237
12815
|
): void;
|
|
12238
12816
|
}
|
|
12239
|
-
declare interface ReadAsyncOptions<
|
|
12240
|
-
TBuffer extends ArrayBufferView<ArrayBufferLike>
|
|
12241
|
-
> {
|
|
12817
|
+
declare interface ReadAsyncOptions<TBuffer extends NodeJS.ArrayBufferView> {
|
|
12242
12818
|
offset?: number;
|
|
12243
12819
|
length?: number;
|
|
12244
12820
|
position?: null | number | bigint;
|
|
@@ -12381,7 +12957,7 @@ declare interface ReadFileTypes {
|
|
|
12381
12957
|
| undefined
|
|
12382
12958
|
| null
|
|
12383
12959
|
| ({ encoding?: null; flag?: string } & Abortable),
|
|
12384
|
-
callback: (
|
|
12960
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void
|
|
12385
12961
|
): void;
|
|
12386
12962
|
(
|
|
12387
12963
|
path: PathOrFileDescriptorTypes,
|
|
@@ -12399,7 +12975,7 @@ declare interface ReadFileTypes {
|
|
|
12399
12975
|
| "binary"
|
|
12400
12976
|
| "hex"
|
|
12401
12977
|
| ({ encoding: BufferEncoding; flag?: string } & Abortable),
|
|
12402
|
-
callback: (
|
|
12978
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
|
12403
12979
|
): void;
|
|
12404
12980
|
(
|
|
12405
12981
|
path: PathOrFileDescriptorTypes,
|
|
@@ -12420,13 +12996,13 @@ declare interface ReadFileTypes {
|
|
|
12420
12996
|
| "hex"
|
|
12421
12997
|
| (ObjectEncodingOptions & { flag?: string } & Abortable),
|
|
12422
12998
|
callback: (
|
|
12423
|
-
|
|
12424
|
-
|
|
12999
|
+
err: null | NodeJS.ErrnoException,
|
|
13000
|
+
result?: string | Buffer
|
|
12425
13001
|
) => void
|
|
12426
13002
|
): void;
|
|
12427
13003
|
(
|
|
12428
13004
|
path: PathOrFileDescriptorTypes,
|
|
12429
|
-
callback: (
|
|
13005
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void
|
|
12430
13006
|
): void;
|
|
12431
13007
|
}
|
|
12432
13008
|
declare interface ReaddirFs {
|
|
@@ -12465,18 +13041,14 @@ declare interface ReaddirFs {
|
|
|
12465
13041
|
withFileTypes?: false;
|
|
12466
13042
|
recursive?: boolean;
|
|
12467
13043
|
},
|
|
12468
|
-
callback: (err: null | NodeJS.ErrnoException,
|
|
13044
|
+
callback: (err: null | NodeJS.ErrnoException, files?: string[]) => void
|
|
12469
13045
|
): void;
|
|
12470
13046
|
(
|
|
12471
13047
|
path: PathLikeFs,
|
|
12472
13048
|
options:
|
|
12473
13049
|
| "buffer"
|
|
12474
13050
|
| { encoding: "buffer"; withFileTypes?: false; recursive?: boolean },
|
|
12475
|
-
callback: (err: null | NodeJS.ErrnoException,
|
|
12476
|
-
): void;
|
|
12477
|
-
(
|
|
12478
|
-
path: PathLikeFs,
|
|
12479
|
-
callback: (err: null | NodeJS.ErrnoException, result?: string[]) => void
|
|
13051
|
+
callback: (err: null | NodeJS.ErrnoException, files?: Buffer[]) => void
|
|
12480
13052
|
): void;
|
|
12481
13053
|
(
|
|
12482
13054
|
path: PathLikeFs,
|
|
@@ -12501,16 +13073,31 @@ declare interface ReaddirFs {
|
|
|
12501
13073
|
}),
|
|
12502
13074
|
callback: (
|
|
12503
13075
|
err: null | NodeJS.ErrnoException,
|
|
12504
|
-
|
|
13076
|
+
files?: string[] | Buffer[]
|
|
12505
13077
|
) => void
|
|
12506
13078
|
): void;
|
|
13079
|
+
(
|
|
13080
|
+
path: PathLikeFs,
|
|
13081
|
+
callback: (err: null | NodeJS.ErrnoException, files?: string[]) => void
|
|
13082
|
+
): void;
|
|
12507
13083
|
(
|
|
12508
13084
|
path: PathLikeFs,
|
|
12509
13085
|
options: ObjectEncodingOptions & {
|
|
12510
13086
|
withFileTypes: true;
|
|
12511
13087
|
recursive?: boolean;
|
|
12512
13088
|
},
|
|
12513
|
-
callback: (
|
|
13089
|
+
callback: (
|
|
13090
|
+
err: null | NodeJS.ErrnoException,
|
|
13091
|
+
files?: Dirent<string>[]
|
|
13092
|
+
) => void
|
|
13093
|
+
): void;
|
|
13094
|
+
(
|
|
13095
|
+
path: PathLikeFs,
|
|
13096
|
+
options: { encoding: "buffer"; withFileTypes: true; recursive?: boolean },
|
|
13097
|
+
callback: (
|
|
13098
|
+
err: null | NodeJS.ErrnoException,
|
|
13099
|
+
files: Dirent<Buffer>[]
|
|
13100
|
+
) => void
|
|
12514
13101
|
): void;
|
|
12515
13102
|
}
|
|
12516
13103
|
declare interface ReaddirSync {
|
|
@@ -12579,7 +13166,11 @@ declare interface ReaddirSync {
|
|
|
12579
13166
|
withFileTypes: true;
|
|
12580
13167
|
recursive?: boolean;
|
|
12581
13168
|
}
|
|
12582
|
-
): Dirent[];
|
|
13169
|
+
): Dirent<string>[];
|
|
13170
|
+
(
|
|
13171
|
+
path: PathLikeFs,
|
|
13172
|
+
options: { encoding: "buffer"; withFileTypes: true; recursive?: boolean }
|
|
13173
|
+
): Dirent<Buffer>[];
|
|
12583
13174
|
}
|
|
12584
13175
|
declare interface ReaddirTypes {
|
|
12585
13176
|
(
|
|
@@ -12617,18 +13208,14 @@ declare interface ReaddirTypes {
|
|
|
12617
13208
|
withFileTypes?: false;
|
|
12618
13209
|
recursive?: boolean;
|
|
12619
13210
|
},
|
|
12620
|
-
callback: (
|
|
13211
|
+
callback: (err: null | NodeJS.ErrnoException, files?: string[]) => void
|
|
12621
13212
|
): void;
|
|
12622
13213
|
(
|
|
12623
13214
|
path: PathLikeTypes,
|
|
12624
13215
|
options:
|
|
12625
13216
|
| "buffer"
|
|
12626
13217
|
| { encoding: "buffer"; withFileTypes?: false; recursive?: boolean },
|
|
12627
|
-
callback: (
|
|
12628
|
-
): void;
|
|
12629
|
-
(
|
|
12630
|
-
path: PathLikeTypes,
|
|
12631
|
-
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string[]) => void
|
|
13218
|
+
callback: (err: null | NodeJS.ErrnoException, files?: Buffer[]) => void
|
|
12632
13219
|
): void;
|
|
12633
13220
|
(
|
|
12634
13221
|
path: PathLikeTypes,
|
|
@@ -12652,17 +13239,32 @@ declare interface ReaddirTypes {
|
|
|
12652
13239
|
recursive?: boolean;
|
|
12653
13240
|
}),
|
|
12654
13241
|
callback: (
|
|
12655
|
-
|
|
12656
|
-
|
|
13242
|
+
err: null | NodeJS.ErrnoException,
|
|
13243
|
+
files?: string[] | Buffer[]
|
|
12657
13244
|
) => void
|
|
12658
13245
|
): void;
|
|
13246
|
+
(
|
|
13247
|
+
path: PathLikeTypes,
|
|
13248
|
+
callback: (err: null | NodeJS.ErrnoException, files?: string[]) => void
|
|
13249
|
+
): void;
|
|
12659
13250
|
(
|
|
12660
13251
|
path: PathLikeTypes,
|
|
12661
13252
|
options: ObjectEncodingOptions & {
|
|
12662
13253
|
withFileTypes: true;
|
|
12663
13254
|
recursive?: boolean;
|
|
12664
13255
|
},
|
|
12665
|
-
callback: (
|
|
13256
|
+
callback: (
|
|
13257
|
+
err: null | NodeJS.ErrnoException,
|
|
13258
|
+
files?: Dirent<string>[]
|
|
13259
|
+
) => void
|
|
13260
|
+
): void;
|
|
13261
|
+
(
|
|
13262
|
+
path: PathLikeTypes,
|
|
13263
|
+
options: { encoding: "buffer"; withFileTypes: true; recursive?: boolean },
|
|
13264
|
+
callback: (
|
|
13265
|
+
err: null | NodeJS.ErrnoException,
|
|
13266
|
+
files: Dirent<Buffer>[]
|
|
13267
|
+
) => void
|
|
12666
13268
|
): void;
|
|
12667
13269
|
}
|
|
12668
13270
|
declare interface ReadlinkFs {
|
|
@@ -12698,24 +13300,24 @@ declare interface ReadlinkTypes {
|
|
|
12698
13300
|
(
|
|
12699
13301
|
path: PathLikeTypes,
|
|
12700
13302
|
options: EncodingOption,
|
|
12701
|
-
callback: (
|
|
13303
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
|
12702
13304
|
): void;
|
|
12703
13305
|
(
|
|
12704
13306
|
path: PathLikeTypes,
|
|
12705
13307
|
options: BufferEncodingOption,
|
|
12706
|
-
callback: (
|
|
13308
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void
|
|
12707
13309
|
): void;
|
|
12708
13310
|
(
|
|
12709
13311
|
path: PathLikeTypes,
|
|
12710
13312
|
options: EncodingOption,
|
|
12711
13313
|
callback: (
|
|
12712
|
-
|
|
12713
|
-
|
|
13314
|
+
err: null | NodeJS.ErrnoException,
|
|
13315
|
+
result?: string | Buffer
|
|
12714
13316
|
) => void
|
|
12715
13317
|
): void;
|
|
12716
13318
|
(
|
|
12717
13319
|
path: PathLikeTypes,
|
|
12718
|
-
callback: (
|
|
13320
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
|
12719
13321
|
): void;
|
|
12720
13322
|
}
|
|
12721
13323
|
declare class RealContentHashPlugin {
|
|
@@ -12778,28 +13380,37 @@ declare interface RealPathTypes {
|
|
|
12778
13380
|
(
|
|
12779
13381
|
path: PathLikeTypes,
|
|
12780
13382
|
options: EncodingOption,
|
|
12781
|
-
callback: (
|
|
13383
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
|
12782
13384
|
): void;
|
|
12783
13385
|
(
|
|
12784
13386
|
path: PathLikeTypes,
|
|
12785
13387
|
options: BufferEncodingOption,
|
|
12786
|
-
callback: (
|
|
13388
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void
|
|
12787
13389
|
): void;
|
|
12788
13390
|
(
|
|
12789
13391
|
path: PathLikeTypes,
|
|
12790
13392
|
options: EncodingOption,
|
|
12791
13393
|
callback: (
|
|
12792
|
-
|
|
12793
|
-
|
|
13394
|
+
err: null | NodeJS.ErrnoException,
|
|
13395
|
+
result?: string | Buffer
|
|
12794
13396
|
) => void
|
|
12795
13397
|
): void;
|
|
12796
13398
|
(
|
|
12797
13399
|
path: PathLikeTypes,
|
|
12798
|
-
callback: (
|
|
13400
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
|
12799
13401
|
): void;
|
|
12800
13402
|
}
|
|
12801
|
-
|
|
12802
|
-
[
|
|
13403
|
+
type Records = KnownRecords &
|
|
13404
|
+
Record<string, KnownRecords[]> &
|
|
13405
|
+
Record<string, any>;
|
|
13406
|
+
declare interface RecordsChunks {
|
|
13407
|
+
byName?: Record<string, number>;
|
|
13408
|
+
bySource?: Record<string, number>;
|
|
13409
|
+
usedIds?: number[];
|
|
13410
|
+
}
|
|
13411
|
+
declare interface RecordsModules {
|
|
13412
|
+
byIdentifier?: Record<string, number>;
|
|
13413
|
+
usedIds?: number[];
|
|
12803
13414
|
}
|
|
12804
13415
|
type RecursiveArrayOrRecord<T> =
|
|
12805
13416
|
| { [index: string]: RecursiveArrayOrRecord<T> }
|
|
@@ -12980,17 +13591,38 @@ declare interface RenderManifestOptions {
|
|
|
12980
13591
|
}
|
|
12981
13592
|
declare class ReplaceSource extends Source {
|
|
12982
13593
|
constructor(source: Source, name?: string);
|
|
13594
|
+
getName(): undefined | string;
|
|
13595
|
+
getReplacements(): Replacement[];
|
|
12983
13596
|
replace(start: number, end: number, newValue: string, name?: string): void;
|
|
12984
13597
|
insert(pos: number, newValue: string, name?: string): void;
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
|
|
12988
|
-
|
|
12989
|
-
|
|
12990
|
-
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
|
|
13598
|
+
original(): Source;
|
|
13599
|
+
streamChunks(
|
|
13600
|
+
options: StreamChunksOptions,
|
|
13601
|
+
onChunk: (
|
|
13602
|
+
chunk: undefined | string,
|
|
13603
|
+
generatedLine: number,
|
|
13604
|
+
generatedColumn: number,
|
|
13605
|
+
sourceIndex: number,
|
|
13606
|
+
originalLine: number,
|
|
13607
|
+
originalColumn: number,
|
|
13608
|
+
nameIndex: number
|
|
13609
|
+
) => void,
|
|
13610
|
+
onSource: (
|
|
13611
|
+
sourceIndex: number,
|
|
13612
|
+
source: null | string,
|
|
13613
|
+
sourceContent?: string
|
|
13614
|
+
) => void,
|
|
13615
|
+
onName: (nameIndex: number, name: string) => void
|
|
13616
|
+
): GeneratedSourceInfo;
|
|
13617
|
+
static Replacement: typeof Replacement;
|
|
13618
|
+
}
|
|
13619
|
+
declare class Replacement {
|
|
13620
|
+
constructor(start: number, end: number, content: string, name?: string);
|
|
13621
|
+
start: number;
|
|
13622
|
+
end: number;
|
|
13623
|
+
content: string;
|
|
13624
|
+
name?: string;
|
|
13625
|
+
index?: number;
|
|
12994
13626
|
}
|
|
12995
13627
|
declare interface RequestRecord {
|
|
12996
13628
|
[index: string]: string | string[];
|
|
@@ -13026,6 +13658,9 @@ declare interface ResolveBuildDependenciesResult {
|
|
|
13026
13658
|
resolveDependencies: ResolveDependencies;
|
|
13027
13659
|
}
|
|
13028
13660
|
declare interface ResolveContext {
|
|
13661
|
+
/**
|
|
13662
|
+
* directories that was found on file system
|
|
13663
|
+
*/
|
|
13029
13664
|
contextDependencies?: WriteOnlySet<string>;
|
|
13030
13665
|
|
|
13031
13666
|
/**
|
|
@@ -13046,12 +13681,12 @@ declare interface ResolveContext {
|
|
|
13046
13681
|
/**
|
|
13047
13682
|
* log function
|
|
13048
13683
|
*/
|
|
13049
|
-
log?: (
|
|
13684
|
+
log?: (str: string) => void;
|
|
13050
13685
|
|
|
13051
13686
|
/**
|
|
13052
13687
|
* yield result, if provided plugins can return several results
|
|
13053
13688
|
*/
|
|
13054
|
-
yield?: (
|
|
13689
|
+
yield?: (request: ResolveRequest) => void;
|
|
13055
13690
|
}
|
|
13056
13691
|
declare interface ResolveData {
|
|
13057
13692
|
contextInfo: ModuleFactoryCreateDataContextInfo;
|
|
@@ -13279,126 +13914,229 @@ declare interface ResolveOptions {
|
|
|
13279
13914
|
useSyncFileSystemCalls?: boolean;
|
|
13280
13915
|
}
|
|
13281
13916
|
declare interface ResolveOptionsResolverFactoryObject1 {
|
|
13282
|
-
alias: AliasOption[];
|
|
13283
|
-
fallback: AliasOption[];
|
|
13284
|
-
aliasFields: Set<string | string[]>;
|
|
13285
|
-
extensionAlias: ExtensionAliasOption[];
|
|
13286
|
-
cachePredicate: (arg0: ResolveRequest) => boolean;
|
|
13287
|
-
cacheWithContext: boolean;
|
|
13288
|
-
|
|
13289
|
-
/**
|
|
13290
|
-
* A list of exports field condition names.
|
|
13291
|
-
*/
|
|
13292
|
-
conditionNames: Set<string>;
|
|
13293
|
-
descriptionFiles: string[];
|
|
13294
|
-
enforceExtension: boolean;
|
|
13295
|
-
exportsFields: Set<string | string[]>;
|
|
13296
|
-
importsFields: Set<string | string[]>;
|
|
13297
|
-
extensions: Set<string>;
|
|
13298
|
-
fileSystem: FileSystem;
|
|
13299
|
-
unsafeCache: false | object;
|
|
13300
|
-
symlinks: boolean;
|
|
13301
|
-
resolver?: Resolver;
|
|
13302
|
-
modules: (string | string[])[];
|
|
13303
|
-
mainFields: { name: string[]; forceRelative: boolean }[];
|
|
13304
|
-
mainFiles: Set<string>;
|
|
13305
|
-
plugins: Plugin[];
|
|
13306
|
-
pnpApi: null | PnpApi;
|
|
13307
|
-
roots: Set<string>;
|
|
13308
|
-
fullySpecified: boolean;
|
|
13309
|
-
resolveToContext: boolean;
|
|
13310
|
-
restrictions: Set<string | RegExp>;
|
|
13311
|
-
preferRelative: boolean;
|
|
13312
|
-
preferAbsolute: boolean;
|
|
13313
|
-
}
|
|
13314
|
-
declare interface ResolveOptionsResolverFactoryObject2 {
|
|
13315
13917
|
/**
|
|
13316
|
-
*
|
|
13918
|
+
* alias
|
|
13317
13919
|
*/
|
|
13318
|
-
alias
|
|
13920
|
+
alias: AliasOption[];
|
|
13319
13921
|
|
|
13320
13922
|
/**
|
|
13321
|
-
*
|
|
13923
|
+
* fallback
|
|
13322
13924
|
*/
|
|
13323
|
-
fallback
|
|
13925
|
+
fallback: AliasOption[];
|
|
13324
13926
|
|
|
13325
13927
|
/**
|
|
13326
|
-
*
|
|
13928
|
+
* alias fields
|
|
13327
13929
|
*/
|
|
13328
|
-
|
|
13930
|
+
aliasFields: Set<string | string[]>;
|
|
13329
13931
|
|
|
13330
13932
|
/**
|
|
13331
|
-
*
|
|
13933
|
+
* extension alias
|
|
13332
13934
|
*/
|
|
13333
|
-
|
|
13935
|
+
extensionAlias: ExtensionAliasOption[];
|
|
13334
13936
|
|
|
13335
13937
|
/**
|
|
13336
|
-
*
|
|
13938
|
+
* cache predicate
|
|
13337
13939
|
*/
|
|
13338
|
-
cachePredicate
|
|
13940
|
+
cachePredicate: (predicate: ResolveRequest) => boolean;
|
|
13339
13941
|
|
|
13340
13942
|
/**
|
|
13341
|
-
*
|
|
13943
|
+
* cache with context
|
|
13342
13944
|
*/
|
|
13343
|
-
cacheWithContext
|
|
13945
|
+
cacheWithContext: boolean;
|
|
13344
13946
|
|
|
13345
13947
|
/**
|
|
13346
|
-
* A list of
|
|
13948
|
+
* A list of exports field condition names.
|
|
13347
13949
|
*/
|
|
13348
|
-
|
|
13950
|
+
conditionNames: Set<string>;
|
|
13349
13951
|
|
|
13350
13952
|
/**
|
|
13351
|
-
*
|
|
13953
|
+
* description files
|
|
13352
13954
|
*/
|
|
13353
|
-
|
|
13955
|
+
descriptionFiles: string[];
|
|
13354
13956
|
|
|
13355
13957
|
/**
|
|
13356
|
-
*
|
|
13958
|
+
* enforce extension
|
|
13357
13959
|
*/
|
|
13358
|
-
enforceExtension
|
|
13960
|
+
enforceExtension: boolean;
|
|
13359
13961
|
|
|
13360
13962
|
/**
|
|
13361
|
-
*
|
|
13963
|
+
* exports fields
|
|
13362
13964
|
*/
|
|
13363
|
-
exportsFields
|
|
13965
|
+
exportsFields: Set<string | string[]>;
|
|
13364
13966
|
|
|
13365
13967
|
/**
|
|
13366
|
-
*
|
|
13968
|
+
* imports fields
|
|
13367
13969
|
*/
|
|
13368
|
-
importsFields
|
|
13970
|
+
importsFields: Set<string | string[]>;
|
|
13369
13971
|
|
|
13370
13972
|
/**
|
|
13371
|
-
*
|
|
13973
|
+
* extensions
|
|
13372
13974
|
*/
|
|
13373
|
-
extensions
|
|
13975
|
+
extensions: Set<string>;
|
|
13374
13976
|
|
|
13375
13977
|
/**
|
|
13376
|
-
*
|
|
13978
|
+
* fileSystem
|
|
13377
13979
|
*/
|
|
13378
13980
|
fileSystem: FileSystem;
|
|
13379
13981
|
|
|
13380
13982
|
/**
|
|
13381
|
-
*
|
|
13983
|
+
* unsafe cache
|
|
13382
13984
|
*/
|
|
13383
|
-
unsafeCache
|
|
13985
|
+
unsafeCache: false | CacheTypes;
|
|
13384
13986
|
|
|
13385
13987
|
/**
|
|
13386
|
-
*
|
|
13988
|
+
* symlinks
|
|
13387
13989
|
*/
|
|
13388
|
-
symlinks
|
|
13990
|
+
symlinks: boolean;
|
|
13389
13991
|
|
|
13390
13992
|
/**
|
|
13391
|
-
*
|
|
13993
|
+
* resolver
|
|
13392
13994
|
*/
|
|
13393
13995
|
resolver?: Resolver;
|
|
13394
13996
|
|
|
13395
13997
|
/**
|
|
13396
|
-
*
|
|
13998
|
+
* modules
|
|
13397
13999
|
*/
|
|
13398
|
-
modules
|
|
14000
|
+
modules: (string | string[])[];
|
|
13399
14001
|
|
|
13400
14002
|
/**
|
|
13401
|
-
*
|
|
14003
|
+
* main fields
|
|
14004
|
+
*/
|
|
14005
|
+
mainFields: { name: string[]; forceRelative: boolean }[];
|
|
14006
|
+
|
|
14007
|
+
/**
|
|
14008
|
+
* main files
|
|
14009
|
+
*/
|
|
14010
|
+
mainFiles: Set<string>;
|
|
14011
|
+
|
|
14012
|
+
/**
|
|
14013
|
+
* plugins
|
|
14014
|
+
*/
|
|
14015
|
+
plugins: Plugin[];
|
|
14016
|
+
|
|
14017
|
+
/**
|
|
14018
|
+
* pnp API
|
|
14019
|
+
*/
|
|
14020
|
+
pnpApi: null | PnpApi;
|
|
14021
|
+
|
|
14022
|
+
/**
|
|
14023
|
+
* roots
|
|
14024
|
+
*/
|
|
14025
|
+
roots: Set<string>;
|
|
14026
|
+
|
|
14027
|
+
/**
|
|
14028
|
+
* fully specified
|
|
14029
|
+
*/
|
|
14030
|
+
fullySpecified: boolean;
|
|
14031
|
+
|
|
14032
|
+
/**
|
|
14033
|
+
* resolve to context
|
|
14034
|
+
*/
|
|
14035
|
+
resolveToContext: boolean;
|
|
14036
|
+
|
|
14037
|
+
/**
|
|
14038
|
+
* restrictions
|
|
14039
|
+
*/
|
|
14040
|
+
restrictions: Set<string | RegExp>;
|
|
14041
|
+
|
|
14042
|
+
/**
|
|
14043
|
+
* prefer relative
|
|
14044
|
+
*/
|
|
14045
|
+
preferRelative: boolean;
|
|
14046
|
+
|
|
14047
|
+
/**
|
|
14048
|
+
* prefer absolute
|
|
14049
|
+
*/
|
|
14050
|
+
preferAbsolute: boolean;
|
|
14051
|
+
}
|
|
14052
|
+
declare interface ResolveOptionsResolverFactoryObject2 {
|
|
14053
|
+
/**
|
|
14054
|
+
* A list of module alias configurations or an object which maps key to value
|
|
14055
|
+
*/
|
|
14056
|
+
alias?: AliasOption[] | AliasOptions;
|
|
14057
|
+
|
|
14058
|
+
/**
|
|
14059
|
+
* A list of module alias configurations or an object which maps key to value, applied only after modules option
|
|
14060
|
+
*/
|
|
14061
|
+
fallback?: AliasOption[] | AliasOptions;
|
|
14062
|
+
|
|
14063
|
+
/**
|
|
14064
|
+
* An object which maps extension to extension aliases
|
|
14065
|
+
*/
|
|
14066
|
+
extensionAlias?: ExtensionAliasOptions;
|
|
14067
|
+
|
|
14068
|
+
/**
|
|
14069
|
+
* A list of alias fields in description files
|
|
14070
|
+
*/
|
|
14071
|
+
aliasFields?: (string | string[])[];
|
|
14072
|
+
|
|
14073
|
+
/**
|
|
14074
|
+
* A function which decides whether a request should be cached or not. An object is passed with at least `path` and `request` properties.
|
|
14075
|
+
*/
|
|
14076
|
+
cachePredicate?: (predicate: ResolveRequest) => boolean;
|
|
14077
|
+
|
|
14078
|
+
/**
|
|
14079
|
+
* Whether or not the unsafeCache should include request context as part of the cache key.
|
|
14080
|
+
*/
|
|
14081
|
+
cacheWithContext?: boolean;
|
|
14082
|
+
|
|
14083
|
+
/**
|
|
14084
|
+
* A list of description files to read from
|
|
14085
|
+
*/
|
|
14086
|
+
descriptionFiles?: string[];
|
|
14087
|
+
|
|
14088
|
+
/**
|
|
14089
|
+
* A list of exports field condition names.
|
|
14090
|
+
*/
|
|
14091
|
+
conditionNames?: string[];
|
|
14092
|
+
|
|
14093
|
+
/**
|
|
14094
|
+
* Enforce that a extension from extensions must be used
|
|
14095
|
+
*/
|
|
14096
|
+
enforceExtension?: boolean;
|
|
14097
|
+
|
|
14098
|
+
/**
|
|
14099
|
+
* A list of exports fields in description files
|
|
14100
|
+
*/
|
|
14101
|
+
exportsFields?: (string | string[])[];
|
|
14102
|
+
|
|
14103
|
+
/**
|
|
14104
|
+
* A list of imports fields in description files
|
|
14105
|
+
*/
|
|
14106
|
+
importsFields?: (string | string[])[];
|
|
14107
|
+
|
|
14108
|
+
/**
|
|
14109
|
+
* A list of extensions which should be tried for files
|
|
14110
|
+
*/
|
|
14111
|
+
extensions?: string[];
|
|
14112
|
+
|
|
14113
|
+
/**
|
|
14114
|
+
* The file system which should be used
|
|
14115
|
+
*/
|
|
14116
|
+
fileSystem: FileSystem;
|
|
14117
|
+
|
|
14118
|
+
/**
|
|
14119
|
+
* Use this cache object to unsafely cache the successful requests
|
|
14120
|
+
*/
|
|
14121
|
+
unsafeCache?: boolean | CacheTypes;
|
|
14122
|
+
|
|
14123
|
+
/**
|
|
14124
|
+
* Resolve symlinks to their symlinked location
|
|
14125
|
+
*/
|
|
14126
|
+
symlinks?: boolean;
|
|
14127
|
+
|
|
14128
|
+
/**
|
|
14129
|
+
* A prepared Resolver to which the plugins are attached
|
|
14130
|
+
*/
|
|
14131
|
+
resolver?: Resolver;
|
|
14132
|
+
|
|
14133
|
+
/**
|
|
14134
|
+
* A list of directories to resolve modules from, can be absolute path or folder name
|
|
14135
|
+
*/
|
|
14136
|
+
modules?: string | string[];
|
|
14137
|
+
|
|
14138
|
+
/**
|
|
14139
|
+
* A list of main fields in description files
|
|
13402
14140
|
*/
|
|
13403
14141
|
mainFields?: (
|
|
13404
14142
|
| string
|
|
@@ -14389,6 +15127,10 @@ declare abstract class RuntimeTemplate {
|
|
|
14389
15127
|
* the module
|
|
14390
15128
|
*/
|
|
14391
15129
|
module: Module;
|
|
15130
|
+
/**
|
|
15131
|
+
* the module graph
|
|
15132
|
+
*/
|
|
15133
|
+
moduleGraph: ModuleGraph;
|
|
14392
15134
|
/**
|
|
14393
15135
|
* the chunk graph
|
|
14394
15136
|
*/
|
|
@@ -14413,12 +15155,20 @@ declare abstract class RuntimeTemplate {
|
|
|
14413
15155
|
* if set, will be filled with runtime requirements
|
|
14414
15156
|
*/
|
|
14415
15157
|
runtimeRequirements: Set<string>;
|
|
15158
|
+
/**
|
|
15159
|
+
* if set, the module will be deferred
|
|
15160
|
+
*/
|
|
15161
|
+
defer?: boolean;
|
|
14416
15162
|
}): [string, string];
|
|
14417
15163
|
exportFromImport<GenerateContext>(__0: {
|
|
14418
15164
|
/**
|
|
14419
15165
|
* the module graph
|
|
14420
15166
|
*/
|
|
14421
15167
|
moduleGraph: ModuleGraph;
|
|
15168
|
+
/**
|
|
15169
|
+
* the chunk graph
|
|
15170
|
+
*/
|
|
15171
|
+
chunkGraph: ChunkGraph;
|
|
14422
15172
|
/**
|
|
14423
15173
|
* the module
|
|
14424
15174
|
*/
|
|
@@ -14467,6 +15217,10 @@ declare abstract class RuntimeTemplate {
|
|
|
14467
15217
|
* if set, will be filled with runtime requirements
|
|
14468
15218
|
*/
|
|
14469
15219
|
runtimeRequirements: Set<string>;
|
|
15220
|
+
/**
|
|
15221
|
+
* if true, the module will be deferred.
|
|
15222
|
+
*/
|
|
15223
|
+
defer?: boolean;
|
|
14470
15224
|
}): string;
|
|
14471
15225
|
blockPromise(__0: {
|
|
14472
15226
|
/**
|
|
@@ -14601,6 +15355,10 @@ declare abstract class SerializerMiddleware<
|
|
|
14601
15355
|
context: Context
|
|
14602
15356
|
): DeserializedType | Promise<DeserializedType>;
|
|
14603
15357
|
}
|
|
15358
|
+
declare interface SetIterator<T> extends IteratorObject<T, undefined> {
|
|
15359
|
+
[Symbol.iterator](): SetIterator<T>;
|
|
15360
|
+
[Symbol.dispose](): void;
|
|
15361
|
+
}
|
|
14604
15362
|
declare class SharePlugin {
|
|
14605
15363
|
constructor(options: SharePluginOptions);
|
|
14606
15364
|
|
|
@@ -14861,25 +15619,54 @@ declare abstract class SortableSet<T> extends Set<T> {
|
|
|
14861
15619
|
}
|
|
14862
15620
|
declare class Source {
|
|
14863
15621
|
constructor();
|
|
15622
|
+
source(): SourceValue;
|
|
15623
|
+
buffer(): Buffer;
|
|
14864
15624
|
size(): number;
|
|
14865
15625
|
map(options?: MapOptions): null | RawSourceMap;
|
|
14866
|
-
sourceAndMap(options?: MapOptions):
|
|
14867
|
-
updateHash(hash:
|
|
14868
|
-
source(): string | Buffer;
|
|
14869
|
-
buffer(): Buffer;
|
|
15626
|
+
sourceAndMap(options?: MapOptions): SourceAndMap;
|
|
15627
|
+
updateHash(hash: HashLike): void;
|
|
14870
15628
|
}
|
|
14871
|
-
declare interface
|
|
14872
|
-
|
|
15629
|
+
declare interface SourceAndMap {
|
|
15630
|
+
/**
|
|
15631
|
+
* source
|
|
15632
|
+
*/
|
|
15633
|
+
source: SourceValue;
|
|
15634
|
+
|
|
15635
|
+
/**
|
|
15636
|
+
* map
|
|
15637
|
+
*/
|
|
15638
|
+
map: null | RawSourceMap;
|
|
14873
15639
|
}
|
|
14874
|
-
declare interface
|
|
14875
|
-
|
|
14876
|
-
|
|
14877
|
-
|
|
14878
|
-
|
|
14879
|
-
|
|
14880
|
-
|
|
14881
|
-
|
|
14882
|
-
|
|
15640
|
+
declare interface SourceLike {
|
|
15641
|
+
/**
|
|
15642
|
+
* source
|
|
15643
|
+
*/
|
|
15644
|
+
source: () => SourceValue;
|
|
15645
|
+
|
|
15646
|
+
/**
|
|
15647
|
+
* buffer
|
|
15648
|
+
*/
|
|
15649
|
+
buffer?: () => Buffer;
|
|
15650
|
+
|
|
15651
|
+
/**
|
|
15652
|
+
* size
|
|
15653
|
+
*/
|
|
15654
|
+
size?: () => number;
|
|
15655
|
+
|
|
15656
|
+
/**
|
|
15657
|
+
* map
|
|
15658
|
+
*/
|
|
15659
|
+
map?: (options?: MapOptions) => null | RawSourceMap;
|
|
15660
|
+
|
|
15661
|
+
/**
|
|
15662
|
+
* source and map
|
|
15663
|
+
*/
|
|
15664
|
+
sourceAndMap?: (options?: MapOptions) => SourceAndMap;
|
|
15665
|
+
|
|
15666
|
+
/**
|
|
15667
|
+
* hash updater
|
|
15668
|
+
*/
|
|
15669
|
+
updateHash?: (hash: HashLike) => void;
|
|
14883
15670
|
}
|
|
14884
15671
|
declare class SourceMapDevToolPlugin {
|
|
14885
15672
|
constructor(options?: SourceMapDevToolPluginOptions);
|
|
@@ -14980,11 +15767,11 @@ declare interface SourceMapDevToolPluginOptions {
|
|
|
14980
15767
|
}
|
|
14981
15768
|
declare class SourceMapSource extends Source {
|
|
14982
15769
|
constructor(
|
|
14983
|
-
|
|
15770
|
+
value: string | Buffer,
|
|
14984
15771
|
name: string,
|
|
14985
|
-
sourceMap
|
|
15772
|
+
sourceMap?: string | Buffer | RawSourceMap,
|
|
14986
15773
|
originalSource?: string | Buffer,
|
|
14987
|
-
innerSourceMap?: string |
|
|
15774
|
+
innerSourceMap?: string | Buffer | RawSourceMap,
|
|
14988
15775
|
removeOriginalSource?: boolean
|
|
14989
15776
|
);
|
|
14990
15777
|
getArgsAsBuffers(): [
|
|
@@ -14993,13 +15780,32 @@ declare class SourceMapSource extends Source {
|
|
|
14993
15780
|
Buffer,
|
|
14994
15781
|
undefined | Buffer,
|
|
14995
15782
|
undefined | Buffer,
|
|
14996
|
-
boolean
|
|
15783
|
+
undefined | boolean
|
|
14997
15784
|
];
|
|
15785
|
+
streamChunks(
|
|
15786
|
+
options: StreamChunksOptions,
|
|
15787
|
+
onChunk: (
|
|
15788
|
+
chunk: undefined | string,
|
|
15789
|
+
generatedLine: number,
|
|
15790
|
+
generatedColumn: number,
|
|
15791
|
+
sourceIndex: number,
|
|
15792
|
+
originalLine: number,
|
|
15793
|
+
originalColumn: number,
|
|
15794
|
+
nameIndex: number
|
|
15795
|
+
) => void,
|
|
15796
|
+
onSource: (
|
|
15797
|
+
sourceIndex: number,
|
|
15798
|
+
source: null | string,
|
|
15799
|
+
sourceContent?: string
|
|
15800
|
+
) => void,
|
|
15801
|
+
onName: (nameIndex: number, name: string) => void
|
|
15802
|
+
): GeneratedSourceInfo;
|
|
14998
15803
|
}
|
|
14999
15804
|
declare interface SourcePosition {
|
|
15000
15805
|
line: number;
|
|
15001
15806
|
column?: number;
|
|
15002
15807
|
}
|
|
15808
|
+
type SourceValue = string | Buffer;
|
|
15003
15809
|
declare interface SplitChunksOptions {
|
|
15004
15810
|
chunksFilter: (chunk: Chunk) => undefined | boolean;
|
|
15005
15811
|
defaultSizeTypes: string[];
|
|
@@ -15035,6 +15841,12 @@ declare class SplitChunksPlugin {
|
|
|
15035
15841
|
declare interface SplitChunksSizes {
|
|
15036
15842
|
[index: string]: number;
|
|
15037
15843
|
}
|
|
15844
|
+
declare interface SplitData {
|
|
15845
|
+
id?: string | number;
|
|
15846
|
+
hash?: string;
|
|
15847
|
+
modules: Module[];
|
|
15848
|
+
size: number;
|
|
15849
|
+
}
|
|
15038
15850
|
declare abstract class StackedMap<K, V> {
|
|
15039
15851
|
map: Map<K, InternalCell<V>>;
|
|
15040
15852
|
stack: Map<K, InternalCell<V>>[];
|
|
@@ -15107,24 +15919,24 @@ declare interface StatSyncOptions {
|
|
|
15107
15919
|
declare interface StatTypes {
|
|
15108
15920
|
(
|
|
15109
15921
|
path: PathLikeTypes,
|
|
15110
|
-
callback: (
|
|
15922
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void
|
|
15111
15923
|
): void;
|
|
15112
15924
|
(
|
|
15113
15925
|
path: PathLikeTypes,
|
|
15114
15926
|
options: undefined | (StatOptions & { bigint?: false }),
|
|
15115
|
-
callback: (
|
|
15927
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void
|
|
15116
15928
|
): void;
|
|
15117
15929
|
(
|
|
15118
15930
|
path: PathLikeTypes,
|
|
15119
15931
|
options: StatOptions & { bigint: true },
|
|
15120
|
-
callback: (
|
|
15932
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IBigIntStats) => void
|
|
15121
15933
|
): void;
|
|
15122
15934
|
(
|
|
15123
15935
|
path: PathLikeTypes,
|
|
15124
15936
|
options: undefined | StatOptions,
|
|
15125
15937
|
callback: (
|
|
15126
|
-
|
|
15127
|
-
|
|
15938
|
+
err: null | NodeJS.ErrnoException,
|
|
15939
|
+
result?: IStats | IBigIntStats
|
|
15128
15940
|
) => void
|
|
15129
15941
|
): void;
|
|
15130
15942
|
}
|
|
@@ -15778,6 +16590,11 @@ type StatsValue =
|
|
|
15778
16590
|
| "minimal"
|
|
15779
16591
|
| "normal"
|
|
15780
16592
|
| "detailed";
|
|
16593
|
+
declare interface StreamChunksOptions {
|
|
16594
|
+
source?: boolean;
|
|
16595
|
+
finalSource?: boolean;
|
|
16596
|
+
columns?: boolean;
|
|
16597
|
+
}
|
|
15781
16598
|
type Supports = undefined | string;
|
|
15782
16599
|
declare class SyncModuleIdsPlugin {
|
|
15783
16600
|
constructor(__0: SyncModuleIdsPluginOptions);
|
|
@@ -15831,6 +16648,7 @@ declare interface TargetItemWithConnection {
|
|
|
15831
16648
|
declare interface TargetItemWithoutConnection {
|
|
15832
16649
|
module: Module;
|
|
15833
16650
|
export: string[];
|
|
16651
|
+
deferred: boolean;
|
|
15834
16652
|
}
|
|
15835
16653
|
declare class Template {
|
|
15836
16654
|
constructor();
|
|
@@ -15861,8 +16679,8 @@ declare class Template {
|
|
|
15861
16679
|
runtimeModules: RuntimeModule[],
|
|
15862
16680
|
renderContext: RenderContextJavascriptModulesPlugin
|
|
15863
16681
|
): Source;
|
|
15864
|
-
static NUMBER_OF_IDENTIFIER_START_CHARS: number;
|
|
15865
16682
|
static NUMBER_OF_IDENTIFIER_CONTINUATION_CHARS: number;
|
|
16683
|
+
static NUMBER_OF_IDENTIFIER_START_CHARS: number;
|
|
15866
16684
|
}
|
|
15867
16685
|
type TemplatePath =
|
|
15868
16686
|
| string
|
|
@@ -15892,11 +16710,6 @@ declare interface TrustedTypes {
|
|
|
15892
16710
|
policyName?: string;
|
|
15893
16711
|
}
|
|
15894
16712
|
declare const UNDEFINED_MARKER: unique symbol;
|
|
15895
|
-
|
|
15896
|
-
/**
|
|
15897
|
-
* `URL` class is a global reference for `require('url').URL`
|
|
15898
|
-
* https://nodejs.org/api/url.html#the-whatwg-url-api
|
|
15899
|
-
*/
|
|
15900
16713
|
declare interface URL_url extends URL {}
|
|
15901
16714
|
type UnsafeCacheData = KnownUnsafeCacheData & Record<string, any>;
|
|
15902
16715
|
declare interface UpdateHashContextDependency {
|
|
@@ -15917,6 +16730,9 @@ type UsageStateType = 0 | 1 | 2 | 3 | 4;
|
|
|
15917
16730
|
type UsedName = string | false | string[];
|
|
15918
16731
|
type Value = string | number | boolean | RegExp;
|
|
15919
16732
|
type ValueCacheVersion = string | Set<string>;
|
|
16733
|
+
declare interface Values {
|
|
16734
|
+
[index: string]: Value[];
|
|
16735
|
+
}
|
|
15920
16736
|
declare class VariableInfo {
|
|
15921
16737
|
constructor(
|
|
15922
16738
|
declaredScope: ScopeInfo,
|
|
@@ -15927,6 +16743,46 @@ declare class VariableInfo {
|
|
|
15927
16743
|
freeName?: string | true;
|
|
15928
16744
|
tagInfo?: TagInfo;
|
|
15929
16745
|
}
|
|
16746
|
+
declare interface VirtualModuleConfig {
|
|
16747
|
+
/**
|
|
16748
|
+
* - The module type
|
|
16749
|
+
*/
|
|
16750
|
+
type?: string;
|
|
16751
|
+
|
|
16752
|
+
/**
|
|
16753
|
+
* - The source function
|
|
16754
|
+
*/
|
|
16755
|
+
source: (loaderContext: LoaderContextObject<any>) => string | Promise<string>;
|
|
16756
|
+
|
|
16757
|
+
/**
|
|
16758
|
+
* - Optional version function or value
|
|
16759
|
+
*/
|
|
16760
|
+
version?: string | true | (() => string);
|
|
16761
|
+
}
|
|
16762
|
+
type VirtualModuleInput =
|
|
16763
|
+
| string
|
|
16764
|
+
| ((loaderContext: LoaderContextObject<any>) => string | Promise<string>)
|
|
16765
|
+
| VirtualModuleConfig;
|
|
16766
|
+
declare interface VirtualModules {
|
|
16767
|
+
[index: string]: VirtualModuleInput;
|
|
16768
|
+
}
|
|
16769
|
+
declare class VirtualUrlPlugin {
|
|
16770
|
+
constructor(modules: VirtualModules, scheme?: string);
|
|
16771
|
+
scheme: string;
|
|
16772
|
+
modules: { [index: string]: VirtualModuleConfig };
|
|
16773
|
+
|
|
16774
|
+
/**
|
|
16775
|
+
* Apply the plugin
|
|
16776
|
+
*/
|
|
16777
|
+
apply(compiler: Compiler): void;
|
|
16778
|
+
findVirtualModuleConfigById(id: string): VirtualModuleConfig;
|
|
16779
|
+
|
|
16780
|
+
/**
|
|
16781
|
+
* Get the cache version for a given version value
|
|
16782
|
+
*/
|
|
16783
|
+
getCacheVersion(version: string | true | (() => string)): undefined | string;
|
|
16784
|
+
static DEFAULT_SCHEME: string;
|
|
16785
|
+
}
|
|
15930
16786
|
type WarningFilterItemTypes =
|
|
15931
16787
|
| string
|
|
15932
16788
|
| RegExp
|
|
@@ -16456,39 +17312,13 @@ declare interface WithOptions {
|
|
|
16456
17312
|
declare interface WriteFile {
|
|
16457
17313
|
(
|
|
16458
17314
|
file: PathOrFileDescriptorFs,
|
|
16459
|
-
data:
|
|
16460
|
-
| string
|
|
16461
|
-
| Uint8Array
|
|
16462
|
-
| Uint8ClampedArray
|
|
16463
|
-
| Uint16Array
|
|
16464
|
-
| Uint32Array
|
|
16465
|
-
| Int8Array
|
|
16466
|
-
| Int16Array
|
|
16467
|
-
| Int32Array
|
|
16468
|
-
| BigUint64Array
|
|
16469
|
-
| BigInt64Array
|
|
16470
|
-
| Float32Array
|
|
16471
|
-
| Float64Array
|
|
16472
|
-
| DataView,
|
|
17315
|
+
data: string | NodeJS.ArrayBufferView,
|
|
16473
17316
|
options: WriteFileOptions,
|
|
16474
17317
|
callback: (err: null | NodeJS.ErrnoException) => void
|
|
16475
17318
|
): void;
|
|
16476
17319
|
(
|
|
16477
17320
|
file: PathOrFileDescriptorFs,
|
|
16478
|
-
data:
|
|
16479
|
-
| string
|
|
16480
|
-
| Uint8Array
|
|
16481
|
-
| Uint8ClampedArray
|
|
16482
|
-
| Uint16Array
|
|
16483
|
-
| Uint32Array
|
|
16484
|
-
| Int8Array
|
|
16485
|
-
| Int16Array
|
|
16486
|
-
| Int32Array
|
|
16487
|
-
| BigUint64Array
|
|
16488
|
-
| BigInt64Array
|
|
16489
|
-
| Float32Array
|
|
16490
|
-
| Float64Array
|
|
16491
|
-
| DataView,
|
|
17321
|
+
data: string | NodeJS.ArrayBufferView,
|
|
16492
17322
|
callback: (err: null | NodeJS.ErrnoException) => void
|
|
16493
17323
|
): void;
|
|
16494
17324
|
}
|
|
@@ -16599,8 +17429,8 @@ declare namespace exports {
|
|
|
16599
17429
|
) => Flags;
|
|
16600
17430
|
export let processArguments: (
|
|
16601
17431
|
args: Flags,
|
|
16602
|
-
config:
|
|
16603
|
-
values:
|
|
17432
|
+
config: ObjectConfiguration,
|
|
17433
|
+
values: Values
|
|
16604
17434
|
) => null | Problem[];
|
|
16605
17435
|
}
|
|
16606
17436
|
export namespace ModuleFilenameHelpers {
|
|
@@ -16651,81 +17481,85 @@ declare namespace exports {
|
|
|
16651
17481
|
export let matchObject: (obj: MatchObject, str: string) => boolean;
|
|
16652
17482
|
}
|
|
16653
17483
|
export namespace OptimizationStages {
|
|
17484
|
+
export let STAGE_ADVANCED: 10;
|
|
16654
17485
|
export let STAGE_BASIC: -10;
|
|
16655
17486
|
export let STAGE_DEFAULT: 0;
|
|
16656
|
-
export let STAGE_ADVANCED: 10;
|
|
16657
17487
|
}
|
|
16658
17488
|
export namespace RuntimeGlobals {
|
|
16659
|
-
export let
|
|
16660
|
-
export let
|
|
17489
|
+
export let amdDefine: "__webpack_require__.amdD";
|
|
17490
|
+
export let amdOptions: "__webpack_require__.amdO";
|
|
17491
|
+
export let asyncModule: "__webpack_require__.a";
|
|
17492
|
+
export let asyncModuleDoneSymbol: "__webpack_require__.aD";
|
|
17493
|
+
export let asyncModuleExportSymbol: "__webpack_require__.aE";
|
|
17494
|
+
export let baseURI: "__webpack_require__.b";
|
|
17495
|
+
export let chunkCallback: "webpackChunk";
|
|
17496
|
+
export let chunkName: "__webpack_require__.cn";
|
|
17497
|
+
export let compatGetDefaultExport: "__webpack_require__.n";
|
|
17498
|
+
export let createFakeNamespaceObject: "__webpack_require__.t";
|
|
17499
|
+
export let createScript: "__webpack_require__.ts";
|
|
17500
|
+
export let createScriptUrl: "__webpack_require__.tu";
|
|
17501
|
+
export let currentRemoteGetScope: "__webpack_require__.R";
|
|
17502
|
+
export let definePropertyGetters: "__webpack_require__.d";
|
|
17503
|
+
export let ensureChunk: "__webpack_require__.e";
|
|
17504
|
+
export let ensureChunkHandlers: "__webpack_require__.f";
|
|
17505
|
+
export let ensureChunkIncludeEntries: "__webpack_require__.f (include entries)";
|
|
17506
|
+
export let entryModuleId: "__webpack_require__.s";
|
|
16661
17507
|
export let exports: "__webpack_exports__";
|
|
16662
|
-
export let
|
|
16663
|
-
export let
|
|
17508
|
+
export let externalInstallChunk: "__webpack_require__.C";
|
|
17509
|
+
export let getChunkCssFilename: "__webpack_require__.k";
|
|
17510
|
+
export let getChunkScriptFilename: "__webpack_require__.u";
|
|
17511
|
+
export let getChunkUpdateCssFilename: "__webpack_require__.hk";
|
|
17512
|
+
export let getChunkUpdateScriptFilename: "__webpack_require__.hu";
|
|
17513
|
+
export let getFullHash: "__webpack_require__.h";
|
|
17514
|
+
export let getTrustedTypesPolicy: "__webpack_require__.tt";
|
|
17515
|
+
export let getUpdateManifestFilename: "__webpack_require__.hmrF";
|
|
17516
|
+
export let global: "__webpack_require__.g";
|
|
17517
|
+
export let harmonyModuleDecorator: "__webpack_require__.hmd";
|
|
17518
|
+
export let hasCssModules: "has css modules";
|
|
17519
|
+
export let hasFetchPriority: "has fetch priority";
|
|
17520
|
+
export let hasOwnProperty: "__webpack_require__.o";
|
|
17521
|
+
export let hmrDownloadManifest: "__webpack_require__.hmrM";
|
|
17522
|
+
export let hmrDownloadUpdateHandlers: "__webpack_require__.hmrC";
|
|
17523
|
+
export let hmrInvalidateModuleHandlers: "__webpack_require__.hmrI";
|
|
17524
|
+
export let hmrModuleData: "__webpack_require__.hmrD";
|
|
17525
|
+
export let hmrRuntimeStatePrefix: "__webpack_require__.hmrS";
|
|
17526
|
+
export let initializeSharing: "__webpack_require__.I";
|
|
17527
|
+
export let instantiateWasm: "__webpack_require__.v";
|
|
17528
|
+
export let interceptModuleExecution: "__webpack_require__.i";
|
|
17529
|
+
export let loadScript: "__webpack_require__.l";
|
|
17530
|
+
export let makeDeferredNamespaceObject: "__webpack_require__.z";
|
|
17531
|
+
export let makeDeferredNamespaceObjectSymbol: "__webpack_require__.zS";
|
|
17532
|
+
export let makeNamespaceObject: "__webpack_require__.r";
|
|
16664
17533
|
export let module: "module";
|
|
16665
|
-
export let moduleId: "module.id";
|
|
16666
|
-
export let moduleLoaded: "module.loaded";
|
|
16667
|
-
export let publicPath: "__webpack_require__.p";
|
|
16668
|
-
export let entryModuleId: "__webpack_require__.s";
|
|
16669
17534
|
export let moduleCache: "__webpack_require__.c";
|
|
16670
17535
|
export let moduleFactories: "__webpack_require__.m";
|
|
16671
17536
|
export let moduleFactoriesAddOnly: "__webpack_require__.m (add only)";
|
|
16672
|
-
export let
|
|
16673
|
-
export let
|
|
16674
|
-
export let
|
|
17537
|
+
export let moduleId: "module.id";
|
|
17538
|
+
export let moduleLoaded: "module.loaded";
|
|
17539
|
+
export let nodeModuleDecorator: "__webpack_require__.nmd";
|
|
17540
|
+
export let onChunksLoaded: "__webpack_require__.O";
|
|
16675
17541
|
export let prefetchChunk: "__webpack_require__.E";
|
|
16676
17542
|
export let prefetchChunkHandlers: "__webpack_require__.F";
|
|
16677
17543
|
export let preloadChunk: "__webpack_require__.G";
|
|
16678
17544
|
export let preloadChunkHandlers: "__webpack_require__.H";
|
|
16679
|
-
export let
|
|
16680
|
-
export let
|
|
16681
|
-
export let
|
|
16682
|
-
export let
|
|
16683
|
-
export let
|
|
16684
|
-
export let nodeModuleDecorator: "__webpack_require__.nmd";
|
|
16685
|
-
export let getFullHash: "__webpack_require__.h";
|
|
16686
|
-
export let wasmInstances: "__webpack_require__.w";
|
|
16687
|
-
export let instantiateWasm: "__webpack_require__.v";
|
|
16688
|
-
export let uncaughtErrorHandler: "__webpack_require__.oe";
|
|
16689
|
-
export let scriptNonce: "__webpack_require__.nc";
|
|
16690
|
-
export let loadScript: "__webpack_require__.l";
|
|
16691
|
-
export let createScript: "__webpack_require__.ts";
|
|
16692
|
-
export let createScriptUrl: "__webpack_require__.tu";
|
|
16693
|
-
export let getTrustedTypesPolicy: "__webpack_require__.tt";
|
|
16694
|
-
export let hasFetchPriority: "has fetch priority";
|
|
16695
|
-
export let chunkName: "__webpack_require__.cn";
|
|
17545
|
+
export let publicPath: "__webpack_require__.p";
|
|
17546
|
+
export let relativeUrl: "__webpack_require__.U";
|
|
17547
|
+
export let require: "__webpack_require__";
|
|
17548
|
+
export let requireScope: "__webpack_require__.*";
|
|
17549
|
+
export let returnExportsFromRuntime: "return-exports-from-runtime";
|
|
16696
17550
|
export let runtimeId: "__webpack_require__.j";
|
|
16697
|
-
export let
|
|
16698
|
-
export let
|
|
16699
|
-
export let hasCssModules: "has css modules";
|
|
16700
|
-
export let getChunkUpdateScriptFilename: "__webpack_require__.hu";
|
|
16701
|
-
export let getChunkUpdateCssFilename: "__webpack_require__.hk";
|
|
17551
|
+
export let scriptNonce: "__webpack_require__.nc";
|
|
17552
|
+
export let shareScopeMap: "__webpack_require__.S";
|
|
16702
17553
|
export let startup: "__webpack_require__.x";
|
|
17554
|
+
export let startupEntrypoint: "__webpack_require__.X";
|
|
16703
17555
|
export let startupNoDefault: "__webpack_require__.x (no default handler)";
|
|
16704
17556
|
export let startupOnlyAfter: "__webpack_require__.x (only after)";
|
|
16705
17557
|
export let startupOnlyBefore: "__webpack_require__.x (only before)";
|
|
16706
|
-
export let chunkCallback: "webpackChunk";
|
|
16707
|
-
export let startupEntrypoint: "__webpack_require__.X";
|
|
16708
|
-
export let onChunksLoaded: "__webpack_require__.O";
|
|
16709
|
-
export let externalInstallChunk: "__webpack_require__.C";
|
|
16710
|
-
export let interceptModuleExecution: "__webpack_require__.i";
|
|
16711
|
-
export let global: "__webpack_require__.g";
|
|
16712
|
-
export let shareScopeMap: "__webpack_require__.S";
|
|
16713
|
-
export let initializeSharing: "__webpack_require__.I";
|
|
16714
|
-
export let currentRemoteGetScope: "__webpack_require__.R";
|
|
16715
|
-
export let getUpdateManifestFilename: "__webpack_require__.hmrF";
|
|
16716
|
-
export let hmrDownloadManifest: "__webpack_require__.hmrM";
|
|
16717
|
-
export let hmrDownloadUpdateHandlers: "__webpack_require__.hmrC";
|
|
16718
|
-
export let hmrModuleData: "__webpack_require__.hmrD";
|
|
16719
|
-
export let hmrInvalidateModuleHandlers: "__webpack_require__.hmrI";
|
|
16720
|
-
export let hmrRuntimeStatePrefix: "__webpack_require__.hmrS";
|
|
16721
|
-
export let amdDefine: "__webpack_require__.amdD";
|
|
16722
|
-
export let amdOptions: "__webpack_require__.amdO";
|
|
16723
17558
|
export let system: "__webpack_require__.System";
|
|
16724
|
-
export let hasOwnProperty: "__webpack_require__.o";
|
|
16725
17559
|
export let systemContext: "__webpack_require__.y";
|
|
16726
|
-
export let
|
|
16727
|
-
export let
|
|
16728
|
-
export let
|
|
17560
|
+
export let thisAsExports: "top-level-this-exports";
|
|
17561
|
+
export let uncaughtErrorHandler: "__webpack_require__.oe";
|
|
17562
|
+
export let wasmInstances: "__webpack_require__.w";
|
|
16729
17563
|
}
|
|
16730
17564
|
export const UsageState: Readonly<{
|
|
16731
17565
|
Unused: 0;
|
|
@@ -16776,9 +17610,6 @@ declare namespace exports {
|
|
|
16776
17610
|
}
|
|
16777
17611
|
export namespace optimize {
|
|
16778
17612
|
export namespace InnerGraph {
|
|
16779
|
-
export let bailout: (parserState: ParserState) => void;
|
|
16780
|
-
export let enable: (parserState: ParserState) => void;
|
|
16781
|
-
export let isEnabled: (parserState: ParserState) => boolean;
|
|
16782
17613
|
export let addUsage: (
|
|
16783
17614
|
state: ParserState,
|
|
16784
17615
|
symbol: null | TopLevelSymbol,
|
|
@@ -16789,7 +17620,30 @@ declare namespace exports {
|
|
|
16789
17620
|
name: string,
|
|
16790
17621
|
usage: string | true | TopLevelSymbol
|
|
16791
17622
|
) => void;
|
|
17623
|
+
export let bailout: (parserState: ParserState) => void;
|
|
17624
|
+
export let enable: (parserState: ParserState) => void;
|
|
17625
|
+
export let getDependencyUsedByExportsCondition: (
|
|
17626
|
+
dependency: Dependency,
|
|
17627
|
+
usedByExports: undefined | boolean | Set<string>,
|
|
17628
|
+
moduleGraph: ModuleGraph
|
|
17629
|
+
) =>
|
|
17630
|
+
| null
|
|
17631
|
+
| false
|
|
17632
|
+
| ((
|
|
17633
|
+
moduleGraphConnection: ModuleGraphConnection,
|
|
17634
|
+
runtime: RuntimeSpec
|
|
17635
|
+
) => ConnectionState);
|
|
17636
|
+
export let getTopLevelSymbol: (
|
|
17637
|
+
state: ParserState
|
|
17638
|
+
) => void | TopLevelSymbol;
|
|
16792
17639
|
export let inferDependencyUsage: (state: ParserState) => void;
|
|
17640
|
+
export let isDependencyUsedByExports: (
|
|
17641
|
+
dependency: Dependency,
|
|
17642
|
+
usedByExports: boolean | Set<string>,
|
|
17643
|
+
moduleGraph: ModuleGraph,
|
|
17644
|
+
runtime: RuntimeSpec
|
|
17645
|
+
) => boolean;
|
|
17646
|
+
export let isEnabled: (parserState: ParserState) => boolean;
|
|
16793
17647
|
export let onUsage: (
|
|
16794
17648
|
state: ParserState,
|
|
16795
17649
|
onUsageCallback: (value?: boolean | Set<string>) => void
|
|
@@ -16798,30 +17652,10 @@ declare namespace exports {
|
|
|
16798
17652
|
state: ParserState,
|
|
16799
17653
|
symbol?: TopLevelSymbol
|
|
16800
17654
|
) => void;
|
|
16801
|
-
export let getTopLevelSymbol: (
|
|
16802
|
-
state: ParserState
|
|
16803
|
-
) => void | TopLevelSymbol;
|
|
16804
17655
|
export let tagTopLevelSymbol: (
|
|
16805
17656
|
parser: JavascriptParser,
|
|
16806
17657
|
name: string
|
|
16807
17658
|
) => undefined | TopLevelSymbol;
|
|
16808
|
-
export let isDependencyUsedByExports: (
|
|
16809
|
-
dependency: Dependency,
|
|
16810
|
-
usedByExports: boolean | Set<string>,
|
|
16811
|
-
moduleGraph: ModuleGraph,
|
|
16812
|
-
runtime: RuntimeSpec
|
|
16813
|
-
) => boolean;
|
|
16814
|
-
export let getDependencyUsedByExportsCondition: (
|
|
16815
|
-
dependency: Dependency,
|
|
16816
|
-
usedByExports: undefined | boolean | Set<string>,
|
|
16817
|
-
moduleGraph: ModuleGraph
|
|
16818
|
-
) =>
|
|
16819
|
-
| null
|
|
16820
|
-
| false
|
|
16821
|
-
| ((
|
|
16822
|
-
moduleGraphConnection: ModuleGraphConnection,
|
|
16823
|
-
runtime: RuntimeSpec
|
|
16824
|
-
) => ConnectionState);
|
|
16825
17659
|
export { TopLevelSymbol, topLevelSymbolTag };
|
|
16826
17660
|
}
|
|
16827
17661
|
export {
|
|
@@ -16904,17 +17738,38 @@ declare namespace exports {
|
|
|
16904
17738
|
export namespace util {
|
|
16905
17739
|
export const createHash: (algorithm: HashFunction) => Hash;
|
|
16906
17740
|
export namespace comparators {
|
|
17741
|
+
export let compareChunkGroupsByIndex: (
|
|
17742
|
+
a: ChunkGroup,
|
|
17743
|
+
b: ChunkGroup
|
|
17744
|
+
) => 0 | 1 | -1;
|
|
17745
|
+
export let compareChunks: ParameterizedComparator<ChunkGraph, Chunk>;
|
|
16907
17746
|
export let compareChunksById: (a: Chunk, b: Chunk) => 0 | 1 | -1;
|
|
16908
|
-
export let
|
|
16909
|
-
|
|
16910
|
-
|
|
17747
|
+
export let compareChunksNatural: (
|
|
17748
|
+
chunkGraph: ChunkGraph
|
|
17749
|
+
) => Comparator<Chunk>;
|
|
17750
|
+
export let compareIds: (
|
|
17751
|
+
a: string | number,
|
|
17752
|
+
b: string | number
|
|
17753
|
+
) => 0 | 1 | -1;
|
|
17754
|
+
export let compareIterables: <T>(
|
|
17755
|
+
elementComparator: Comparator<T>
|
|
17756
|
+
) => Comparator<Iterable<T>>;
|
|
17757
|
+
export let compareLocations: (
|
|
17758
|
+
a: DependencyLocation,
|
|
17759
|
+
b: DependencyLocation
|
|
16911
17760
|
) => 0 | 1 | -1;
|
|
16912
17761
|
export let compareModulesById: ParameterizedComparator<
|
|
16913
17762
|
ChunkGraph,
|
|
16914
17763
|
Module
|
|
16915
17764
|
>;
|
|
16916
|
-
export let
|
|
16917
|
-
|
|
17765
|
+
export let compareModulesByIdOrIdentifier: ParameterizedComparator<
|
|
17766
|
+
ChunkGraph,
|
|
17767
|
+
Module
|
|
17768
|
+
>;
|
|
17769
|
+
export let compareModulesByIdentifier: (
|
|
17770
|
+
a: Module,
|
|
17771
|
+
b: Module
|
|
17772
|
+
) => 0 | 1 | -1;
|
|
16918
17773
|
export let compareModulesByPostOrderIndexOrIdentifier: ParameterizedComparator<
|
|
16919
17774
|
ModuleGraph,
|
|
16920
17775
|
Module
|
|
@@ -16923,60 +17778,42 @@ declare namespace exports {
|
|
|
16923
17778
|
ModuleGraph,
|
|
16924
17779
|
Module
|
|
16925
17780
|
>;
|
|
16926
|
-
export let
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
|
|
16930
|
-
|
|
16931
|
-
export let compareIds: (
|
|
16932
|
-
a: string | number,
|
|
16933
|
-
b: string | number
|
|
16934
|
-
) => 0 | 1 | -1;
|
|
17781
|
+
export let compareNumbers: (a: number, b: number) => 0 | 1 | -1;
|
|
17782
|
+
export let compareSelect: <T, R>(
|
|
17783
|
+
getter: Selector<T, R>,
|
|
17784
|
+
comparator: Comparator<R>
|
|
17785
|
+
) => Comparator<T>;
|
|
16935
17786
|
export let compareStrings: (a: string, b: string) => 0 | 1 | -1;
|
|
16936
|
-
export let
|
|
16937
|
-
a: ChunkGroup,
|
|
16938
|
-
b: ChunkGroup
|
|
16939
|
-
) => 0 | 1 | -1;
|
|
17787
|
+
export let compareStringsNumeric: (a: string, b: string) => 0 | 1 | -1;
|
|
16940
17788
|
export let concatComparators: <T>(
|
|
16941
17789
|
c1: Comparator<T>,
|
|
16942
17790
|
c2: Comparator<T>,
|
|
16943
17791
|
...cRest: Comparator<T>[]
|
|
16944
17792
|
) => Comparator<T>;
|
|
16945
|
-
export let compareSelect: <T, R>(
|
|
16946
|
-
getter: Selector<T, R>,
|
|
16947
|
-
comparator: Comparator<R>
|
|
16948
|
-
) => Comparator<T>;
|
|
16949
|
-
export let compareIterables: <T>(
|
|
16950
|
-
elementComparator: Comparator<T>
|
|
16951
|
-
) => Comparator<Iterable<T>>;
|
|
16952
17793
|
export let keepOriginalOrder: <T>(iterable: Iterable<T>) => Comparator<T>;
|
|
16953
|
-
export let compareChunksNatural: (
|
|
16954
|
-
chunkGraph: ChunkGraph
|
|
16955
|
-
) => Comparator<Chunk>;
|
|
16956
|
-
export let compareLocations: (
|
|
16957
|
-
a: DependencyLocation,
|
|
16958
|
-
b: DependencyLocation
|
|
16959
|
-
) => 0 | 1 | -1;
|
|
16960
17794
|
}
|
|
16961
17795
|
export namespace runtime {
|
|
16962
|
-
export let
|
|
16963
|
-
|
|
16964
|
-
|
|
16965
|
-
|
|
16966
|
-
) =>
|
|
17796
|
+
export let compareRuntime: (a: RuntimeSpec, b: RuntimeSpec) => 0 | 1 | -1;
|
|
17797
|
+
export let filterRuntime: (
|
|
17798
|
+
runtime: RuntimeSpec,
|
|
17799
|
+
filter: (runtime?: RuntimeSpec) => boolean
|
|
17800
|
+
) => undefined | string | boolean | SortableSet<string>;
|
|
16967
17801
|
export let forEachRuntime: (
|
|
16968
17802
|
runtime: RuntimeSpec,
|
|
16969
17803
|
fn: (runtime?: string) => void,
|
|
16970
17804
|
deterministicOrder?: boolean
|
|
16971
17805
|
) => void;
|
|
17806
|
+
export let getEntryRuntime: (
|
|
17807
|
+
compilation: Compilation,
|
|
17808
|
+
name: string,
|
|
17809
|
+
options?: EntryOptions
|
|
17810
|
+
) => RuntimeSpec;
|
|
16972
17811
|
export let getRuntimeKey: (runtime: RuntimeSpec) => string;
|
|
17812
|
+
export let intersectRuntime: (
|
|
17813
|
+
a: RuntimeSpec,
|
|
17814
|
+
b: RuntimeSpec
|
|
17815
|
+
) => RuntimeSpec;
|
|
16973
17816
|
export let keyToRuntime: (key: string) => RuntimeSpec;
|
|
16974
|
-
export let runtimeToString: (runtime: RuntimeSpec) => string;
|
|
16975
|
-
export let runtimeConditionToString: (
|
|
16976
|
-
runtimeCondition: RuntimeCondition
|
|
16977
|
-
) => string;
|
|
16978
|
-
export let runtimeEqual: (a: RuntimeSpec, b: RuntimeSpec) => boolean;
|
|
16979
|
-
export let compareRuntime: (a: RuntimeSpec, b: RuntimeSpec) => 0 | 1 | -1;
|
|
16980
17817
|
export let mergeRuntime: (a: RuntimeSpec, b: RuntimeSpec) => RuntimeSpec;
|
|
16981
17818
|
export let mergeRuntimeCondition: (
|
|
16982
17819
|
a: RuntimeCondition,
|
|
@@ -16992,10 +17829,11 @@ declare namespace exports {
|
|
|
16992
17829
|
a: RuntimeSpec,
|
|
16993
17830
|
b: RuntimeSpec
|
|
16994
17831
|
) => RuntimeSpec;
|
|
16995
|
-
export let
|
|
16996
|
-
|
|
16997
|
-
|
|
16998
|
-
) =>
|
|
17832
|
+
export let runtimeConditionToString: (
|
|
17833
|
+
runtimeCondition: RuntimeCondition
|
|
17834
|
+
) => string;
|
|
17835
|
+
export let runtimeEqual: (a: RuntimeSpec, b: RuntimeSpec) => boolean;
|
|
17836
|
+
export let runtimeToString: (runtime: RuntimeSpec) => string;
|
|
16999
17837
|
export let subtractRuntime: (
|
|
17000
17838
|
a: RuntimeSpec,
|
|
17001
17839
|
b: RuntimeSpec
|
|
@@ -17005,10 +17843,6 @@ declare namespace exports {
|
|
|
17005
17843
|
b: RuntimeCondition,
|
|
17006
17844
|
runtime: RuntimeSpec
|
|
17007
17845
|
) => RuntimeCondition;
|
|
17008
|
-
export let filterRuntime: (
|
|
17009
|
-
runtime: RuntimeSpec,
|
|
17010
|
-
filter: (runtime?: RuntimeSpec) => boolean
|
|
17011
|
-
) => undefined | string | boolean | SortableSet<string>;
|
|
17012
17846
|
export { RuntimeSpecMap, RuntimeSpecSet };
|
|
17013
17847
|
}
|
|
17014
17848
|
export namespace serialization {
|
|
@@ -17063,7 +17897,7 @@ declare namespace exports {
|
|
|
17063
17897
|
}
|
|
17064
17898
|
export namespace experiments {
|
|
17065
17899
|
export namespace schemes {
|
|
17066
|
-
export { HttpUriPlugin };
|
|
17900
|
+
export { HttpUriPlugin, VirtualUrlPlugin };
|
|
17067
17901
|
}
|
|
17068
17902
|
export namespace ids {
|
|
17069
17903
|
export { SyncModuleIdsPlugin };
|
|
@@ -17152,7 +17986,7 @@ declare namespace exports {
|
|
|
17152
17986
|
AutomaticPrefetchPlugin,
|
|
17153
17987
|
AsyncDependenciesBlock,
|
|
17154
17988
|
BannerPlugin,
|
|
17155
|
-
Cache,
|
|
17989
|
+
CacheClass as Cache,
|
|
17156
17990
|
Chunk,
|
|
17157
17991
|
ChunkGraph,
|
|
17158
17992
|
CleanPlugin,
|