webpack 5.83.0 → 5.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of webpack might be problematic. Click here for more details.
- package/README.md +2 -2
- package/lib/CompatibilityPlugin.js +3 -2
- package/lib/Compilation.js +2 -2
- package/lib/ContextModule.js +3 -3
- package/lib/DefinePlugin.js +11 -2
- package/lib/DllEntryPlugin.js +5 -0
- package/lib/DllModule.js +1 -1
- package/lib/EvalSourceMapDevToolPlugin.js +3 -1
- package/lib/MainTemplate.js +2 -2
- package/lib/PrefetchPlugin.js +4 -0
- package/lib/RuntimeTemplate.js +5 -5
- package/lib/SelfModuleFactory.js +12 -0
- package/lib/SourceMapDevToolPlugin.js +9 -2
- package/lib/Template.js +2 -1
- package/lib/config/browserslistTargetHandler.js +3 -3
- package/lib/config/defaults.js +209 -70
- package/lib/config/normalization.js +103 -71
- package/lib/config/target.js +37 -10
- package/lib/container/FallbackModule.js +1 -1
- package/lib/container/RemoteRuntimeModule.js +1 -1
- package/lib/css/CssParser.js +168 -73
- package/lib/debug/ProfilingPlugin.js +11 -0
- package/lib/dependencies/AMDDefineDependency.js +12 -6
- package/lib/dependencies/AMDDefineDependencyParserPlugin.js +8 -2
- package/lib/dependencies/AMDPlugin.js +7 -0
- package/lib/dependencies/AMDRequireArrayDependency.js +5 -0
- package/lib/dependencies/AMDRequireContextDependency.js +6 -0
- package/lib/dependencies/AMDRequireDependenciesBlock.js +6 -0
- package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +8 -2
- package/lib/dependencies/AMDRequireDependency.js +8 -1
- package/lib/dependencies/AMDRequireItemDependency.js +6 -0
- package/lib/dependencies/CachedConstDependency.js +6 -0
- package/lib/dependencies/CommonJsExportRequireDependency.js +11 -0
- package/lib/dependencies/CommonJsExportsDependency.js +8 -0
- package/lib/dependencies/CommonJsExportsParserPlugin.js +2 -2
- package/lib/dependencies/CommonJsFullRequireDependency.js +2 -1
- package/lib/dependencies/CommonJsPlugin.js +14 -0
- package/lib/dependencies/CommonJsRequireContextDependency.js +8 -0
- package/lib/dependencies/CommonJsRequireDependency.js +7 -0
- package/lib/dependencies/CommonJsSelfReferenceDependency.js +8 -0
- package/lib/dependencies/ConstDependency.js +2 -1
- package/lib/dependencies/ContextDependencyHelpers.js +3 -3
- package/lib/dependencies/CreateScriptUrlDependency.js +2 -1
- package/lib/dependencies/CriticalDependencyWarning.js +3 -0
- package/lib/dependencies/CssImportDependency.js +2 -1
- package/lib/dependencies/CssLocalIdentifierDependency.js +2 -1
- package/lib/dependencies/CssSelfLocalIdentifierDependency.js +2 -1
- package/lib/dependencies/CssUrlDependency.js +12 -2
- package/lib/dependencies/DelegatedSourceDependency.js +3 -0
- package/lib/dependencies/ExportsInfoDependency.js +6 -0
- package/lib/dependencies/HarmonyAcceptDependency.js +2 -1
- package/lib/dependencies/HarmonyAcceptImportDependency.js +3 -0
- package/lib/dependencies/HarmonyDetectionParserPlugin.js +16 -0
- package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +11 -0
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +3 -0
- package/lib/dependencies/HarmonyExportExpressionDependency.js +9 -1
- package/lib/dependencies/HarmonyExportHeaderDependency.js +5 -0
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +2 -1
- package/lib/dependencies/HarmonyExportSpecifierDependency.js +4 -0
- package/lib/dependencies/HarmonyImportDependency.js +2 -1
- package/lib/dependencies/HarmonyImportSideEffectDependency.js +6 -0
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +11 -0
- package/lib/dependencies/HarmonyModulesPlugin.js +12 -0
- package/lib/dependencies/ImportContextDependency.js +6 -0
- package/lib/dependencies/ImportDependency.js +2 -1
- package/lib/dependencies/ImportEagerDependency.js +2 -1
- package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +32 -13
- package/lib/dependencies/ImportMetaContextPlugin.js +7 -0
- package/lib/dependencies/ImportMetaHotAcceptDependency.js +6 -0
- package/lib/dependencies/ImportMetaHotDeclineDependency.js +6 -0
- package/lib/dependencies/ImportParserPlugin.js +5 -0
- package/lib/dependencies/ImportPlugin.js +7 -0
- package/lib/dependencies/ImportWeakDependency.js +2 -1
- package/lib/dependencies/LocalModule.js +16 -0
- package/lib/dependencies/LocalModuleDependency.js +7 -0
- package/lib/dependencies/LocalModulesHelpers.js +18 -0
- package/lib/dependencies/ModuleHotAcceptDependency.js +6 -0
- package/lib/dependencies/ModuleHotDeclineDependency.js +6 -0
- package/lib/dependencies/PrefetchDependency.js +3 -0
- package/lib/dependencies/ProvidedDependency.js +2 -1
- package/lib/dependencies/PureExpressionDependency.js +2 -1
- package/lib/dependencies/RequireContextDependency.js +6 -0
- package/lib/dependencies/RequireContextPlugin.js +7 -0
- package/lib/dependencies/RequireEnsureDependenciesBlock.js +4 -0
- package/lib/dependencies/RequireEnsureDependency.js +8 -2
- package/lib/dependencies/RequireEnsureItemDependency.js +3 -0
- package/lib/dependencies/RequireEnsurePlugin.js +14 -0
- package/lib/dependencies/RequireHeaderDependency.js +5 -1
- package/lib/dependencies/RequireIncludeDependency.js +5 -0
- package/lib/dependencies/RequireIncludeDependencyParserPlugin.js +3 -0
- package/lib/dependencies/RequireIncludePlugin.js +14 -0
- package/lib/dependencies/RequireResolveContextDependency.js +8 -0
- package/lib/dependencies/RequireResolveDependency.js +6 -0
- package/lib/dependencies/RequireResolveHeaderDependency.js +4 -0
- package/lib/dependencies/SystemPlugin.js +10 -1
- package/lib/dependencies/URLDependency.js +3 -2
- package/lib/dependencies/URLPlugin.js +7 -5
- package/lib/dependencies/UnsupportedDependency.js +5 -0
- package/lib/dependencies/WebAssemblyExportImportedDependency.js +6 -0
- package/lib/dependencies/WebpackIsIncludedDependency.js +5 -0
- package/lib/dependencies/WorkerDependency.js +2 -1
- package/lib/dependencies/WorkerPlugin.js +5 -2
- package/lib/dependencies/getFunctionExpression.js +7 -0
- package/lib/esm/ExportWebpackRequireRuntimeModule.js +2 -1
- package/lib/esm/ModuleChunkFormatPlugin.js +2 -2
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +5 -2
- package/lib/javascript/ArrayPushCallbackChunkFormatPlugin.js +2 -2
- package/lib/javascript/CommonJsChunkFormatPlugin.js +1 -1
- package/lib/javascript/JavascriptModulesPlugin.js +13 -13
- package/lib/javascript/JavascriptParser.js +540 -180
- package/lib/javascript/StartupHelpers.js +1 -1
- package/lib/node/ReadFileChunkLoadingRuntimeModule.js +2 -2
- package/lib/node/RequireChunkLoadingRuntimeModule.js +2 -2
- package/lib/optimize/ConcatenatedModule.js +1 -1
- package/lib/optimize/InnerGraphPlugin.js +11 -4
- package/lib/runtime/StartupChunkDependenciesRuntimeModule.js +1 -1
- package/lib/runtime/StartupEntrypointRuntimeModule.js +5 -5
- package/lib/serialization/ArraySerializer.js +22 -6
- package/lib/serialization/BinaryMiddleware.js +21 -0
- package/lib/serialization/DateObjectSerializer.js +15 -4
- package/lib/serialization/ErrorObjectSerializer.js +20 -8
- package/lib/serialization/FileMiddleware.js +17 -0
- package/lib/serialization/MapObjectSerializer.js +24 -8
- package/lib/serialization/NullPrototypeObjectSerializer.js +25 -8
- package/lib/serialization/ObjectMiddleware.js +23 -0
- package/lib/serialization/PlainObjectSerializer.js +23 -12
- package/lib/serialization/RegExpObjectSerializer.js +16 -5
- package/lib/serialization/SetObjectSerializer.js +21 -6
- package/lib/sharing/ShareRuntimeModule.js +1 -1
- package/lib/util/makeSerializable.js +7 -0
- package/lib/util/serialization.js +10 -0
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +4 -1
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +5 -1
- package/package.json +3 -3
- package/schemas/plugins/SourceMapDevToolPlugin.check.js +1 -1
- package/schemas/plugins/SourceMapDevToolPlugin.json +4 -0
- package/types.d.ts +469 -149
package/types.d.ts
CHANGED
@@ -13,6 +13,7 @@ import {
|
|
13
13
|
AssignmentPattern,
|
14
14
|
AssignmentProperty,
|
15
15
|
AwaitExpression,
|
16
|
+
BaseCallExpression,
|
16
17
|
BigIntLiteral,
|
17
18
|
BinaryExpression,
|
18
19
|
BlockStatement,
|
@@ -82,6 +83,7 @@ import {
|
|
82
83
|
WithStatement,
|
83
84
|
YieldExpression
|
84
85
|
} from "estree";
|
86
|
+
import { Dirent } from "fs";
|
85
87
|
import {
|
86
88
|
IncomingMessage,
|
87
89
|
ServerOptions as ServerOptionsImport,
|
@@ -204,8 +206,9 @@ declare interface AggressiveSplittingPluginOptions {
|
|
204
206
|
*/
|
205
207
|
minSize?: number;
|
206
208
|
}
|
209
|
+
type Alias = string | false | string[];
|
207
210
|
declare interface AliasOption {
|
208
|
-
alias:
|
211
|
+
alias: Alias;
|
209
212
|
name: string;
|
210
213
|
onlyModule?: boolean;
|
211
214
|
}
|
@@ -227,6 +230,9 @@ declare interface ArgumentConfig {
|
|
227
230
|
type: "string" | "number" | "boolean" | "path" | "enum" | "RegExp" | "reset";
|
228
231
|
values?: any[];
|
229
232
|
}
|
233
|
+
declare interface Assertions {
|
234
|
+
[index: string]: any;
|
235
|
+
}
|
230
236
|
declare interface Asset {
|
231
237
|
/**
|
232
238
|
* the filename of the asset
|
@@ -456,12 +462,16 @@ declare interface BannerPluginOptions {
|
|
456
462
|
}
|
457
463
|
declare interface BaseResolveRequest {
|
458
464
|
path: string | false;
|
465
|
+
context?: object;
|
459
466
|
descriptionFilePath?: string;
|
460
467
|
descriptionFileRoot?: string;
|
461
|
-
descriptionFileData?:
|
468
|
+
descriptionFileData?: JsonObject;
|
462
469
|
relativePath?: string;
|
463
470
|
ignoreSymlinks?: boolean;
|
464
471
|
fullySpecified?: boolean;
|
472
|
+
__innerRequest?: string;
|
473
|
+
__innerRequest_request?: string;
|
474
|
+
__innerRequest_relativePath?: string;
|
465
475
|
}
|
466
476
|
declare abstract class BasicEvaluatedExpression {
|
467
477
|
type: number;
|
@@ -4287,17 +4297,18 @@ declare interface FileSystem {
|
|
4287
4297
|
| "binary"
|
4288
4298
|
| ((
|
4289
4299
|
arg0?: null | NodeJS.ErrnoException,
|
4290
|
-
arg1?:
|
4300
|
+
arg1?: (string | Buffer)[] | (typeof Dirent)[]
|
4291
4301
|
) => void)
|
4292
4302
|
| ReaddirOptions
|
4293
4303
|
| "utf-8"
|
4294
4304
|
| "ucs-2"
|
4295
4305
|
| "base64"
|
4306
|
+
| "base64url"
|
4296
4307
|
| "hex"
|
4297
4308
|
| "buffer",
|
4298
4309
|
arg2?: (
|
4299
4310
|
arg0?: null | NodeJS.ErrnoException,
|
4300
|
-
arg1?:
|
4311
|
+
arg1?: (string | Buffer)[] | (typeof Dirent)[]
|
4301
4312
|
) => void
|
4302
4313
|
) => void;
|
4303
4314
|
readJson?: {
|
@@ -4618,11 +4629,7 @@ declare interface HandleModuleCreationOptions {
|
|
4618
4629
|
connectOrigin?: boolean;
|
4619
4630
|
}
|
4620
4631
|
declare class HarmonyImportDependency extends ModuleDependency {
|
4621
|
-
constructor(
|
4622
|
-
request: string,
|
4623
|
-
sourceOrder: number,
|
4624
|
-
assertions?: Record<string, any>
|
4625
|
-
);
|
4632
|
+
constructor(request: string, sourceOrder: number, assertions?: Assertions);
|
4626
4633
|
sourceOrder: number;
|
4627
4634
|
getImportVar(moduleGraph: ModuleGraph): string;
|
4628
4635
|
getImportStatement(
|
@@ -5209,7 +5216,7 @@ declare class JavascriptParser extends Parser {
|
|
5209
5216
|
>;
|
5210
5217
|
classBodyElement: SyncBailHook<
|
5211
5218
|
[
|
5212
|
-
MethodDefinition | PropertyDefinition,
|
5219
|
+
StaticBlock | MethodDefinition | PropertyDefinition,
|
5213
5220
|
ClassExpression | ClassDeclaration
|
5214
5221
|
],
|
5215
5222
|
boolean | void
|
@@ -5280,9 +5287,9 @@ declare class JavascriptParser extends Parser {
|
|
5280
5287
|
SyncBailHook<[AssignmentExpression, string[]], boolean | void>
|
5281
5288
|
>;
|
5282
5289
|
typeof: HookMap<SyncBailHook<[Expression], boolean | void>>;
|
5283
|
-
importCall: SyncBailHook<[
|
5290
|
+
importCall: SyncBailHook<[ImportExpression], boolean | void>;
|
5284
5291
|
topLevelAwait: SyncBailHook<[Expression], boolean | void>;
|
5285
|
-
call: HookMap<SyncBailHook<[
|
5292
|
+
call: HookMap<SyncBailHook<[BaseCallExpression], boolean | void>>;
|
5286
5293
|
callMemberChain: HookMap<
|
5287
5294
|
SyncBailHook<[CallExpression, string[], boolean[]], boolean | void>
|
5288
5295
|
>;
|
@@ -5368,21 +5375,267 @@ declare class JavascriptParser extends Parser {
|
|
5368
5375
|
| ForStatement
|
5369
5376
|
| ForInStatement
|
5370
5377
|
| ForOfStatement
|
5378
|
+
| ImportDeclaration
|
5379
|
+
| ExportNamedDeclaration
|
5380
|
+
| ExportDefaultDeclaration
|
5381
|
+
| ExportAllDeclaration
|
5371
5382
|
)[];
|
5372
|
-
prevStatement:
|
5383
|
+
prevStatement:
|
5384
|
+
| UnaryExpression
|
5385
|
+
| ArrayExpression
|
5386
|
+
| ArrowFunctionExpression
|
5387
|
+
| AssignmentExpression
|
5388
|
+
| AwaitExpression
|
5389
|
+
| BinaryExpression
|
5390
|
+
| SimpleCallExpression
|
5391
|
+
| NewExpression
|
5392
|
+
| ChainExpression
|
5393
|
+
| ClassExpression
|
5394
|
+
| ConditionalExpression
|
5395
|
+
| FunctionExpression
|
5396
|
+
| Identifier
|
5397
|
+
| ImportExpression
|
5398
|
+
| SimpleLiteral
|
5399
|
+
| RegExpLiteral
|
5400
|
+
| BigIntLiteral
|
5401
|
+
| LogicalExpression
|
5402
|
+
| MemberExpression
|
5403
|
+
| MetaProperty
|
5404
|
+
| ObjectExpression
|
5405
|
+
| SequenceExpression
|
5406
|
+
| TaggedTemplateExpression
|
5407
|
+
| TemplateLiteral
|
5408
|
+
| ThisExpression
|
5409
|
+
| UpdateExpression
|
5410
|
+
| YieldExpression
|
5411
|
+
| FunctionDeclaration
|
5412
|
+
| VariableDeclaration
|
5413
|
+
| ClassDeclaration
|
5414
|
+
| ExpressionStatement
|
5415
|
+
| BlockStatement
|
5416
|
+
| StaticBlock
|
5417
|
+
| EmptyStatement
|
5418
|
+
| DebuggerStatement
|
5419
|
+
| WithStatement
|
5420
|
+
| ReturnStatement
|
5421
|
+
| LabeledStatement
|
5422
|
+
| BreakStatement
|
5423
|
+
| ContinueStatement
|
5424
|
+
| IfStatement
|
5425
|
+
| SwitchStatement
|
5426
|
+
| ThrowStatement
|
5427
|
+
| TryStatement
|
5428
|
+
| WhileStatement
|
5429
|
+
| DoWhileStatement
|
5430
|
+
| ForStatement
|
5431
|
+
| ForInStatement
|
5432
|
+
| ForOfStatement
|
5433
|
+
| ImportDeclaration
|
5434
|
+
| ExportNamedDeclaration
|
5435
|
+
| ExportDefaultDeclaration
|
5436
|
+
| ExportAllDeclaration;
|
5373
5437
|
destructuringAssignmentProperties: WeakMap<Expression, Set<string>>;
|
5374
5438
|
currentTagData: any;
|
5375
5439
|
destructuringAssignmentPropertiesFor(
|
5376
5440
|
node: Expression
|
5377
5441
|
): undefined | Set<string>;
|
5378
|
-
getRenameIdentifier(
|
5442
|
+
getRenameIdentifier(
|
5443
|
+
expr: Expression
|
5444
|
+
): undefined | string | VariableInfoInterface;
|
5379
5445
|
walkClass(classy: ClassExpression | ClassDeclaration): void;
|
5380
|
-
|
5381
|
-
|
5382
|
-
|
5383
|
-
|
5384
|
-
|
5385
|
-
|
5446
|
+
|
5447
|
+
/**
|
5448
|
+
* Pre walking iterates the scope for variable declarations
|
5449
|
+
*/
|
5450
|
+
preWalkStatements(
|
5451
|
+
statements: (
|
5452
|
+
| FunctionDeclaration
|
5453
|
+
| VariableDeclaration
|
5454
|
+
| ClassDeclaration
|
5455
|
+
| ExpressionStatement
|
5456
|
+
| BlockStatement
|
5457
|
+
| StaticBlock
|
5458
|
+
| EmptyStatement
|
5459
|
+
| DebuggerStatement
|
5460
|
+
| WithStatement
|
5461
|
+
| ReturnStatement
|
5462
|
+
| LabeledStatement
|
5463
|
+
| BreakStatement
|
5464
|
+
| ContinueStatement
|
5465
|
+
| IfStatement
|
5466
|
+
| SwitchStatement
|
5467
|
+
| ThrowStatement
|
5468
|
+
| TryStatement
|
5469
|
+
| WhileStatement
|
5470
|
+
| DoWhileStatement
|
5471
|
+
| ForStatement
|
5472
|
+
| ForInStatement
|
5473
|
+
| ForOfStatement
|
5474
|
+
| ImportDeclaration
|
5475
|
+
| ExportNamedDeclaration
|
5476
|
+
| ExportDefaultDeclaration
|
5477
|
+
| ExportAllDeclaration
|
5478
|
+
)[]
|
5479
|
+
): void;
|
5480
|
+
|
5481
|
+
/**
|
5482
|
+
* Block pre walking iterates the scope for block variable declarations
|
5483
|
+
*/
|
5484
|
+
blockPreWalkStatements(
|
5485
|
+
statements: (
|
5486
|
+
| FunctionDeclaration
|
5487
|
+
| VariableDeclaration
|
5488
|
+
| ClassDeclaration
|
5489
|
+
| ExpressionStatement
|
5490
|
+
| BlockStatement
|
5491
|
+
| StaticBlock
|
5492
|
+
| EmptyStatement
|
5493
|
+
| DebuggerStatement
|
5494
|
+
| WithStatement
|
5495
|
+
| ReturnStatement
|
5496
|
+
| LabeledStatement
|
5497
|
+
| BreakStatement
|
5498
|
+
| ContinueStatement
|
5499
|
+
| IfStatement
|
5500
|
+
| SwitchStatement
|
5501
|
+
| ThrowStatement
|
5502
|
+
| TryStatement
|
5503
|
+
| WhileStatement
|
5504
|
+
| DoWhileStatement
|
5505
|
+
| ForStatement
|
5506
|
+
| ForInStatement
|
5507
|
+
| ForOfStatement
|
5508
|
+
| ImportDeclaration
|
5509
|
+
| ExportNamedDeclaration
|
5510
|
+
| ExportDefaultDeclaration
|
5511
|
+
| ExportAllDeclaration
|
5512
|
+
)[]
|
5513
|
+
): void;
|
5514
|
+
|
5515
|
+
/**
|
5516
|
+
* Walking iterates the statements and expressions and processes them
|
5517
|
+
*/
|
5518
|
+
walkStatements(
|
5519
|
+
statements: (
|
5520
|
+
| FunctionDeclaration
|
5521
|
+
| VariableDeclaration
|
5522
|
+
| ClassDeclaration
|
5523
|
+
| ExpressionStatement
|
5524
|
+
| BlockStatement
|
5525
|
+
| StaticBlock
|
5526
|
+
| EmptyStatement
|
5527
|
+
| DebuggerStatement
|
5528
|
+
| WithStatement
|
5529
|
+
| ReturnStatement
|
5530
|
+
| LabeledStatement
|
5531
|
+
| BreakStatement
|
5532
|
+
| ContinueStatement
|
5533
|
+
| IfStatement
|
5534
|
+
| SwitchStatement
|
5535
|
+
| ThrowStatement
|
5536
|
+
| TryStatement
|
5537
|
+
| WhileStatement
|
5538
|
+
| DoWhileStatement
|
5539
|
+
| ForStatement
|
5540
|
+
| ForInStatement
|
5541
|
+
| ForOfStatement
|
5542
|
+
| ImportDeclaration
|
5543
|
+
| ExportNamedDeclaration
|
5544
|
+
| ExportDefaultDeclaration
|
5545
|
+
| ExportAllDeclaration
|
5546
|
+
)[]
|
5547
|
+
): void;
|
5548
|
+
|
5549
|
+
/**
|
5550
|
+
* Walking iterates the statements and expressions and processes them
|
5551
|
+
*/
|
5552
|
+
preWalkStatement(
|
5553
|
+
statement:
|
5554
|
+
| FunctionDeclaration
|
5555
|
+
| VariableDeclaration
|
5556
|
+
| ClassDeclaration
|
5557
|
+
| ExpressionStatement
|
5558
|
+
| BlockStatement
|
5559
|
+
| StaticBlock
|
5560
|
+
| EmptyStatement
|
5561
|
+
| DebuggerStatement
|
5562
|
+
| WithStatement
|
5563
|
+
| ReturnStatement
|
5564
|
+
| LabeledStatement
|
5565
|
+
| BreakStatement
|
5566
|
+
| ContinueStatement
|
5567
|
+
| IfStatement
|
5568
|
+
| SwitchStatement
|
5569
|
+
| ThrowStatement
|
5570
|
+
| TryStatement
|
5571
|
+
| WhileStatement
|
5572
|
+
| DoWhileStatement
|
5573
|
+
| ForStatement
|
5574
|
+
| ForInStatement
|
5575
|
+
| ForOfStatement
|
5576
|
+
| ImportDeclaration
|
5577
|
+
| ExportNamedDeclaration
|
5578
|
+
| ExportDefaultDeclaration
|
5579
|
+
| ExportAllDeclaration
|
5580
|
+
): void;
|
5581
|
+
blockPreWalkStatement(
|
5582
|
+
statement:
|
5583
|
+
| FunctionDeclaration
|
5584
|
+
| VariableDeclaration
|
5585
|
+
| ClassDeclaration
|
5586
|
+
| ExpressionStatement
|
5587
|
+
| BlockStatement
|
5588
|
+
| StaticBlock
|
5589
|
+
| EmptyStatement
|
5590
|
+
| DebuggerStatement
|
5591
|
+
| WithStatement
|
5592
|
+
| ReturnStatement
|
5593
|
+
| LabeledStatement
|
5594
|
+
| BreakStatement
|
5595
|
+
| ContinueStatement
|
5596
|
+
| IfStatement
|
5597
|
+
| SwitchStatement
|
5598
|
+
| ThrowStatement
|
5599
|
+
| TryStatement
|
5600
|
+
| WhileStatement
|
5601
|
+
| DoWhileStatement
|
5602
|
+
| ForStatement
|
5603
|
+
| ForInStatement
|
5604
|
+
| ForOfStatement
|
5605
|
+
| ImportDeclaration
|
5606
|
+
| ExportNamedDeclaration
|
5607
|
+
| ExportDefaultDeclaration
|
5608
|
+
| ExportAllDeclaration
|
5609
|
+
): void;
|
5610
|
+
walkStatement(
|
5611
|
+
statement:
|
5612
|
+
| FunctionDeclaration
|
5613
|
+
| VariableDeclaration
|
5614
|
+
| ClassDeclaration
|
5615
|
+
| ExpressionStatement
|
5616
|
+
| BlockStatement
|
5617
|
+
| StaticBlock
|
5618
|
+
| EmptyStatement
|
5619
|
+
| DebuggerStatement
|
5620
|
+
| WithStatement
|
5621
|
+
| ReturnStatement
|
5622
|
+
| LabeledStatement
|
5623
|
+
| BreakStatement
|
5624
|
+
| ContinueStatement
|
5625
|
+
| IfStatement
|
5626
|
+
| SwitchStatement
|
5627
|
+
| ThrowStatement
|
5628
|
+
| TryStatement
|
5629
|
+
| WhileStatement
|
5630
|
+
| DoWhileStatement
|
5631
|
+
| ForStatement
|
5632
|
+
| ForInStatement
|
5633
|
+
| ForOfStatement
|
5634
|
+
| ImportDeclaration
|
5635
|
+
| ExportNamedDeclaration
|
5636
|
+
| ExportDefaultDeclaration
|
5637
|
+
| ExportAllDeclaration
|
5638
|
+
): void;
|
5386
5639
|
|
5387
5640
|
/**
|
5388
5641
|
* Walks a statements that is nested within a parent statement
|
@@ -5390,84 +5643,118 @@ declare class JavascriptParser extends Parser {
|
|
5390
5643
|
* This enforces the nested statement to never be in ASI position.
|
5391
5644
|
*/
|
5392
5645
|
walkNestedStatement(statement: Statement): void;
|
5393
|
-
preWalkBlockStatement(statement
|
5394
|
-
walkBlockStatement(statement
|
5395
|
-
walkExpressionStatement(statement
|
5396
|
-
preWalkIfStatement(statement
|
5397
|
-
walkIfStatement(statement
|
5398
|
-
preWalkLabeledStatement(statement
|
5399
|
-
walkLabeledStatement(statement
|
5400
|
-
preWalkWithStatement(statement
|
5401
|
-
walkWithStatement(statement
|
5402
|
-
preWalkSwitchStatement(statement
|
5403
|
-
walkSwitchStatement(statement
|
5404
|
-
walkTerminatingStatement(statement
|
5405
|
-
walkReturnStatement(statement
|
5406
|
-
walkThrowStatement(statement
|
5407
|
-
preWalkTryStatement(statement
|
5408
|
-
walkTryStatement(statement
|
5409
|
-
preWalkWhileStatement(statement
|
5410
|
-
walkWhileStatement(statement
|
5411
|
-
preWalkDoWhileStatement(statement
|
5412
|
-
walkDoWhileStatement(statement
|
5413
|
-
preWalkForStatement(statement
|
5414
|
-
walkForStatement(statement
|
5415
|
-
preWalkForInStatement(statement
|
5416
|
-
walkForInStatement(statement
|
5646
|
+
preWalkBlockStatement(statement: BlockStatement): void;
|
5647
|
+
walkBlockStatement(statement: BlockStatement): void;
|
5648
|
+
walkExpressionStatement(statement: ExpressionStatement): void;
|
5649
|
+
preWalkIfStatement(statement: IfStatement): void;
|
5650
|
+
walkIfStatement(statement: IfStatement): void;
|
5651
|
+
preWalkLabeledStatement(statement: LabeledStatement): void;
|
5652
|
+
walkLabeledStatement(statement: LabeledStatement): void;
|
5653
|
+
preWalkWithStatement(statement: WithStatement): void;
|
5654
|
+
walkWithStatement(statement: WithStatement): void;
|
5655
|
+
preWalkSwitchStatement(statement: SwitchStatement): void;
|
5656
|
+
walkSwitchStatement(statement: SwitchStatement): void;
|
5657
|
+
walkTerminatingStatement(statement: ReturnStatement | ThrowStatement): void;
|
5658
|
+
walkReturnStatement(statement: ReturnStatement): void;
|
5659
|
+
walkThrowStatement(statement: ThrowStatement): void;
|
5660
|
+
preWalkTryStatement(statement: TryStatement): void;
|
5661
|
+
walkTryStatement(statement: TryStatement): void;
|
5662
|
+
preWalkWhileStatement(statement: WhileStatement): void;
|
5663
|
+
walkWhileStatement(statement: WhileStatement): void;
|
5664
|
+
preWalkDoWhileStatement(statement: DoWhileStatement): void;
|
5665
|
+
walkDoWhileStatement(statement: DoWhileStatement): void;
|
5666
|
+
preWalkForStatement(statement: ForStatement): void;
|
5667
|
+
walkForStatement(statement: ForStatement): void;
|
5668
|
+
preWalkForInStatement(statement: ForInStatement): void;
|
5669
|
+
walkForInStatement(statement: ForInStatement): void;
|
5417
5670
|
preWalkForOfStatement(statement?: any): void;
|
5418
|
-
walkForOfStatement(statement
|
5419
|
-
preWalkFunctionDeclaration(statement
|
5420
|
-
walkFunctionDeclaration(statement
|
5421
|
-
blockPreWalkExpressionStatement(statement
|
5422
|
-
preWalkAssignmentExpression(expression
|
5671
|
+
walkForOfStatement(statement: ForOfStatement): void;
|
5672
|
+
preWalkFunctionDeclaration(statement: FunctionDeclaration): void;
|
5673
|
+
walkFunctionDeclaration(statement: FunctionDeclaration): void;
|
5674
|
+
blockPreWalkExpressionStatement(statement: ExpressionStatement): void;
|
5675
|
+
preWalkAssignmentExpression(expression: AssignmentExpression): void;
|
5423
5676
|
blockPreWalkImportDeclaration(statement?: any): void;
|
5424
5677
|
enterDeclaration(declaration?: any, onIdent?: any): void;
|
5425
5678
|
blockPreWalkExportNamedDeclaration(statement?: any): void;
|
5426
|
-
walkExportNamedDeclaration(statement
|
5679
|
+
walkExportNamedDeclaration(statement: ExportNamedDeclaration): void;
|
5427
5680
|
blockPreWalkExportDefaultDeclaration(statement?: any): void;
|
5428
5681
|
walkExportDefaultDeclaration(statement?: any): void;
|
5429
5682
|
blockPreWalkExportAllDeclaration(statement?: any): void;
|
5430
|
-
preWalkVariableDeclaration(statement
|
5431
|
-
blockPreWalkVariableDeclaration(statement
|
5432
|
-
preWalkVariableDeclarator(declarator
|
5433
|
-
walkVariableDeclaration(statement
|
5434
|
-
blockPreWalkClassDeclaration(statement
|
5435
|
-
walkClassDeclaration(statement
|
5436
|
-
preWalkSwitchCases(switchCases
|
5437
|
-
walkSwitchCases(switchCases
|
5438
|
-
preWalkCatchClause(catchClause
|
5439
|
-
walkCatchClause(catchClause
|
5440
|
-
walkPattern(pattern
|
5441
|
-
walkAssignmentPattern(pattern
|
5683
|
+
preWalkVariableDeclaration(statement: VariableDeclaration): void;
|
5684
|
+
blockPreWalkVariableDeclaration(statement: VariableDeclaration): void;
|
5685
|
+
preWalkVariableDeclarator(declarator: VariableDeclarator): void;
|
5686
|
+
walkVariableDeclaration(statement: VariableDeclaration): void;
|
5687
|
+
blockPreWalkClassDeclaration(statement: ClassDeclaration): void;
|
5688
|
+
walkClassDeclaration(statement: ClassDeclaration): void;
|
5689
|
+
preWalkSwitchCases(switchCases: SwitchCase[]): void;
|
5690
|
+
walkSwitchCases(switchCases: SwitchCase[]): void;
|
5691
|
+
preWalkCatchClause(catchClause: CatchClause): void;
|
5692
|
+
walkCatchClause(catchClause: CatchClause): void;
|
5693
|
+
walkPattern(pattern: Pattern): void;
|
5694
|
+
walkAssignmentPattern(pattern: AssignmentPattern): void;
|
5442
5695
|
walkObjectPattern(pattern?: any): void;
|
5443
|
-
walkArrayPattern(pattern
|
5444
|
-
walkRestElement(pattern
|
5445
|
-
walkExpressions(
|
5696
|
+
walkArrayPattern(pattern: ArrayPattern): void;
|
5697
|
+
walkRestElement(pattern: RestElement): void;
|
5698
|
+
walkExpressions(
|
5699
|
+
expressions: (
|
5700
|
+
| null
|
5701
|
+
| UnaryExpression
|
5702
|
+
| ArrayExpression
|
5703
|
+
| ArrowFunctionExpression
|
5704
|
+
| AssignmentExpression
|
5705
|
+
| AwaitExpression
|
5706
|
+
| BinaryExpression
|
5707
|
+
| SimpleCallExpression
|
5708
|
+
| NewExpression
|
5709
|
+
| ChainExpression
|
5710
|
+
| ClassExpression
|
5711
|
+
| ConditionalExpression
|
5712
|
+
| FunctionExpression
|
5713
|
+
| Identifier
|
5714
|
+
| ImportExpression
|
5715
|
+
| SimpleLiteral
|
5716
|
+
| RegExpLiteral
|
5717
|
+
| BigIntLiteral
|
5718
|
+
| LogicalExpression
|
5719
|
+
| MemberExpression
|
5720
|
+
| MetaProperty
|
5721
|
+
| ObjectExpression
|
5722
|
+
| SequenceExpression
|
5723
|
+
| TaggedTemplateExpression
|
5724
|
+
| TemplateLiteral
|
5725
|
+
| ThisExpression
|
5726
|
+
| UpdateExpression
|
5727
|
+
| YieldExpression
|
5728
|
+
| SpreadElement
|
5729
|
+
)[]
|
5730
|
+
): void;
|
5446
5731
|
walkExpression(expression?: any): void;
|
5447
|
-
walkAwaitExpression(expression
|
5448
|
-
walkArrayExpression(expression
|
5449
|
-
walkSpreadElement(expression
|
5450
|
-
walkObjectExpression(expression
|
5451
|
-
walkProperty(prop
|
5452
|
-
walkFunctionExpression(expression
|
5453
|
-
walkArrowFunctionExpression(expression
|
5732
|
+
walkAwaitExpression(expression: AwaitExpression): void;
|
5733
|
+
walkArrayExpression(expression: ArrayExpression): void;
|
5734
|
+
walkSpreadElement(expression: SpreadElement): void;
|
5735
|
+
walkObjectExpression(expression: ObjectExpression): void;
|
5736
|
+
walkProperty(prop: SpreadElement | Property): void;
|
5737
|
+
walkFunctionExpression(expression: FunctionExpression): void;
|
5738
|
+
walkArrowFunctionExpression(expression: ArrowFunctionExpression): void;
|
5454
5739
|
walkSequenceExpression(expression: SequenceExpression): void;
|
5455
|
-
walkUpdateExpression(expression
|
5456
|
-
walkUnaryExpression(expression
|
5457
|
-
walkLeftRightExpression(
|
5458
|
-
|
5459
|
-
|
5460
|
-
|
5461
|
-
|
5462
|
-
|
5463
|
-
|
5464
|
-
|
5465
|
-
|
5466
|
-
|
5740
|
+
walkUpdateExpression(expression: UpdateExpression): void;
|
5741
|
+
walkUnaryExpression(expression: UnaryExpression): void;
|
5742
|
+
walkLeftRightExpression(
|
5743
|
+
expression: BinaryExpression | LogicalExpression
|
5744
|
+
): void;
|
5745
|
+
walkBinaryExpression(expression: BinaryExpression): void;
|
5746
|
+
walkLogicalExpression(expression: LogicalExpression): void;
|
5747
|
+
walkAssignmentExpression(expression: AssignmentExpression): void;
|
5748
|
+
walkConditionalExpression(expression: ConditionalExpression): void;
|
5749
|
+
walkNewExpression(expression: NewExpression): void;
|
5750
|
+
walkYieldExpression(expression: YieldExpression): void;
|
5751
|
+
walkTemplateLiteral(expression: TemplateLiteral): void;
|
5752
|
+
walkTaggedTemplateExpression(expression: TaggedTemplateExpression): void;
|
5753
|
+
walkClassExpression(expression: ClassExpression): void;
|
5467
5754
|
walkChainExpression(expression: ChainExpression): void;
|
5468
|
-
walkImportExpression(expression
|
5755
|
+
walkImportExpression(expression: ImportExpression): void;
|
5469
5756
|
walkCallExpression(expression?: any): void;
|
5470
|
-
walkMemberExpression(expression
|
5757
|
+
walkMemberExpression(expression: MemberExpression): void;
|
5471
5758
|
walkMemberExpressionWithExpressionName(
|
5472
5759
|
expression?: any,
|
5473
5760
|
name?: any,
|
@@ -5475,8 +5762,8 @@ declare class JavascriptParser extends Parser {
|
|
5475
5762
|
members?: any,
|
5476
5763
|
onUnhandled?: any
|
5477
5764
|
): void;
|
5478
|
-
walkThisExpression(expression
|
5479
|
-
walkIdentifier(expression
|
5765
|
+
walkThisExpression(expression: ThisExpression): void;
|
5766
|
+
walkIdentifier(expression: Identifier): void;
|
5480
5767
|
walkMetaProperty(metaProperty: MetaProperty): void;
|
5481
5768
|
callHooksForExpression(hookMap: any, expr: any, ...args: any[]): any;
|
5482
5769
|
callHooksForExpressionWithFallback<T, R>(
|
@@ -5515,18 +5802,19 @@ declare class JavascriptParser extends Parser {
|
|
5515
5802
|
...args: AsArray<T>
|
5516
5803
|
): R;
|
5517
5804
|
inScope(params: any, fn: () => void): void;
|
5805
|
+
inClassScope(hasThis?: any, params?: any, fn?: any): void;
|
5518
5806
|
inFunctionScope(hasThis?: any, params?: any, fn?: any): void;
|
5519
5807
|
inBlockScope(fn?: any): void;
|
5520
5808
|
detectMode(statements?: any): void;
|
5521
5809
|
enterPatterns(patterns?: any, onIdent?: any): void;
|
5522
5810
|
enterPattern(pattern?: any, onIdent?: any): void;
|
5523
|
-
enterIdentifier(pattern
|
5524
|
-
enterObjectPattern(pattern
|
5525
|
-
enterArrayPattern(pattern
|
5526
|
-
enterRestElement(pattern
|
5527
|
-
enterAssignmentPattern(pattern
|
5811
|
+
enterIdentifier(pattern: Identifier, onIdent?: any): void;
|
5812
|
+
enterObjectPattern(pattern: ObjectPattern, onIdent?: any): void;
|
5813
|
+
enterArrayPattern(pattern: ArrayPattern, onIdent?: any): void;
|
5814
|
+
enterRestElement(pattern: RestElement, onIdent?: any): void;
|
5815
|
+
enterAssignmentPattern(pattern: AssignmentPattern, onIdent?: any): void;
|
5528
5816
|
evaluateExpression(expression: Expression): BasicEvaluatedExpression;
|
5529
|
-
parseString(expression
|
5817
|
+
parseString(expression: Expression): string;
|
5530
5818
|
parseCalculatedString(expression?: any): any;
|
5531
5819
|
evaluate(source: string): BasicEvaluatedExpression;
|
5532
5820
|
isPure(
|
@@ -5566,21 +5854,19 @@ declare class JavascriptParser extends Parser {
|
|
5566
5854
|
| PrivateIdentifier,
|
5567
5855
|
commentsStartPos: number
|
5568
5856
|
): boolean;
|
5569
|
-
getComments(range
|
5857
|
+
getComments(range: [number, number]): any[];
|
5570
5858
|
isAsiPosition(pos: number): boolean;
|
5571
5859
|
unsetAsiPosition(pos: number): void;
|
5572
5860
|
isStatementLevelExpression(expr?: any): boolean;
|
5573
5861
|
getTagData(name?: any, tag?: any): any;
|
5574
5862
|
tagVariable(name?: any, tag?: any, data?: any): void;
|
5575
|
-
defineVariable(name
|
5576
|
-
undefineVariable(name
|
5577
|
-
isVariableDefined(name
|
5863
|
+
defineVariable(name: string): void;
|
5864
|
+
undefineVariable(name: string): void;
|
5865
|
+
isVariableDefined(name: string): boolean;
|
5578
5866
|
getVariableInfo(name: string): ExportedVariableInfo;
|
5579
5867
|
setVariable(name: string, variableInfo: ExportedVariableInfo): void;
|
5580
|
-
evaluatedVariable(tagInfo
|
5581
|
-
parseCommentOptions(
|
5582
|
-
range?: any
|
5583
|
-
): { options: null; errors: null } | { options: object; errors: unknown[] };
|
5868
|
+
evaluatedVariable(tagInfo: TagInfo): VariableInfo;
|
5869
|
+
parseCommentOptions(range: [number, number]): any;
|
5584
5870
|
extractMemberExpressionChain(expression: MemberExpression): {
|
5585
5871
|
members: string[];
|
5586
5872
|
object:
|
@@ -5818,8 +6104,19 @@ declare interface JavascriptParserOptions {
|
|
5818
6104
|
*/
|
5819
6105
|
wrappedContextRegExp?: RegExp;
|
5820
6106
|
}
|
6107
|
+
type JsonObject = { [index: string]: JsonValue } & {
|
6108
|
+
[index: string]:
|
6109
|
+
| undefined
|
6110
|
+
| null
|
6111
|
+
| string
|
6112
|
+
| number
|
6113
|
+
| boolean
|
6114
|
+
| JsonObject
|
6115
|
+
| JsonValue[];
|
6116
|
+
};
|
6117
|
+
type JsonValue = null | string | number | boolean | JsonObject | JsonValue[];
|
5821
6118
|
declare class JsonpChunkLoadingRuntimeModule extends RuntimeModule {
|
5822
|
-
constructor(runtimeRequirements
|
6119
|
+
constructor(runtimeRequirements: Set<string>);
|
5823
6120
|
static getCompilationHooks(
|
5824
6121
|
compilation: Compilation
|
5825
6122
|
): JsonpCompilationPluginHooks;
|
@@ -5934,6 +6231,23 @@ declare interface KnownBuildMeta {
|
|
5934
6231
|
declare interface KnownCreateStatsOptionsContext {
|
5935
6232
|
forToString?: boolean;
|
5936
6233
|
}
|
6234
|
+
declare interface KnownHooks {
|
6235
|
+
resolveStep: SyncHook<
|
6236
|
+
[
|
6237
|
+
AsyncSeriesBailHook<
|
6238
|
+
[ResolveRequest, ResolveContext],
|
6239
|
+
null | ResolveRequest
|
6240
|
+
>,
|
6241
|
+
ResolveRequest
|
6242
|
+
]
|
6243
|
+
>;
|
6244
|
+
noResolve: SyncHook<[ResolveRequest, Error]>;
|
6245
|
+
resolve: AsyncSeriesBailHook<
|
6246
|
+
[ResolveRequest, ResolveContext],
|
6247
|
+
null | ResolveRequest
|
6248
|
+
>;
|
6249
|
+
result: AsyncSeriesHook<[ResolveRequest, ResolveContext]>;
|
6250
|
+
}
|
5937
6251
|
declare interface KnownNormalizedStatsOptions {
|
5938
6252
|
context: string;
|
5939
6253
|
requestShortener: RequestShortener;
|
@@ -7763,21 +8077,21 @@ type NodeEstreeIndex =
|
|
7763
8077
|
| PropertyDefinition
|
7764
8078
|
| VariableDeclarator
|
7765
8079
|
| Program
|
7766
|
-
|
|
7767
|
-
| Property
|
8080
|
+
| SwitchCase
|
7768
8081
|
| CatchClause
|
7769
|
-
| ClassBody
|
7770
|
-
| ImportSpecifier
|
7771
|
-
| ImportDefaultSpecifier
|
7772
|
-
| ImportNamespaceSpecifier
|
7773
|
-
| ExportSpecifier
|
7774
8082
|
| ObjectPattern
|
7775
8083
|
| ArrayPattern
|
7776
8084
|
| RestElement
|
7777
8085
|
| AssignmentPattern
|
7778
8086
|
| SpreadElement
|
8087
|
+
| Property
|
8088
|
+
| AssignmentProperty
|
8089
|
+
| ClassBody
|
8090
|
+
| ImportSpecifier
|
8091
|
+
| ImportDefaultSpecifier
|
8092
|
+
| ImportNamespaceSpecifier
|
8093
|
+
| ExportSpecifier
|
7779
8094
|
| Super
|
7780
|
-
| SwitchCase
|
7781
8095
|
| TemplateElement;
|
7782
8096
|
|
7783
8097
|
/**
|
@@ -9269,6 +9583,13 @@ declare interface PathData {
|
|
9269
9583
|
noChunkHash?: boolean;
|
9270
9584
|
url?: string;
|
9271
9585
|
}
|
9586
|
+
type Pattern =
|
9587
|
+
| Identifier
|
9588
|
+
| MemberExpression
|
9589
|
+
| ObjectPattern
|
9590
|
+
| ArrayPattern
|
9591
|
+
| RestElement
|
9592
|
+
| AssignmentPattern;
|
9272
9593
|
|
9273
9594
|
/**
|
9274
9595
|
* Configuration object for web performance recommendations.
|
@@ -9322,9 +9643,9 @@ declare interface PossibleFileSystemError {
|
|
9322
9643
|
syscall?: string;
|
9323
9644
|
}
|
9324
9645
|
declare class PrefetchPlugin {
|
9325
|
-
constructor(context
|
9326
|
-
context:
|
9327
|
-
request:
|
9646
|
+
constructor(context: string, request?: string);
|
9647
|
+
context: null | string;
|
9648
|
+
request: string;
|
9328
9649
|
|
9329
9650
|
/**
|
9330
9651
|
* Apply the plugin
|
@@ -9366,14 +9687,18 @@ declare class Profiler {
|
|
9366
9687
|
inspector: any;
|
9367
9688
|
hasSession(): boolean;
|
9368
9689
|
startProfiling(): Promise<void> | Promise<[any, any, any]>;
|
9369
|
-
sendCommand(method
|
9690
|
+
sendCommand(method: string, params?: object): Promise<any>;
|
9370
9691
|
destroy(): Promise<void>;
|
9371
9692
|
stopProfiling(): Promise<{ profile: any }>;
|
9372
9693
|
}
|
9373
9694
|
declare class ProfilingPlugin {
|
9374
9695
|
constructor(options?: ProfilingPluginOptions);
|
9375
9696
|
outputPath: string;
|
9376
|
-
|
9697
|
+
|
9698
|
+
/**
|
9699
|
+
* Apply the plugin
|
9700
|
+
*/
|
9701
|
+
apply(compiler: Compiler): void;
|
9377
9702
|
static Profiler: typeof Profiler;
|
9378
9703
|
}
|
9379
9704
|
declare interface ProfilingPluginOptions {
|
@@ -9581,6 +9906,7 @@ declare interface ReaddirOptions {
|
|
9581
9906
|
| "utf-8"
|
9582
9907
|
| "ucs-2"
|
9583
9908
|
| "base64"
|
9909
|
+
| "base64url"
|
9584
9910
|
| "hex"
|
9585
9911
|
| "buffer";
|
9586
9912
|
withFileTypes?: boolean;
|
@@ -10094,23 +10420,7 @@ declare interface ResolvedContextTimestampAndHash {
|
|
10094
10420
|
declare abstract class Resolver {
|
10095
10421
|
fileSystem: FileSystem;
|
10096
10422
|
options: ResolveOptionsTypes;
|
10097
|
-
hooks:
|
10098
|
-
resolveStep: SyncHook<
|
10099
|
-
[
|
10100
|
-
AsyncSeriesBailHook<
|
10101
|
-
[ResolveRequest, ResolveContext],
|
10102
|
-
null | ResolveRequest
|
10103
|
-
>,
|
10104
|
-
ResolveRequest
|
10105
|
-
]
|
10106
|
-
>;
|
10107
|
-
noResolve: SyncHook<[ResolveRequest, Error]>;
|
10108
|
-
resolve: AsyncSeriesBailHook<
|
10109
|
-
[ResolveRequest, ResolveContext],
|
10110
|
-
null | ResolveRequest
|
10111
|
-
>;
|
10112
|
-
result: AsyncSeriesHook<[ResolveRequest, ResolveContext]>;
|
10113
|
-
};
|
10423
|
+
hooks: KnownHooks;
|
10114
10424
|
ensureHook(
|
10115
10425
|
name:
|
10116
10426
|
| string
|
@@ -10146,18 +10456,21 @@ declare abstract class Resolver {
|
|
10146
10456
|
) => void
|
10147
10457
|
): void;
|
10148
10458
|
doResolve(
|
10149
|
-
hook
|
10150
|
-
|
10151
|
-
|
10152
|
-
|
10153
|
-
|
10154
|
-
|
10459
|
+
hook: AsyncSeriesBailHook<
|
10460
|
+
[ResolveRequest, ResolveContext],
|
10461
|
+
null | ResolveRequest
|
10462
|
+
>,
|
10463
|
+
request: ResolveRequest,
|
10464
|
+
message: null | string,
|
10465
|
+
resolveContext: ResolveContext,
|
10466
|
+
callback: (err?: null | Error, result?: ResolveRequest) => void
|
10467
|
+
): void;
|
10155
10468
|
parse(identifier: string): ParsedIdentifier;
|
10156
|
-
isModule(path
|
10157
|
-
isPrivate(path
|
10469
|
+
isModule(path: string): boolean;
|
10470
|
+
isPrivate(path: string): boolean;
|
10158
10471
|
isDirectory(path: string): boolean;
|
10159
|
-
join(path
|
10160
|
-
normalize(path
|
10472
|
+
join(path: string, request: string): string;
|
10473
|
+
normalize(path: string): string;
|
10161
10474
|
}
|
10162
10475
|
declare interface ResolverCache {
|
10163
10476
|
direct: WeakMap<Object, ResolverWithOptions>;
|
@@ -11077,7 +11390,7 @@ declare interface RuntimeValueOptions {
|
|
11077
11390
|
declare interface ScopeInfo {
|
11078
11391
|
definitions: StackedMap<string, ScopeInfo | VariableInfo>;
|
11079
11392
|
topLevelScope: boolean | "arrow";
|
11080
|
-
inShorthand: boolean;
|
11393
|
+
inShorthand: string | boolean;
|
11081
11394
|
isStrict: boolean;
|
11082
11395
|
isAsmJs: boolean;
|
11083
11396
|
inTry: boolean;
|
@@ -11359,7 +11672,10 @@ declare interface SourceMap {
|
|
11359
11672
|
declare class SourceMapDevToolPlugin {
|
11360
11673
|
constructor(options?: SourceMapDevToolPluginOptions);
|
11361
11674
|
sourceMapFilename: string | false;
|
11362
|
-
sourceMappingURLComment:
|
11675
|
+
sourceMappingURLComment:
|
11676
|
+
| string
|
11677
|
+
| false
|
11678
|
+
| ((arg0: PathData, arg1?: AssetInfo) => string);
|
11363
11679
|
moduleFilenameTemplate: string | Function;
|
11364
11680
|
fallbackModuleFilenameTemplate: string | Function;
|
11365
11681
|
namespace: string;
|
@@ -11374,7 +11690,11 @@ declare interface SourceMapDevToolPluginOptions {
|
|
11374
11690
|
/**
|
11375
11691
|
* Appends the given value to the original asset. Usually the #sourceMappingURL comment. [url] is replaced with a URL to the source map file. false disables the appending.
|
11376
11692
|
*/
|
11377
|
-
append?:
|
11693
|
+
append?:
|
11694
|
+
| null
|
11695
|
+
| string
|
11696
|
+
| false
|
11697
|
+
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
11378
11698
|
|
11379
11699
|
/**
|
11380
11700
|
* Indicates whether column mappings should be used (defaults to true).
|
@@ -12850,7 +13170,7 @@ declare interface WithOptions {
|
|
12850
13170
|
) => ResolverWithOptions;
|
12851
13171
|
}
|
12852
13172
|
declare interface WriteOnlySet<T> {
|
12853
|
-
add: (T
|
13173
|
+
add: (item: T) => void;
|
12854
13174
|
}
|
12855
13175
|
type __TypeWebpackOptions = (data: object) =>
|
12856
13176
|
| string
|
@@ -13318,8 +13638,8 @@ declare namespace exports {
|
|
13318
13638
|
export const NOT_SERIALIZABLE: object;
|
13319
13639
|
export const buffersSerializer: Serializer;
|
13320
13640
|
export let createFileSerializer: (
|
13321
|
-
fs
|
13322
|
-
hashFunction
|
13641
|
+
fs: IntermediateFileSystem,
|
13642
|
+
hashFunction: string | typeof Hash
|
13323
13643
|
) => Serializer;
|
13324
13644
|
export { MEASURE_START_OPERATION, MEASURE_END_OPERATION };
|
13325
13645
|
}
|