webpack 5.99.8 → 5.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -3
- 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/CacheFacade.js +2 -1
- package/lib/CaseSensitiveModulesWarning.js +4 -4
- package/lib/Chunk.js +6 -6
- package/lib/ChunkGraph.js +37 -32
- package/lib/ChunkGroup.js +17 -10
- 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 +77 -71
- package/lib/Compiler.js +46 -16
- package/lib/ConcatenationScope.js +15 -6
- package/lib/ConstPlugin.js +65 -45
- package/lib/ContextModule.js +16 -12
- package/lib/ContextModuleFactory.js +4 -3
- package/lib/ContextReplacementPlugin.js +4 -2
- package/lib/CssModule.js +2 -3
- package/lib/DefinePlugin.js +111 -3
- package/lib/DelegatedModuleFactoryPlugin.js +18 -18
- package/lib/Dependency.js +16 -12
- 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 -38
- 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 +1 -1
- 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 +61 -56
- package/lib/NormalModuleFactory.js +52 -37
- 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/RecordIdsPlugin.js +3 -3
- package/lib/RuntimeGlobals.js +175 -155
- package/lib/RuntimeModule.js +1 -0
- package/lib/RuntimePlugin.js +34 -8
- 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 +26 -21
- package/lib/asset/AssetModulesPlugin.js +19 -17
- package/lib/asset/AssetSourceGenerator.js +11 -9
- 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/CssUrlDependency.js +1 -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 +1 -1
- package/lib/dependencies/ModuleDependencyTemplateAsRequireId.js +1 -0
- package/lib/dependencies/RequireContextPlugin.js +3 -1
- package/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +3 -0
- 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/URLDependency.js +1 -1
- 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 +73 -6
- 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 +136 -81
- 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/ModuleLibraryPlugin.js +4 -1
- 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 +6 -3
- 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 +7 -4
- package/lib/rules/UseEffectRulePlugin.js +3 -1
- 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/DataUriPlugin.js +3 -1
- 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 +6 -3
- 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 +4 -2
- package/lib/stats/DefaultStatsPrinterPlugin.js +28 -22
- package/lib/stats/StatsFactory.js +4 -2
- package/lib/stats/StatsPrinter.js +3 -2
- 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 +12 -8
- 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 +121 -114
- 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 +1261 -366
package/types.d.ts
CHANGED
|
@@ -263,6 +263,7 @@ type ArrayBufferView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =
|
|
|
263
263
|
| Int32Array
|
|
264
264
|
| BigUint64Array
|
|
265
265
|
| BigInt64Array
|
|
266
|
+
| Float16Array
|
|
266
267
|
| Float32Array
|
|
267
268
|
| Float64Array
|
|
268
269
|
| DataView;
|
|
@@ -529,16 +530,59 @@ declare interface BannerPluginOptions {
|
|
|
529
530
|
test?: string | RegExp | Rule[];
|
|
530
531
|
}
|
|
531
532
|
declare interface BaseResolveRequest {
|
|
533
|
+
/**
|
|
534
|
+
* path
|
|
535
|
+
*/
|
|
532
536
|
path: string | false;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* content
|
|
540
|
+
*/
|
|
533
541
|
context?: object;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* description file path
|
|
545
|
+
*/
|
|
534
546
|
descriptionFilePath?: string;
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* description file root
|
|
550
|
+
*/
|
|
535
551
|
descriptionFileRoot?: string;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* description file data
|
|
555
|
+
*/
|
|
536
556
|
descriptionFileData?: JsonObjectTypes;
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* relative path
|
|
560
|
+
*/
|
|
537
561
|
relativePath?: string;
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* true when need to ignore symlinks, otherwise false
|
|
565
|
+
*/
|
|
538
566
|
ignoreSymlinks?: boolean;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* true when full specified, otherwise false
|
|
570
|
+
*/
|
|
539
571
|
fullySpecified?: boolean;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* inner request for internal usage
|
|
575
|
+
*/
|
|
540
576
|
__innerRequest?: string;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* inner request for internal usage
|
|
580
|
+
*/
|
|
541
581
|
__innerRequest_request?: string;
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* inner relative path for internal usage
|
|
585
|
+
*/
|
|
542
586
|
__innerRequest_relativePath?: string;
|
|
543
587
|
}
|
|
544
588
|
declare abstract class BasicEvaluatedExpression {
|
|
@@ -895,6 +939,46 @@ type BufferEncoding =
|
|
|
895
939
|
| "binary"
|
|
896
940
|
| "hex";
|
|
897
941
|
type BufferEncodingOption = "buffer" | { encoding: "buffer" };
|
|
942
|
+
declare interface BufferEntry {
|
|
943
|
+
map?: null | RawSourceMap;
|
|
944
|
+
bufferedMap?: null | BufferedMap;
|
|
945
|
+
}
|
|
946
|
+
declare interface BufferedMap {
|
|
947
|
+
/**
|
|
948
|
+
* version
|
|
949
|
+
*/
|
|
950
|
+
version: number;
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* sources
|
|
954
|
+
*/
|
|
955
|
+
sources: string[];
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* name
|
|
959
|
+
*/
|
|
960
|
+
names: string[];
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* source root
|
|
964
|
+
*/
|
|
965
|
+
sourceRoot?: string;
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* sources content
|
|
969
|
+
*/
|
|
970
|
+
sourcesContent?: ("" | Buffer)[];
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* mappings
|
|
974
|
+
*/
|
|
975
|
+
mappings?: Buffer;
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* file
|
|
979
|
+
*/
|
|
980
|
+
file: string;
|
|
981
|
+
}
|
|
898
982
|
type BuildInfo = KnownBuildInfo & Record<string, any>;
|
|
899
983
|
type BuildMeta = KnownBuildMeta & Record<string, any>;
|
|
900
984
|
declare abstract class ByTypeGenerator extends Generator {
|
|
@@ -906,7 +990,7 @@ declare abstract class ByTypeGenerator extends Generator {
|
|
|
906
990
|
) => null | Source;
|
|
907
991
|
}
|
|
908
992
|
declare const CIRCULAR_CONNECTION: unique symbol;
|
|
909
|
-
declare class
|
|
993
|
+
declare class CacheClass {
|
|
910
994
|
constructor();
|
|
911
995
|
hooks: {
|
|
912
996
|
get: AsyncSeriesBailHook<
|
|
@@ -1014,12 +1098,64 @@ declare interface CacheGroupsContext {
|
|
|
1014
1098
|
chunkGraph: ChunkGraph;
|
|
1015
1099
|
}
|
|
1016
1100
|
type CacheOptionsNormalized = false | FileCacheOptions | MemoryCacheOptions;
|
|
1101
|
+
declare interface CacheTypes {
|
|
1102
|
+
[index: string]: undefined | ResolveRequest | ResolveRequest[];
|
|
1103
|
+
}
|
|
1104
|
+
declare interface CachedData {
|
|
1105
|
+
/**
|
|
1106
|
+
* source
|
|
1107
|
+
*/
|
|
1108
|
+
source?: boolean;
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* buffer
|
|
1112
|
+
*/
|
|
1113
|
+
buffer: Buffer;
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* size
|
|
1117
|
+
*/
|
|
1118
|
+
size?: number;
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* maps
|
|
1122
|
+
*/
|
|
1123
|
+
maps: Map<string, BufferEntry>;
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* hash
|
|
1127
|
+
*/
|
|
1128
|
+
hash?: (string | Buffer)[];
|
|
1129
|
+
}
|
|
1017
1130
|
declare class CachedSource extends Source {
|
|
1018
|
-
constructor(source: Source);
|
|
1019
|
-
|
|
1020
|
-
original(): Source;
|
|
1131
|
+
constructor(source: Source | (() => Source), cachedData?: CachedData);
|
|
1132
|
+
getCachedData(): CachedData;
|
|
1021
1133
|
originalLazy(): Source | (() => Source);
|
|
1022
|
-
|
|
1134
|
+
original(): Source;
|
|
1135
|
+
streamChunks(
|
|
1136
|
+
options: StreamChunksOptions,
|
|
1137
|
+
onChunk: (
|
|
1138
|
+
chunk: undefined | string,
|
|
1139
|
+
generatedLine: number,
|
|
1140
|
+
generatedColumn: number,
|
|
1141
|
+
sourceIndex: number,
|
|
1142
|
+
originalLine: number,
|
|
1143
|
+
originalColumn: number,
|
|
1144
|
+
nameIndex: number
|
|
1145
|
+
) => void,
|
|
1146
|
+
onSource: (
|
|
1147
|
+
sourceIndex: number,
|
|
1148
|
+
source: null | string,
|
|
1149
|
+
sourceContent?: string
|
|
1150
|
+
) => void,
|
|
1151
|
+
onName: (nameIndex: number, name: string) => void
|
|
1152
|
+
): GeneratedSourceInfo;
|
|
1153
|
+
}
|
|
1154
|
+
declare interface CalculatedStringResult {
|
|
1155
|
+
range?: [number, number];
|
|
1156
|
+
value: string;
|
|
1157
|
+
code: boolean;
|
|
1158
|
+
conditional: false | CalculatedStringResult[];
|
|
1023
1159
|
}
|
|
1024
1160
|
type CallExpression = SimpleCallExpression | NewExpression;
|
|
1025
1161
|
declare interface CallExpressionInfo {
|
|
@@ -1444,12 +1580,19 @@ declare interface ChunkHashContext {
|
|
|
1444
1580
|
*/
|
|
1445
1581
|
chunkGraph: ChunkGraph;
|
|
1446
1582
|
}
|
|
1583
|
+
declare interface ChunkHashes {
|
|
1584
|
+
[index: number]: string;
|
|
1585
|
+
[index: string]: string;
|
|
1586
|
+
}
|
|
1447
1587
|
type ChunkId = string | number;
|
|
1448
1588
|
declare interface ChunkMaps {
|
|
1449
1589
|
hash: Record<string | number, string>;
|
|
1450
1590
|
contentHash: Record<string | number, Record<string, string>>;
|
|
1451
1591
|
name: Record<string | number, string>;
|
|
1452
1592
|
}
|
|
1593
|
+
declare interface ChunkModuleHashes {
|
|
1594
|
+
[index: string]: string;
|
|
1595
|
+
}
|
|
1453
1596
|
declare class ChunkModuleIdRangePlugin {
|
|
1454
1597
|
constructor(options: ChunkModuleIdRangePluginOptions);
|
|
1455
1598
|
options: ChunkModuleIdRangePluginOptions;
|
|
@@ -1480,6 +1623,10 @@ declare interface ChunkModuleIdRangePluginOptions {
|
|
|
1480
1623
|
*/
|
|
1481
1624
|
end?: number;
|
|
1482
1625
|
}
|
|
1626
|
+
declare interface ChunkModuleIds {
|
|
1627
|
+
[index: number]: ModuleId[];
|
|
1628
|
+
[index: string]: ModuleId[];
|
|
1629
|
+
}
|
|
1483
1630
|
declare interface ChunkModuleMaps {
|
|
1484
1631
|
id: Record<string | number, (string | number)[]>;
|
|
1485
1632
|
hash: Record<string | number, string>;
|
|
@@ -1564,6 +1711,10 @@ declare interface ChunkRenderContextJavascriptModulesPlugin {
|
|
|
1564
1711
|
*/
|
|
1565
1712
|
strictMode?: boolean;
|
|
1566
1713
|
}
|
|
1714
|
+
declare interface ChunkRuntime {
|
|
1715
|
+
[index: number]: string;
|
|
1716
|
+
[index: string]: string;
|
|
1717
|
+
}
|
|
1567
1718
|
declare interface ChunkSizeOptions {
|
|
1568
1719
|
/**
|
|
1569
1720
|
* constant overhead for a chunk
|
|
@@ -1973,7 +2124,7 @@ declare class Compilation {
|
|
|
1973
2124
|
statsFactory: SyncHook<[StatsFactory, NormalizedStatsOptions]>;
|
|
1974
2125
|
statsPrinter: SyncHook<[StatsPrinter, NormalizedStatsOptions]>;
|
|
1975
2126
|
get normalModuleLoader(): SyncHook<
|
|
1976
|
-
[
|
|
2127
|
+
[LoaderContextObject<any>, NormalModule]
|
|
1977
2128
|
>;
|
|
1978
2129
|
}>;
|
|
1979
2130
|
name?: string;
|
|
@@ -2461,7 +2612,7 @@ declare class Compiler {
|
|
|
2461
2612
|
watchFileSystem: null | WatchFileSystem;
|
|
2462
2613
|
recordsInputPath: null | string;
|
|
2463
2614
|
recordsOutputPath: null | string;
|
|
2464
|
-
records:
|
|
2615
|
+
records: Records;
|
|
2465
2616
|
managedPaths: Set<string | RegExp>;
|
|
2466
2617
|
unmanagedPaths: Set<string | RegExp>;
|
|
2467
2618
|
immutablePaths: Set<string | RegExp>;
|
|
@@ -2480,7 +2631,7 @@ declare class Compiler {
|
|
|
2480
2631
|
options: WebpackOptionsNormalized;
|
|
2481
2632
|
context: string;
|
|
2482
2633
|
requestShortener: RequestShortener;
|
|
2483
|
-
cache:
|
|
2634
|
+
cache: CacheClass;
|
|
2484
2635
|
moduleMemCaches?: Map<Module, ModuleMemCachesItem>;
|
|
2485
2636
|
compilerPath: string;
|
|
2486
2637
|
running: boolean;
|
|
@@ -2524,11 +2675,30 @@ declare class Compiler {
|
|
|
2524
2675
|
close(callback: RunCallback<void>): void;
|
|
2525
2676
|
}
|
|
2526
2677
|
declare class ConcatSource extends Source {
|
|
2527
|
-
constructor(...args:
|
|
2678
|
+
constructor(...args: ConcatSourceChild[]);
|
|
2528
2679
|
getChildren(): Source[];
|
|
2529
|
-
add(item:
|
|
2530
|
-
addAllSkipOptimizing(items:
|
|
2680
|
+
add(item: ConcatSourceChild): void;
|
|
2681
|
+
addAllSkipOptimizing(items: ConcatSourceChild[]): void;
|
|
2682
|
+
streamChunks(
|
|
2683
|
+
options: StreamChunksOptions,
|
|
2684
|
+
onChunk: (
|
|
2685
|
+
chunk: undefined | string,
|
|
2686
|
+
generatedLine: number,
|
|
2687
|
+
generatedColumn: number,
|
|
2688
|
+
sourceIndex: number,
|
|
2689
|
+
originalLine: number,
|
|
2690
|
+
originalColumn: number,
|
|
2691
|
+
nameIndex: number
|
|
2692
|
+
) => void,
|
|
2693
|
+
onSource: (
|
|
2694
|
+
sourceIndex: number,
|
|
2695
|
+
source: null | string,
|
|
2696
|
+
sourceContent?: string
|
|
2697
|
+
) => void,
|
|
2698
|
+
onName: (nameIndex: number, name: string) => void
|
|
2699
|
+
): GeneratedSourceInfo;
|
|
2531
2700
|
}
|
|
2701
|
+
type ConcatSourceChild = string | Source | SourceLike;
|
|
2532
2702
|
declare interface ConcatenatedModuleInfo {
|
|
2533
2703
|
type: "concatenated";
|
|
2534
2704
|
module: Module;
|
|
@@ -2545,11 +2715,35 @@ declare interface ConcatenatedModuleInfo {
|
|
|
2545
2715
|
rawExportMap?: Map<string, string>;
|
|
2546
2716
|
namespaceExportSymbol?: string;
|
|
2547
2717
|
namespaceObjectName?: string;
|
|
2718
|
+
|
|
2719
|
+
/**
|
|
2720
|
+
* "default-with-named" namespace
|
|
2721
|
+
*/
|
|
2548
2722
|
interopNamespaceObjectUsed: boolean;
|
|
2723
|
+
|
|
2724
|
+
/**
|
|
2725
|
+
* "default-with-named" namespace
|
|
2726
|
+
*/
|
|
2549
2727
|
interopNamespaceObjectName?: string;
|
|
2728
|
+
|
|
2729
|
+
/**
|
|
2730
|
+
* "default-only" namespace
|
|
2731
|
+
*/
|
|
2550
2732
|
interopNamespaceObject2Used: boolean;
|
|
2733
|
+
|
|
2734
|
+
/**
|
|
2735
|
+
* "default-only" namespace
|
|
2736
|
+
*/
|
|
2551
2737
|
interopNamespaceObject2Name?: string;
|
|
2738
|
+
|
|
2739
|
+
/**
|
|
2740
|
+
* runtime namespace object that detects "__esModule"
|
|
2741
|
+
*/
|
|
2552
2742
|
interopDefaultAccessUsed: boolean;
|
|
2743
|
+
|
|
2744
|
+
/**
|
|
2745
|
+
* runtime namespace object that detects "__esModule"
|
|
2746
|
+
*/
|
|
2553
2747
|
interopDefaultAccessName?: string;
|
|
2554
2748
|
}
|
|
2555
2749
|
declare interface ConcatenationBailoutReasonContext {
|
|
@@ -2838,8 +3032,8 @@ declare interface Configuration {
|
|
|
2838
3032
|
}
|
|
2839
3033
|
type ConnectionState =
|
|
2840
3034
|
| boolean
|
|
2841
|
-
| typeof
|
|
2842
|
-
| typeof
|
|
3035
|
+
| typeof CIRCULAR_CONNECTION
|
|
3036
|
+
| typeof TRANSITIVE_ONLY;
|
|
2843
3037
|
declare class ConstDependency extends NullDependency {
|
|
2844
3038
|
constructor(
|
|
2845
3039
|
expression: string,
|
|
@@ -3293,7 +3487,7 @@ declare abstract class CssModule extends NormalModule {
|
|
|
3293
3487
|
cssLayer: CssLayer;
|
|
3294
3488
|
supports: Supports;
|
|
3295
3489
|
media: Media;
|
|
3296
|
-
inheritance
|
|
3490
|
+
inheritance?: [CssLayer, Supports, Media][];
|
|
3297
3491
|
}
|
|
3298
3492
|
|
|
3299
3493
|
/**
|
|
@@ -3463,7 +3657,8 @@ declare interface DependenciesBlockLike {
|
|
|
3463
3657
|
declare class Dependency {
|
|
3464
3658
|
constructor();
|
|
3465
3659
|
weak: boolean;
|
|
3466
|
-
|
|
3660
|
+
defer?: boolean;
|
|
3661
|
+
optional?: boolean;
|
|
3467
3662
|
get type(): string;
|
|
3468
3663
|
get category(): string;
|
|
3469
3664
|
loc: DependencyLocation;
|
|
@@ -3526,7 +3721,7 @@ declare class Dependency {
|
|
|
3526
3721
|
getModuleEvaluationSideEffectsState(
|
|
3527
3722
|
moduleGraph: ModuleGraph
|
|
3528
3723
|
): ConnectionState;
|
|
3529
|
-
createIgnoredModule(context: string):
|
|
3724
|
+
createIgnoredModule(context: string): Module;
|
|
3530
3725
|
serialize(__0: ObjectSerializerContext): void;
|
|
3531
3726
|
deserialize(__0: ObjectDeserializerContext): void;
|
|
3532
3727
|
module: any;
|
|
@@ -3685,16 +3880,59 @@ declare interface DeterministicModuleIdsPluginOptions {
|
|
|
3685
3880
|
failOnConflict?: boolean;
|
|
3686
3881
|
}
|
|
3687
3882
|
type DevtoolModuleFilenameTemplate = string | ((context?: any) => string);
|
|
3688
|
-
declare interface Dirent {
|
|
3883
|
+
declare interface Dirent<T extends string | Buffer = string> {
|
|
3884
|
+
/**
|
|
3885
|
+
* true when is file, otherwise false
|
|
3886
|
+
*/
|
|
3689
3887
|
isFile: () => boolean;
|
|
3888
|
+
|
|
3889
|
+
/**
|
|
3890
|
+
* true when is directory, otherwise false
|
|
3891
|
+
*/
|
|
3690
3892
|
isDirectory: () => boolean;
|
|
3893
|
+
|
|
3894
|
+
/**
|
|
3895
|
+
* true when is block device, otherwise false
|
|
3896
|
+
*/
|
|
3691
3897
|
isBlockDevice: () => boolean;
|
|
3898
|
+
|
|
3899
|
+
/**
|
|
3900
|
+
* true when is character device, otherwise false
|
|
3901
|
+
*/
|
|
3692
3902
|
isCharacterDevice: () => boolean;
|
|
3903
|
+
|
|
3904
|
+
/**
|
|
3905
|
+
* true when is symbolic link, otherwise false
|
|
3906
|
+
*/
|
|
3693
3907
|
isSymbolicLink: () => boolean;
|
|
3908
|
+
|
|
3909
|
+
/**
|
|
3910
|
+
* true when is FIFO, otherwise false
|
|
3911
|
+
*/
|
|
3694
3912
|
isFIFO: () => boolean;
|
|
3913
|
+
|
|
3914
|
+
/**
|
|
3915
|
+
* true when is socket, otherwise false
|
|
3916
|
+
*/
|
|
3695
3917
|
isSocket: () => boolean;
|
|
3696
|
-
|
|
3697
|
-
|
|
3918
|
+
|
|
3919
|
+
/**
|
|
3920
|
+
* name
|
|
3921
|
+
*/
|
|
3922
|
+
name: T;
|
|
3923
|
+
|
|
3924
|
+
/**
|
|
3925
|
+
* path
|
|
3926
|
+
*/
|
|
3927
|
+
parentPath: string;
|
|
3928
|
+
|
|
3929
|
+
/**
|
|
3930
|
+
* path
|
|
3931
|
+
*/
|
|
3932
|
+
path?: string;
|
|
3933
|
+
}
|
|
3934
|
+
declare interface Disposable {
|
|
3935
|
+
[Symbol.dispose](): void;
|
|
3698
3936
|
}
|
|
3699
3937
|
declare class DllPlugin {
|
|
3700
3938
|
constructor(options: DllPluginOptions);
|
|
@@ -3933,7 +4171,7 @@ declare interface EffectData {
|
|
|
3933
4171
|
assertions?: ImportAttributes;
|
|
3934
4172
|
mimetype?: string;
|
|
3935
4173
|
dependency: string;
|
|
3936
|
-
descriptionData
|
|
4174
|
+
descriptionData?: Record<string, any>;
|
|
3937
4175
|
compiler?: string;
|
|
3938
4176
|
issuer: string;
|
|
3939
4177
|
issuerLayer: string;
|
|
@@ -4492,6 +4730,11 @@ declare interface ExperimentsExtra {
|
|
|
4492
4730
|
*/
|
|
4493
4731
|
css?: boolean;
|
|
4494
4732
|
|
|
4733
|
+
/**
|
|
4734
|
+
* 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.
|
|
4735
|
+
*/
|
|
4736
|
+
deferImport?: boolean;
|
|
4737
|
+
|
|
4495
4738
|
/**
|
|
4496
4739
|
* Compile entrypoints and import()s only when they are accessed.
|
|
4497
4740
|
*/
|
|
@@ -4513,6 +4756,11 @@ declare interface ExperimentsNormalizedExtra {
|
|
|
4513
4756
|
*/
|
|
4514
4757
|
css?: boolean;
|
|
4515
4758
|
|
|
4759
|
+
/**
|
|
4760
|
+
* 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.
|
|
4761
|
+
*/
|
|
4762
|
+
deferImport?: boolean;
|
|
4763
|
+
|
|
4516
4764
|
/**
|
|
4517
4765
|
* Compile entrypoints and import()s only when they are accessed.
|
|
4518
4766
|
*/
|
|
@@ -4746,6 +4994,11 @@ declare interface ExportsSpec {
|
|
|
4746
4994
|
*/
|
|
4747
4995
|
dependencies?: Module[];
|
|
4748
4996
|
}
|
|
4997
|
+
type ExportsType =
|
|
4998
|
+
| "namespace"
|
|
4999
|
+
| "default-only"
|
|
5000
|
+
| "default-with-named"
|
|
5001
|
+
| "dynamic";
|
|
4749
5002
|
type Exposes = (string | ExposesObject)[] | ExposesObject;
|
|
4750
5003
|
|
|
4751
5004
|
/**
|
|
@@ -4926,12 +5179,60 @@ declare interface ExternalModuleInfo {
|
|
|
4926
5179
|
module: Module;
|
|
4927
5180
|
runtimeCondition?: string | boolean | SortableSet<string>;
|
|
4928
5181
|
index: number;
|
|
5182
|
+
|
|
5183
|
+
/**
|
|
5184
|
+
* module.exports / harmony namespace object
|
|
5185
|
+
*/
|
|
4929
5186
|
name?: string;
|
|
5187
|
+
|
|
5188
|
+
/**
|
|
5189
|
+
* deferred module.exports / harmony namespace object
|
|
5190
|
+
*/
|
|
5191
|
+
deferredName?: string;
|
|
5192
|
+
|
|
5193
|
+
/**
|
|
5194
|
+
* the module is deferred at least once
|
|
5195
|
+
*/
|
|
5196
|
+
deferred: boolean;
|
|
5197
|
+
|
|
5198
|
+
/**
|
|
5199
|
+
* deferred namespace object that being used in a not-analyzable way so it must be materialized
|
|
5200
|
+
*/
|
|
5201
|
+
deferredNamespaceObjectUsed: boolean;
|
|
5202
|
+
|
|
5203
|
+
/**
|
|
5204
|
+
* deferred namespace object that being used in a not-analyzable way so it must be materialized
|
|
5205
|
+
*/
|
|
5206
|
+
deferredNamespaceObjectName?: string;
|
|
5207
|
+
|
|
5208
|
+
/**
|
|
5209
|
+
* "default-with-named" namespace
|
|
5210
|
+
*/
|
|
4930
5211
|
interopNamespaceObjectUsed: boolean;
|
|
5212
|
+
|
|
5213
|
+
/**
|
|
5214
|
+
* "default-with-named" namespace
|
|
5215
|
+
*/
|
|
4931
5216
|
interopNamespaceObjectName?: string;
|
|
5217
|
+
|
|
5218
|
+
/**
|
|
5219
|
+
* "default-only" namespace
|
|
5220
|
+
*/
|
|
4932
5221
|
interopNamespaceObject2Used: boolean;
|
|
5222
|
+
|
|
5223
|
+
/**
|
|
5224
|
+
* "default-only" namespace
|
|
5225
|
+
*/
|
|
4933
5226
|
interopNamespaceObject2Name?: string;
|
|
5227
|
+
|
|
5228
|
+
/**
|
|
5229
|
+
* runtime namespace object that detects "__esModule"
|
|
5230
|
+
*/
|
|
4934
5231
|
interopDefaultAccessUsed: boolean;
|
|
5232
|
+
|
|
5233
|
+
/**
|
|
5234
|
+
* runtime namespace object that detects "__esModule"
|
|
5235
|
+
*/
|
|
4935
5236
|
interopDefaultAccessName?: string;
|
|
4936
5237
|
}
|
|
4937
5238
|
type Externals =
|
|
@@ -5183,18 +5484,45 @@ declare interface FileCacheOptions {
|
|
|
5183
5484
|
version?: string;
|
|
5184
5485
|
}
|
|
5185
5486
|
declare interface FileSystem {
|
|
5487
|
+
/**
|
|
5488
|
+
* read file method
|
|
5489
|
+
*/
|
|
5186
5490
|
readFile: ReadFileTypes;
|
|
5491
|
+
|
|
5492
|
+
/**
|
|
5493
|
+
* readdir method
|
|
5494
|
+
*/
|
|
5187
5495
|
readdir: ReaddirTypes;
|
|
5496
|
+
|
|
5497
|
+
/**
|
|
5498
|
+
* read json method
|
|
5499
|
+
*/
|
|
5188
5500
|
readJson?: (
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5501
|
+
pathOrFileDescription: PathOrFileDescriptorTypes,
|
|
5502
|
+
callback: (
|
|
5503
|
+
err: null | Error | NodeJS.ErrnoException,
|
|
5504
|
+
result?: JsonObjectTypes
|
|
5193
5505
|
) => void
|
|
5194
5506
|
) => void;
|
|
5507
|
+
|
|
5508
|
+
/**
|
|
5509
|
+
* read link method
|
|
5510
|
+
*/
|
|
5195
5511
|
readlink: ReadlinkTypes;
|
|
5512
|
+
|
|
5513
|
+
/**
|
|
5514
|
+
* lstat method
|
|
5515
|
+
*/
|
|
5196
5516
|
lstat?: LStatTypes;
|
|
5517
|
+
|
|
5518
|
+
/**
|
|
5519
|
+
* stat method
|
|
5520
|
+
*/
|
|
5197
5521
|
stat: StatTypes;
|
|
5522
|
+
|
|
5523
|
+
/**
|
|
5524
|
+
* realpath method
|
|
5525
|
+
*/
|
|
5198
5526
|
realpath?: RealPathTypes;
|
|
5199
5527
|
}
|
|
5200
5528
|
declare abstract class FileSystemInfo {
|
|
@@ -5294,6 +5622,9 @@ type FilterItemTypes = string | RegExp | ((value: string) => boolean);
|
|
|
5294
5622
|
declare interface Flags {
|
|
5295
5623
|
[index: string]: Argument;
|
|
5296
5624
|
}
|
|
5625
|
+
declare interface FullHashChunkModuleHashes {
|
|
5626
|
+
[index: string]: string;
|
|
5627
|
+
}
|
|
5297
5628
|
declare interface GenerateContext {
|
|
5298
5629
|
/**
|
|
5299
5630
|
* mapping from dependencies to templates
|
|
@@ -5343,7 +5674,30 @@ declare interface GenerateContext {
|
|
|
5343
5674
|
/**
|
|
5344
5675
|
* get access to the code generation data
|
|
5345
5676
|
*/
|
|
5346
|
-
getData?: () =>
|
|
5677
|
+
getData?: () => GenerateContextData;
|
|
5678
|
+
}
|
|
5679
|
+
type GenerateContextData = Map<"url", { [index: string]: string }> &
|
|
5680
|
+
Map<"fullContentHash", string> &
|
|
5681
|
+
Map<"contentHash", string> &
|
|
5682
|
+
Map<"filename", string> &
|
|
5683
|
+
Map<"assetInfo", AssetInfo> &
|
|
5684
|
+
Map<"chunkInitFragments", InitFragment<GenerateContext>[]> &
|
|
5685
|
+
Record<string, any>;
|
|
5686
|
+
declare interface GeneratedSourceInfo {
|
|
5687
|
+
/**
|
|
5688
|
+
* generated line
|
|
5689
|
+
*/
|
|
5690
|
+
generatedLine?: number;
|
|
5691
|
+
|
|
5692
|
+
/**
|
|
5693
|
+
* generated column
|
|
5694
|
+
*/
|
|
5695
|
+
generatedColumn?: number;
|
|
5696
|
+
|
|
5697
|
+
/**
|
|
5698
|
+
* source
|
|
5699
|
+
*/
|
|
5700
|
+
source?: string;
|
|
5347
5701
|
}
|
|
5348
5702
|
declare class Generator {
|
|
5349
5703
|
constructor();
|
|
@@ -5595,6 +5949,17 @@ declare class Hash {
|
|
|
5595
5949
|
digest(encoding?: string): string | Buffer;
|
|
5596
5950
|
}
|
|
5597
5951
|
type HashFunction = string | typeof Hash;
|
|
5952
|
+
declare interface HashLike {
|
|
5953
|
+
/**
|
|
5954
|
+
* make hash update
|
|
5955
|
+
*/
|
|
5956
|
+
update: (data: string | Buffer, inputEncoding?: string) => HashLike;
|
|
5957
|
+
|
|
5958
|
+
/**
|
|
5959
|
+
* get hash digest
|
|
5960
|
+
*/
|
|
5961
|
+
digest: (encoding?: string) => string | Buffer;
|
|
5962
|
+
}
|
|
5598
5963
|
declare interface HashableObject {
|
|
5599
5964
|
updateHash: (hash: Hash) => void;
|
|
5600
5965
|
}
|
|
@@ -5793,6 +6158,7 @@ type ImportAttribute = BaseNode & {
|
|
|
5793
6158
|
type ImportAttributes = Record<string, string> & {};
|
|
5794
6159
|
type ImportDeclarationJavascriptParser = ImportDeclarationImport & {
|
|
5795
6160
|
attributes?: ImportAttribute[];
|
|
6161
|
+
phase?: "defer";
|
|
5796
6162
|
};
|
|
5797
6163
|
declare interface ImportDependencyMeta {
|
|
5798
6164
|
attributes?: ImportAttributes;
|
|
@@ -5828,6 +6194,7 @@ type ImportExpressionJavascriptParser = ImportExpressionImport & {
|
|
|
5828
6194
|
| ThisExpression
|
|
5829
6195
|
| UpdateExpression
|
|
5830
6196
|
| YieldExpression;
|
|
6197
|
+
phase?: "defer";
|
|
5831
6198
|
};
|
|
5832
6199
|
declare interface ImportModuleOptions {
|
|
5833
6200
|
/**
|
|
@@ -6009,6 +6376,12 @@ declare abstract class ItemCacheFacade {
|
|
|
6009
6376
|
): void;
|
|
6010
6377
|
providePromise<T>(computer: () => T | Promise<T>): Promise<T>;
|
|
6011
6378
|
}
|
|
6379
|
+
declare interface IteratorObject<T, TReturn = unknown, TNext = unknown>
|
|
6380
|
+
extends Iterator<T, TReturn, TNext>,
|
|
6381
|
+
Disposable {
|
|
6382
|
+
[Symbol.iterator](): IteratorObject<T, TReturn, TNext>;
|
|
6383
|
+
[Symbol.dispose](): void;
|
|
6384
|
+
}
|
|
6012
6385
|
declare class JavascriptModulesPlugin {
|
|
6013
6386
|
constructor(options?: object);
|
|
6014
6387
|
options: object;
|
|
@@ -6403,10 +6776,11 @@ declare class JavascriptParser extends Parser {
|
|
|
6403
6776
|
boolean | void
|
|
6404
6777
|
>;
|
|
6405
6778
|
declarator: SyncBailHook<[VariableDeclarator, Statement], boolean | void>;
|
|
6406
|
-
varDeclaration: HookMap<SyncBailHook<[
|
|
6407
|
-
varDeclarationLet: HookMap<SyncBailHook<[
|
|
6408
|
-
varDeclarationConst: HookMap<SyncBailHook<[
|
|
6409
|
-
|
|
6779
|
+
varDeclaration: HookMap<SyncBailHook<[Identifier], boolean | void>>;
|
|
6780
|
+
varDeclarationLet: HookMap<SyncBailHook<[Identifier], boolean | void>>;
|
|
6781
|
+
varDeclarationConst: HookMap<SyncBailHook<[Identifier], boolean | void>>;
|
|
6782
|
+
varDeclarationUsing: HookMap<SyncBailHook<[Identifier], boolean | void>>;
|
|
6783
|
+
varDeclarationVar: HookMap<SyncBailHook<[Identifier], boolean | void>>;
|
|
6410
6784
|
pattern: HookMap<SyncBailHook<[Identifier], boolean | void>>;
|
|
6411
6785
|
canRename: HookMap<SyncBailHook<[Expression], boolean | void>>;
|
|
6412
6786
|
rename: HookMap<SyncBailHook<[Expression], boolean | void>>;
|
|
@@ -6501,6 +6875,7 @@ declare class JavascriptParser extends Parser {
|
|
|
6501
6875
|
program: SyncBailHook<[Program, Comment[]], boolean | void>;
|
|
6502
6876
|
terminate: SyncBailHook<[ReturnStatement | ThrowStatement], boolean | void>;
|
|
6503
6877
|
finish: SyncBailHook<[Program, Comment[]], boolean | void>;
|
|
6878
|
+
unusedStatement: SyncBailHook<[Statement], boolean | void>;
|
|
6504
6879
|
}>;
|
|
6505
6880
|
sourceType: "module" | "auto" | "script";
|
|
6506
6881
|
scope: ScopeInfo;
|
|
@@ -6814,7 +7189,7 @@ declare class JavascriptParser extends Parser {
|
|
|
6814
7189
|
*/
|
|
6815
7190
|
walkNestedStatement(statement: Statement): void;
|
|
6816
7191
|
preWalkBlockStatement(statement: BlockStatement): void;
|
|
6817
|
-
walkBlockStatement(statement: BlockStatement): void;
|
|
7192
|
+
walkBlockStatement(statement: BlockStatement | StaticBlock): void;
|
|
6818
7193
|
walkExpressionStatement(statement: ExpressionStatement): void;
|
|
6819
7194
|
preWalkIfStatement(statement: IfStatement): void;
|
|
6820
7195
|
walkIfStatement(statement: IfStatement): void;
|
|
@@ -7058,7 +7433,7 @@ declare class JavascriptParser extends Parser {
|
|
|
7058
7433
|
name: string,
|
|
7059
7434
|
rootInfo: string | VariableInfo | ScopeInfo,
|
|
7060
7435
|
getMembers: () => string[]
|
|
7061
|
-
) =>
|
|
7436
|
+
) => R),
|
|
7062
7437
|
defined: undefined | ((result?: string) => undefined | R),
|
|
7063
7438
|
...args: AsArray<T>
|
|
7064
7439
|
): undefined | R;
|
|
@@ -7075,7 +7450,7 @@ declare class JavascriptParser extends Parser {
|
|
|
7075
7450
|
callHooksForInfoWithFallback<T, R>(
|
|
7076
7451
|
hookMap: HookMap<SyncBailHook<T, R>>,
|
|
7077
7452
|
info: ExportedVariableInfo,
|
|
7078
|
-
fallback: undefined | ((name: string) =>
|
|
7453
|
+
fallback: undefined | ((name: string) => undefined | R),
|
|
7079
7454
|
defined: undefined | ((result?: string) => any),
|
|
7080
7455
|
...args: AsArray<T>
|
|
7081
7456
|
): undefined | R;
|
|
@@ -7223,12 +7598,7 @@ declare class JavascriptParser extends Parser {
|
|
|
7223
7598
|
| Super
|
|
7224
7599
|
): BasicEvaluatedExpression;
|
|
7225
7600
|
parseString(expression: Expression): string;
|
|
7226
|
-
parseCalculatedString(expression: Expression):
|
|
7227
|
-
range?: [number, number];
|
|
7228
|
-
value: string;
|
|
7229
|
-
code: boolean;
|
|
7230
|
-
conditional: any;
|
|
7231
|
-
};
|
|
7601
|
+
parseCalculatedString(expression: Expression): CalculatedStringResult;
|
|
7232
7602
|
evaluate(source: string): BasicEvaluatedExpression;
|
|
7233
7603
|
isPure(
|
|
7234
7604
|
expr:
|
|
@@ -7395,8 +7765,9 @@ declare class JavascriptParser extends Parser {
|
|
|
7395
7765
|
getMembers: () => string[];
|
|
7396
7766
|
};
|
|
7397
7767
|
static ALLOWED_MEMBER_TYPES_ALL: 3;
|
|
7398
|
-
static ALLOWED_MEMBER_TYPES_EXPRESSION: 2;
|
|
7399
7768
|
static ALLOWED_MEMBER_TYPES_CALL_EXPRESSION: 1;
|
|
7769
|
+
static ALLOWED_MEMBER_TYPES_EXPRESSION: 2;
|
|
7770
|
+
static VariableInfo: typeof VariableInfo;
|
|
7400
7771
|
static getImportAttributes: (
|
|
7401
7772
|
node:
|
|
7402
7773
|
| ImportDeclarationJavascriptParser
|
|
@@ -7404,7 +7775,6 @@ declare class JavascriptParser extends Parser {
|
|
|
7404
7775
|
| ExportAllDeclarationJavascriptParser
|
|
7405
7776
|
| ImportExpressionJavascriptParser
|
|
7406
7777
|
) => undefined | ImportAttributes;
|
|
7407
|
-
static VariableInfo: typeof VariableInfo;
|
|
7408
7778
|
}
|
|
7409
7779
|
|
|
7410
7780
|
/**
|
|
@@ -7458,6 +7828,11 @@ declare interface JavascriptParserOptions {
|
|
|
7458
7828
|
*/
|
|
7459
7829
|
dynamicImportPreload?: number | boolean;
|
|
7460
7830
|
|
|
7831
|
+
/**
|
|
7832
|
+
* Enable/disable parsing of dynamic URL.
|
|
7833
|
+
*/
|
|
7834
|
+
dynamicUrl?: boolean;
|
|
7835
|
+
|
|
7461
7836
|
/**
|
|
7462
7837
|
* Specifies the behavior of invalid export names in "import ... from ..." and "export ... from ...".
|
|
7463
7838
|
*/
|
|
@@ -7603,6 +7978,17 @@ declare interface JavascriptParserOptions {
|
|
|
7603
7978
|
*/
|
|
7604
7979
|
wrappedContextRegExp?: RegExp;
|
|
7605
7980
|
}
|
|
7981
|
+
declare abstract class JsonData {
|
|
7982
|
+
get():
|
|
7983
|
+
| undefined
|
|
7984
|
+
| null
|
|
7985
|
+
| string
|
|
7986
|
+
| number
|
|
7987
|
+
| boolean
|
|
7988
|
+
| JsonObjectFs
|
|
7989
|
+
| JsonValueFs[];
|
|
7990
|
+
updateHash(hash: Hash): void;
|
|
7991
|
+
}
|
|
7606
7992
|
|
|
7607
7993
|
/**
|
|
7608
7994
|
* Generator options for json modules.
|
|
@@ -7826,6 +8212,11 @@ declare interface KnownBuildInfo {
|
|
|
7826
8212
|
*/
|
|
7827
8213
|
assets?: Record<string, Source>;
|
|
7828
8214
|
|
|
8215
|
+
/**
|
|
8216
|
+
* using in NormalModule
|
|
8217
|
+
*/
|
|
8218
|
+
assetsInfo?: Map<string, undefined | AssetInfo>;
|
|
8219
|
+
|
|
7829
8220
|
/**
|
|
7830
8221
|
* using in NormalModule
|
|
7831
8222
|
*/
|
|
@@ -7849,19 +8240,39 @@ declare interface KnownBuildInfo {
|
|
|
7849
8240
|
/**
|
|
7850
8241
|
* for assets modules
|
|
7851
8242
|
*/
|
|
7852
|
-
|
|
8243
|
+
dataUrl?: boolean;
|
|
7853
8244
|
|
|
7854
8245
|
/**
|
|
7855
8246
|
* for assets modules
|
|
7856
8247
|
*/
|
|
7857
|
-
|
|
8248
|
+
assetInfo?: AssetInfo;
|
|
7858
8249
|
|
|
7859
8250
|
/**
|
|
7860
|
-
* for
|
|
8251
|
+
* for external modules
|
|
7861
8252
|
*/
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
8253
|
+
javascriptModule?: boolean;
|
|
8254
|
+
|
|
8255
|
+
/**
|
|
8256
|
+
* for lazy compilation modules
|
|
8257
|
+
*/
|
|
8258
|
+
active?: boolean;
|
|
8259
|
+
|
|
8260
|
+
/**
|
|
8261
|
+
* for css modules
|
|
8262
|
+
*/
|
|
8263
|
+
cssData?: CssData;
|
|
8264
|
+
|
|
8265
|
+
/**
|
|
8266
|
+
* for json modules
|
|
8267
|
+
*/
|
|
8268
|
+
jsonData?: JsonData;
|
|
8269
|
+
|
|
8270
|
+
/**
|
|
8271
|
+
* top level declaration names
|
|
8272
|
+
*/
|
|
8273
|
+
topLevelDeclarations?: Set<string>;
|
|
8274
|
+
}
|
|
8275
|
+
declare interface KnownBuildMeta {
|
|
7865
8276
|
exportsType?: "namespace" | "dynamic" | "default" | "flagged";
|
|
7866
8277
|
defaultObject?: false | "redirect" | "redirect-warn";
|
|
7867
8278
|
strictHarmonyModule?: boolean;
|
|
@@ -7869,11 +8280,15 @@ declare interface KnownBuildMeta {
|
|
|
7869
8280
|
sideEffectFree?: boolean;
|
|
7870
8281
|
exportsFinalName?: Record<string, string>;
|
|
7871
8282
|
isCSSModule?: boolean;
|
|
8283
|
+
jsIncompatibleExports?: Record<string, string>;
|
|
7872
8284
|
}
|
|
7873
8285
|
declare interface KnownCreateStatsOptionsContext {
|
|
7874
8286
|
forToString?: boolean;
|
|
7875
8287
|
}
|
|
7876
8288
|
declare interface KnownHooks {
|
|
8289
|
+
/**
|
|
8290
|
+
* resolve step hook
|
|
8291
|
+
*/
|
|
7877
8292
|
resolveStep: SyncHook<
|
|
7878
8293
|
[
|
|
7879
8294
|
AsyncSeriesBailHook<
|
|
@@ -7883,11 +8298,23 @@ declare interface KnownHooks {
|
|
|
7883
8298
|
ResolveRequest
|
|
7884
8299
|
]
|
|
7885
8300
|
>;
|
|
8301
|
+
|
|
8302
|
+
/**
|
|
8303
|
+
* no resolve hook
|
|
8304
|
+
*/
|
|
7886
8305
|
noResolve: SyncHook<[ResolveRequest, Error]>;
|
|
8306
|
+
|
|
8307
|
+
/**
|
|
8308
|
+
* resolve hook
|
|
8309
|
+
*/
|
|
7887
8310
|
resolve: AsyncSeriesBailHook<
|
|
7888
8311
|
[ResolveRequest, ResolveContext],
|
|
7889
8312
|
null | ResolveRequest
|
|
7890
8313
|
>;
|
|
8314
|
+
|
|
8315
|
+
/**
|
|
8316
|
+
* result hook
|
|
8317
|
+
*/
|
|
7891
8318
|
result: AsyncSeriesHook<[ResolveRequest, ResolveContext]>;
|
|
7892
8319
|
}
|
|
7893
8320
|
declare interface KnownNormalizedStatsOptions {
|
|
@@ -7933,6 +8360,18 @@ declare interface KnownNormalizedStatsOptions {
|
|
|
7933
8360
|
loggingDebug: ((value: string) => boolean)[];
|
|
7934
8361
|
loggingTrace: boolean;
|
|
7935
8362
|
}
|
|
8363
|
+
declare interface KnownRecords {
|
|
8364
|
+
aggressiveSplits?: SplitData[];
|
|
8365
|
+
chunks?: RecordsChunks;
|
|
8366
|
+
modules?: RecordsModules;
|
|
8367
|
+
hash?: string;
|
|
8368
|
+
hotIndex?: number;
|
|
8369
|
+
fullHashChunkModuleHashes?: FullHashChunkModuleHashes;
|
|
8370
|
+
chunkModuleHashes?: ChunkModuleHashes;
|
|
8371
|
+
chunkHashes?: ChunkHashes;
|
|
8372
|
+
chunkRuntime?: ChunkRuntime;
|
|
8373
|
+
chunkModuleIds?: ChunkModuleIds;
|
|
8374
|
+
}
|
|
7936
8375
|
declare interface KnownStatsAsset {
|
|
7937
8376
|
type: string;
|
|
7938
8377
|
name: string;
|
|
@@ -8248,24 +8687,24 @@ declare interface LStatSync {
|
|
|
8248
8687
|
declare interface LStatTypes {
|
|
8249
8688
|
(
|
|
8250
8689
|
path: PathLikeTypes,
|
|
8251
|
-
callback: (
|
|
8690
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void
|
|
8252
8691
|
): void;
|
|
8253
8692
|
(
|
|
8254
8693
|
path: PathLikeTypes,
|
|
8255
8694
|
options: undefined | (StatOptions & { bigint?: false }),
|
|
8256
|
-
callback: (
|
|
8695
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void
|
|
8257
8696
|
): void;
|
|
8258
8697
|
(
|
|
8259
8698
|
path: PathLikeTypes,
|
|
8260
8699
|
options: StatOptions & { bigint: true },
|
|
8261
|
-
callback: (
|
|
8700
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IBigIntStats) => void
|
|
8262
8701
|
): void;
|
|
8263
8702
|
(
|
|
8264
8703
|
path: PathLikeTypes,
|
|
8265
8704
|
options: undefined | StatOptions,
|
|
8266
8705
|
callback: (
|
|
8267
|
-
|
|
8268
|
-
|
|
8706
|
+
err: null | NodeJS.ErrnoException,
|
|
8707
|
+
result?: IStats | IBigIntStats
|
|
8269
8708
|
) => void
|
|
8270
8709
|
): void;
|
|
8271
8710
|
}
|
|
@@ -8349,16 +8788,16 @@ declare class LazySet<T> {
|
|
|
8349
8788
|
addAll(iterable: LazySet<T> | Iterable<T>): LazySet<T>;
|
|
8350
8789
|
clear(): void;
|
|
8351
8790
|
delete(value: T): boolean;
|
|
8352
|
-
entries():
|
|
8791
|
+
entries(): SetIterator<[T, T]>;
|
|
8353
8792
|
forEach<K>(
|
|
8354
8793
|
callbackFn: (value: T, value2: T, set: Set<T>) => void,
|
|
8355
8794
|
thisArg: K
|
|
8356
8795
|
): void;
|
|
8357
8796
|
has(item: T): boolean;
|
|
8358
|
-
keys():
|
|
8359
|
-
values():
|
|
8797
|
+
keys(): SetIterator<T>;
|
|
8798
|
+
values(): SetIterator<T>;
|
|
8360
8799
|
serialize(__0: ObjectSerializerContext): void;
|
|
8361
|
-
[Symbol.iterator]():
|
|
8800
|
+
[Symbol.iterator](): SetIterator<T>;
|
|
8362
8801
|
static deserialize<T>(__0: ObjectDeserializerContext): LazySet<T>;
|
|
8363
8802
|
}
|
|
8364
8803
|
declare interface LibIdentOptions {
|
|
@@ -8583,7 +9022,7 @@ type LoaderContextDeclarationsIndex<OptionsType> =
|
|
|
8583
9022
|
LoaderRunnerLoaderContext<OptionsType> &
|
|
8584
9023
|
LoaderPluginLoaderContext &
|
|
8585
9024
|
HotModuleReplacementPluginLoaderContext;
|
|
8586
|
-
type
|
|
9025
|
+
type LoaderContextObject<T> = NormalModuleLoaderContext<T> &
|
|
8587
9026
|
LoaderRunnerLoaderContext<T> &
|
|
8588
9027
|
LoaderPluginLoaderContext &
|
|
8589
9028
|
HotModuleReplacementPluginLoaderContext;
|
|
@@ -8605,7 +9044,7 @@ declare interface LoaderDefinitionFunction<
|
|
|
8605
9044
|
HotModuleReplacementPluginLoaderContext &
|
|
8606
9045
|
ContextAdditions,
|
|
8607
9046
|
content: string,
|
|
8608
|
-
sourceMap?: string |
|
|
9047
|
+
sourceMap?: string | RawSourceMap,
|
|
8609
9048
|
additionalData?: AdditionalData
|
|
8610
9049
|
): string | void | Buffer | Promise<string | Buffer>;
|
|
8611
9050
|
}
|
|
@@ -8706,7 +9145,7 @@ declare interface LoaderRunnerLoaderContext<OptionsType> {
|
|
|
8706
9145
|
async(): (
|
|
8707
9146
|
err?: null | Error,
|
|
8708
9147
|
content?: string | Buffer,
|
|
8709
|
-
sourceMap?: null | string |
|
|
9148
|
+
sourceMap?: null | string | RawSourceMap,
|
|
8710
9149
|
additionalData?: AdditionalData
|
|
8711
9150
|
) => void;
|
|
8712
9151
|
|
|
@@ -8720,7 +9159,7 @@ declare interface LoaderRunnerLoaderContext<OptionsType> {
|
|
|
8720
9159
|
callback: (
|
|
8721
9160
|
err?: null | Error,
|
|
8722
9161
|
content?: string | Buffer,
|
|
8723
|
-
sourceMap?: null | string |
|
|
9162
|
+
sourceMap?: null | string | RawSourceMap,
|
|
8724
9163
|
additionalData?: AdditionalData
|
|
8725
9164
|
) => void;
|
|
8726
9165
|
|
|
@@ -9004,7 +9443,14 @@ declare interface MakeDirectoryOptions {
|
|
|
9004
9443
|
mode?: string | number;
|
|
9005
9444
|
}
|
|
9006
9445
|
declare interface MapOptions {
|
|
9446
|
+
/**
|
|
9447
|
+
* need columns?
|
|
9448
|
+
*/
|
|
9007
9449
|
columns?: boolean;
|
|
9450
|
+
|
|
9451
|
+
/**
|
|
9452
|
+
* is module
|
|
9453
|
+
*/
|
|
9008
9454
|
module?: boolean;
|
|
9009
9455
|
}
|
|
9010
9456
|
declare interface MatchObject {
|
|
@@ -9162,10 +9608,7 @@ declare class Module extends DependenciesBlock {
|
|
|
9162
9608
|
isProvided(exportName: string): null | boolean;
|
|
9163
9609
|
get exportsArgument(): string;
|
|
9164
9610
|
get moduleArgument(): string;
|
|
9165
|
-
getExportsType(
|
|
9166
|
-
moduleGraph: ModuleGraph,
|
|
9167
|
-
strict?: boolean
|
|
9168
|
-
): "namespace" | "default-only" | "default-with-named" | "dynamic";
|
|
9611
|
+
getExportsType(moduleGraph: ModuleGraph, strict?: boolean): ExportsType;
|
|
9169
9612
|
addPresentationalDependency(presentationalDependency: Dependency): void;
|
|
9170
9613
|
addCodeGenerationDependency(codeGenerationDependency: Dependency): void;
|
|
9171
9614
|
addWarning(warning: WebpackError): void;
|
|
@@ -9504,6 +9947,7 @@ declare class ModuleGraph {
|
|
|
9504
9947
|
setDepth(module: Module, depth: number): void;
|
|
9505
9948
|
setDepthIfLower(module: Module, depth: number): boolean;
|
|
9506
9949
|
isAsync(module: Module): boolean;
|
|
9950
|
+
isDeferred(module: Module): boolean;
|
|
9507
9951
|
setAsync(module: Module): void;
|
|
9508
9952
|
getMeta(thing: object): any;
|
|
9509
9953
|
getMetaIfExisting(thing: object): any;
|
|
@@ -9576,12 +10020,12 @@ declare class ModuleGraphConnection {
|
|
|
9576
10020
|
getActiveState(runtime: RuntimeSpec): ConnectionState;
|
|
9577
10021
|
setActive(value: boolean): void;
|
|
9578
10022
|
active: void;
|
|
10023
|
+
static CIRCULAR_CONNECTION: typeof CIRCULAR_CONNECTION;
|
|
10024
|
+
static TRANSITIVE_ONLY: typeof TRANSITIVE_ONLY;
|
|
9579
10025
|
static addConnectionStates: (
|
|
9580
10026
|
a: ConnectionState,
|
|
9581
10027
|
b: ConnectionState
|
|
9582
10028
|
) => ConnectionState;
|
|
9583
|
-
static TRANSITIVE_ONLY: typeof TRANSITIVE_ONLY;
|
|
9584
|
-
static CIRCULAR_CONNECTION: typeof CIRCULAR_CONNECTION;
|
|
9585
10029
|
}
|
|
9586
10030
|
type ModuleId = string | number;
|
|
9587
10031
|
type ModuleInfo = ConcatenatedModuleInfo | ExternalModuleInfo;
|
|
@@ -9796,6 +10240,11 @@ declare interface ModuleReferenceOptions {
|
|
|
9796
10240
|
*/
|
|
9797
10241
|
directImport: boolean;
|
|
9798
10242
|
|
|
10243
|
+
/**
|
|
10244
|
+
* true, when this referenced export is deferred
|
|
10245
|
+
*/
|
|
10246
|
+
deferredImport: boolean;
|
|
10247
|
+
|
|
9799
10248
|
/**
|
|
9800
10249
|
* if the position is ASI safe or unknown
|
|
9801
10250
|
*/
|
|
@@ -9936,7 +10385,7 @@ declare class MultiCompiler {
|
|
|
9936
10385
|
runWithDependencies(
|
|
9937
10386
|
compilers: Compiler[],
|
|
9938
10387
|
fn: (compiler: Compiler, callback: CallbackFunction_1<MultiStats>) => any,
|
|
9939
|
-
callback: CallbackFunction_1<
|
|
10388
|
+
callback: CallbackFunction_1<Stats[]>
|
|
9940
10389
|
): void;
|
|
9941
10390
|
watch(
|
|
9942
10391
|
watchOptions: WatchOptions | WatchOptions[],
|
|
@@ -10110,7 +10559,7 @@ declare class NormalModule extends Module {
|
|
|
10110
10559
|
generator?: Generator;
|
|
10111
10560
|
generatorOptions?: GeneratorOptions;
|
|
10112
10561
|
resource: string;
|
|
10113
|
-
resourceResolveData
|
|
10562
|
+
resourceResolveData?: ResourceSchemeData & Partial<ResolveRequest>;
|
|
10114
10563
|
matchResource?: string;
|
|
10115
10564
|
loaders: LoaderItem[];
|
|
10116
10565
|
error: null | WebpackError;
|
|
@@ -10126,14 +10575,17 @@ declare class NormalModule extends Module {
|
|
|
10126
10575
|
context: string,
|
|
10127
10576
|
name: string,
|
|
10128
10577
|
content: string | Buffer,
|
|
10129
|
-
sourceMap?: string |
|
|
10578
|
+
sourceMap?: string | RawSourceMap,
|
|
10130
10579
|
associatedObjectForCache?: object
|
|
10131
10580
|
): Source;
|
|
10132
|
-
getCurrentLoader(
|
|
10581
|
+
getCurrentLoader(
|
|
10582
|
+
loaderContext: LoaderContextObject<any>,
|
|
10583
|
+
index?: number
|
|
10584
|
+
): null | LoaderItem;
|
|
10133
10585
|
createSource(
|
|
10134
10586
|
context: string,
|
|
10135
10587
|
content: string | Buffer,
|
|
10136
|
-
sourceMap?: null | string |
|
|
10588
|
+
sourceMap?: null | string | RawSourceMap,
|
|
10137
10589
|
associatedObjectForCache?: object
|
|
10138
10590
|
): Source;
|
|
10139
10591
|
markModuleAsErrored(error: WebpackError): void;
|
|
@@ -10150,12 +10602,12 @@ declare class NormalModule extends Module {
|
|
|
10150
10602
|
static getCompilationHooks(
|
|
10151
10603
|
compilation: Compilation
|
|
10152
10604
|
): NormalModuleCompilationHooks;
|
|
10153
|
-
static deserialize(context: ObjectDeserializerContext):
|
|
10605
|
+
static deserialize(context: ObjectDeserializerContext): NormalModule;
|
|
10154
10606
|
}
|
|
10155
10607
|
declare interface NormalModuleCompilationHooks {
|
|
10156
|
-
loader: SyncHook<[
|
|
10608
|
+
loader: SyncHook<[LoaderContextObject<any>, NormalModule]>;
|
|
10157
10609
|
beforeLoaders: SyncHook<
|
|
10158
|
-
[LoaderItem[], NormalModule,
|
|
10610
|
+
[LoaderItem[], NormalModule, LoaderContextObject<any>]
|
|
10159
10611
|
>;
|
|
10160
10612
|
beforeParse: SyncHook<[NormalModule]>;
|
|
10161
10613
|
beforeSnapshot: SyncHook<[NormalModule]>;
|
|
@@ -10165,13 +10617,17 @@ declare interface NormalModuleCompilationHooks {
|
|
|
10165
10617
|
>
|
|
10166
10618
|
>;
|
|
10167
10619
|
readResource: HookMap<
|
|
10168
|
-
AsyncSeriesBailHook<
|
|
10169
|
-
[LoaderContextNormalModule<any>],
|
|
10170
|
-
null | string | Buffer
|
|
10171
|
-
>
|
|
10620
|
+
AsyncSeriesBailHook<[LoaderContextObject<any>], null | string | Buffer>
|
|
10172
10621
|
>;
|
|
10173
10622
|
processResult: SyncWaterfallHook<
|
|
10174
|
-
[
|
|
10623
|
+
[
|
|
10624
|
+
[
|
|
10625
|
+
string | Buffer,
|
|
10626
|
+
undefined | string | RawSourceMap,
|
|
10627
|
+
undefined | PreparsedAst
|
|
10628
|
+
],
|
|
10629
|
+
NormalModule
|
|
10630
|
+
]
|
|
10175
10631
|
>;
|
|
10176
10632
|
needBuild: AsyncSeriesBailHook<[NormalModule, NeedBuildContext], boolean>;
|
|
10177
10633
|
}
|
|
@@ -10184,7 +10640,7 @@ declare interface NormalModuleCreateData {
|
|
|
10184
10640
|
/**
|
|
10185
10641
|
* module type. When deserializing, this is set to an empty string "".
|
|
10186
10642
|
*/
|
|
10187
|
-
type:
|
|
10643
|
+
type: string;
|
|
10188
10644
|
|
|
10189
10645
|
/**
|
|
10190
10646
|
* request string
|
|
@@ -10214,7 +10670,7 @@ declare interface NormalModuleCreateData {
|
|
|
10214
10670
|
/**
|
|
10215
10671
|
* resource resolve data
|
|
10216
10672
|
*/
|
|
10217
|
-
resourceResolveData?:
|
|
10673
|
+
resourceResolveData?: ResourceSchemeData & Partial<ResolveRequest>;
|
|
10218
10674
|
|
|
10219
10675
|
/**
|
|
10220
10676
|
* context directory for resolving
|
|
@@ -10283,7 +10739,15 @@ declare abstract class NormalModuleFactory extends ModuleFactory {
|
|
|
10283
10739
|
SyncBailHook<[GeneratorOptions], void | Generator>
|
|
10284
10740
|
>;
|
|
10285
10741
|
generator: HookMap<SyncBailHook<[any, GeneratorOptions], void>>;
|
|
10286
|
-
createModuleClass: HookMap<
|
|
10742
|
+
createModuleClass: HookMap<
|
|
10743
|
+
SyncBailHook<
|
|
10744
|
+
[
|
|
10745
|
+
Partial<NormalModuleCreateData & { settings: ModuleSettings }>,
|
|
10746
|
+
ResolveData
|
|
10747
|
+
],
|
|
10748
|
+
void | Module
|
|
10749
|
+
>
|
|
10750
|
+
>;
|
|
10287
10751
|
}>;
|
|
10288
10752
|
resolverFactory: ResolverFactory;
|
|
10289
10753
|
ruleSet: RuleSet;
|
|
@@ -10447,6 +10911,9 @@ declare class NullDependency extends Dependency {
|
|
|
10447
10911
|
declare class NullDependencyTemplate extends DependencyTemplate {
|
|
10448
10912
|
constructor();
|
|
10449
10913
|
}
|
|
10914
|
+
declare interface ObjectConfiguration {
|
|
10915
|
+
[index: string]: any;
|
|
10916
|
+
}
|
|
10450
10917
|
declare interface ObjectDeserializerContext {
|
|
10451
10918
|
read: () => any;
|
|
10452
10919
|
setCircularReference: (value: ReferenceableItem) => void;
|
|
@@ -11149,8 +11616,26 @@ declare interface OriginRecord {
|
|
|
11149
11616
|
request: string;
|
|
11150
11617
|
}
|
|
11151
11618
|
declare class OriginalSource extends Source {
|
|
11152
|
-
constructor(
|
|
11619
|
+
constructor(value: string | Buffer, name: string);
|
|
11153
11620
|
getName(): string;
|
|
11621
|
+
streamChunks(
|
|
11622
|
+
options: StreamChunksOptions,
|
|
11623
|
+
onChunk: (
|
|
11624
|
+
chunk: undefined | string,
|
|
11625
|
+
generatedLine: number,
|
|
11626
|
+
generatedColumn: number,
|
|
11627
|
+
sourceIndex: number,
|
|
11628
|
+
originalLine: number,
|
|
11629
|
+
originalColumn: number,
|
|
11630
|
+
nameIndex: number
|
|
11631
|
+
) => void,
|
|
11632
|
+
onSource: (
|
|
11633
|
+
sourceIndex: number,
|
|
11634
|
+
source: null | string,
|
|
11635
|
+
sourceContent?: string
|
|
11636
|
+
) => void,
|
|
11637
|
+
_onName: (nameIndex: number, name: string) => void
|
|
11638
|
+
): GeneratedSourceInfo;
|
|
11154
11639
|
}
|
|
11155
11640
|
|
|
11156
11641
|
/**
|
|
@@ -11723,12 +12208,39 @@ declare interface ParameterizedComparator<TArg extends object, T> {
|
|
|
11723
12208
|
(tArg: TArg): Comparator<T>;
|
|
11724
12209
|
}
|
|
11725
12210
|
declare interface ParsedIdentifier {
|
|
12211
|
+
/**
|
|
12212
|
+
* request
|
|
12213
|
+
*/
|
|
11726
12214
|
request: string;
|
|
12215
|
+
|
|
12216
|
+
/**
|
|
12217
|
+
* query
|
|
12218
|
+
*/
|
|
11727
12219
|
query: string;
|
|
12220
|
+
|
|
12221
|
+
/**
|
|
12222
|
+
* fragment
|
|
12223
|
+
*/
|
|
11728
12224
|
fragment: string;
|
|
12225
|
+
|
|
12226
|
+
/**
|
|
12227
|
+
* is directory
|
|
12228
|
+
*/
|
|
11729
12229
|
directory: boolean;
|
|
12230
|
+
|
|
12231
|
+
/**
|
|
12232
|
+
* is module
|
|
12233
|
+
*/
|
|
11730
12234
|
module: boolean;
|
|
12235
|
+
|
|
12236
|
+
/**
|
|
12237
|
+
* is file
|
|
12238
|
+
*/
|
|
11731
12239
|
file: boolean;
|
|
12240
|
+
|
|
12241
|
+
/**
|
|
12242
|
+
* is internal
|
|
12243
|
+
*/
|
|
11732
12244
|
internal: boolean;
|
|
11733
12245
|
}
|
|
11734
12246
|
declare class Parser {
|
|
@@ -11941,13 +12453,16 @@ type Plugin =
|
|
|
11941
12453
|
| false
|
|
11942
12454
|
| ""
|
|
11943
12455
|
| 0
|
|
11944
|
-
| { apply: (
|
|
11945
|
-
| ((this: Resolver,
|
|
12456
|
+
| { apply: (this: Resolver, resolver: Resolver) => void }
|
|
12457
|
+
| ((this: Resolver, resolver: Resolver) => void);
|
|
11946
12458
|
declare interface PnpApi {
|
|
12459
|
+
/**
|
|
12460
|
+
* resolve to unqualified
|
|
12461
|
+
*/
|
|
11947
12462
|
resolveToUnqualified: (
|
|
11948
|
-
|
|
11949
|
-
|
|
11950
|
-
|
|
12463
|
+
packageName: string,
|
|
12464
|
+
issuer: string,
|
|
12465
|
+
options: { considerBuiltins: boolean }
|
|
11951
12466
|
) => null | string;
|
|
11952
12467
|
}
|
|
11953
12468
|
declare class PrefetchPlugin {
|
|
@@ -11961,9 +12476,27 @@ declare class PrefetchPlugin {
|
|
|
11961
12476
|
apply(compiler: Compiler): void;
|
|
11962
12477
|
}
|
|
11963
12478
|
declare class PrefixSource extends Source {
|
|
11964
|
-
constructor(prefix: string, source: string | Source);
|
|
11965
|
-
original(): Source;
|
|
12479
|
+
constructor(prefix: string, source: string | Source | Buffer);
|
|
11966
12480
|
getPrefix(): string;
|
|
12481
|
+
original(): Source;
|
|
12482
|
+
streamChunks(
|
|
12483
|
+
options: StreamChunksOptions,
|
|
12484
|
+
onChunk: (
|
|
12485
|
+
chunk: undefined | string,
|
|
12486
|
+
generatedLine: number,
|
|
12487
|
+
generatedColumn: number,
|
|
12488
|
+
sourceIndex: number,
|
|
12489
|
+
originalLine: number,
|
|
12490
|
+
originalColumn: number,
|
|
12491
|
+
nameIndex: number
|
|
12492
|
+
) => void,
|
|
12493
|
+
onSource: (
|
|
12494
|
+
sourceIndex: number,
|
|
12495
|
+
source: null | string,
|
|
12496
|
+
sourceContent?: string
|
|
12497
|
+
) => void,
|
|
12498
|
+
onName: (nameIndex: number, name: string) => void
|
|
12499
|
+
): GeneratedSourceInfo;
|
|
11967
12500
|
}
|
|
11968
12501
|
declare interface PreparsedAst {
|
|
11969
12502
|
[index: string]: any;
|
|
@@ -12181,22 +12714,77 @@ declare interface RawLoaderDefinitionFunction<
|
|
|
12181
12714
|
HotModuleReplacementPluginLoaderContext &
|
|
12182
12715
|
ContextAdditions,
|
|
12183
12716
|
content: Buffer,
|
|
12184
|
-
sourceMap?: string |
|
|
12717
|
+
sourceMap?: string | RawSourceMap,
|
|
12185
12718
|
additionalData?: AdditionalData
|
|
12186
12719
|
): string | void | Buffer | Promise<string | Buffer>;
|
|
12187
12720
|
}
|
|
12188
12721
|
declare class RawSource extends Source {
|
|
12189
|
-
constructor(
|
|
12722
|
+
constructor(value: string | Buffer, convertToString?: boolean);
|
|
12190
12723
|
isBuffer(): boolean;
|
|
12724
|
+
streamChunks(
|
|
12725
|
+
options: StreamChunksOptions,
|
|
12726
|
+
onChunk: (
|
|
12727
|
+
chunk: undefined | string,
|
|
12728
|
+
generatedLine: number,
|
|
12729
|
+
generatedColumn: number,
|
|
12730
|
+
sourceIndex: number,
|
|
12731
|
+
originalLine: number,
|
|
12732
|
+
originalColumn: number,
|
|
12733
|
+
nameIndex: number
|
|
12734
|
+
) => void,
|
|
12735
|
+
onSource: (
|
|
12736
|
+
sourceIndex: number,
|
|
12737
|
+
source: null | string,
|
|
12738
|
+
sourceContent?: string
|
|
12739
|
+
) => void,
|
|
12740
|
+
onName: (nameIndex: number, name: string) => void
|
|
12741
|
+
): GeneratedSourceInfo;
|
|
12191
12742
|
}
|
|
12192
12743
|
declare interface RawSourceMap {
|
|
12744
|
+
/**
|
|
12745
|
+
* version
|
|
12746
|
+
*/
|
|
12193
12747
|
version: number;
|
|
12748
|
+
|
|
12749
|
+
/**
|
|
12750
|
+
* sources
|
|
12751
|
+
*/
|
|
12194
12752
|
sources: string[];
|
|
12753
|
+
|
|
12754
|
+
/**
|
|
12755
|
+
* names
|
|
12756
|
+
*/
|
|
12195
12757
|
names: string[];
|
|
12758
|
+
|
|
12759
|
+
/**
|
|
12760
|
+
* source root
|
|
12761
|
+
*/
|
|
12196
12762
|
sourceRoot?: string;
|
|
12763
|
+
|
|
12764
|
+
/**
|
|
12765
|
+
* sources content
|
|
12766
|
+
*/
|
|
12197
12767
|
sourcesContent?: string[];
|
|
12768
|
+
|
|
12769
|
+
/**
|
|
12770
|
+
* mappings
|
|
12771
|
+
*/
|
|
12198
12772
|
mappings: string;
|
|
12773
|
+
|
|
12774
|
+
/**
|
|
12775
|
+
* file
|
|
12776
|
+
*/
|
|
12199
12777
|
file: string;
|
|
12778
|
+
|
|
12779
|
+
/**
|
|
12780
|
+
* debug id
|
|
12781
|
+
*/
|
|
12782
|
+
debugId?: string;
|
|
12783
|
+
|
|
12784
|
+
/**
|
|
12785
|
+
* ignore list
|
|
12786
|
+
*/
|
|
12787
|
+
ignoreList?: number[];
|
|
12200
12788
|
}
|
|
12201
12789
|
declare interface Read<
|
|
12202
12790
|
TBuffer extends
|
|
@@ -12377,7 +12965,7 @@ declare interface ReadFileTypes {
|
|
|
12377
12965
|
| undefined
|
|
12378
12966
|
| null
|
|
12379
12967
|
| ({ encoding?: null; flag?: string } & Abortable),
|
|
12380
|
-
callback: (
|
|
12968
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void
|
|
12381
12969
|
): void;
|
|
12382
12970
|
(
|
|
12383
12971
|
path: PathOrFileDescriptorTypes,
|
|
@@ -12395,7 +12983,7 @@ declare interface ReadFileTypes {
|
|
|
12395
12983
|
| "binary"
|
|
12396
12984
|
| "hex"
|
|
12397
12985
|
| ({ encoding: BufferEncoding; flag?: string } & Abortable),
|
|
12398
|
-
callback: (
|
|
12986
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
|
12399
12987
|
): void;
|
|
12400
12988
|
(
|
|
12401
12989
|
path: PathOrFileDescriptorTypes,
|
|
@@ -12416,13 +13004,13 @@ declare interface ReadFileTypes {
|
|
|
12416
13004
|
| "hex"
|
|
12417
13005
|
| (ObjectEncodingOptions & { flag?: string } & Abortable),
|
|
12418
13006
|
callback: (
|
|
12419
|
-
|
|
12420
|
-
|
|
13007
|
+
err: null | NodeJS.ErrnoException,
|
|
13008
|
+
result?: string | Buffer
|
|
12421
13009
|
) => void
|
|
12422
13010
|
): void;
|
|
12423
13011
|
(
|
|
12424
13012
|
path: PathOrFileDescriptorTypes,
|
|
12425
|
-
callback: (
|
|
13013
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void
|
|
12426
13014
|
): void;
|
|
12427
13015
|
}
|
|
12428
13016
|
declare interface ReaddirFs {
|
|
@@ -12461,18 +13049,14 @@ declare interface ReaddirFs {
|
|
|
12461
13049
|
withFileTypes?: false;
|
|
12462
13050
|
recursive?: boolean;
|
|
12463
13051
|
},
|
|
12464
|
-
callback: (err: null | NodeJS.ErrnoException,
|
|
13052
|
+
callback: (err: null | NodeJS.ErrnoException, files?: string[]) => void
|
|
12465
13053
|
): void;
|
|
12466
13054
|
(
|
|
12467
13055
|
path: PathLikeFs,
|
|
12468
13056
|
options:
|
|
12469
13057
|
| "buffer"
|
|
12470
13058
|
| { encoding: "buffer"; withFileTypes?: false; recursive?: boolean },
|
|
12471
|
-
callback: (err: null | NodeJS.ErrnoException,
|
|
12472
|
-
): void;
|
|
12473
|
-
(
|
|
12474
|
-
path: PathLikeFs,
|
|
12475
|
-
callback: (err: null | NodeJS.ErrnoException, result?: string[]) => void
|
|
13059
|
+
callback: (err: null | NodeJS.ErrnoException, files?: Buffer[]) => void
|
|
12476
13060
|
): void;
|
|
12477
13061
|
(
|
|
12478
13062
|
path: PathLikeFs,
|
|
@@ -12497,16 +13081,31 @@ declare interface ReaddirFs {
|
|
|
12497
13081
|
}),
|
|
12498
13082
|
callback: (
|
|
12499
13083
|
err: null | NodeJS.ErrnoException,
|
|
12500
|
-
|
|
13084
|
+
files?: string[] | Buffer[]
|
|
12501
13085
|
) => void
|
|
12502
13086
|
): void;
|
|
13087
|
+
(
|
|
13088
|
+
path: PathLikeFs,
|
|
13089
|
+
callback: (err: null | NodeJS.ErrnoException, files?: string[]) => void
|
|
13090
|
+
): void;
|
|
12503
13091
|
(
|
|
12504
13092
|
path: PathLikeFs,
|
|
12505
13093
|
options: ObjectEncodingOptions & {
|
|
12506
13094
|
withFileTypes: true;
|
|
12507
13095
|
recursive?: boolean;
|
|
12508
13096
|
},
|
|
12509
|
-
callback: (
|
|
13097
|
+
callback: (
|
|
13098
|
+
err: null | NodeJS.ErrnoException,
|
|
13099
|
+
files?: Dirent<string>[]
|
|
13100
|
+
) => void
|
|
13101
|
+
): void;
|
|
13102
|
+
(
|
|
13103
|
+
path: PathLikeFs,
|
|
13104
|
+
options: { encoding: "buffer"; withFileTypes: true; recursive?: boolean },
|
|
13105
|
+
callback: (
|
|
13106
|
+
err: null | NodeJS.ErrnoException,
|
|
13107
|
+
files: Dirent<Buffer>[]
|
|
13108
|
+
) => void
|
|
12510
13109
|
): void;
|
|
12511
13110
|
}
|
|
12512
13111
|
declare interface ReaddirSync {
|
|
@@ -12575,7 +13174,11 @@ declare interface ReaddirSync {
|
|
|
12575
13174
|
withFileTypes: true;
|
|
12576
13175
|
recursive?: boolean;
|
|
12577
13176
|
}
|
|
12578
|
-
): Dirent[];
|
|
13177
|
+
): Dirent<string>[];
|
|
13178
|
+
(
|
|
13179
|
+
path: PathLikeFs,
|
|
13180
|
+
options: { encoding: "buffer"; withFileTypes: true; recursive?: boolean }
|
|
13181
|
+
): Dirent<Buffer>[];
|
|
12579
13182
|
}
|
|
12580
13183
|
declare interface ReaddirTypes {
|
|
12581
13184
|
(
|
|
@@ -12613,18 +13216,14 @@ declare interface ReaddirTypes {
|
|
|
12613
13216
|
withFileTypes?: false;
|
|
12614
13217
|
recursive?: boolean;
|
|
12615
13218
|
},
|
|
12616
|
-
callback: (
|
|
13219
|
+
callback: (err: null | NodeJS.ErrnoException, files?: string[]) => void
|
|
12617
13220
|
): void;
|
|
12618
13221
|
(
|
|
12619
13222
|
path: PathLikeTypes,
|
|
12620
13223
|
options:
|
|
12621
13224
|
| "buffer"
|
|
12622
13225
|
| { encoding: "buffer"; withFileTypes?: false; recursive?: boolean },
|
|
12623
|
-
callback: (
|
|
12624
|
-
): void;
|
|
12625
|
-
(
|
|
12626
|
-
path: PathLikeTypes,
|
|
12627
|
-
callback: (arg0: null | NodeJS.ErrnoException, arg1?: string[]) => void
|
|
13226
|
+
callback: (err: null | NodeJS.ErrnoException, files?: Buffer[]) => void
|
|
12628
13227
|
): void;
|
|
12629
13228
|
(
|
|
12630
13229
|
path: PathLikeTypes,
|
|
@@ -12648,17 +13247,32 @@ declare interface ReaddirTypes {
|
|
|
12648
13247
|
recursive?: boolean;
|
|
12649
13248
|
}),
|
|
12650
13249
|
callback: (
|
|
12651
|
-
|
|
12652
|
-
|
|
13250
|
+
err: null | NodeJS.ErrnoException,
|
|
13251
|
+
files?: string[] | Buffer[]
|
|
12653
13252
|
) => void
|
|
12654
13253
|
): void;
|
|
13254
|
+
(
|
|
13255
|
+
path: PathLikeTypes,
|
|
13256
|
+
callback: (err: null | NodeJS.ErrnoException, files?: string[]) => void
|
|
13257
|
+
): void;
|
|
12655
13258
|
(
|
|
12656
13259
|
path: PathLikeTypes,
|
|
12657
13260
|
options: ObjectEncodingOptions & {
|
|
12658
13261
|
withFileTypes: true;
|
|
12659
13262
|
recursive?: boolean;
|
|
12660
13263
|
},
|
|
12661
|
-
callback: (
|
|
13264
|
+
callback: (
|
|
13265
|
+
err: null | NodeJS.ErrnoException,
|
|
13266
|
+
files?: Dirent<string>[]
|
|
13267
|
+
) => void
|
|
13268
|
+
): void;
|
|
13269
|
+
(
|
|
13270
|
+
path: PathLikeTypes,
|
|
13271
|
+
options: { encoding: "buffer"; withFileTypes: true; recursive?: boolean },
|
|
13272
|
+
callback: (
|
|
13273
|
+
err: null | NodeJS.ErrnoException,
|
|
13274
|
+
files: Dirent<Buffer>[]
|
|
13275
|
+
) => void
|
|
12662
13276
|
): void;
|
|
12663
13277
|
}
|
|
12664
13278
|
declare interface ReadlinkFs {
|
|
@@ -12694,24 +13308,24 @@ declare interface ReadlinkTypes {
|
|
|
12694
13308
|
(
|
|
12695
13309
|
path: PathLikeTypes,
|
|
12696
13310
|
options: EncodingOption,
|
|
12697
|
-
callback: (
|
|
13311
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
|
12698
13312
|
): void;
|
|
12699
13313
|
(
|
|
12700
13314
|
path: PathLikeTypes,
|
|
12701
13315
|
options: BufferEncodingOption,
|
|
12702
|
-
callback: (
|
|
13316
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void
|
|
12703
13317
|
): void;
|
|
12704
13318
|
(
|
|
12705
13319
|
path: PathLikeTypes,
|
|
12706
13320
|
options: EncodingOption,
|
|
12707
13321
|
callback: (
|
|
12708
|
-
|
|
12709
|
-
|
|
13322
|
+
err: null | NodeJS.ErrnoException,
|
|
13323
|
+
result?: string | Buffer
|
|
12710
13324
|
) => void
|
|
12711
13325
|
): void;
|
|
12712
13326
|
(
|
|
12713
13327
|
path: PathLikeTypes,
|
|
12714
|
-
callback: (
|
|
13328
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
|
12715
13329
|
): void;
|
|
12716
13330
|
}
|
|
12717
13331
|
declare class RealContentHashPlugin {
|
|
@@ -12774,28 +13388,37 @@ declare interface RealPathTypes {
|
|
|
12774
13388
|
(
|
|
12775
13389
|
path: PathLikeTypes,
|
|
12776
13390
|
options: EncodingOption,
|
|
12777
|
-
callback: (
|
|
13391
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
|
12778
13392
|
): void;
|
|
12779
13393
|
(
|
|
12780
13394
|
path: PathLikeTypes,
|
|
12781
13395
|
options: BufferEncodingOption,
|
|
12782
|
-
callback: (
|
|
13396
|
+
callback: (err: null | NodeJS.ErrnoException, result?: Buffer) => void
|
|
12783
13397
|
): void;
|
|
12784
13398
|
(
|
|
12785
13399
|
path: PathLikeTypes,
|
|
12786
13400
|
options: EncodingOption,
|
|
12787
13401
|
callback: (
|
|
12788
|
-
|
|
12789
|
-
|
|
13402
|
+
err: null | NodeJS.ErrnoException,
|
|
13403
|
+
result?: string | Buffer
|
|
12790
13404
|
) => void
|
|
12791
13405
|
): void;
|
|
12792
13406
|
(
|
|
12793
13407
|
path: PathLikeTypes,
|
|
12794
|
-
callback: (
|
|
13408
|
+
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
|
12795
13409
|
): void;
|
|
12796
13410
|
}
|
|
12797
|
-
|
|
12798
|
-
[
|
|
13411
|
+
type Records = KnownRecords &
|
|
13412
|
+
Record<string, KnownRecords[]> &
|
|
13413
|
+
Record<string, any>;
|
|
13414
|
+
declare interface RecordsChunks {
|
|
13415
|
+
byName?: Record<string, number>;
|
|
13416
|
+
bySource?: Record<string, number>;
|
|
13417
|
+
usedIds?: number[];
|
|
13418
|
+
}
|
|
13419
|
+
declare interface RecordsModules {
|
|
13420
|
+
byIdentifier?: Record<string, number>;
|
|
13421
|
+
usedIds?: number[];
|
|
12799
13422
|
}
|
|
12800
13423
|
type RecursiveArrayOrRecord<T> =
|
|
12801
13424
|
| { [index: string]: RecursiveArrayOrRecord<T> }
|
|
@@ -12976,17 +13599,38 @@ declare interface RenderManifestOptions {
|
|
|
12976
13599
|
}
|
|
12977
13600
|
declare class ReplaceSource extends Source {
|
|
12978
13601
|
constructor(source: Source, name?: string);
|
|
13602
|
+
getName(): undefined | string;
|
|
13603
|
+
getReplacements(): Replacement[];
|
|
12979
13604
|
replace(start: number, end: number, newValue: string, name?: string): void;
|
|
12980
13605
|
insert(pos: number, newValue: string, name?: string): void;
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
|
|
12988
|
-
|
|
12989
|
-
|
|
13606
|
+
original(): Source;
|
|
13607
|
+
streamChunks(
|
|
13608
|
+
options: StreamChunksOptions,
|
|
13609
|
+
onChunk: (
|
|
13610
|
+
chunk: undefined | string,
|
|
13611
|
+
generatedLine: number,
|
|
13612
|
+
generatedColumn: number,
|
|
13613
|
+
sourceIndex: number,
|
|
13614
|
+
originalLine: number,
|
|
13615
|
+
originalColumn: number,
|
|
13616
|
+
nameIndex: number
|
|
13617
|
+
) => void,
|
|
13618
|
+
onSource: (
|
|
13619
|
+
sourceIndex: number,
|
|
13620
|
+
source: null | string,
|
|
13621
|
+
sourceContent?: string
|
|
13622
|
+
) => void,
|
|
13623
|
+
onName: (nameIndex: number, name: string) => void
|
|
13624
|
+
): GeneratedSourceInfo;
|
|
13625
|
+
static Replacement: typeof Replacement;
|
|
13626
|
+
}
|
|
13627
|
+
declare class Replacement {
|
|
13628
|
+
constructor(start: number, end: number, content: string, name?: string);
|
|
13629
|
+
start: number;
|
|
13630
|
+
end: number;
|
|
13631
|
+
content: string;
|
|
13632
|
+
name?: string;
|
|
13633
|
+
index?: number;
|
|
12990
13634
|
}
|
|
12991
13635
|
declare interface RequestRecord {
|
|
12992
13636
|
[index: string]: string | string[];
|
|
@@ -13022,6 +13666,9 @@ declare interface ResolveBuildDependenciesResult {
|
|
|
13022
13666
|
resolveDependencies: ResolveDependencies;
|
|
13023
13667
|
}
|
|
13024
13668
|
declare interface ResolveContext {
|
|
13669
|
+
/**
|
|
13670
|
+
* directories that was found on file system
|
|
13671
|
+
*/
|
|
13025
13672
|
contextDependencies?: WriteOnlySet<string>;
|
|
13026
13673
|
|
|
13027
13674
|
/**
|
|
@@ -13042,12 +13689,12 @@ declare interface ResolveContext {
|
|
|
13042
13689
|
/**
|
|
13043
13690
|
* log function
|
|
13044
13691
|
*/
|
|
13045
|
-
log?: (
|
|
13692
|
+
log?: (str: string) => void;
|
|
13046
13693
|
|
|
13047
13694
|
/**
|
|
13048
13695
|
* yield result, if provided plugins can return several results
|
|
13049
13696
|
*/
|
|
13050
|
-
yield?: (
|
|
13697
|
+
yield?: (request: ResolveRequest) => void;
|
|
13051
13698
|
}
|
|
13052
13699
|
declare interface ResolveData {
|
|
13053
13700
|
contextInfo: ModuleFactoryCreateDataContextInfo;
|
|
@@ -13275,123 +13922,226 @@ declare interface ResolveOptions {
|
|
|
13275
13922
|
useSyncFileSystemCalls?: boolean;
|
|
13276
13923
|
}
|
|
13277
13924
|
declare interface ResolveOptionsResolverFactoryObject1 {
|
|
13278
|
-
alias: AliasOption[];
|
|
13279
|
-
fallback: AliasOption[];
|
|
13280
|
-
aliasFields: Set<string | string[]>;
|
|
13281
|
-
extensionAlias: ExtensionAliasOption[];
|
|
13282
|
-
cachePredicate: (arg0: ResolveRequest) => boolean;
|
|
13283
|
-
cacheWithContext: boolean;
|
|
13284
|
-
|
|
13285
|
-
/**
|
|
13286
|
-
* A list of exports field condition names.
|
|
13287
|
-
*/
|
|
13288
|
-
conditionNames: Set<string>;
|
|
13289
|
-
descriptionFiles: string[];
|
|
13290
|
-
enforceExtension: boolean;
|
|
13291
|
-
exportsFields: Set<string | string[]>;
|
|
13292
|
-
importsFields: Set<string | string[]>;
|
|
13293
|
-
extensions: Set<string>;
|
|
13294
|
-
fileSystem: FileSystem;
|
|
13295
|
-
unsafeCache: false | object;
|
|
13296
|
-
symlinks: boolean;
|
|
13297
|
-
resolver?: Resolver;
|
|
13298
|
-
modules: (string | string[])[];
|
|
13299
|
-
mainFields: { name: string[]; forceRelative: boolean }[];
|
|
13300
|
-
mainFiles: Set<string>;
|
|
13301
|
-
plugins: Plugin[];
|
|
13302
|
-
pnpApi: null | PnpApi;
|
|
13303
|
-
roots: Set<string>;
|
|
13304
|
-
fullySpecified: boolean;
|
|
13305
|
-
resolveToContext: boolean;
|
|
13306
|
-
restrictions: Set<string | RegExp>;
|
|
13307
|
-
preferRelative: boolean;
|
|
13308
|
-
preferAbsolute: boolean;
|
|
13309
|
-
}
|
|
13310
|
-
declare interface ResolveOptionsResolverFactoryObject2 {
|
|
13311
13925
|
/**
|
|
13312
|
-
*
|
|
13926
|
+
* alias
|
|
13313
13927
|
*/
|
|
13314
|
-
alias
|
|
13928
|
+
alias: AliasOption[];
|
|
13315
13929
|
|
|
13316
13930
|
/**
|
|
13317
|
-
*
|
|
13931
|
+
* fallback
|
|
13318
13932
|
*/
|
|
13319
|
-
fallback
|
|
13933
|
+
fallback: AliasOption[];
|
|
13320
13934
|
|
|
13321
13935
|
/**
|
|
13322
|
-
*
|
|
13936
|
+
* alias fields
|
|
13323
13937
|
*/
|
|
13324
|
-
|
|
13938
|
+
aliasFields: Set<string | string[]>;
|
|
13325
13939
|
|
|
13326
13940
|
/**
|
|
13327
|
-
*
|
|
13941
|
+
* extension alias
|
|
13328
13942
|
*/
|
|
13329
|
-
|
|
13943
|
+
extensionAlias: ExtensionAliasOption[];
|
|
13330
13944
|
|
|
13331
13945
|
/**
|
|
13332
|
-
*
|
|
13946
|
+
* cache predicate
|
|
13333
13947
|
*/
|
|
13334
|
-
cachePredicate
|
|
13948
|
+
cachePredicate: (predicate: ResolveRequest) => boolean;
|
|
13335
13949
|
|
|
13336
13950
|
/**
|
|
13337
|
-
*
|
|
13951
|
+
* cache with context
|
|
13338
13952
|
*/
|
|
13339
|
-
cacheWithContext
|
|
13953
|
+
cacheWithContext: boolean;
|
|
13340
13954
|
|
|
13341
13955
|
/**
|
|
13342
|
-
* A list of
|
|
13956
|
+
* A list of exports field condition names.
|
|
13343
13957
|
*/
|
|
13344
|
-
|
|
13958
|
+
conditionNames: Set<string>;
|
|
13345
13959
|
|
|
13346
13960
|
/**
|
|
13347
|
-
*
|
|
13961
|
+
* description files
|
|
13348
13962
|
*/
|
|
13349
|
-
|
|
13963
|
+
descriptionFiles: string[];
|
|
13350
13964
|
|
|
13351
13965
|
/**
|
|
13352
|
-
*
|
|
13966
|
+
* enforce extension
|
|
13353
13967
|
*/
|
|
13354
|
-
enforceExtension
|
|
13968
|
+
enforceExtension: boolean;
|
|
13355
13969
|
|
|
13356
13970
|
/**
|
|
13357
|
-
*
|
|
13971
|
+
* exports fields
|
|
13358
13972
|
*/
|
|
13359
|
-
exportsFields
|
|
13973
|
+
exportsFields: Set<string | string[]>;
|
|
13360
13974
|
|
|
13361
13975
|
/**
|
|
13362
|
-
*
|
|
13976
|
+
* imports fields
|
|
13363
13977
|
*/
|
|
13364
|
-
importsFields
|
|
13978
|
+
importsFields: Set<string | string[]>;
|
|
13365
13979
|
|
|
13366
13980
|
/**
|
|
13367
|
-
*
|
|
13981
|
+
* extensions
|
|
13368
13982
|
*/
|
|
13369
|
-
extensions
|
|
13983
|
+
extensions: Set<string>;
|
|
13370
13984
|
|
|
13371
13985
|
/**
|
|
13372
|
-
*
|
|
13986
|
+
* fileSystem
|
|
13373
13987
|
*/
|
|
13374
13988
|
fileSystem: FileSystem;
|
|
13375
13989
|
|
|
13376
13990
|
/**
|
|
13377
|
-
*
|
|
13991
|
+
* unsafe cache
|
|
13378
13992
|
*/
|
|
13379
|
-
unsafeCache
|
|
13993
|
+
unsafeCache: false | CacheTypes;
|
|
13380
13994
|
|
|
13381
13995
|
/**
|
|
13382
|
-
*
|
|
13996
|
+
* symlinks
|
|
13383
13997
|
*/
|
|
13384
|
-
symlinks
|
|
13998
|
+
symlinks: boolean;
|
|
13385
13999
|
|
|
13386
14000
|
/**
|
|
13387
|
-
*
|
|
14001
|
+
* resolver
|
|
13388
14002
|
*/
|
|
13389
14003
|
resolver?: Resolver;
|
|
13390
14004
|
|
|
13391
14005
|
/**
|
|
13392
|
-
*
|
|
14006
|
+
* modules
|
|
13393
14007
|
*/
|
|
13394
|
-
modules
|
|
14008
|
+
modules: (string | string[])[];
|
|
14009
|
+
|
|
14010
|
+
/**
|
|
14011
|
+
* main fields
|
|
14012
|
+
*/
|
|
14013
|
+
mainFields: { name: string[]; forceRelative: boolean }[];
|
|
14014
|
+
|
|
14015
|
+
/**
|
|
14016
|
+
* main files
|
|
14017
|
+
*/
|
|
14018
|
+
mainFiles: Set<string>;
|
|
14019
|
+
|
|
14020
|
+
/**
|
|
14021
|
+
* plugins
|
|
14022
|
+
*/
|
|
14023
|
+
plugins: Plugin[];
|
|
14024
|
+
|
|
14025
|
+
/**
|
|
14026
|
+
* pnp API
|
|
14027
|
+
*/
|
|
14028
|
+
pnpApi: null | PnpApi;
|
|
14029
|
+
|
|
14030
|
+
/**
|
|
14031
|
+
* roots
|
|
14032
|
+
*/
|
|
14033
|
+
roots: Set<string>;
|
|
14034
|
+
|
|
14035
|
+
/**
|
|
14036
|
+
* fully specified
|
|
14037
|
+
*/
|
|
14038
|
+
fullySpecified: boolean;
|
|
14039
|
+
|
|
14040
|
+
/**
|
|
14041
|
+
* resolve to context
|
|
14042
|
+
*/
|
|
14043
|
+
resolveToContext: boolean;
|
|
14044
|
+
|
|
14045
|
+
/**
|
|
14046
|
+
* restrictions
|
|
14047
|
+
*/
|
|
14048
|
+
restrictions: Set<string | RegExp>;
|
|
14049
|
+
|
|
14050
|
+
/**
|
|
14051
|
+
* prefer relative
|
|
14052
|
+
*/
|
|
14053
|
+
preferRelative: boolean;
|
|
14054
|
+
|
|
14055
|
+
/**
|
|
14056
|
+
* prefer absolute
|
|
14057
|
+
*/
|
|
14058
|
+
preferAbsolute: boolean;
|
|
14059
|
+
}
|
|
14060
|
+
declare interface ResolveOptionsResolverFactoryObject2 {
|
|
14061
|
+
/**
|
|
14062
|
+
* A list of module alias configurations or an object which maps key to value
|
|
14063
|
+
*/
|
|
14064
|
+
alias?: AliasOption[] | AliasOptions;
|
|
14065
|
+
|
|
14066
|
+
/**
|
|
14067
|
+
* A list of module alias configurations or an object which maps key to value, applied only after modules option
|
|
14068
|
+
*/
|
|
14069
|
+
fallback?: AliasOption[] | AliasOptions;
|
|
14070
|
+
|
|
14071
|
+
/**
|
|
14072
|
+
* An object which maps extension to extension aliases
|
|
14073
|
+
*/
|
|
14074
|
+
extensionAlias?: ExtensionAliasOptions;
|
|
14075
|
+
|
|
14076
|
+
/**
|
|
14077
|
+
* A list of alias fields in description files
|
|
14078
|
+
*/
|
|
14079
|
+
aliasFields?: (string | string[])[];
|
|
14080
|
+
|
|
14081
|
+
/**
|
|
14082
|
+
* A function which decides whether a request should be cached or not. An object is passed with at least `path` and `request` properties.
|
|
14083
|
+
*/
|
|
14084
|
+
cachePredicate?: (predicate: ResolveRequest) => boolean;
|
|
14085
|
+
|
|
14086
|
+
/**
|
|
14087
|
+
* Whether or not the unsafeCache should include request context as part of the cache key.
|
|
14088
|
+
*/
|
|
14089
|
+
cacheWithContext?: boolean;
|
|
14090
|
+
|
|
14091
|
+
/**
|
|
14092
|
+
* A list of description files to read from
|
|
14093
|
+
*/
|
|
14094
|
+
descriptionFiles?: string[];
|
|
14095
|
+
|
|
14096
|
+
/**
|
|
14097
|
+
* A list of exports field condition names.
|
|
14098
|
+
*/
|
|
14099
|
+
conditionNames?: string[];
|
|
14100
|
+
|
|
14101
|
+
/**
|
|
14102
|
+
* Enforce that a extension from extensions must be used
|
|
14103
|
+
*/
|
|
14104
|
+
enforceExtension?: boolean;
|
|
14105
|
+
|
|
14106
|
+
/**
|
|
14107
|
+
* A list of exports fields in description files
|
|
14108
|
+
*/
|
|
14109
|
+
exportsFields?: (string | string[])[];
|
|
14110
|
+
|
|
14111
|
+
/**
|
|
14112
|
+
* A list of imports fields in description files
|
|
14113
|
+
*/
|
|
14114
|
+
importsFields?: (string | string[])[];
|
|
14115
|
+
|
|
14116
|
+
/**
|
|
14117
|
+
* A list of extensions which should be tried for files
|
|
14118
|
+
*/
|
|
14119
|
+
extensions?: string[];
|
|
14120
|
+
|
|
14121
|
+
/**
|
|
14122
|
+
* The file system which should be used
|
|
14123
|
+
*/
|
|
14124
|
+
fileSystem: FileSystem;
|
|
14125
|
+
|
|
14126
|
+
/**
|
|
14127
|
+
* Use this cache object to unsafely cache the successful requests
|
|
14128
|
+
*/
|
|
14129
|
+
unsafeCache?: boolean | CacheTypes;
|
|
14130
|
+
|
|
14131
|
+
/**
|
|
14132
|
+
* Resolve symlinks to their symlinked location
|
|
14133
|
+
*/
|
|
14134
|
+
symlinks?: boolean;
|
|
14135
|
+
|
|
14136
|
+
/**
|
|
14137
|
+
* A prepared Resolver to which the plugins are attached
|
|
14138
|
+
*/
|
|
14139
|
+
resolver?: Resolver;
|
|
14140
|
+
|
|
14141
|
+
/**
|
|
14142
|
+
* A list of directories to resolve modules from, can be absolute path or folder name
|
|
14143
|
+
*/
|
|
14144
|
+
modules?: string | string[];
|
|
13395
14145
|
|
|
13396
14146
|
/**
|
|
13397
14147
|
* A list of main fields in description files
|
|
@@ -13569,7 +14319,28 @@ declare interface ResourceDataWithData {
|
|
|
13569
14319
|
query?: string;
|
|
13570
14320
|
fragment?: string;
|
|
13571
14321
|
context?: string;
|
|
13572
|
-
data:
|
|
14322
|
+
data: ResourceSchemeData & Partial<ResolveRequest>;
|
|
14323
|
+
}
|
|
14324
|
+
declare interface ResourceSchemeData {
|
|
14325
|
+
/**
|
|
14326
|
+
* mime type of the resource
|
|
14327
|
+
*/
|
|
14328
|
+
mimetype?: string;
|
|
14329
|
+
|
|
14330
|
+
/**
|
|
14331
|
+
* additional parameters for the resource
|
|
14332
|
+
*/
|
|
14333
|
+
parameters?: string;
|
|
14334
|
+
|
|
14335
|
+
/**
|
|
14336
|
+
* encoding of the resource
|
|
14337
|
+
*/
|
|
14338
|
+
encoding?: false | "base64";
|
|
14339
|
+
|
|
14340
|
+
/**
|
|
14341
|
+
* encoded content of the resource
|
|
14342
|
+
*/
|
|
14343
|
+
encodedContent?: string;
|
|
13573
14344
|
}
|
|
13574
14345
|
declare abstract class RestoreProvidedData {
|
|
13575
14346
|
exports: RestoreProvidedDataExports[];
|
|
@@ -14364,6 +15135,10 @@ declare abstract class RuntimeTemplate {
|
|
|
14364
15135
|
* the module
|
|
14365
15136
|
*/
|
|
14366
15137
|
module: Module;
|
|
15138
|
+
/**
|
|
15139
|
+
* the module graph
|
|
15140
|
+
*/
|
|
15141
|
+
moduleGraph: ModuleGraph;
|
|
14367
15142
|
/**
|
|
14368
15143
|
* the chunk graph
|
|
14369
15144
|
*/
|
|
@@ -14388,12 +15163,20 @@ declare abstract class RuntimeTemplate {
|
|
|
14388
15163
|
* if set, will be filled with runtime requirements
|
|
14389
15164
|
*/
|
|
14390
15165
|
runtimeRequirements: Set<string>;
|
|
15166
|
+
/**
|
|
15167
|
+
* if set, the module will be deferred
|
|
15168
|
+
*/
|
|
15169
|
+
defer?: boolean;
|
|
14391
15170
|
}): [string, string];
|
|
14392
15171
|
exportFromImport<GenerateContext>(__0: {
|
|
14393
15172
|
/**
|
|
14394
15173
|
* the module graph
|
|
14395
15174
|
*/
|
|
14396
15175
|
moduleGraph: ModuleGraph;
|
|
15176
|
+
/**
|
|
15177
|
+
* the chunk graph
|
|
15178
|
+
*/
|
|
15179
|
+
chunkGraph: ChunkGraph;
|
|
14397
15180
|
/**
|
|
14398
15181
|
* the module
|
|
14399
15182
|
*/
|
|
@@ -14442,6 +15225,10 @@ declare abstract class RuntimeTemplate {
|
|
|
14442
15225
|
* if set, will be filled with runtime requirements
|
|
14443
15226
|
*/
|
|
14444
15227
|
runtimeRequirements: Set<string>;
|
|
15228
|
+
/**
|
|
15229
|
+
* if true, the module will be deferred.
|
|
15230
|
+
*/
|
|
15231
|
+
defer?: boolean;
|
|
14445
15232
|
}): string;
|
|
14446
15233
|
blockPromise(__0: {
|
|
14447
15234
|
/**
|
|
@@ -14576,6 +15363,10 @@ declare abstract class SerializerMiddleware<
|
|
|
14576
15363
|
context: Context
|
|
14577
15364
|
): DeserializedType | Promise<DeserializedType>;
|
|
14578
15365
|
}
|
|
15366
|
+
declare interface SetIterator<T> extends IteratorObject<T, undefined> {
|
|
15367
|
+
[Symbol.iterator](): SetIterator<T>;
|
|
15368
|
+
[Symbol.dispose](): void;
|
|
15369
|
+
}
|
|
14579
15370
|
declare class SharePlugin {
|
|
14580
15371
|
constructor(options: SharePluginOptions);
|
|
14581
15372
|
|
|
@@ -14836,25 +15627,54 @@ declare abstract class SortableSet<T> extends Set<T> {
|
|
|
14836
15627
|
}
|
|
14837
15628
|
declare class Source {
|
|
14838
15629
|
constructor();
|
|
15630
|
+
source(): SourceValue;
|
|
15631
|
+
buffer(): Buffer;
|
|
14839
15632
|
size(): number;
|
|
14840
15633
|
map(options?: MapOptions): null | RawSourceMap;
|
|
14841
|
-
sourceAndMap(options?: MapOptions):
|
|
14842
|
-
updateHash(hash:
|
|
14843
|
-
source(): string | Buffer;
|
|
14844
|
-
buffer(): Buffer;
|
|
15634
|
+
sourceAndMap(options?: MapOptions): SourceAndMap;
|
|
15635
|
+
updateHash(hash: HashLike): void;
|
|
14845
15636
|
}
|
|
14846
|
-
declare interface
|
|
14847
|
-
|
|
15637
|
+
declare interface SourceAndMap {
|
|
15638
|
+
/**
|
|
15639
|
+
* source
|
|
15640
|
+
*/
|
|
15641
|
+
source: SourceValue;
|
|
15642
|
+
|
|
15643
|
+
/**
|
|
15644
|
+
* map
|
|
15645
|
+
*/
|
|
15646
|
+
map: null | RawSourceMap;
|
|
14848
15647
|
}
|
|
14849
|
-
declare interface
|
|
14850
|
-
|
|
14851
|
-
|
|
14852
|
-
|
|
14853
|
-
|
|
14854
|
-
|
|
14855
|
-
|
|
14856
|
-
|
|
14857
|
-
|
|
15648
|
+
declare interface SourceLike {
|
|
15649
|
+
/**
|
|
15650
|
+
* source
|
|
15651
|
+
*/
|
|
15652
|
+
source: () => SourceValue;
|
|
15653
|
+
|
|
15654
|
+
/**
|
|
15655
|
+
* buffer
|
|
15656
|
+
*/
|
|
15657
|
+
buffer?: () => Buffer;
|
|
15658
|
+
|
|
15659
|
+
/**
|
|
15660
|
+
* size
|
|
15661
|
+
*/
|
|
15662
|
+
size?: () => number;
|
|
15663
|
+
|
|
15664
|
+
/**
|
|
15665
|
+
* map
|
|
15666
|
+
*/
|
|
15667
|
+
map?: (options?: MapOptions) => null | RawSourceMap;
|
|
15668
|
+
|
|
15669
|
+
/**
|
|
15670
|
+
* source and map
|
|
15671
|
+
*/
|
|
15672
|
+
sourceAndMap?: (options?: MapOptions) => SourceAndMap;
|
|
15673
|
+
|
|
15674
|
+
/**
|
|
15675
|
+
* hash updater
|
|
15676
|
+
*/
|
|
15677
|
+
updateHash?: (hash: HashLike) => void;
|
|
14858
15678
|
}
|
|
14859
15679
|
declare class SourceMapDevToolPlugin {
|
|
14860
15680
|
constructor(options?: SourceMapDevToolPluginOptions);
|
|
@@ -14955,11 +15775,11 @@ declare interface SourceMapDevToolPluginOptions {
|
|
|
14955
15775
|
}
|
|
14956
15776
|
declare class SourceMapSource extends Source {
|
|
14957
15777
|
constructor(
|
|
14958
|
-
|
|
15778
|
+
value: string | Buffer,
|
|
14959
15779
|
name: string,
|
|
14960
|
-
sourceMap
|
|
15780
|
+
sourceMap?: string | Buffer | RawSourceMap,
|
|
14961
15781
|
originalSource?: string | Buffer,
|
|
14962
|
-
innerSourceMap?: string |
|
|
15782
|
+
innerSourceMap?: string | Buffer | RawSourceMap,
|
|
14963
15783
|
removeOriginalSource?: boolean
|
|
14964
15784
|
);
|
|
14965
15785
|
getArgsAsBuffers(): [
|
|
@@ -14968,13 +15788,32 @@ declare class SourceMapSource extends Source {
|
|
|
14968
15788
|
Buffer,
|
|
14969
15789
|
undefined | Buffer,
|
|
14970
15790
|
undefined | Buffer,
|
|
14971
|
-
boolean
|
|
15791
|
+
undefined | boolean
|
|
14972
15792
|
];
|
|
15793
|
+
streamChunks(
|
|
15794
|
+
options: StreamChunksOptions,
|
|
15795
|
+
onChunk: (
|
|
15796
|
+
chunk: undefined | string,
|
|
15797
|
+
generatedLine: number,
|
|
15798
|
+
generatedColumn: number,
|
|
15799
|
+
sourceIndex: number,
|
|
15800
|
+
originalLine: number,
|
|
15801
|
+
originalColumn: number,
|
|
15802
|
+
nameIndex: number
|
|
15803
|
+
) => void,
|
|
15804
|
+
onSource: (
|
|
15805
|
+
sourceIndex: number,
|
|
15806
|
+
source: null | string,
|
|
15807
|
+
sourceContent?: string
|
|
15808
|
+
) => void,
|
|
15809
|
+
onName: (nameIndex: number, name: string) => void
|
|
15810
|
+
): GeneratedSourceInfo;
|
|
14973
15811
|
}
|
|
14974
15812
|
declare interface SourcePosition {
|
|
14975
15813
|
line: number;
|
|
14976
15814
|
column?: number;
|
|
14977
15815
|
}
|
|
15816
|
+
type SourceValue = string | Buffer;
|
|
14978
15817
|
declare interface SplitChunksOptions {
|
|
14979
15818
|
chunksFilter: (chunk: Chunk) => undefined | boolean;
|
|
14980
15819
|
defaultSizeTypes: string[];
|
|
@@ -15010,6 +15849,12 @@ declare class SplitChunksPlugin {
|
|
|
15010
15849
|
declare interface SplitChunksSizes {
|
|
15011
15850
|
[index: string]: number;
|
|
15012
15851
|
}
|
|
15852
|
+
declare interface SplitData {
|
|
15853
|
+
id?: string | number;
|
|
15854
|
+
hash?: string;
|
|
15855
|
+
modules: Module[];
|
|
15856
|
+
size: number;
|
|
15857
|
+
}
|
|
15013
15858
|
declare abstract class StackedMap<K, V> {
|
|
15014
15859
|
map: Map<K, InternalCell<V>>;
|
|
15015
15860
|
stack: Map<K, InternalCell<V>>[];
|
|
@@ -15082,24 +15927,24 @@ declare interface StatSyncOptions {
|
|
|
15082
15927
|
declare interface StatTypes {
|
|
15083
15928
|
(
|
|
15084
15929
|
path: PathLikeTypes,
|
|
15085
|
-
callback: (
|
|
15930
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void
|
|
15086
15931
|
): void;
|
|
15087
15932
|
(
|
|
15088
15933
|
path: PathLikeTypes,
|
|
15089
15934
|
options: undefined | (StatOptions & { bigint?: false }),
|
|
15090
|
-
callback: (
|
|
15935
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IStats) => void
|
|
15091
15936
|
): void;
|
|
15092
15937
|
(
|
|
15093
15938
|
path: PathLikeTypes,
|
|
15094
15939
|
options: StatOptions & { bigint: true },
|
|
15095
|
-
callback: (
|
|
15940
|
+
callback: (err: null | NodeJS.ErrnoException, result?: IBigIntStats) => void
|
|
15096
15941
|
): void;
|
|
15097
15942
|
(
|
|
15098
15943
|
path: PathLikeTypes,
|
|
15099
15944
|
options: undefined | StatOptions,
|
|
15100
15945
|
callback: (
|
|
15101
|
-
|
|
15102
|
-
|
|
15946
|
+
err: null | NodeJS.ErrnoException,
|
|
15947
|
+
result?: IStats | IBigIntStats
|
|
15103
15948
|
) => void
|
|
15104
15949
|
): void;
|
|
15105
15950
|
}
|
|
@@ -15753,6 +16598,11 @@ type StatsValue =
|
|
|
15753
16598
|
| "minimal"
|
|
15754
16599
|
| "normal"
|
|
15755
16600
|
| "detailed";
|
|
16601
|
+
declare interface StreamChunksOptions {
|
|
16602
|
+
source?: boolean;
|
|
16603
|
+
finalSource?: boolean;
|
|
16604
|
+
columns?: boolean;
|
|
16605
|
+
}
|
|
15756
16606
|
type Supports = undefined | string;
|
|
15757
16607
|
declare class SyncModuleIdsPlugin {
|
|
15758
16608
|
constructor(__0: SyncModuleIdsPluginOptions);
|
|
@@ -15806,6 +16656,7 @@ declare interface TargetItemWithConnection {
|
|
|
15806
16656
|
declare interface TargetItemWithoutConnection {
|
|
15807
16657
|
module: Module;
|
|
15808
16658
|
export: string[];
|
|
16659
|
+
deferred: boolean;
|
|
15809
16660
|
}
|
|
15810
16661
|
declare class Template {
|
|
15811
16662
|
constructor();
|
|
@@ -15836,8 +16687,8 @@ declare class Template {
|
|
|
15836
16687
|
runtimeModules: RuntimeModule[],
|
|
15837
16688
|
renderContext: RenderContextJavascriptModulesPlugin
|
|
15838
16689
|
): Source;
|
|
15839
|
-
static NUMBER_OF_IDENTIFIER_START_CHARS: number;
|
|
15840
16690
|
static NUMBER_OF_IDENTIFIER_CONTINUATION_CHARS: number;
|
|
16691
|
+
static NUMBER_OF_IDENTIFIER_START_CHARS: number;
|
|
15841
16692
|
}
|
|
15842
16693
|
type TemplatePath =
|
|
15843
16694
|
| string
|
|
@@ -15867,11 +16718,6 @@ declare interface TrustedTypes {
|
|
|
15867
16718
|
policyName?: string;
|
|
15868
16719
|
}
|
|
15869
16720
|
declare const UNDEFINED_MARKER: unique symbol;
|
|
15870
|
-
|
|
15871
|
-
/**
|
|
15872
|
-
* `URL` class is a global reference for `require('url').URL`
|
|
15873
|
-
* https://nodejs.org/api/url.html#the-whatwg-url-api
|
|
15874
|
-
*/
|
|
15875
16721
|
declare interface URL_url extends URL {}
|
|
15876
16722
|
type UnsafeCacheData = KnownUnsafeCacheData & Record<string, any>;
|
|
15877
16723
|
declare interface UpdateHashContextDependency {
|
|
@@ -15892,6 +16738,9 @@ type UsageStateType = 0 | 1 | 2 | 3 | 4;
|
|
|
15892
16738
|
type UsedName = string | false | string[];
|
|
15893
16739
|
type Value = string | number | boolean | RegExp;
|
|
15894
16740
|
type ValueCacheVersion = string | Set<string>;
|
|
16741
|
+
declare interface Values {
|
|
16742
|
+
[index: string]: Value[];
|
|
16743
|
+
}
|
|
15895
16744
|
declare class VariableInfo {
|
|
15896
16745
|
constructor(
|
|
15897
16746
|
declaredScope: ScopeInfo,
|
|
@@ -15902,6 +16751,46 @@ declare class VariableInfo {
|
|
|
15902
16751
|
freeName?: string | true;
|
|
15903
16752
|
tagInfo?: TagInfo;
|
|
15904
16753
|
}
|
|
16754
|
+
declare interface VirtualModuleConfig {
|
|
16755
|
+
/**
|
|
16756
|
+
* - The module type
|
|
16757
|
+
*/
|
|
16758
|
+
type?: string;
|
|
16759
|
+
|
|
16760
|
+
/**
|
|
16761
|
+
* - The source function
|
|
16762
|
+
*/
|
|
16763
|
+
source: (loaderContext: LoaderContextObject<any>) => string | Promise<string>;
|
|
16764
|
+
|
|
16765
|
+
/**
|
|
16766
|
+
* - Optional version function or value
|
|
16767
|
+
*/
|
|
16768
|
+
version?: string | true | (() => string);
|
|
16769
|
+
}
|
|
16770
|
+
type VirtualModuleInput =
|
|
16771
|
+
| string
|
|
16772
|
+
| ((loaderContext: LoaderContextObject<any>) => string | Promise<string>)
|
|
16773
|
+
| VirtualModuleConfig;
|
|
16774
|
+
declare interface VirtualModules {
|
|
16775
|
+
[index: string]: VirtualModuleInput;
|
|
16776
|
+
}
|
|
16777
|
+
declare class VirtualUrlPlugin {
|
|
16778
|
+
constructor(modules: VirtualModules, scheme?: string);
|
|
16779
|
+
scheme: string;
|
|
16780
|
+
modules: { [index: string]: VirtualModuleConfig };
|
|
16781
|
+
|
|
16782
|
+
/**
|
|
16783
|
+
* Apply the plugin
|
|
16784
|
+
*/
|
|
16785
|
+
apply(compiler: Compiler): void;
|
|
16786
|
+
findVirtualModuleConfigById(id: string): VirtualModuleConfig;
|
|
16787
|
+
|
|
16788
|
+
/**
|
|
16789
|
+
* Get the cache version for a given version value
|
|
16790
|
+
*/
|
|
16791
|
+
getCacheVersion(version: string | true | (() => string)): undefined | string;
|
|
16792
|
+
static DEFAULT_SCHEME: string;
|
|
16793
|
+
}
|
|
15905
16794
|
type WarningFilterItemTypes =
|
|
15906
16795
|
| string
|
|
15907
16796
|
| RegExp
|
|
@@ -16442,6 +17331,7 @@ declare interface WriteFile {
|
|
|
16442
17331
|
| Int32Array
|
|
16443
17332
|
| BigUint64Array
|
|
16444
17333
|
| BigInt64Array
|
|
17334
|
+
| Float16Array
|
|
16445
17335
|
| Float32Array
|
|
16446
17336
|
| Float64Array
|
|
16447
17337
|
| DataView,
|
|
@@ -16461,6 +17351,7 @@ declare interface WriteFile {
|
|
|
16461
17351
|
| Int32Array
|
|
16462
17352
|
| BigUint64Array
|
|
16463
17353
|
| BigInt64Array
|
|
17354
|
+
| Float16Array
|
|
16464
17355
|
| Float32Array
|
|
16465
17356
|
| Float64Array
|
|
16466
17357
|
| DataView,
|
|
@@ -16574,8 +17465,8 @@ declare namespace exports {
|
|
|
16574
17465
|
) => Flags;
|
|
16575
17466
|
export let processArguments: (
|
|
16576
17467
|
args: Flags,
|
|
16577
|
-
config:
|
|
16578
|
-
values:
|
|
17468
|
+
config: ObjectConfiguration,
|
|
17469
|
+
values: Values
|
|
16579
17470
|
) => null | Problem[];
|
|
16580
17471
|
}
|
|
16581
17472
|
export namespace ModuleFilenameHelpers {
|
|
@@ -16626,81 +17517,85 @@ declare namespace exports {
|
|
|
16626
17517
|
export let matchObject: (obj: MatchObject, str: string) => boolean;
|
|
16627
17518
|
}
|
|
16628
17519
|
export namespace OptimizationStages {
|
|
17520
|
+
export let STAGE_ADVANCED: 10;
|
|
16629
17521
|
export let STAGE_BASIC: -10;
|
|
16630
17522
|
export let STAGE_DEFAULT: 0;
|
|
16631
|
-
export let STAGE_ADVANCED: 10;
|
|
16632
17523
|
}
|
|
16633
17524
|
export namespace RuntimeGlobals {
|
|
16634
|
-
export let
|
|
16635
|
-
export let
|
|
17525
|
+
export let amdDefine: "__webpack_require__.amdD";
|
|
17526
|
+
export let amdOptions: "__webpack_require__.amdO";
|
|
17527
|
+
export let asyncModule: "__webpack_require__.a";
|
|
17528
|
+
export let asyncModuleDoneSymbol: "__webpack_require__.aD";
|
|
17529
|
+
export let asyncModuleExportSymbol: "__webpack_require__.aE";
|
|
17530
|
+
export let baseURI: "__webpack_require__.b";
|
|
17531
|
+
export let chunkCallback: "webpackChunk";
|
|
17532
|
+
export let chunkName: "__webpack_require__.cn";
|
|
17533
|
+
export let compatGetDefaultExport: "__webpack_require__.n";
|
|
17534
|
+
export let createFakeNamespaceObject: "__webpack_require__.t";
|
|
17535
|
+
export let createScript: "__webpack_require__.ts";
|
|
17536
|
+
export let createScriptUrl: "__webpack_require__.tu";
|
|
17537
|
+
export let currentRemoteGetScope: "__webpack_require__.R";
|
|
17538
|
+
export let definePropertyGetters: "__webpack_require__.d";
|
|
17539
|
+
export let ensureChunk: "__webpack_require__.e";
|
|
17540
|
+
export let ensureChunkHandlers: "__webpack_require__.f";
|
|
17541
|
+
export let ensureChunkIncludeEntries: "__webpack_require__.f (include entries)";
|
|
17542
|
+
export let entryModuleId: "__webpack_require__.s";
|
|
16636
17543
|
export let exports: "__webpack_exports__";
|
|
16637
|
-
export let
|
|
16638
|
-
export let
|
|
17544
|
+
export let externalInstallChunk: "__webpack_require__.C";
|
|
17545
|
+
export let getChunkCssFilename: "__webpack_require__.k";
|
|
17546
|
+
export let getChunkScriptFilename: "__webpack_require__.u";
|
|
17547
|
+
export let getChunkUpdateCssFilename: "__webpack_require__.hk";
|
|
17548
|
+
export let getChunkUpdateScriptFilename: "__webpack_require__.hu";
|
|
17549
|
+
export let getFullHash: "__webpack_require__.h";
|
|
17550
|
+
export let getTrustedTypesPolicy: "__webpack_require__.tt";
|
|
17551
|
+
export let getUpdateManifestFilename: "__webpack_require__.hmrF";
|
|
17552
|
+
export let global: "__webpack_require__.g";
|
|
17553
|
+
export let harmonyModuleDecorator: "__webpack_require__.hmd";
|
|
17554
|
+
export let hasCssModules: "has css modules";
|
|
17555
|
+
export let hasFetchPriority: "has fetch priority";
|
|
17556
|
+
export let hasOwnProperty: "__webpack_require__.o";
|
|
17557
|
+
export let hmrDownloadManifest: "__webpack_require__.hmrM";
|
|
17558
|
+
export let hmrDownloadUpdateHandlers: "__webpack_require__.hmrC";
|
|
17559
|
+
export let hmrInvalidateModuleHandlers: "__webpack_require__.hmrI";
|
|
17560
|
+
export let hmrModuleData: "__webpack_require__.hmrD";
|
|
17561
|
+
export let hmrRuntimeStatePrefix: "__webpack_require__.hmrS";
|
|
17562
|
+
export let initializeSharing: "__webpack_require__.I";
|
|
17563
|
+
export let instantiateWasm: "__webpack_require__.v";
|
|
17564
|
+
export let interceptModuleExecution: "__webpack_require__.i";
|
|
17565
|
+
export let loadScript: "__webpack_require__.l";
|
|
17566
|
+
export let makeDeferredNamespaceObject: "__webpack_require__.z";
|
|
17567
|
+
export let makeDeferredNamespaceObjectSymbol: "__webpack_require__.zS";
|
|
17568
|
+
export let makeNamespaceObject: "__webpack_require__.r";
|
|
16639
17569
|
export let module: "module";
|
|
16640
|
-
export let moduleId: "module.id";
|
|
16641
|
-
export let moduleLoaded: "module.loaded";
|
|
16642
|
-
export let publicPath: "__webpack_require__.p";
|
|
16643
|
-
export let entryModuleId: "__webpack_require__.s";
|
|
16644
17570
|
export let moduleCache: "__webpack_require__.c";
|
|
16645
17571
|
export let moduleFactories: "__webpack_require__.m";
|
|
16646
17572
|
export let moduleFactoriesAddOnly: "__webpack_require__.m (add only)";
|
|
16647
|
-
export let
|
|
16648
|
-
export let
|
|
16649
|
-
export let
|
|
17573
|
+
export let moduleId: "module.id";
|
|
17574
|
+
export let moduleLoaded: "module.loaded";
|
|
17575
|
+
export let nodeModuleDecorator: "__webpack_require__.nmd";
|
|
17576
|
+
export let onChunksLoaded: "__webpack_require__.O";
|
|
16650
17577
|
export let prefetchChunk: "__webpack_require__.E";
|
|
16651
17578
|
export let prefetchChunkHandlers: "__webpack_require__.F";
|
|
16652
17579
|
export let preloadChunk: "__webpack_require__.G";
|
|
16653
17580
|
export let preloadChunkHandlers: "__webpack_require__.H";
|
|
16654
|
-
export let
|
|
16655
|
-
export let
|
|
16656
|
-
export let
|
|
16657
|
-
export let
|
|
16658
|
-
export let
|
|
16659
|
-
export let nodeModuleDecorator: "__webpack_require__.nmd";
|
|
16660
|
-
export let getFullHash: "__webpack_require__.h";
|
|
16661
|
-
export let wasmInstances: "__webpack_require__.w";
|
|
16662
|
-
export let instantiateWasm: "__webpack_require__.v";
|
|
16663
|
-
export let uncaughtErrorHandler: "__webpack_require__.oe";
|
|
16664
|
-
export let scriptNonce: "__webpack_require__.nc";
|
|
16665
|
-
export let loadScript: "__webpack_require__.l";
|
|
16666
|
-
export let createScript: "__webpack_require__.ts";
|
|
16667
|
-
export let createScriptUrl: "__webpack_require__.tu";
|
|
16668
|
-
export let getTrustedTypesPolicy: "__webpack_require__.tt";
|
|
16669
|
-
export let hasFetchPriority: "has fetch priority";
|
|
16670
|
-
export let chunkName: "__webpack_require__.cn";
|
|
17581
|
+
export let publicPath: "__webpack_require__.p";
|
|
17582
|
+
export let relativeUrl: "__webpack_require__.U";
|
|
17583
|
+
export let require: "__webpack_require__";
|
|
17584
|
+
export let requireScope: "__webpack_require__.*";
|
|
17585
|
+
export let returnExportsFromRuntime: "return-exports-from-runtime";
|
|
16671
17586
|
export let runtimeId: "__webpack_require__.j";
|
|
16672
|
-
export let
|
|
16673
|
-
export let
|
|
16674
|
-
export let hasCssModules: "has css modules";
|
|
16675
|
-
export let getChunkUpdateScriptFilename: "__webpack_require__.hu";
|
|
16676
|
-
export let getChunkUpdateCssFilename: "__webpack_require__.hk";
|
|
17587
|
+
export let scriptNonce: "__webpack_require__.nc";
|
|
17588
|
+
export let shareScopeMap: "__webpack_require__.S";
|
|
16677
17589
|
export let startup: "__webpack_require__.x";
|
|
17590
|
+
export let startupEntrypoint: "__webpack_require__.X";
|
|
16678
17591
|
export let startupNoDefault: "__webpack_require__.x (no default handler)";
|
|
16679
17592
|
export let startupOnlyAfter: "__webpack_require__.x (only after)";
|
|
16680
17593
|
export let startupOnlyBefore: "__webpack_require__.x (only before)";
|
|
16681
|
-
export let chunkCallback: "webpackChunk";
|
|
16682
|
-
export let startupEntrypoint: "__webpack_require__.X";
|
|
16683
|
-
export let onChunksLoaded: "__webpack_require__.O";
|
|
16684
|
-
export let externalInstallChunk: "__webpack_require__.C";
|
|
16685
|
-
export let interceptModuleExecution: "__webpack_require__.i";
|
|
16686
|
-
export let global: "__webpack_require__.g";
|
|
16687
|
-
export let shareScopeMap: "__webpack_require__.S";
|
|
16688
|
-
export let initializeSharing: "__webpack_require__.I";
|
|
16689
|
-
export let currentRemoteGetScope: "__webpack_require__.R";
|
|
16690
|
-
export let getUpdateManifestFilename: "__webpack_require__.hmrF";
|
|
16691
|
-
export let hmrDownloadManifest: "__webpack_require__.hmrM";
|
|
16692
|
-
export let hmrDownloadUpdateHandlers: "__webpack_require__.hmrC";
|
|
16693
|
-
export let hmrModuleData: "__webpack_require__.hmrD";
|
|
16694
|
-
export let hmrInvalidateModuleHandlers: "__webpack_require__.hmrI";
|
|
16695
|
-
export let hmrRuntimeStatePrefix: "__webpack_require__.hmrS";
|
|
16696
|
-
export let amdDefine: "__webpack_require__.amdD";
|
|
16697
|
-
export let amdOptions: "__webpack_require__.amdO";
|
|
16698
17594
|
export let system: "__webpack_require__.System";
|
|
16699
|
-
export let hasOwnProperty: "__webpack_require__.o";
|
|
16700
17595
|
export let systemContext: "__webpack_require__.y";
|
|
16701
|
-
export let
|
|
16702
|
-
export let
|
|
16703
|
-
export let
|
|
17596
|
+
export let thisAsExports: "top-level-this-exports";
|
|
17597
|
+
export let uncaughtErrorHandler: "__webpack_require__.oe";
|
|
17598
|
+
export let wasmInstances: "__webpack_require__.w";
|
|
16704
17599
|
}
|
|
16705
17600
|
export const UsageState: Readonly<{
|
|
16706
17601
|
Unused: 0;
|
|
@@ -16751,9 +17646,6 @@ declare namespace exports {
|
|
|
16751
17646
|
}
|
|
16752
17647
|
export namespace optimize {
|
|
16753
17648
|
export namespace InnerGraph {
|
|
16754
|
-
export let bailout: (parserState: ParserState) => void;
|
|
16755
|
-
export let enable: (parserState: ParserState) => void;
|
|
16756
|
-
export let isEnabled: (parserState: ParserState) => boolean;
|
|
16757
17649
|
export let addUsage: (
|
|
16758
17650
|
state: ParserState,
|
|
16759
17651
|
symbol: null | TopLevelSymbol,
|
|
@@ -16764,7 +17656,30 @@ declare namespace exports {
|
|
|
16764
17656
|
name: string,
|
|
16765
17657
|
usage: string | true | TopLevelSymbol
|
|
16766
17658
|
) => void;
|
|
17659
|
+
export let bailout: (parserState: ParserState) => void;
|
|
17660
|
+
export let enable: (parserState: ParserState) => void;
|
|
17661
|
+
export let getDependencyUsedByExportsCondition: (
|
|
17662
|
+
dependency: Dependency,
|
|
17663
|
+
usedByExports: undefined | boolean | Set<string>,
|
|
17664
|
+
moduleGraph: ModuleGraph
|
|
17665
|
+
) =>
|
|
17666
|
+
| null
|
|
17667
|
+
| false
|
|
17668
|
+
| ((
|
|
17669
|
+
moduleGraphConnection: ModuleGraphConnection,
|
|
17670
|
+
runtime: RuntimeSpec
|
|
17671
|
+
) => ConnectionState);
|
|
17672
|
+
export let getTopLevelSymbol: (
|
|
17673
|
+
state: ParserState
|
|
17674
|
+
) => void | TopLevelSymbol;
|
|
16767
17675
|
export let inferDependencyUsage: (state: ParserState) => void;
|
|
17676
|
+
export let isDependencyUsedByExports: (
|
|
17677
|
+
dependency: Dependency,
|
|
17678
|
+
usedByExports: boolean | Set<string>,
|
|
17679
|
+
moduleGraph: ModuleGraph,
|
|
17680
|
+
runtime: RuntimeSpec
|
|
17681
|
+
) => boolean;
|
|
17682
|
+
export let isEnabled: (parserState: ParserState) => boolean;
|
|
16768
17683
|
export let onUsage: (
|
|
16769
17684
|
state: ParserState,
|
|
16770
17685
|
onUsageCallback: (value?: boolean | Set<string>) => void
|
|
@@ -16773,30 +17688,10 @@ declare namespace exports {
|
|
|
16773
17688
|
state: ParserState,
|
|
16774
17689
|
symbol?: TopLevelSymbol
|
|
16775
17690
|
) => void;
|
|
16776
|
-
export let getTopLevelSymbol: (
|
|
16777
|
-
state: ParserState
|
|
16778
|
-
) => void | TopLevelSymbol;
|
|
16779
17691
|
export let tagTopLevelSymbol: (
|
|
16780
17692
|
parser: JavascriptParser,
|
|
16781
17693
|
name: string
|
|
16782
17694
|
) => undefined | TopLevelSymbol;
|
|
16783
|
-
export let isDependencyUsedByExports: (
|
|
16784
|
-
dependency: Dependency,
|
|
16785
|
-
usedByExports: boolean | Set<string>,
|
|
16786
|
-
moduleGraph: ModuleGraph,
|
|
16787
|
-
runtime: RuntimeSpec
|
|
16788
|
-
) => boolean;
|
|
16789
|
-
export let getDependencyUsedByExportsCondition: (
|
|
16790
|
-
dependency: Dependency,
|
|
16791
|
-
usedByExports: undefined | boolean | Set<string>,
|
|
16792
|
-
moduleGraph: ModuleGraph
|
|
16793
|
-
) =>
|
|
16794
|
-
| null
|
|
16795
|
-
| false
|
|
16796
|
-
| ((
|
|
16797
|
-
moduleGraphConnection: ModuleGraphConnection,
|
|
16798
|
-
runtime: RuntimeSpec
|
|
16799
|
-
) => ConnectionState);
|
|
16800
17695
|
export { TopLevelSymbol, topLevelSymbolTag };
|
|
16801
17696
|
}
|
|
16802
17697
|
export {
|
|
@@ -16879,17 +17774,38 @@ declare namespace exports {
|
|
|
16879
17774
|
export namespace util {
|
|
16880
17775
|
export const createHash: (algorithm: HashFunction) => Hash;
|
|
16881
17776
|
export namespace comparators {
|
|
17777
|
+
export let compareChunkGroupsByIndex: (
|
|
17778
|
+
a: ChunkGroup,
|
|
17779
|
+
b: ChunkGroup
|
|
17780
|
+
) => 0 | 1 | -1;
|
|
17781
|
+
export let compareChunks: ParameterizedComparator<ChunkGraph, Chunk>;
|
|
16882
17782
|
export let compareChunksById: (a: Chunk, b: Chunk) => 0 | 1 | -1;
|
|
16883
|
-
export let
|
|
16884
|
-
|
|
16885
|
-
|
|
17783
|
+
export let compareChunksNatural: (
|
|
17784
|
+
chunkGraph: ChunkGraph
|
|
17785
|
+
) => Comparator<Chunk>;
|
|
17786
|
+
export let compareIds: (
|
|
17787
|
+
a: string | number,
|
|
17788
|
+
b: string | number
|
|
17789
|
+
) => 0 | 1 | -1;
|
|
17790
|
+
export let compareIterables: <T>(
|
|
17791
|
+
elementComparator: Comparator<T>
|
|
17792
|
+
) => Comparator<Iterable<T>>;
|
|
17793
|
+
export let compareLocations: (
|
|
17794
|
+
a: DependencyLocation,
|
|
17795
|
+
b: DependencyLocation
|
|
16886
17796
|
) => 0 | 1 | -1;
|
|
16887
17797
|
export let compareModulesById: ParameterizedComparator<
|
|
16888
17798
|
ChunkGraph,
|
|
16889
17799
|
Module
|
|
16890
17800
|
>;
|
|
16891
|
-
export let
|
|
16892
|
-
|
|
17801
|
+
export let compareModulesByIdOrIdentifier: ParameterizedComparator<
|
|
17802
|
+
ChunkGraph,
|
|
17803
|
+
Module
|
|
17804
|
+
>;
|
|
17805
|
+
export let compareModulesByIdentifier: (
|
|
17806
|
+
a: Module,
|
|
17807
|
+
b: Module
|
|
17808
|
+
) => 0 | 1 | -1;
|
|
16893
17809
|
export let compareModulesByPostOrderIndexOrIdentifier: ParameterizedComparator<
|
|
16894
17810
|
ModuleGraph,
|
|
16895
17811
|
Module
|
|
@@ -16898,60 +17814,42 @@ declare namespace exports {
|
|
|
16898
17814
|
ModuleGraph,
|
|
16899
17815
|
Module
|
|
16900
17816
|
>;
|
|
16901
|
-
export let
|
|
16902
|
-
|
|
16903
|
-
|
|
16904
|
-
|
|
16905
|
-
|
|
16906
|
-
export let compareIds: (
|
|
16907
|
-
a: string | number,
|
|
16908
|
-
b: string | number
|
|
16909
|
-
) => 0 | 1 | -1;
|
|
17817
|
+
export let compareNumbers: (a: number, b: number) => 0 | 1 | -1;
|
|
17818
|
+
export let compareSelect: <T, R>(
|
|
17819
|
+
getter: Selector<T, R>,
|
|
17820
|
+
comparator: Comparator<R>
|
|
17821
|
+
) => Comparator<T>;
|
|
16910
17822
|
export let compareStrings: (a: string, b: string) => 0 | 1 | -1;
|
|
16911
|
-
export let
|
|
16912
|
-
a: ChunkGroup,
|
|
16913
|
-
b: ChunkGroup
|
|
16914
|
-
) => 0 | 1 | -1;
|
|
17823
|
+
export let compareStringsNumeric: (a: string, b: string) => 0 | 1 | -1;
|
|
16915
17824
|
export let concatComparators: <T>(
|
|
16916
17825
|
c1: Comparator<T>,
|
|
16917
17826
|
c2: Comparator<T>,
|
|
16918
17827
|
...cRest: Comparator<T>[]
|
|
16919
17828
|
) => Comparator<T>;
|
|
16920
|
-
export let compareSelect: <T, R>(
|
|
16921
|
-
getter: Selector<T, R>,
|
|
16922
|
-
comparator: Comparator<R>
|
|
16923
|
-
) => Comparator<T>;
|
|
16924
|
-
export let compareIterables: <T>(
|
|
16925
|
-
elementComparator: Comparator<T>
|
|
16926
|
-
) => Comparator<Iterable<T>>;
|
|
16927
17829
|
export let keepOriginalOrder: <T>(iterable: Iterable<T>) => Comparator<T>;
|
|
16928
|
-
export let compareChunksNatural: (
|
|
16929
|
-
chunkGraph: ChunkGraph
|
|
16930
|
-
) => Comparator<Chunk>;
|
|
16931
|
-
export let compareLocations: (
|
|
16932
|
-
a: DependencyLocation,
|
|
16933
|
-
b: DependencyLocation
|
|
16934
|
-
) => 0 | 1 | -1;
|
|
16935
17830
|
}
|
|
16936
17831
|
export namespace runtime {
|
|
16937
|
-
export let
|
|
16938
|
-
|
|
16939
|
-
|
|
16940
|
-
|
|
16941
|
-
) =>
|
|
17832
|
+
export let compareRuntime: (a: RuntimeSpec, b: RuntimeSpec) => 0 | 1 | -1;
|
|
17833
|
+
export let filterRuntime: (
|
|
17834
|
+
runtime: RuntimeSpec,
|
|
17835
|
+
filter: (runtime?: RuntimeSpec) => boolean
|
|
17836
|
+
) => undefined | string | boolean | SortableSet<string>;
|
|
16942
17837
|
export let forEachRuntime: (
|
|
16943
17838
|
runtime: RuntimeSpec,
|
|
16944
17839
|
fn: (runtime?: string) => void,
|
|
16945
17840
|
deterministicOrder?: boolean
|
|
16946
17841
|
) => void;
|
|
17842
|
+
export let getEntryRuntime: (
|
|
17843
|
+
compilation: Compilation,
|
|
17844
|
+
name: string,
|
|
17845
|
+
options?: EntryOptions
|
|
17846
|
+
) => RuntimeSpec;
|
|
16947
17847
|
export let getRuntimeKey: (runtime: RuntimeSpec) => string;
|
|
17848
|
+
export let intersectRuntime: (
|
|
17849
|
+
a: RuntimeSpec,
|
|
17850
|
+
b: RuntimeSpec
|
|
17851
|
+
) => RuntimeSpec;
|
|
16948
17852
|
export let keyToRuntime: (key: string) => RuntimeSpec;
|
|
16949
|
-
export let runtimeToString: (runtime: RuntimeSpec) => string;
|
|
16950
|
-
export let runtimeConditionToString: (
|
|
16951
|
-
runtimeCondition: RuntimeCondition
|
|
16952
|
-
) => string;
|
|
16953
|
-
export let runtimeEqual: (a: RuntimeSpec, b: RuntimeSpec) => boolean;
|
|
16954
|
-
export let compareRuntime: (a: RuntimeSpec, b: RuntimeSpec) => 0 | 1 | -1;
|
|
16955
17853
|
export let mergeRuntime: (a: RuntimeSpec, b: RuntimeSpec) => RuntimeSpec;
|
|
16956
17854
|
export let mergeRuntimeCondition: (
|
|
16957
17855
|
a: RuntimeCondition,
|
|
@@ -16967,10 +17865,11 @@ declare namespace exports {
|
|
|
16967
17865
|
a: RuntimeSpec,
|
|
16968
17866
|
b: RuntimeSpec
|
|
16969
17867
|
) => RuntimeSpec;
|
|
16970
|
-
export let
|
|
16971
|
-
|
|
16972
|
-
|
|
16973
|
-
) =>
|
|
17868
|
+
export let runtimeConditionToString: (
|
|
17869
|
+
runtimeCondition: RuntimeCondition
|
|
17870
|
+
) => string;
|
|
17871
|
+
export let runtimeEqual: (a: RuntimeSpec, b: RuntimeSpec) => boolean;
|
|
17872
|
+
export let runtimeToString: (runtime: RuntimeSpec) => string;
|
|
16974
17873
|
export let subtractRuntime: (
|
|
16975
17874
|
a: RuntimeSpec,
|
|
16976
17875
|
b: RuntimeSpec
|
|
@@ -16980,10 +17879,6 @@ declare namespace exports {
|
|
|
16980
17879
|
b: RuntimeCondition,
|
|
16981
17880
|
runtime: RuntimeSpec
|
|
16982
17881
|
) => RuntimeCondition;
|
|
16983
|
-
export let filterRuntime: (
|
|
16984
|
-
runtime: RuntimeSpec,
|
|
16985
|
-
filter: (runtime?: RuntimeSpec) => boolean
|
|
16986
|
-
) => undefined | string | boolean | SortableSet<string>;
|
|
16987
17882
|
export { RuntimeSpecMap, RuntimeSpecSet };
|
|
16988
17883
|
}
|
|
16989
17884
|
export namespace serialization {
|
|
@@ -17038,7 +17933,7 @@ declare namespace exports {
|
|
|
17038
17933
|
}
|
|
17039
17934
|
export namespace experiments {
|
|
17040
17935
|
export namespace schemes {
|
|
17041
|
-
export { HttpUriPlugin };
|
|
17936
|
+
export { HttpUriPlugin, VirtualUrlPlugin };
|
|
17042
17937
|
}
|
|
17043
17938
|
export namespace ids {
|
|
17044
17939
|
export { SyncModuleIdsPlugin };
|
|
@@ -17127,7 +18022,7 @@ declare namespace exports {
|
|
|
17127
18022
|
AutomaticPrefetchPlugin,
|
|
17128
18023
|
AsyncDependenciesBlock,
|
|
17129
18024
|
BannerPlugin,
|
|
17130
|
-
Cache,
|
|
18025
|
+
CacheClass as Cache,
|
|
17131
18026
|
Chunk,
|
|
17132
18027
|
ChunkGraph,
|
|
17133
18028
|
CleanPlugin,
|