webpack 5.104.1 → 5.105.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/webpack.js +6 -3
- package/lib/APIPlugin.js +85 -15
- package/lib/AbstractMethodError.js +1 -0
- package/lib/AsyncDependenciesBlock.js +17 -2
- package/lib/AsyncDependencyToInitialChunkError.js +3 -0
- package/lib/AutomaticPrefetchPlugin.js +1 -1
- package/lib/BannerPlugin.js +5 -1
- package/lib/CacheFacade.js +2 -2
- package/lib/CaseSensitiveModulesWarning.js +1 -0
- package/lib/Chunk.js +9 -5
- package/lib/ChunkGraph.js +30 -9
- package/lib/ChunkGroup.js +6 -3
- package/lib/ChunkRenderError.js +9 -2
- package/lib/CleanPlugin.js +4 -1
- package/lib/CodeGenerationError.js +7 -1
- package/lib/CodeGenerationResults.js +10 -3
- package/lib/CommentCompilationWarning.js +2 -1
- package/lib/Compilation.js +284 -236
- package/lib/Compiler.js +4 -3
- package/lib/ConcatenationScope.js +2 -1
- package/lib/ConcurrentCompilationError.js +3 -3
- package/lib/ContextModule.js +248 -111
- package/lib/ContextModuleFactory.js +14 -2
- package/lib/DefinePlugin.js +15 -8
- package/lib/DelegatedModule.js +6 -0
- package/lib/DelegatedModuleFactoryPlugin.js +2 -0
- package/lib/Dependency.js +6 -1
- package/lib/DependencyTemplates.js +3 -2
- package/lib/DllModule.js +2 -0
- package/lib/DllReferencePlugin.js +1 -0
- package/lib/DotenvPlugin.js +11 -5
- package/lib/DynamicEntryPlugin.js +8 -1
- package/lib/EnvironmentNotSupportAsyncWarning.js +1 -0
- package/lib/EvalSourceMapDevToolPlugin.js +17 -13
- package/lib/ExportsInfo.js +8 -4
- package/lib/ExternalModule.js +16 -0
- package/lib/ExternalModuleFactoryPlugin.js +9 -2
- package/lib/ExternalsPlugin.js +2 -1
- package/lib/FalseIIFEUmdWarning.js +1 -0
- package/lib/FileSystemInfo.js +49 -25
- package/lib/FlagDependencyExportsPlugin.js +8 -1
- package/lib/FlagDependencyUsagePlugin.js +9 -7
- package/lib/HarmonyLinkingError.js +1 -0
- package/lib/HookWebpackError.js +2 -0
- package/lib/HotModuleReplacementPlugin.js +16 -2
- package/lib/IgnoreWarningsPlugin.js +5 -2
- package/lib/InitFragment.js +1 -0
- package/lib/InvalidDependenciesModuleWarning.js +1 -0
- package/lib/LibManifestPlugin.js +1 -0
- package/lib/ManifestPlugin.js +8 -1
- package/lib/Module.js +7 -4
- package/lib/ModuleBuildError.js +3 -1
- package/lib/ModuleDependencyError.js +1 -0
- package/lib/ModuleDependencyWarning.js +1 -0
- package/lib/ModuleError.js +4 -1
- package/lib/ModuleFilenameHelpers.js +4 -2
- package/lib/ModuleGraph.js +3 -0
- package/lib/ModuleGraphConnection.js +10 -1
- package/lib/ModuleHashingError.js +2 -0
- package/lib/ModuleInfoHeaderPlugin.js +6 -1
- package/lib/ModuleNotFoundError.js +1 -0
- package/lib/ModuleParseError.js +5 -1
- package/lib/ModuleProfile.js +1 -1
- package/lib/ModuleRestoreError.js +2 -0
- package/lib/ModuleSourceTypeConstants.js +1 -11
- package/lib/ModuleStoreError.js +2 -0
- package/lib/ModuleWarning.js +3 -1
- package/lib/MultiCompiler.js +11 -7
- package/lib/MultiWatching.js +2 -2
- package/lib/NoModeWarning.js +1 -0
- package/lib/NodeStuffInWebError.js +1 -0
- package/lib/NormalModule.js +28 -5
- package/lib/NormalModuleFactory.js +20 -4
- package/lib/OptionsApply.js +3 -1
- package/lib/ProgressPlugin.js +4 -0
- package/lib/RawModule.js +2 -0
- package/lib/RuntimeModule.js +10 -0
- package/lib/RuntimePlugin.js +7 -9
- package/lib/RuntimeTemplate.js +14 -7
- package/lib/SourceMapDevToolPlugin.js +30 -23
- package/lib/Template.js +10 -5
- package/lib/TemplatedPathPlugin.js +4 -2
- package/lib/UnhandledSchemeError.js +1 -0
- package/lib/UnsupportedFeatureWarning.js +3 -0
- package/lib/WarnDeprecatedOptionPlugin.js +1 -0
- package/lib/WatchIgnorePlugin.js +1 -1
- package/lib/Watching.js +5 -0
- package/lib/WebpackError.js +4 -0
- package/lib/WebpackOptionsApply.js +61 -41
- package/lib/asset/AssetBytesGenerator.js +1 -0
- package/lib/asset/AssetGenerator.js +18 -3
- package/lib/asset/AssetModulesPlugin.js +33 -2
- package/lib/asset/AssetParser.js +4 -0
- package/lib/asset/AssetSourceGenerator.js +1 -0
- package/lib/asset/RawDataUrlModule.js +4 -0
- package/lib/async-modules/AwaitDependenciesInitFragment.js +4 -1
- package/lib/buildChunkGraph.js +31 -2
- package/lib/cache/MemoryWithGcCachePlugin.js +1 -0
- package/lib/cache/PackFileCacheStrategy.js +41 -8
- package/lib/cache/getLazyHashedEtag.js +13 -4
- package/lib/cache/mergeEtags.js +3 -1
- package/lib/cli.js +3 -1
- package/lib/config/defaults.js +65 -44
- package/lib/config/normalization.js +96 -0
- package/lib/container/ContainerEntryDependency.js +3 -0
- package/lib/container/ContainerEntryModule.js +7 -0
- package/lib/container/ContainerExposedDependency.js +1 -0
- package/lib/container/FallbackDependency.js +1 -0
- package/lib/container/FallbackItemDependency.js +1 -0
- package/lib/container/FallbackModule.js +4 -0
- package/lib/container/HoistContainerReferencesPlugin.js +6 -0
- package/lib/container/ModuleFederationPlugin.js +1 -1
- package/lib/container/RemoteModule.js +24 -0
- package/lib/css/CssGenerator.js +31 -4
- package/lib/css/CssModulesPlugin.js +26 -30
- package/lib/css/CssParser.js +12 -9
- package/lib/debug/ProfilingPlugin.js +1 -0
- package/lib/dependencies/AMDDefineDependency.js +3 -1
- package/lib/dependencies/AMDDefineDependencyParserPlugin.js +6 -0
- package/lib/dependencies/AMDPlugin.js +1 -1
- package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +7 -1
- package/lib/dependencies/CachedConstDependency.js +1 -0
- package/lib/dependencies/CommonJsDependencyHelpers.js +2 -0
- package/lib/dependencies/CommonJsExportRequireDependency.js +1 -0
- package/lib/dependencies/CommonJsFullRequireDependency.js +2 -0
- package/lib/dependencies/CommonJsImportsParserPlugin.js +3 -0
- package/lib/dependencies/CommonJsRequireContextDependency.js +2 -2
- package/lib/dependencies/CommonJsSelfReferenceDependency.js +1 -0
- package/lib/dependencies/ConstDependency.js +1 -0
- package/lib/dependencies/ContextDependencyHelpers.js +11 -4
- package/lib/dependencies/ContextElementDependency.js +1 -0
- package/lib/dependencies/CriticalDependencyWarning.js +1 -0
- package/lib/dependencies/CssIcssExportDependency.js +7 -4
- package/lib/dependencies/CssIcssSymbolDependency.js +1 -0
- package/lib/dependencies/CssUrlDependency.js +2 -3
- package/lib/dependencies/ExternalModuleInitFragment.js +4 -1
- package/lib/dependencies/ExternalModuleInitFragmentDependency.js +0 -9
- package/lib/dependencies/HarmonyAcceptDependency.js +3 -0
- package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +3 -1
- package/lib/dependencies/HarmonyExportExpressionDependency.js +4 -0
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +8 -1
- package/lib/dependencies/HarmonyExportInitFragment.js +17 -3
- package/lib/dependencies/HarmonyExportSpecifierDependency.js +4 -0
- package/lib/dependencies/HarmonyImportDependency.js +1 -1
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +269 -5
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +22 -3
- package/lib/dependencies/ImportDependency.js +1 -0
- package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +1 -0
- package/lib/dependencies/ImportMetaPlugin.js +53 -11
- package/lib/dependencies/ImportParserPlugin.js +7 -12
- package/lib/dependencies/LoaderPlugin.js +3 -0
- package/lib/dependencies/ModuleDecoratorDependency.js +1 -0
- package/lib/dependencies/ModuleDependency.js +1 -0
- package/lib/dependencies/ModuleInitFragmentDependency.js +87 -0
- package/lib/dependencies/ProvidedDependency.js +1 -0
- package/lib/dependencies/RequireContextPlugin.js +1 -0
- package/lib/dependencies/RequireEnsureDependenciesBlock.js +1 -1
- package/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +7 -2
- package/lib/dependencies/RuntimeRequirementsDependency.js +1 -0
- package/lib/dependencies/WorkerDependency.js +9 -3
- package/lib/dependencies/WorkerPlugin.js +1 -0
- package/lib/dependencies/getFunctionExpression.js +3 -1
- package/lib/electron/ElectronTargetPlugin.js +3 -1
- package/lib/errors/BuildCycleError.js +4 -1
- package/lib/esm/ModuleChunkFormatPlugin.js +6 -4
- package/lib/esm/ModuleChunkLoadingPlugin.js +1 -0
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +1 -0
- package/lib/hmr/LazyCompilationPlugin.js +5 -0
- package/lib/hmr/lazyCompilationBackend.js +3 -2
- package/lib/ids/ChunkModuleIdRangePlugin.js +9 -7
- package/lib/ids/DeterministicChunkIdsPlugin.js +1 -0
- package/lib/ids/DeterministicModuleIdsPlugin.js +1 -0
- package/lib/ids/HashedModuleIdsPlugin.js +3 -8
- package/lib/ids/IdHelpers.js +10 -8
- package/lib/ids/NamedChunkIdsPlugin.js +7 -5
- package/lib/ids/NamedModuleIdsPlugin.js +1 -0
- package/lib/ids/OccurrenceChunkIdsPlugin.js +2 -2
- package/lib/ids/OccurrenceModuleIdsPlugin.js +18 -10
- package/lib/ids/SyncModuleIdsPlugin.js +30 -20
- package/lib/index.js +2 -2
- package/lib/javascript/BasicEvaluatedExpression.js +1 -0
- package/lib/javascript/EnableChunkLoadingPlugin.js +5 -2
- package/lib/javascript/JavascriptModulesPlugin.js +29 -8
- package/lib/javascript/JavascriptParser.js +47 -14
- package/lib/json/JsonGenerator.js +1 -0
- package/lib/json/JsonParser.js +9 -2
- package/lib/library/AbstractLibraryPlugin.js +4 -1
- package/lib/library/AmdLibraryPlugin.js +2 -1
- package/lib/library/AssignLibraryPlugin.js +6 -2
- package/lib/library/EnableLibraryPlugin.js +1 -0
- package/lib/library/ExportPropertyLibraryPlugin.js +1 -1
- package/lib/library/JsonpLibraryPlugin.js +1 -1
- package/lib/library/ModuleLibraryPlugin.js +130 -13
- package/lib/library/SystemLibraryPlugin.js +4 -1
- package/lib/library/UmdLibraryPlugin.js +4 -3
- package/lib/logging/Logger.js +9 -5
- package/lib/logging/createConsoleLogger.js +4 -0
- package/lib/logging/truncateArgs.js +1 -1
- package/lib/node/CommonJsChunkLoadingPlugin.js +6 -4
- package/lib/node/NodeEnvironmentPlugin.js +1 -0
- package/lib/node/NodeTargetPlugin.js +10 -1
- package/lib/node/NodeTemplatePlugin.js +1 -0
- package/lib/node/NodeWatchFileSystem.js +6 -0
- package/lib/node/ReadFileChunkLoadingRuntimeModule.js +1 -0
- package/lib/node/ReadFileCompileAsyncWasmPlugin.js +1 -0
- package/lib/node/ReadFileCompileWasmPlugin.js +1 -0
- package/lib/node/RequireChunkLoadingRuntimeModule.js +1 -0
- package/lib/node/nodeConsole.js +18 -1
- package/lib/optimize/AggressiveMergingPlugin.js +2 -1
- package/lib/optimize/AggressiveSplittingPlugin.js +15 -6
- package/lib/optimize/ConcatenatedModule.js +33 -19
- package/lib/optimize/FlagIncludedChunksPlugin.js +11 -1
- package/lib/optimize/InnerGraph.js +5 -3
- package/lib/optimize/InnerGraphPlugin.js +25 -25
- package/lib/optimize/LimitChunkCountPlugin.js +3 -2
- package/lib/optimize/MangleExportsPlugin.js +14 -2
- package/lib/optimize/MergeDuplicateChunksPlugin.js +5 -1
- package/lib/optimize/MinChunkSizePlugin.js +5 -2
- package/lib/optimize/ModuleConcatenationPlugin.js +19 -4
- package/lib/optimize/RealContentHashPlugin.js +37 -27
- package/lib/optimize/RemoveParentModulesPlugin.js +12 -3
- package/lib/optimize/RuntimeChunkPlugin.js +3 -5
- package/lib/optimize/SideEffectsFlagPlugin.js +3 -0
- package/lib/optimize/SplitChunksPlugin.js +23 -5
- package/lib/performance/AssetsOverSizeLimitWarning.js +6 -2
- package/lib/performance/EntrypointsOverSizeLimitWarning.js +6 -2
- package/lib/performance/NoAsyncChunksWarning.js +1 -0
- package/lib/performance/SizeLimitsPlugin.js +6 -6
- package/lib/prefetch/ChunkPrefetchFunctionRuntimeModule.js +2 -0
- package/lib/prefetch/ChunkPrefetchStartupRuntimeModule.js +3 -1
- package/lib/prefetch/ChunkPrefetchTriggerRuntimeModule.js +1 -0
- package/lib/prefetch/ChunkPreloadTriggerRuntimeModule.js +1 -0
- package/lib/rules/BasicEffectRulePlugin.js +2 -0
- package/lib/rules/BasicMatcherRulePlugin.js +3 -0
- package/lib/rules/ObjectMatcherRulePlugin.js +5 -1
- package/lib/rules/RuleSetCompiler.js +6 -0
- package/lib/runtime/AsyncModuleRuntimeModule.js +1 -0
- package/lib/runtime/ChunkNameRuntimeModule.js +1 -0
- package/lib/runtime/CompatRuntimeModule.js +1 -0
- package/lib/runtime/EnsureChunkRuntimeModule.js +1 -0
- package/lib/runtime/GetChunkFilenameRuntimeModule.js +5 -0
- package/lib/runtime/GetFullHashRuntimeModule.js +1 -0
- package/lib/runtime/GetMainFilenameRuntimeModule.js +2 -0
- package/lib/runtime/GetTrustedTypesPolicyRuntimeModule.js +1 -0
- package/lib/runtime/LoadScriptRuntimeModule.js +2 -0
- package/lib/runtime/MakeDeferredNamespaceObjectRuntime.js +16 -32
- package/lib/runtime/PublicPathRuntimeModule.js +1 -0
- package/lib/runtime/StartupChunkDependenciesPlugin.js +2 -0
- package/lib/runtime/StartupChunkDependenciesRuntimeModule.js +1 -0
- package/lib/runtime/StartupEntrypointRuntimeModule.js +1 -0
- package/lib/schemes/HttpUriPlugin.js +39 -20
- package/lib/schemes/VirtualUrlPlugin.js +28 -2
- package/lib/serialization/BinaryMiddleware.js +4 -0
- package/lib/serialization/FileMiddleware.js +9 -4
- package/lib/serialization/ObjectMiddleware.js +34 -11
- package/lib/serialization/PlainObjectSerializer.js +2 -0
- package/lib/sharing/ConsumeSharedModule.js +60 -0
- package/lib/sharing/ConsumeSharedPlugin.js +5 -4
- package/lib/sharing/ProvideSharedModule.js +4 -0
- package/lib/sharing/ProvideSharedPlugin.js +24 -25
- package/lib/sharing/resolveMatchedConfigs.js +2 -2
- package/lib/sharing/utils.js +8 -6
- package/lib/stats/DefaultStatsFactoryPlugin.js +20 -12
- package/lib/stats/DefaultStatsPrinterPlugin.js +6 -5
- package/lib/stats/StatsFactory.js +2 -2
- package/lib/url/URLParserPlugin.js +5 -3
- package/lib/util/AppendOnlyStackedSet.js +57 -0
- package/lib/util/Hash.js +1 -0
- package/lib/util/IterableHelpers.js +1 -0
- package/lib/util/LazyBucketSortedSet.js +1 -0
- package/lib/util/LazySet.js +1 -0
- package/lib/util/ParallelismFactorCalculator.js +1 -0
- package/lib/util/SortableSet.js +1 -0
- package/lib/util/StringXor.js +1 -0
- package/lib/util/binarySearchBounds.js +15 -8
- package/lib/util/chainedImports.js +1 -1
- package/lib/util/cleverMerge.js +6 -1
- package/lib/util/comparators.js +21 -1
- package/lib/util/compileBooleanMatcher.js +3 -3
- package/lib/util/concatenate.js +3 -2
- package/lib/util/conventions.js +3 -2
- package/lib/util/deterministicGrouping.js +13 -1
- package/lib/util/extractSourceMap.js +12 -13
- package/lib/util/fs.js +15 -19
- package/lib/util/hash/BatchedHash.js +4 -0
- package/lib/util/hash/BulkUpdateHash.js +8 -1
- package/lib/util/hash/hash-digest.js +1 -0
- package/lib/util/hash/wasm-hash.js +18 -2
- package/lib/util/identifier.js +7 -2
- package/lib/util/magicComment.js +1 -1
- package/lib/util/propertyName.js +1 -1
- package/lib/util/registerExternalSerializer.js +1 -0
- package/lib/util/runtime.js +15 -1
- package/lib/util/semver.js +1 -0
- package/lib/util/serialization.js +2 -2
- package/lib/wasm/EnableWasmLoadingPlugin.js +2 -0
- package/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js +11 -3
- package/lib/wasm-async/AsyncWebAssemblyGenerator.js +1 -0
- package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +3 -2
- package/lib/wasm-sync/UnsupportedWebAssemblyFeatureError.js +5 -1
- package/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +3 -0
- package/lib/wasm-sync/WebAssemblyInInitialChunkError.js +2 -0
- package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +7 -3
- package/lib/wasm-sync/WebAssemblyModulesPlugin.js +2 -2
- package/lib/wasm-sync/WebAssemblyParser.js +3 -1
- package/lib/web/FetchCompileWasmPlugin.js +1 -0
- package/lib/web/JsonpChunkLoadingPlugin.js +1 -0
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +1 -0
- package/lib/webpack.js +16 -4
- package/lib/webworker/ImportScriptsChunkLoadingPlugin.js +1 -0
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +2 -0
- package/package.json +33 -36
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +121 -55
- package/schemas/plugins/BannerPlugin.json +2 -2
- package/schemas/plugins/IgnorePlugin.json +1 -1
- package/schemas/plugins/ManifestPlugin.json +3 -3
- package/schemas/plugins/ProgressPlugin.json +1 -1
- package/schemas/plugins/SourceMapDevToolPlugin.json +2 -2
- package/schemas/plugins/schemes/HttpUriPlugin.json +1 -1
- package/schemas/plugins/schemes/VirtualUrlPlugin.json +3 -3
- package/types.d.ts +440 -137
package/types.d.ts
CHANGED
|
@@ -124,12 +124,9 @@ import {
|
|
|
124
124
|
TypedHookMap
|
|
125
125
|
} from "tapable";
|
|
126
126
|
import { URL } from "url";
|
|
127
|
-
import { Context } from "vm";
|
|
127
|
+
import { Context as ContextImport } from "vm";
|
|
128
128
|
|
|
129
129
|
declare interface Abortable {
|
|
130
|
-
/**
|
|
131
|
-
* When provided the corresponding `AbortController` can be used to cancel an asynchronous action.
|
|
132
|
-
*/
|
|
133
130
|
signal?: AbortSignal;
|
|
134
131
|
}
|
|
135
132
|
declare class AbstractLibraryPlugin<T> {
|
|
@@ -139,7 +136,7 @@ declare class AbstractLibraryPlugin<T> {
|
|
|
139
136
|
* Apply the plugin
|
|
140
137
|
*/
|
|
141
138
|
apply(compiler: Compiler): void;
|
|
142
|
-
parseOptions(library: LibraryOptions):
|
|
139
|
+
parseOptions(library: LibraryOptions): T;
|
|
143
140
|
finishEntryModule(
|
|
144
141
|
module: Module,
|
|
145
142
|
entryName: string,
|
|
@@ -273,6 +270,12 @@ type AnyLoaderContext = NormalModuleLoaderContext<any> &
|
|
|
273
270
|
LoaderRunnerLoaderContext<any> &
|
|
274
271
|
LoaderPluginLoaderContext &
|
|
275
272
|
HotModuleReplacementPluginLoaderContext;
|
|
273
|
+
declare abstract class AppendOnlyStackedSet<T> {
|
|
274
|
+
add(el: T): void;
|
|
275
|
+
has(el: T): boolean;
|
|
276
|
+
clear(): void;
|
|
277
|
+
createChild(): AppendOnlyStackedSet<T>;
|
|
278
|
+
}
|
|
276
279
|
declare interface Argument {
|
|
277
280
|
description?: string;
|
|
278
281
|
simpleType: SimpleType;
|
|
@@ -456,21 +459,15 @@ declare abstract class AssetSourceGenerator extends Generator {
|
|
|
456
459
|
declare abstract class AssetSourceParser extends ParserClass {}
|
|
457
460
|
declare class AsyncDependenciesBlock extends DependenciesBlock {
|
|
458
461
|
constructor(
|
|
459
|
-
groupOptions:
|
|
460
|
-
| null
|
|
461
|
-
| string
|
|
462
|
-
| (RawChunkGroupOptions & { name?: null | string } & {
|
|
463
|
-
entryOptions?: EntryOptions;
|
|
464
|
-
}),
|
|
462
|
+
groupOptions: null | string | GroupOptionsAsyncDependenciesBlock,
|
|
465
463
|
loc?: null | SyntheticDependencyLocation | RealDependencyLocation,
|
|
466
464
|
request?: null | string
|
|
467
465
|
);
|
|
468
|
-
groupOptions:
|
|
469
|
-
entryOptions?: EntryOptions;
|
|
470
|
-
};
|
|
466
|
+
groupOptions: GroupOptionsAsyncDependenciesBlock;
|
|
471
467
|
loc?: null | SyntheticDependencyLocation | RealDependencyLocation;
|
|
472
468
|
request?: null | string;
|
|
473
469
|
chunkName?: null | string;
|
|
470
|
+
get circular(): boolean;
|
|
474
471
|
module: any;
|
|
475
472
|
}
|
|
476
473
|
declare abstract class AsyncQueue<T, K, R> {
|
|
@@ -567,7 +564,7 @@ declare interface BannerPluginOptions {
|
|
|
567
564
|
/**
|
|
568
565
|
* Exclude all modules matching any of these conditions.
|
|
569
566
|
*/
|
|
570
|
-
exclude?: string | RegExp |
|
|
567
|
+
exclude?: string | RegExp | ((str: string) => boolean) | Rule[];
|
|
571
568
|
|
|
572
569
|
/**
|
|
573
570
|
* If true, banner will be placed at the end of the output.
|
|
@@ -577,7 +574,7 @@ declare interface BannerPluginOptions {
|
|
|
577
574
|
/**
|
|
578
575
|
* Include all modules matching any of these conditions.
|
|
579
576
|
*/
|
|
580
|
-
include?: string | RegExp |
|
|
577
|
+
include?: string | RegExp | ((str: string) => boolean) | Rule[];
|
|
581
578
|
|
|
582
579
|
/**
|
|
583
580
|
* If true, banner will not be wrapped in a comment.
|
|
@@ -592,7 +589,7 @@ declare interface BannerPluginOptions {
|
|
|
592
589
|
/**
|
|
593
590
|
* Include all modules that pass test assertion.
|
|
594
591
|
*/
|
|
595
|
-
test?: string | RegExp |
|
|
592
|
+
test?: string | RegExp | ((str: string) => boolean) | Rule[];
|
|
596
593
|
}
|
|
597
594
|
declare interface BaseResolveRequest {
|
|
598
595
|
/**
|
|
@@ -603,7 +600,7 @@ declare interface BaseResolveRequest {
|
|
|
603
600
|
/**
|
|
604
601
|
* content
|
|
605
602
|
*/
|
|
606
|
-
context?:
|
|
603
|
+
context?: ContextTypes;
|
|
607
604
|
|
|
608
605
|
/**
|
|
609
606
|
* description file path
|
|
@@ -620,6 +617,11 @@ declare interface BaseResolveRequest {
|
|
|
620
617
|
*/
|
|
621
618
|
descriptionFileData?: JsonObjectTypes;
|
|
622
619
|
|
|
620
|
+
/**
|
|
621
|
+
* tsconfig paths map
|
|
622
|
+
*/
|
|
623
|
+
tsconfigPathsMap?: null | TsconfigPathsMap;
|
|
624
|
+
|
|
623
625
|
/**
|
|
624
626
|
* relative path
|
|
625
627
|
*/
|
|
@@ -1318,7 +1320,7 @@ declare class Chunk {
|
|
|
1318
1320
|
getChildrenOfTypeInOrder(
|
|
1319
1321
|
chunkGraph: ChunkGraph,
|
|
1320
1322
|
type: string
|
|
1321
|
-
): undefined |
|
|
1323
|
+
): undefined | ChunkChildOfTypeInOrder[];
|
|
1322
1324
|
getChildIdsByOrdersMap(
|
|
1323
1325
|
chunkGraph: ChunkGraph,
|
|
1324
1326
|
includeDirectChildren?: boolean,
|
|
@@ -1337,8 +1339,16 @@ declare interface ChunkChildIdsByOrdersMap {
|
|
|
1337
1339
|
declare interface ChunkChildIdsByOrdersMapByData {
|
|
1338
1340
|
[index: string]: ChunkChildIdsByOrdersMap;
|
|
1339
1341
|
}
|
|
1342
|
+
declare interface ChunkChildOfTypeInOrder {
|
|
1343
|
+
onChunks: Chunk[];
|
|
1344
|
+
chunks: Set<Chunk>;
|
|
1345
|
+
}
|
|
1346
|
+
declare interface ChunkConditionMap {
|
|
1347
|
+
[index: number]: boolean;
|
|
1348
|
+
[index: string]: boolean;
|
|
1349
|
+
}
|
|
1340
1350
|
declare class ChunkGraph {
|
|
1341
|
-
constructor(moduleGraph: ModuleGraph, hashFunction?:
|
|
1351
|
+
constructor(moduleGraph: ModuleGraph, hashFunction?: HashFunction);
|
|
1342
1352
|
moduleGraph: ModuleGraph;
|
|
1343
1353
|
connectChunkAndModule(chunk: Chunk, module: Module): void;
|
|
1344
1354
|
disconnectChunkAndModule(chunk: Chunk, module: Module): void;
|
|
@@ -1404,7 +1414,7 @@ declare class ChunkGraph {
|
|
|
1404
1414
|
getChunkConditionMap(
|
|
1405
1415
|
chunk: Chunk,
|
|
1406
1416
|
filterFn: (c: Chunk, chunkGraph: ChunkGraph) => boolean
|
|
1407
|
-
):
|
|
1417
|
+
): ChunkConditionMap;
|
|
1408
1418
|
hasModuleInGraph(
|
|
1409
1419
|
chunk: Chunk,
|
|
1410
1420
|
filterFn: (m: Module) => boolean,
|
|
@@ -2003,6 +2013,7 @@ type CodeGenerationResultData = Map<"topLevelDeclarations", Set<string>> &
|
|
|
2003
2013
|
Map<"filename", string> &
|
|
2004
2014
|
Map<"assetInfo", AssetInfo> &
|
|
2005
2015
|
Map<"fullContentHash", string> &
|
|
2016
|
+
Map<"url", { javascript: string }> &
|
|
2006
2017
|
Map<"share-init", [{ shareScope: string; initStage: number; init: string }]> &
|
|
2007
2018
|
Map<string, any>;
|
|
2008
2019
|
declare abstract class CodeGenerationResults {
|
|
@@ -2811,8 +2822,22 @@ declare class Compiler {
|
|
|
2811
2822
|
immutablePaths: Set<string | RegExp>;
|
|
2812
2823
|
modifiedFiles?: ReadonlySet<string>;
|
|
2813
2824
|
removedFiles?: ReadonlySet<string>;
|
|
2814
|
-
fileTimestamps?: Map<
|
|
2815
|
-
|
|
2825
|
+
fileTimestamps?: Map<
|
|
2826
|
+
string,
|
|
2827
|
+
| null
|
|
2828
|
+
| EntryTypesIndex
|
|
2829
|
+
| OnlySafeTimeEntry
|
|
2830
|
+
| ExistenceOnlyTimeEntryTypesIndex
|
|
2831
|
+
| "ignore"
|
|
2832
|
+
>;
|
|
2833
|
+
contextTimestamps?: Map<
|
|
2834
|
+
string,
|
|
2835
|
+
| null
|
|
2836
|
+
| EntryTypesIndex
|
|
2837
|
+
| OnlySafeTimeEntry
|
|
2838
|
+
| ExistenceOnlyTimeEntryTypesIndex
|
|
2839
|
+
| "ignore"
|
|
2840
|
+
>;
|
|
2816
2841
|
fsStartTime?: number;
|
|
2817
2842
|
resolverFactory: ResolverFactory;
|
|
2818
2843
|
infrastructureLogger?: (
|
|
@@ -3019,7 +3044,19 @@ declare interface Configuration {
|
|
|
3019
3044
|
/**
|
|
3020
3045
|
* A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
|
|
3021
3046
|
*/
|
|
3022
|
-
devtool?:
|
|
3047
|
+
devtool?:
|
|
3048
|
+
| string
|
|
3049
|
+
| false
|
|
3050
|
+
| {
|
|
3051
|
+
/**
|
|
3052
|
+
* Which asset type should receive this devtool value.
|
|
3053
|
+
*/
|
|
3054
|
+
type: "all" | "javascript" | "css";
|
|
3055
|
+
/**
|
|
3056
|
+
* A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
|
|
3057
|
+
*/
|
|
3058
|
+
use: RawDevTool;
|
|
3059
|
+
}[];
|
|
3023
3060
|
|
|
3024
3061
|
/**
|
|
3025
3062
|
* Enable and configure the Dotenv plugin to load environment variables from .env files.
|
|
@@ -3520,6 +3557,7 @@ declare interface ContextOptions {
|
|
|
3520
3557
|
referencedExports?: null | string[][];
|
|
3521
3558
|
layer?: null | string;
|
|
3522
3559
|
attributes?: ImportAttributes;
|
|
3560
|
+
phase?: 0 | 1 | 2;
|
|
3523
3561
|
}
|
|
3524
3562
|
declare class ContextReplacementPlugin {
|
|
3525
3563
|
constructor(
|
|
@@ -3561,7 +3599,6 @@ declare interface ContextResolveData {
|
|
|
3561
3599
|
contextDependencies: LazySet<string>;
|
|
3562
3600
|
dependencies: ContextDependency[];
|
|
3563
3601
|
}
|
|
3564
|
-
type ContextTimestamp = null | ContextFileSystemInfoEntry | "ignore";
|
|
3565
3602
|
declare interface ContextTimestampAndHash {
|
|
3566
3603
|
safeTime: number;
|
|
3567
3604
|
timestampHash?: string;
|
|
@@ -3569,6 +3606,7 @@ declare interface ContextTimestampAndHash {
|
|
|
3569
3606
|
resolved?: ResolvedContextTimestampAndHash;
|
|
3570
3607
|
symlinks?: Set<string>;
|
|
3571
3608
|
}
|
|
3609
|
+
type ContextTypes = KnownContext & Record<any, any>;
|
|
3572
3610
|
type CreateReadStreamFSImplementation = FSImplementation & {
|
|
3573
3611
|
read: (...args: any[]) => any;
|
|
3574
3612
|
};
|
|
@@ -3784,14 +3822,14 @@ declare class CssModulesPlugin {
|
|
|
3784
3822
|
apply(compiler: Compiler): void;
|
|
3785
3823
|
getModulesInOrder(
|
|
3786
3824
|
chunk: Chunk,
|
|
3787
|
-
modules: Iterable<Module>,
|
|
3825
|
+
modules: undefined | Iterable<Module>,
|
|
3788
3826
|
compilation: Compilation
|
|
3789
3827
|
): Module[];
|
|
3790
3828
|
getOrderedChunkCssModules(
|
|
3791
3829
|
chunk: Chunk,
|
|
3792
3830
|
chunkGraph: ChunkGraph,
|
|
3793
3831
|
compilation: Compilation
|
|
3794
|
-
):
|
|
3832
|
+
): CssModule[];
|
|
3795
3833
|
renderChunk(
|
|
3796
3834
|
__0: RenderContextCssModulesPlugin,
|
|
3797
3835
|
hooks: CompilationHooksCssModulesPlugin
|
|
@@ -3859,7 +3897,7 @@ declare abstract class CssParser extends ParserClass {
|
|
|
3859
3897
|
defaultMode?: "global" | "auto" | "pure" | "local";
|
|
3860
3898
|
};
|
|
3861
3899
|
comments?: CommentCssParser[];
|
|
3862
|
-
magicCommentContext:
|
|
3900
|
+
magicCommentContext: ContextImport;
|
|
3863
3901
|
getComments(range: [number, number]): CommentCssParser[];
|
|
3864
3902
|
parseCommentOptions(range: [number, number]): {
|
|
3865
3903
|
options: null | Record<string, any>;
|
|
@@ -3896,8 +3934,8 @@ declare class DefinePlugin {
|
|
|
3896
3934
|
/**
|
|
3897
3935
|
* Create a new define plugin
|
|
3898
3936
|
*/
|
|
3899
|
-
constructor(definitions:
|
|
3900
|
-
definitions:
|
|
3937
|
+
constructor(definitions: Definitions);
|
|
3938
|
+
definitions: Definitions;
|
|
3901
3939
|
|
|
3902
3940
|
/**
|
|
3903
3941
|
* Apply the plugin
|
|
@@ -3919,6 +3957,9 @@ declare interface DefinePluginHooks {
|
|
|
3919
3957
|
Record<string, CodeValue>
|
|
3920
3958
|
>;
|
|
3921
3959
|
}
|
|
3960
|
+
declare interface Definitions {
|
|
3961
|
+
[index: string]: CodeValue;
|
|
3962
|
+
}
|
|
3922
3963
|
declare class DelegatedPlugin {
|
|
3923
3964
|
constructor(options: Options);
|
|
3924
3965
|
options: Options;
|
|
@@ -4613,11 +4654,6 @@ type EncodingOption =
|
|
|
4613
4654
|
| "binary"
|
|
4614
4655
|
| "hex"
|
|
4615
4656
|
| ObjectEncodingOptions;
|
|
4616
|
-
type Entry =
|
|
4617
|
-
| string
|
|
4618
|
-
| (() => string | EntryObject | string[] | Promise<EntryStatic>)
|
|
4619
|
-
| EntryObject
|
|
4620
|
-
| string[];
|
|
4621
4657
|
declare interface EntryData {
|
|
4622
4658
|
/**
|
|
4623
4659
|
* dependencies of the entrypoint that should be evaluated at startup
|
|
@@ -4756,6 +4792,11 @@ declare interface EntryDescriptionNormalized {
|
|
|
4756
4792
|
wasmLoading?: string | false;
|
|
4757
4793
|
}
|
|
4758
4794
|
type EntryItem = string | string[];
|
|
4795
|
+
type EntryLibIndex =
|
|
4796
|
+
| string
|
|
4797
|
+
| (() => string | EntryObject | string[] | Promise<EntryStatic>)
|
|
4798
|
+
| EntryObject
|
|
4799
|
+
| string[];
|
|
4759
4800
|
type EntryNormalized =
|
|
4760
4801
|
| (() => Promise<EntryStaticNormalized>)
|
|
4761
4802
|
| EntryStaticNormalized;
|
|
@@ -4810,6 +4851,11 @@ type EntryStatic = string | EntryObject | string[];
|
|
|
4810
4851
|
declare interface EntryStaticNormalized {
|
|
4811
4852
|
[index: string]: EntryDescriptionNormalized;
|
|
4812
4853
|
}
|
|
4854
|
+
declare interface EntryTypesIndex {
|
|
4855
|
+
safeTime: number;
|
|
4856
|
+
timestamp: number;
|
|
4857
|
+
accuracy: number;
|
|
4858
|
+
}
|
|
4813
4859
|
declare abstract class Entrypoint extends ChunkGroup {
|
|
4814
4860
|
/**
|
|
4815
4861
|
* Sets the runtimeChunk for an entrypoint.
|
|
@@ -5047,6 +5093,8 @@ declare interface ExecuteOptions {
|
|
|
5047
5093
|
*/
|
|
5048
5094
|
require: WebpackRequire;
|
|
5049
5095
|
}
|
|
5096
|
+
declare interface ExistenceOnlyTimeEntryFileSystemInfo {}
|
|
5097
|
+
declare interface ExistenceOnlyTimeEntryTypesIndex {}
|
|
5050
5098
|
type Experiments = ExperimentsCommon & ExperimentsExtra;
|
|
5051
5099
|
|
|
5052
5100
|
/**
|
|
@@ -5256,7 +5304,7 @@ type ExportModeType =
|
|
|
5256
5304
|
| "reexport-undefined"
|
|
5257
5305
|
| "normal-reexport"
|
|
5258
5306
|
| "dynamic-reexport";
|
|
5259
|
-
type ExportPresenceMode =
|
|
5307
|
+
type ExportPresenceMode = 0 | 1 | 2 | 3;
|
|
5260
5308
|
declare interface ExportSpec {
|
|
5261
5309
|
/**
|
|
5262
5310
|
* the name of the export
|
|
@@ -5636,8 +5684,63 @@ type Externals =
|
|
|
5636
5684
|
| ((data: ExternalItemFunctionData) => Promise<ExternalItemValue>)
|
|
5637
5685
|
| ExternalItem[];
|
|
5638
5686
|
declare class ExternalsPlugin {
|
|
5639
|
-
constructor(
|
|
5640
|
-
|
|
5687
|
+
constructor(
|
|
5688
|
+
type:
|
|
5689
|
+
| "import"
|
|
5690
|
+
| "var"
|
|
5691
|
+
| "module"
|
|
5692
|
+
| "assign"
|
|
5693
|
+
| "this"
|
|
5694
|
+
| "window"
|
|
5695
|
+
| "self"
|
|
5696
|
+
| "global"
|
|
5697
|
+
| "commonjs"
|
|
5698
|
+
| "commonjs2"
|
|
5699
|
+
| "commonjs-module"
|
|
5700
|
+
| "commonjs-static"
|
|
5701
|
+
| "amd"
|
|
5702
|
+
| "amd-require"
|
|
5703
|
+
| "umd"
|
|
5704
|
+
| "umd2"
|
|
5705
|
+
| "jsonp"
|
|
5706
|
+
| "system"
|
|
5707
|
+
| "promise"
|
|
5708
|
+
| "module-import"
|
|
5709
|
+
| "script"
|
|
5710
|
+
| "node-commonjs"
|
|
5711
|
+
| "asset"
|
|
5712
|
+
| "css-import"
|
|
5713
|
+
| "css-url"
|
|
5714
|
+
| ((dependency: Dependency) => ExternalsType),
|
|
5715
|
+
externals: Externals
|
|
5716
|
+
);
|
|
5717
|
+
type:
|
|
5718
|
+
| "import"
|
|
5719
|
+
| "var"
|
|
5720
|
+
| "module"
|
|
5721
|
+
| "assign"
|
|
5722
|
+
| "this"
|
|
5723
|
+
| "window"
|
|
5724
|
+
| "self"
|
|
5725
|
+
| "global"
|
|
5726
|
+
| "commonjs"
|
|
5727
|
+
| "commonjs2"
|
|
5728
|
+
| "commonjs-module"
|
|
5729
|
+
| "commonjs-static"
|
|
5730
|
+
| "amd"
|
|
5731
|
+
| "amd-require"
|
|
5732
|
+
| "umd"
|
|
5733
|
+
| "umd2"
|
|
5734
|
+
| "jsonp"
|
|
5735
|
+
| "system"
|
|
5736
|
+
| "promise"
|
|
5737
|
+
| "module-import"
|
|
5738
|
+
| "script"
|
|
5739
|
+
| "node-commonjs"
|
|
5740
|
+
| "asset"
|
|
5741
|
+
| "css-import"
|
|
5742
|
+
| "css-url"
|
|
5743
|
+
| ((dependency: Dependency) => ExternalsType);
|
|
5641
5744
|
externals: Externals;
|
|
5642
5745
|
|
|
5643
5746
|
/**
|
|
@@ -5945,11 +6048,23 @@ declare abstract class FileSystemInfo {
|
|
|
5945
6048
|
logStatistics(): void;
|
|
5946
6049
|
clear(): void;
|
|
5947
6050
|
addFileTimestamps(
|
|
5948
|
-
map: ReadonlyMap<
|
|
6051
|
+
map: ReadonlyMap<
|
|
6052
|
+
string,
|
|
6053
|
+
| null
|
|
6054
|
+
| FileSystemInfoEntry
|
|
6055
|
+
| "ignore"
|
|
6056
|
+
| ExistenceOnlyTimeEntryFileSystemInfo
|
|
6057
|
+
>,
|
|
5949
6058
|
immutable?: boolean
|
|
5950
6059
|
): void;
|
|
5951
6060
|
addContextTimestamps(
|
|
5952
|
-
map: ReadonlyMap<
|
|
6061
|
+
map: ReadonlyMap<
|
|
6062
|
+
string,
|
|
6063
|
+
| null
|
|
6064
|
+
| ContextFileSystemInfoEntry
|
|
6065
|
+
| "ignore"
|
|
6066
|
+
| ExistenceOnlyTimeEntryFileSystemInfo
|
|
6067
|
+
>,
|
|
5953
6068
|
immutable?: boolean
|
|
5954
6069
|
): void;
|
|
5955
6070
|
getFileTimestamp(
|
|
@@ -6016,7 +6131,6 @@ declare interface FileSystemInfoEntry {
|
|
|
6016
6131
|
safeTime: number;
|
|
6017
6132
|
timestamp?: number;
|
|
6018
6133
|
}
|
|
6019
|
-
type FileTimestamp = null | FileSystemInfoEntry | "ignore";
|
|
6020
6134
|
type FilterItemTypes = string | RegExp | ((value: string) => boolean);
|
|
6021
6135
|
declare interface Flags {
|
|
6022
6136
|
[index: string]: Argument;
|
|
@@ -6237,10 +6351,13 @@ declare interface GotHandler<T> {
|
|
|
6237
6351
|
}
|
|
6238
6352
|
declare interface GroupConfig<T, R> {
|
|
6239
6353
|
getKeys: (item: T) => undefined | string[];
|
|
6240
|
-
getOptions?: (name: string, items: T[]) =>
|
|
6354
|
+
getOptions?: (name: string, items: T[]) => GroupOptionsSmartGrouping;
|
|
6241
6355
|
createGroup: (key: string, children: T[], items: T[]) => R;
|
|
6242
6356
|
}
|
|
6243
|
-
|
|
6357
|
+
type GroupOptionsAsyncDependenciesBlock = RawChunkGroupOptions & {
|
|
6358
|
+
name?: null | string;
|
|
6359
|
+
} & { entryOptions?: EntryOptions } & { circular?: boolean };
|
|
6360
|
+
declare interface GroupOptionsSmartGrouping {
|
|
6244
6361
|
groupChildren?: boolean;
|
|
6245
6362
|
force?: boolean;
|
|
6246
6363
|
targetGroupCount?: number;
|
|
@@ -6380,6 +6497,9 @@ declare interface HarmonySettings {
|
|
|
6380
6497
|
attributes?: ImportAttributes;
|
|
6381
6498
|
phase: ImportPhaseType;
|
|
6382
6499
|
}
|
|
6500
|
+
declare interface HarmonySpecifierGuards {
|
|
6501
|
+
guards?: AppendOnlyStackedSet<string>;
|
|
6502
|
+
}
|
|
6383
6503
|
declare abstract class HarmonyStarExportsList {
|
|
6384
6504
|
dependencies: HarmonyExportImportedSpecifierDependency[];
|
|
6385
6505
|
push(dep: HarmonyExportImportedSpecifierDependency): void;
|
|
@@ -6526,6 +6646,7 @@ declare interface HttpUriOptions {
|
|
|
6526
6646
|
}
|
|
6527
6647
|
declare class HttpUriPlugin {
|
|
6528
6648
|
constructor(options: HttpUriOptions);
|
|
6649
|
+
options: HttpUriOptions;
|
|
6529
6650
|
|
|
6530
6651
|
/**
|
|
6531
6652
|
* Apply the plugin
|
|
@@ -7139,6 +7260,10 @@ declare class JavascriptParser extends ParserClass {
|
|
|
7139
7260
|
boolean | void
|
|
7140
7261
|
>;
|
|
7141
7262
|
statementIf: SyncBailHook<[IfStatement], boolean | void>;
|
|
7263
|
+
collectGuards: SyncBailHook<
|
|
7264
|
+
[Expression],
|
|
7265
|
+
void | ((walk: () => void) => void)
|
|
7266
|
+
>;
|
|
7142
7267
|
classExtendsExpression: SyncBailHook<
|
|
7143
7268
|
[
|
|
7144
7269
|
Expression,
|
|
@@ -7432,8 +7557,9 @@ declare class JavascriptParser extends ParserClass {
|
|
|
7432
7557
|
| HarmonySettings
|
|
7433
7558
|
| ImportSettings
|
|
7434
7559
|
| CommonJsImportSettings
|
|
7435
|
-
| CompatibilitySettings
|
|
7436
|
-
|
|
7560
|
+
| CompatibilitySettings
|
|
7561
|
+
| HarmonySpecifierGuards;
|
|
7562
|
+
magicCommentContext: ContextImport;
|
|
7437
7563
|
destructuringAssignmentPropertiesFor(
|
|
7438
7564
|
node: Expression
|
|
7439
7565
|
): undefined | Set<DestructuringAssignmentProperty>;
|
|
@@ -8202,7 +8328,8 @@ declare class JavascriptParser extends ParserClass {
|
|
|
8202
8328
|
| HarmonySettings
|
|
8203
8329
|
| ImportSettings
|
|
8204
8330
|
| CommonJsImportSettings
|
|
8205
|
-
| CompatibilitySettings
|
|
8331
|
+
| CompatibilitySettings
|
|
8332
|
+
| HarmonySpecifierGuards;
|
|
8206
8333
|
tagVariable(
|
|
8207
8334
|
name: string,
|
|
8208
8335
|
tag: symbol,
|
|
@@ -8212,7 +8339,8 @@ declare class JavascriptParser extends ParserClass {
|
|
|
8212
8339
|
| HarmonySettings
|
|
8213
8340
|
| ImportSettings
|
|
8214
8341
|
| CommonJsImportSettings
|
|
8215
|
-
| CompatibilitySettings
|
|
8342
|
+
| CompatibilitySettings
|
|
8343
|
+
| HarmonySpecifierGuards,
|
|
8216
8344
|
flags?: 0 | 1 | 2 | 4
|
|
8217
8345
|
): void;
|
|
8218
8346
|
defineVariable(name: string): void;
|
|
@@ -8458,9 +8586,9 @@ declare interface JavascriptParserOptions {
|
|
|
8458
8586
|
importExportsPresence?: false | "auto" | "error" | "warn";
|
|
8459
8587
|
|
|
8460
8588
|
/**
|
|
8461
|
-
* Enable/disable evaluating import.meta.
|
|
8589
|
+
* Enable/disable evaluating import.meta. Set to 'preserve-unknown' to preserve unknown properties for runtime evaluation.
|
|
8462
8590
|
*/
|
|
8463
|
-
importMeta?: boolean;
|
|
8591
|
+
importMeta?: boolean | "preserve-unknown";
|
|
8464
8592
|
|
|
8465
8593
|
/**
|
|
8466
8594
|
* Enable/disable evaluating import.meta.webpackContext.
|
|
@@ -8911,8 +9039,14 @@ declare interface KnownBuildMeta {
|
|
|
8911
9039
|
sideEffectFree?: boolean;
|
|
8912
9040
|
isCSSModule?: boolean;
|
|
8913
9041
|
jsIncompatibleExports?: Record<string, string>;
|
|
8914
|
-
exportsFinalNameByRuntime?: Map<
|
|
8915
|
-
exportsSourceByRuntime?: Map<
|
|
9042
|
+
exportsFinalNameByRuntime?: Map<string, Record<string, string>>;
|
|
9043
|
+
exportsSourceByRuntime?: Map<string, string>;
|
|
9044
|
+
}
|
|
9045
|
+
declare interface KnownContext {
|
|
9046
|
+
/**
|
|
9047
|
+
* environments
|
|
9048
|
+
*/
|
|
9049
|
+
environments?: string[];
|
|
8916
9050
|
}
|
|
8917
9051
|
declare interface KnownCreateStatsOptionsContext {
|
|
8918
9052
|
forToString?: boolean;
|
|
@@ -9929,7 +10063,21 @@ declare abstract class LocalModule {
|
|
|
9929
10063
|
deserialize(context: ObjectDeserializerContext): void;
|
|
9930
10064
|
}
|
|
9931
10065
|
declare interface LogEntry {
|
|
9932
|
-
type:
|
|
10066
|
+
type:
|
|
10067
|
+
| "error"
|
|
10068
|
+
| "warn"
|
|
10069
|
+
| "info"
|
|
10070
|
+
| "log"
|
|
10071
|
+
| "debug"
|
|
10072
|
+
| "profile"
|
|
10073
|
+
| "trace"
|
|
10074
|
+
| "group"
|
|
10075
|
+
| "groupCollapsed"
|
|
10076
|
+
| "groupEnd"
|
|
10077
|
+
| "profileEnd"
|
|
10078
|
+
| "time"
|
|
10079
|
+
| "clear"
|
|
10080
|
+
| "status";
|
|
9933
10081
|
args?: any[];
|
|
9934
10082
|
time: number;
|
|
9935
10083
|
trace?: string[];
|
|
@@ -9939,8 +10087,8 @@ type LogTypeEnum =
|
|
|
9939
10087
|
| "warn"
|
|
9940
10088
|
| "info"
|
|
9941
10089
|
| "log"
|
|
9942
|
-
| "profile"
|
|
9943
10090
|
| "debug"
|
|
10091
|
+
| "profile"
|
|
9944
10092
|
| "trace"
|
|
9945
10093
|
| "group"
|
|
9946
10094
|
| "groupCollapsed"
|
|
@@ -10893,12 +11041,15 @@ declare class ModuleGraphConnection {
|
|
|
10893
11041
|
dependency: null | Dependency;
|
|
10894
11042
|
resolvedModule: Module;
|
|
10895
11043
|
module: Module;
|
|
10896
|
-
weak
|
|
11044
|
+
weak?: boolean;
|
|
10897
11045
|
conditional: boolean;
|
|
10898
|
-
condition?:
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
11046
|
+
condition?:
|
|
11047
|
+
| null
|
|
11048
|
+
| false
|
|
11049
|
+
| ((
|
|
11050
|
+
moduleGraphConnection: ModuleGraphConnection,
|
|
11051
|
+
runtime: RuntimeSpec
|
|
11052
|
+
) => ConnectionState);
|
|
10902
11053
|
explanations?: Set<string>;
|
|
10903
11054
|
clone(): ModuleGraphConnection;
|
|
10904
11055
|
addCondition(
|
|
@@ -10969,8 +11120,8 @@ declare interface ModuleOptions {
|
|
|
10969
11120
|
noParse?:
|
|
10970
11121
|
| string
|
|
10971
11122
|
| RegExp
|
|
10972
|
-
| (
|
|
10973
|
-
| ((content: string) => boolean);
|
|
11123
|
+
| ((content: string) => boolean)
|
|
11124
|
+
| (string | RegExp | ((content: string) => boolean))[];
|
|
10974
11125
|
|
|
10975
11126
|
/**
|
|
10976
11127
|
* Specify options for each parser.
|
|
@@ -11053,8 +11204,8 @@ declare interface ModuleOptionsNormalized {
|
|
|
11053
11204
|
noParse?:
|
|
11054
11205
|
| string
|
|
11055
11206
|
| RegExp
|
|
11056
|
-
| (
|
|
11057
|
-
| ((content: string) => boolean);
|
|
11207
|
+
| ((content: string) => boolean)
|
|
11208
|
+
| (string | RegExp | ((content: string) => boolean))[];
|
|
11058
11209
|
|
|
11059
11210
|
/**
|
|
11060
11211
|
* Specify options for each parser.
|
|
@@ -11383,8 +11534,7 @@ declare abstract class MultiWatching {
|
|
|
11383
11534
|
}
|
|
11384
11535
|
declare class NamedChunkIdsPlugin {
|
|
11385
11536
|
constructor(options?: NamedChunkIdsPluginOptions);
|
|
11386
|
-
|
|
11387
|
-
context?: string;
|
|
11537
|
+
options: NamedChunkIdsPluginOptions;
|
|
11388
11538
|
|
|
11389
11539
|
/**
|
|
11390
11540
|
* Apply the plugin
|
|
@@ -11441,11 +11591,6 @@ declare class NoEmitOnErrorsPlugin {
|
|
|
11441
11591
|
*/
|
|
11442
11592
|
apply(compiler: Compiler): void;
|
|
11443
11593
|
}
|
|
11444
|
-
type NoParse =
|
|
11445
|
-
| string
|
|
11446
|
-
| RegExp
|
|
11447
|
-
| (string | RegExp | ((content: string) => boolean))[]
|
|
11448
|
-
| ((content: string) => boolean);
|
|
11449
11594
|
type Node = false | NodeOptions;
|
|
11450
11595
|
declare class NodeEnvironmentPlugin {
|
|
11451
11596
|
constructor(options: NodeEnvironmentPluginOptions);
|
|
@@ -11557,14 +11702,17 @@ declare class NormalModule extends Module {
|
|
|
11557
11702
|
associatedObjectForCache?: object
|
|
11558
11703
|
): Source;
|
|
11559
11704
|
markModuleAsErrored(error: WebpackError): void;
|
|
11560
|
-
applyNoParseRule(
|
|
11705
|
+
applyNoParseRule(
|
|
11706
|
+
rule: string | RegExp | ((content: string) => boolean),
|
|
11707
|
+
content: string
|
|
11708
|
+
): boolean;
|
|
11561
11709
|
shouldPreventParsing(
|
|
11562
11710
|
noParseRule:
|
|
11563
11711
|
| undefined
|
|
11564
11712
|
| string
|
|
11565
11713
|
| RegExp
|
|
11566
|
-
| (
|
|
11567
|
-
| ((content: string) => boolean),
|
|
11714
|
+
| ((content: string) => boolean)
|
|
11715
|
+
| (string | RegExp | ((content: string) => boolean))[],
|
|
11568
11716
|
request: string
|
|
11569
11717
|
): boolean;
|
|
11570
11718
|
static getCompilationHooks(
|
|
@@ -12055,6 +12203,9 @@ declare abstract class NormalReexportItem {
|
|
|
12055
12203
|
checked: boolean;
|
|
12056
12204
|
hidden: boolean;
|
|
12057
12205
|
}
|
|
12206
|
+
declare interface NormalizedModules {
|
|
12207
|
+
[index: string]: VirtualModuleConfig;
|
|
12208
|
+
}
|
|
12058
12209
|
type NormalizedStatsOptions = KnownNormalizedStatsOptions &
|
|
12059
12210
|
Omit<
|
|
12060
12211
|
StatsOptions,
|
|
@@ -12185,6 +12336,9 @@ declare interface OccurrenceModuleIdsPluginOptions {
|
|
|
12185
12336
|
*/
|
|
12186
12337
|
prioritiseInitial?: boolean;
|
|
12187
12338
|
}
|
|
12339
|
+
declare interface OnlySafeTimeEntry {
|
|
12340
|
+
safeTime: number;
|
|
12341
|
+
}
|
|
12188
12342
|
declare interface Open {
|
|
12189
12343
|
(
|
|
12190
12344
|
file: PathLikeFs,
|
|
@@ -12278,8 +12432,8 @@ declare interface Optimization {
|
|
|
12278
12432
|
| ""
|
|
12279
12433
|
| 0
|
|
12280
12434
|
| ((this: Compiler, compiler: Compiler) => void)
|
|
12281
|
-
| WebpackPluginInstance
|
|
12282
12435
|
| "..."
|
|
12436
|
+
| WebpackPluginInstance
|
|
12283
12437
|
)[];
|
|
12284
12438
|
|
|
12285
12439
|
/**
|
|
@@ -12422,8 +12576,8 @@ declare interface OptimizationNormalized {
|
|
|
12422
12576
|
*/
|
|
12423
12577
|
minimizer?: (
|
|
12424
12578
|
| ((this: Compiler, compiler: Compiler) => void)
|
|
12425
|
-
| WebpackPluginInstance
|
|
12426
12579
|
| "..."
|
|
12580
|
+
| WebpackPluginInstance
|
|
12427
12581
|
)[];
|
|
12428
12582
|
|
|
12429
12583
|
/**
|
|
@@ -12542,8 +12696,8 @@ type OptimizationNormalizedWithDefaults = OptimizationNormalized & {
|
|
|
12542
12696
|
minimize: NonNullable<undefined | boolean>;
|
|
12543
12697
|
minimizer: (
|
|
12544
12698
|
| ((this: Compiler, compiler: Compiler) => void)
|
|
12545
|
-
| WebpackPluginInstance
|
|
12546
12699
|
| "..."
|
|
12700
|
+
| WebpackPluginInstance
|
|
12547
12701
|
)[];
|
|
12548
12702
|
nodeEnv: NonNullable<undefined | string | false>;
|
|
12549
12703
|
};
|
|
@@ -12866,7 +13020,8 @@ declare interface Options {
|
|
|
12866
13020
|
declare abstract class OptionsApply {
|
|
12867
13021
|
process(
|
|
12868
13022
|
options: WebpackOptionsNormalizedWithDefaults,
|
|
12869
|
-
compiler: Compiler
|
|
13023
|
+
compiler: Compiler,
|
|
13024
|
+
interception?: WebpackOptionsInterception
|
|
12870
13025
|
): WebpackOptionsNormalizedWithDefaults;
|
|
12871
13026
|
}
|
|
12872
13027
|
declare interface OriginRecord {
|
|
@@ -13191,7 +13346,10 @@ declare interface Output {
|
|
|
13191
13346
|
declare interface OutputFileSystem {
|
|
13192
13347
|
mkdir: Mkdir;
|
|
13193
13348
|
readdir?: ReaddirFs;
|
|
13194
|
-
rmdir?:
|
|
13349
|
+
rmdir?: (
|
|
13350
|
+
file: PathLikeFs,
|
|
13351
|
+
callback: (err: null | NodeJS.ErrnoException) => void
|
|
13352
|
+
) => void;
|
|
13195
13353
|
writeFile: WriteFile;
|
|
13196
13354
|
unlink?: (
|
|
13197
13355
|
pathLike: PathLikeFs,
|
|
@@ -14087,6 +14245,7 @@ declare interface RawChunkGroupOptions {
|
|
|
14087
14245
|
prefetchOrder?: number;
|
|
14088
14246
|
fetchPriority?: "auto" | "low" | "high";
|
|
14089
14247
|
}
|
|
14248
|
+
type RawDevTool = string | false;
|
|
14090
14249
|
type RawLoaderDefinition<
|
|
14091
14250
|
OptionsType = {},
|
|
14092
14251
|
ContextAdditions = {}
|
|
@@ -15304,6 +15463,23 @@ declare interface ResolveOptions {
|
|
|
15304
15463
|
*/
|
|
15305
15464
|
symlinks?: boolean;
|
|
15306
15465
|
|
|
15466
|
+
/**
|
|
15467
|
+
* TypeScript config for paths mapping. Can be `false` (disabled), `true` (use default `tsconfig.json`), a string path to `tsconfig.json`, or an object with `configFile` and `references` options.
|
|
15468
|
+
*/
|
|
15469
|
+
tsconfig?:
|
|
15470
|
+
| string
|
|
15471
|
+
| boolean
|
|
15472
|
+
| {
|
|
15473
|
+
/**
|
|
15474
|
+
* A path to the tsconfig file.
|
|
15475
|
+
*/
|
|
15476
|
+
configFile?: string;
|
|
15477
|
+
/**
|
|
15478
|
+
* References to other tsconfig files. 'auto' inherits from TypeScript config, or an array of relative/absolute paths.
|
|
15479
|
+
*/
|
|
15480
|
+
references?: string;
|
|
15481
|
+
};
|
|
15482
|
+
|
|
15307
15483
|
/**
|
|
15308
15484
|
* Enable caching of successfully resolved requests (cache entries are not revalidated).
|
|
15309
15485
|
*/
|
|
@@ -15449,6 +15625,11 @@ declare interface ResolveOptionsResolverFactoryObject1 {
|
|
|
15449
15625
|
* prefer absolute
|
|
15450
15626
|
*/
|
|
15451
15627
|
preferAbsolute: boolean;
|
|
15628
|
+
|
|
15629
|
+
/**
|
|
15630
|
+
* tsconfig file path or config object
|
|
15631
|
+
*/
|
|
15632
|
+
tsconfig: string | boolean | TsconfigOptions;
|
|
15452
15633
|
}
|
|
15453
15634
|
declare interface ResolveOptionsResolverFactoryObject2 {
|
|
15454
15635
|
/**
|
|
@@ -15594,6 +15775,11 @@ declare interface ResolveOptionsResolverFactoryObject2 {
|
|
|
15594
15775
|
* Prefer to resolve server-relative urls as absolute paths before falling back to resolve in roots
|
|
15595
15776
|
*/
|
|
15596
15777
|
preferAbsolute?: boolean;
|
|
15778
|
+
|
|
15779
|
+
/**
|
|
15780
|
+
* TypeScript config file path or config object with configFile and references
|
|
15781
|
+
*/
|
|
15782
|
+
tsconfig?: string | boolean | TsconfigOptions;
|
|
15597
15783
|
}
|
|
15598
15784
|
type ResolveOptionsWithDependencyType = ResolveOptions & {
|
|
15599
15785
|
dependencyType?: string;
|
|
@@ -15650,9 +15836,13 @@ declare abstract class Resolver {
|
|
|
15650
15836
|
[ResolveRequest, ResolveContext],
|
|
15651
15837
|
null | ResolveRequest
|
|
15652
15838
|
>;
|
|
15653
|
-
resolveSync(
|
|
15839
|
+
resolveSync(
|
|
15840
|
+
context: ContextTypes,
|
|
15841
|
+
path: string,
|
|
15842
|
+
request: string
|
|
15843
|
+
): string | false;
|
|
15654
15844
|
resolve(
|
|
15655
|
-
context:
|
|
15845
|
+
context: ContextTypes,
|
|
15656
15846
|
path: string,
|
|
15657
15847
|
request: string,
|
|
15658
15848
|
resolveContext: ResolveContext,
|
|
@@ -15752,22 +15942,6 @@ declare interface RestoreProvidedDataExports {
|
|
|
15752
15942
|
terminalBinding: boolean;
|
|
15753
15943
|
exportsInfo?: RestoreProvidedData;
|
|
15754
15944
|
}
|
|
15755
|
-
declare interface RmDirOptions {
|
|
15756
|
-
maxRetries?: number;
|
|
15757
|
-
recursive?: boolean;
|
|
15758
|
-
retryDelay?: number;
|
|
15759
|
-
}
|
|
15760
|
-
declare interface Rmdir {
|
|
15761
|
-
(
|
|
15762
|
-
file: PathLikeFs,
|
|
15763
|
-
callback: (err: null | NodeJS.ErrnoException) => void
|
|
15764
|
-
): void;
|
|
15765
|
-
(
|
|
15766
|
-
file: PathLikeFs,
|
|
15767
|
-
options: RmDirOptions,
|
|
15768
|
-
callback: (err: null | NodeJS.ErrnoException) => void
|
|
15769
|
-
): void;
|
|
15770
|
-
}
|
|
15771
15945
|
type Rule = string | RegExp | ((str: string) => boolean);
|
|
15772
15946
|
declare interface RuleSet {
|
|
15773
15947
|
/**
|
|
@@ -16204,7 +16378,7 @@ declare class RuntimeChunkPlugin {
|
|
|
16204
16378
|
*/
|
|
16205
16379
|
name?: (entrypoint: { name: string }) => string;
|
|
16206
16380
|
});
|
|
16207
|
-
options: { name: (entrypoint: { name: string }) => string };
|
|
16381
|
+
options: { name: string | ((entrypoint: { name: string }) => string) };
|
|
16208
16382
|
|
|
16209
16383
|
/**
|
|
16210
16384
|
* Apply the plugin
|
|
@@ -16541,6 +16715,10 @@ declare abstract class RuntimeTemplate {
|
|
|
16541
16715
|
* the module
|
|
16542
16716
|
*/
|
|
16543
16717
|
module: Module;
|
|
16718
|
+
/**
|
|
16719
|
+
* module in which the statement is emitted
|
|
16720
|
+
*/
|
|
16721
|
+
originModule: Module;
|
|
16544
16722
|
/**
|
|
16545
16723
|
* the module graph
|
|
16546
16724
|
*/
|
|
@@ -16550,29 +16728,25 @@ declare abstract class RuntimeTemplate {
|
|
|
16550
16728
|
*/
|
|
16551
16729
|
chunkGraph: ChunkGraph;
|
|
16552
16730
|
/**
|
|
16553
|
-
*
|
|
16731
|
+
* if set, will be filled with runtime requirements
|
|
16554
16732
|
*/
|
|
16555
|
-
|
|
16733
|
+
runtimeRequirements: Set<string>;
|
|
16556
16734
|
/**
|
|
16557
16735
|
* name of the import variable
|
|
16558
16736
|
*/
|
|
16559
16737
|
importVar: string;
|
|
16560
16738
|
/**
|
|
16561
|
-
*
|
|
16739
|
+
* the request that should be printed as comment
|
|
16562
16740
|
*/
|
|
16563
|
-
|
|
16741
|
+
request?: string;
|
|
16564
16742
|
/**
|
|
16565
16743
|
* true, if this is a weak dependency
|
|
16566
16744
|
*/
|
|
16567
16745
|
weak?: boolean;
|
|
16568
|
-
/**
|
|
16569
|
-
* if set, will be filled with runtime requirements
|
|
16570
|
-
*/
|
|
16571
|
-
runtimeRequirements: Set<string>;
|
|
16572
16746
|
/**
|
|
16573
16747
|
* module dependency
|
|
16574
16748
|
*/
|
|
16575
|
-
dependency
|
|
16749
|
+
dependency?: ModuleDependency;
|
|
16576
16750
|
}): [string, string];
|
|
16577
16751
|
exportFromImport<GenerateContext>(__0: {
|
|
16578
16752
|
/**
|
|
@@ -16606,7 +16780,7 @@ declare abstract class RuntimeTemplate {
|
|
|
16606
16780
|
/**
|
|
16607
16781
|
* true, if expression will be called
|
|
16608
16782
|
*/
|
|
16609
|
-
isCall
|
|
16783
|
+
isCall?: boolean;
|
|
16610
16784
|
/**
|
|
16611
16785
|
* when false, call context will not be preserved
|
|
16612
16786
|
*/
|
|
@@ -17189,7 +17363,7 @@ declare interface SourceMapDevToolPluginOptions {
|
|
|
17189
17363
|
/**
|
|
17190
17364
|
* Exclude modules that match the given value from source map generation.
|
|
17191
17365
|
*/
|
|
17192
|
-
exclude?: string | RegExp |
|
|
17366
|
+
exclude?: string | RegExp | ((str: string) => boolean) | Rule[];
|
|
17193
17367
|
|
|
17194
17368
|
/**
|
|
17195
17369
|
* Generator string or function to create identifiers of modules for the 'sources' array in the SourceMap used only if 'moduleFilenameTemplate' would result in a conflict.
|
|
@@ -17211,12 +17385,12 @@ declare interface SourceMapDevToolPluginOptions {
|
|
|
17211
17385
|
/**
|
|
17212
17386
|
* Decide whether to ignore source files that match the specified value in the SourceMap.
|
|
17213
17387
|
*/
|
|
17214
|
-
ignoreList?: string | RegExp |
|
|
17388
|
+
ignoreList?: string | RegExp | ((str: string) => boolean) | Rule[];
|
|
17215
17389
|
|
|
17216
17390
|
/**
|
|
17217
17391
|
* Include source maps for module paths that match the given value.
|
|
17218
17392
|
*/
|
|
17219
|
-
include?: string | RegExp |
|
|
17393
|
+
include?: string | RegExp | ((str: string) => boolean) | Rule[];
|
|
17220
17394
|
|
|
17221
17395
|
/**
|
|
17222
17396
|
* Indicates whether SourceMaps from loaders should be used (defaults to true).
|
|
@@ -17253,7 +17427,7 @@ declare interface SourceMapDevToolPluginOptions {
|
|
|
17253
17427
|
/**
|
|
17254
17428
|
* Include source maps for modules based on their extension (defaults to .js and .css).
|
|
17255
17429
|
*/
|
|
17256
|
-
test?: string | RegExp |
|
|
17430
|
+
test?: string | RegExp | ((str: string) => boolean) | Rule[];
|
|
17257
17431
|
}
|
|
17258
17432
|
declare class SourceMapSource extends Source {
|
|
17259
17433
|
constructor(
|
|
@@ -17334,7 +17508,7 @@ declare interface SplitChunksSizes {
|
|
|
17334
17508
|
declare interface SplitData {
|
|
17335
17509
|
id?: string | number;
|
|
17336
17510
|
hash?: string;
|
|
17337
|
-
modules:
|
|
17511
|
+
modules: string[];
|
|
17338
17512
|
size: number;
|
|
17339
17513
|
}
|
|
17340
17514
|
declare abstract class StackedMap<K, V> {
|
|
@@ -18159,9 +18333,13 @@ declare interface StreamOptions {
|
|
|
18159
18333
|
start?: number;
|
|
18160
18334
|
signal?: null | AbortSignal;
|
|
18161
18335
|
}
|
|
18336
|
+
declare interface Stringable {
|
|
18337
|
+
toString: () => string;
|
|
18338
|
+
}
|
|
18162
18339
|
type Supports = undefined | string;
|
|
18163
18340
|
declare class SyncModuleIdsPlugin {
|
|
18164
|
-
constructor(
|
|
18341
|
+
constructor(options: SyncModuleIdsPluginOptions);
|
|
18342
|
+
options: SyncModuleIdsPluginOptions;
|
|
18165
18343
|
|
|
18166
18344
|
/**
|
|
18167
18345
|
* Apply the plugin
|
|
@@ -18204,7 +18382,8 @@ declare interface TagInfo {
|
|
|
18204
18382
|
| HarmonySettings
|
|
18205
18383
|
| ImportSettings
|
|
18206
18384
|
| CommonJsImportSettings
|
|
18207
|
-
| CompatibilitySettings
|
|
18385
|
+
| CompatibilitySettings
|
|
18386
|
+
| HarmonySpecifierGuards;
|
|
18208
18387
|
next?: TagInfo;
|
|
18209
18388
|
}
|
|
18210
18389
|
declare interface TargetItemWithConnection {
|
|
@@ -18219,7 +18398,7 @@ declare interface TargetItemWithoutConnection {
|
|
|
18219
18398
|
}
|
|
18220
18399
|
declare class Template {
|
|
18221
18400
|
constructor();
|
|
18222
|
-
static getFunctionContent
|
|
18401
|
+
static getFunctionContent(fn: Stringable): string;
|
|
18223
18402
|
static toIdentifier(str: string): string;
|
|
18224
18403
|
static toComment(str: string): string;
|
|
18225
18404
|
static toNormalComment(str: string): string;
|
|
@@ -18276,6 +18455,49 @@ declare interface TrustedTypes {
|
|
|
18276
18455
|
*/
|
|
18277
18456
|
policyName?: string;
|
|
18278
18457
|
}
|
|
18458
|
+
declare interface TsconfigOptions {
|
|
18459
|
+
/**
|
|
18460
|
+
* A relative path to the tsconfig file based on cwd, or an absolute path of tsconfig file
|
|
18461
|
+
*/
|
|
18462
|
+
configFile?: string;
|
|
18463
|
+
|
|
18464
|
+
/**
|
|
18465
|
+
* References to other tsconfig files. 'auto' inherits from TypeScript config, or an array of relative/absolute paths
|
|
18466
|
+
*/
|
|
18467
|
+
references?: string[] | "auto";
|
|
18468
|
+
}
|
|
18469
|
+
declare interface TsconfigPathsData {
|
|
18470
|
+
/**
|
|
18471
|
+
* tsconfig file data
|
|
18472
|
+
*/
|
|
18473
|
+
alias: AliasOption[];
|
|
18474
|
+
|
|
18475
|
+
/**
|
|
18476
|
+
* tsconfig file data
|
|
18477
|
+
*/
|
|
18478
|
+
modules: string[];
|
|
18479
|
+
}
|
|
18480
|
+
declare interface TsconfigPathsMap {
|
|
18481
|
+
/**
|
|
18482
|
+
* main tsconfig paths data
|
|
18483
|
+
*/
|
|
18484
|
+
main: TsconfigPathsData;
|
|
18485
|
+
|
|
18486
|
+
/**
|
|
18487
|
+
* main tsconfig base URL (absolute path)
|
|
18488
|
+
*/
|
|
18489
|
+
mainContext: string;
|
|
18490
|
+
|
|
18491
|
+
/**
|
|
18492
|
+
* referenced tsconfig paths data mapped by baseUrl
|
|
18493
|
+
*/
|
|
18494
|
+
refs: { [index: string]: TsconfigPathsData };
|
|
18495
|
+
|
|
18496
|
+
/**
|
|
18497
|
+
* file dependencies
|
|
18498
|
+
*/
|
|
18499
|
+
fileDependencies: Set<string>;
|
|
18500
|
+
}
|
|
18279
18501
|
declare const UNDEFINED_MARKER: unique symbol;
|
|
18280
18502
|
declare interface URL_url extends URL {}
|
|
18281
18503
|
type UnsafeCacheData = KnownUnsafeCacheData & Record<string, any>;
|
|
@@ -18346,7 +18568,7 @@ declare interface VirtualModules {
|
|
|
18346
18568
|
declare class VirtualUrlPlugin {
|
|
18347
18569
|
constructor(modules: VirtualModules, scheme?: string);
|
|
18348
18570
|
scheme: string;
|
|
18349
|
-
modules:
|
|
18571
|
+
modules: NormalizedModules;
|
|
18350
18572
|
|
|
18351
18573
|
/**
|
|
18352
18574
|
* Apply the plugin
|
|
@@ -18373,8 +18595,22 @@ declare interface WatchFileSystem {
|
|
|
18373
18595
|
options: WatchOptions,
|
|
18374
18596
|
callback: (
|
|
18375
18597
|
err: null | Error,
|
|
18376
|
-
timeInfoEntries1?: Map<
|
|
18377
|
-
|
|
18598
|
+
timeInfoEntries1?: Map<
|
|
18599
|
+
string,
|
|
18600
|
+
| null
|
|
18601
|
+
| EntryTypesIndex
|
|
18602
|
+
| OnlySafeTimeEntry
|
|
18603
|
+
| ExistenceOnlyTimeEntryTypesIndex
|
|
18604
|
+
| "ignore"
|
|
18605
|
+
>,
|
|
18606
|
+
timeInfoEntries2?: Map<
|
|
18607
|
+
string,
|
|
18608
|
+
| null
|
|
18609
|
+
| EntryTypesIndex
|
|
18610
|
+
| OnlySafeTimeEntry
|
|
18611
|
+
| ExistenceOnlyTimeEntryTypesIndex
|
|
18612
|
+
| "ignore"
|
|
18613
|
+
>,
|
|
18378
18614
|
changes?: Set<string>,
|
|
18379
18615
|
removals?: Set<string>
|
|
18380
18616
|
) => void,
|
|
@@ -18450,12 +18686,26 @@ declare interface Watcher {
|
|
|
18450
18686
|
/**
|
|
18451
18687
|
* get info about files
|
|
18452
18688
|
*/
|
|
18453
|
-
getFileTimeInfoEntries: () => Map<
|
|
18689
|
+
getFileTimeInfoEntries: () => Map<
|
|
18690
|
+
string,
|
|
18691
|
+
| null
|
|
18692
|
+
| EntryTypesIndex
|
|
18693
|
+
| OnlySafeTimeEntry
|
|
18694
|
+
| ExistenceOnlyTimeEntryTypesIndex
|
|
18695
|
+
| "ignore"
|
|
18696
|
+
>;
|
|
18454
18697
|
|
|
18455
18698
|
/**
|
|
18456
18699
|
* get info about directories
|
|
18457
18700
|
*/
|
|
18458
|
-
getContextTimeInfoEntries: () => Map<
|
|
18701
|
+
getContextTimeInfoEntries: () => Map<
|
|
18702
|
+
string,
|
|
18703
|
+
| null
|
|
18704
|
+
| EntryTypesIndex
|
|
18705
|
+
| OnlySafeTimeEntry
|
|
18706
|
+
| ExistenceOnlyTimeEntryTypesIndex
|
|
18707
|
+
| "ignore"
|
|
18708
|
+
>;
|
|
18459
18709
|
|
|
18460
18710
|
/**
|
|
18461
18711
|
* get info about timestamps and changes
|
|
@@ -18476,12 +18726,26 @@ declare interface WatcherInfo {
|
|
|
18476
18726
|
/**
|
|
18477
18727
|
* get info about files
|
|
18478
18728
|
*/
|
|
18479
|
-
fileTimeInfoEntries: Map<
|
|
18729
|
+
fileTimeInfoEntries: Map<
|
|
18730
|
+
string,
|
|
18731
|
+
| null
|
|
18732
|
+
| EntryTypesIndex
|
|
18733
|
+
| OnlySafeTimeEntry
|
|
18734
|
+
| ExistenceOnlyTimeEntryTypesIndex
|
|
18735
|
+
| "ignore"
|
|
18736
|
+
>;
|
|
18480
18737
|
|
|
18481
18738
|
/**
|
|
18482
18739
|
* get info about directories
|
|
18483
18740
|
*/
|
|
18484
|
-
contextTimeInfoEntries: Map<
|
|
18741
|
+
contextTimeInfoEntries: Map<
|
|
18742
|
+
string,
|
|
18743
|
+
| null
|
|
18744
|
+
| EntryTypesIndex
|
|
18745
|
+
| OnlySafeTimeEntry
|
|
18746
|
+
| ExistenceOnlyTimeEntryTypesIndex
|
|
18747
|
+
| "ignore"
|
|
18748
|
+
>;
|
|
18485
18749
|
}
|
|
18486
18750
|
declare abstract class Watching {
|
|
18487
18751
|
startTime: null | number;
|
|
@@ -18630,7 +18894,7 @@ declare abstract class WebpackLogger {
|
|
|
18630
18894
|
info(...args: any[]): void;
|
|
18631
18895
|
log(...args: any[]): void;
|
|
18632
18896
|
debug(...args: any[]): void;
|
|
18633
|
-
assert(
|
|
18897
|
+
assert(condition: undefined | boolean, ...args: any[]): void;
|
|
18634
18898
|
trace(): void;
|
|
18635
18899
|
clear(): void;
|
|
18636
18900
|
status(...args: any[]): void;
|
|
@@ -18652,6 +18916,21 @@ declare class WebpackOptionsDefaulter {
|
|
|
18652
18916
|
constructor();
|
|
18653
18917
|
process(options: Configuration): WebpackOptionsNormalized;
|
|
18654
18918
|
}
|
|
18919
|
+
declare interface WebpackOptionsInterception {
|
|
18920
|
+
devtool?:
|
|
18921
|
+
| string
|
|
18922
|
+
| false
|
|
18923
|
+
| {
|
|
18924
|
+
/**
|
|
18925
|
+
* Which asset type should receive this devtool value.
|
|
18926
|
+
*/
|
|
18927
|
+
type: "all" | "javascript" | "css";
|
|
18928
|
+
/**
|
|
18929
|
+
* A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
|
|
18930
|
+
*/
|
|
18931
|
+
use: RawDevTool;
|
|
18932
|
+
}[];
|
|
18933
|
+
}
|
|
18655
18934
|
|
|
18656
18935
|
/**
|
|
18657
18936
|
* Normalized webpack options object.
|
|
@@ -18690,7 +18969,19 @@ declare interface WebpackOptionsNormalized {
|
|
|
18690
18969
|
/**
|
|
18691
18970
|
* A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
|
|
18692
18971
|
*/
|
|
18693
|
-
devtool?:
|
|
18972
|
+
devtool?:
|
|
18973
|
+
| string
|
|
18974
|
+
| false
|
|
18975
|
+
| {
|
|
18976
|
+
/**
|
|
18977
|
+
* Which asset type should receive this devtool value.
|
|
18978
|
+
*/
|
|
18979
|
+
type: "all" | "javascript" | "css";
|
|
18980
|
+
/**
|
|
18981
|
+
* A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
|
|
18982
|
+
*/
|
|
18983
|
+
use: RawDevTool;
|
|
18984
|
+
}[];
|
|
18694
18985
|
|
|
18695
18986
|
/**
|
|
18696
18987
|
* Enable and configure the Dotenv plugin to load environment variables from .env files.
|
|
@@ -18866,9 +19157,23 @@ type WebpackOptionsNormalizedWithDefaults = WebpackOptionsNormalized & {
|
|
|
18866
19157
|
target: NonNullable<undefined | string | false | string[]>;
|
|
18867
19158
|
} & { output: OutputNormalizedWithDefaults } & {
|
|
18868
19159
|
optimization: OptimizationNormalizedWithDefaults;
|
|
18869
|
-
} & {
|
|
18870
|
-
|
|
18871
|
-
|
|
19160
|
+
} & {
|
|
19161
|
+
devtool: NonNullable<
|
|
19162
|
+
| undefined
|
|
19163
|
+
| string
|
|
19164
|
+
| false
|
|
19165
|
+
| {
|
|
19166
|
+
/**
|
|
19167
|
+
* Which asset type should receive this devtool value.
|
|
19168
|
+
*/
|
|
19169
|
+
type: "all" | "javascript" | "css";
|
|
19170
|
+
/**
|
|
19171
|
+
* A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
|
|
19172
|
+
*/
|
|
19173
|
+
use: RawDevTool;
|
|
19174
|
+
}[]
|
|
19175
|
+
>;
|
|
19176
|
+
} & { stats: NonNullable<StatsValue> } & { node: NonNullable<Node> } & {
|
|
18872
19177
|
profile: NonNullable<undefined | boolean>;
|
|
18873
19178
|
} & { parallelism: number } & { snapshot: SnapshotNormalizedWithDefaults } & {
|
|
18874
19179
|
externalsPresets: ExternalsPresetsNormalizedWithDefaults;
|
|
@@ -18904,14 +19209,8 @@ type WebpackOptionsNormalizedWithDefaults = WebpackOptionsNormalized & {
|
|
|
18904
19209
|
} & { watch: NonNullable<undefined | boolean> } & {
|
|
18905
19210
|
performance: NonNullable<undefined | false | PerformanceOptions>;
|
|
18906
19211
|
} & { recordsInputPath: NonNullable<undefined | string | false> } & {
|
|
18907
|
-
recordsOutputPath:
|
|
18908
|
-
|
|
18909
|
-
dotenv: NonNullable<undefined | boolean | DotenvPluginOptions>;
|
|
18910
|
-
})
|
|
18911
|
-
| (false & {
|
|
18912
|
-
dotenv: NonNullable<undefined | boolean | DotenvPluginOptions>;
|
|
18913
|
-
});
|
|
18914
|
-
};
|
|
19212
|
+
recordsOutputPath: NonNullable<undefined | string | false>;
|
|
19213
|
+
} & { dotenv: NonNullable<undefined | boolean | DotenvPluginOptions> };
|
|
18915
19214
|
|
|
18916
19215
|
/**
|
|
18917
19216
|
* Plugin instance.
|
|
@@ -19394,6 +19693,10 @@ declare namespace exports {
|
|
|
19394
19693
|
a: DependencyLocation,
|
|
19395
19694
|
b: DependencyLocation
|
|
19396
19695
|
) => 0 | 1 | -1;
|
|
19696
|
+
export let compareModulesByFullName: ParameterizedComparator<
|
|
19697
|
+
Compiler,
|
|
19698
|
+
Module
|
|
19699
|
+
>;
|
|
19397
19700
|
export let compareModulesById: ParameterizedComparator<
|
|
19398
19701
|
ChunkGraph,
|
|
19399
19702
|
Module
|
|
@@ -19502,7 +19805,7 @@ declare namespace exports {
|
|
|
19502
19805
|
export const buffersSerializer: Serializer<any, any, any>;
|
|
19503
19806
|
export let createFileSerializer: <D, S, C>(
|
|
19504
19807
|
fs: IntermediateFileSystem,
|
|
19505
|
-
hashFunction:
|
|
19808
|
+
hashFunction: HashFunction
|
|
19506
19809
|
) => Serializer<D, S, C>;
|
|
19507
19810
|
export { MEASURE_START_OPERATION, MEASURE_END_OPERATION };
|
|
19508
19811
|
}
|
|
@@ -19587,6 +19890,7 @@ declare namespace exports {
|
|
|
19587
19890
|
this: Compiler,
|
|
19588
19891
|
compiler: Compiler
|
|
19589
19892
|
) => void;
|
|
19893
|
+
export type WebpackPluginInstance = (compiler: Compiler) => void;
|
|
19590
19894
|
export type ExternalItemFunctionCallback = (
|
|
19591
19895
|
data: ExternalItemFunctionData,
|
|
19592
19896
|
callback: (
|
|
@@ -19685,7 +19989,7 @@ declare namespace exports {
|
|
|
19685
19989
|
WebpackOptionsDefaulter,
|
|
19686
19990
|
ValidationError as WebpackOptionsValidationError,
|
|
19687
19991
|
ValidationError,
|
|
19688
|
-
Entry,
|
|
19992
|
+
EntryLibIndex as Entry,
|
|
19689
19993
|
EntryNormalized,
|
|
19690
19994
|
EntryObject,
|
|
19691
19995
|
ExternalItem,
|
|
@@ -19709,7 +20013,6 @@ declare namespace exports {
|
|
|
19709
20013
|
StatsOptions,
|
|
19710
20014
|
Configuration,
|
|
19711
20015
|
WebpackOptionsNormalized,
|
|
19712
|
-
WebpackPluginInstance,
|
|
19713
20016
|
ChunkGroup,
|
|
19714
20017
|
AssetEmittedInfo,
|
|
19715
20018
|
Asset,
|