webpack 5.73.0 → 5.75.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 +16 -12
- package/hot/dev-server.js +17 -4
- package/lib/BannerPlugin.js +1 -1
- package/lib/Compilation.js +4 -1
- package/lib/EvalSourceMapDevToolPlugin.js +7 -3
- package/lib/FileSystemInfo.js +35 -14
- package/lib/NodeStuffPlugin.js +2 -2
- package/lib/Template.js +1 -1
- package/lib/WebpackOptionsApply.js +22 -0
- package/lib/buildChunkGraph.js +2 -1
- package/lib/config/defaults.js +2 -2
- package/lib/config/normalization.js +2 -3
- package/lib/container/ModuleFederationPlugin.js +2 -0
- package/lib/css/CssLoadingRuntimeModule.js +9 -7
- package/lib/css/CssParser.js +1 -1
- package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +1 -1
- package/lib/dependencies/ProvidedDependency.js +31 -8
- package/lib/dependencies/WorkerPlugin.js +2 -0
- package/lib/ids/IdHelpers.js +1 -1
- package/lib/index.js +6 -0
- package/lib/javascript/JavascriptParser.js +7 -2
- package/lib/optimize/ConcatenatedModule.js +40 -17
- package/lib/runtime/AsyncModuleRuntimeModule.js +0 -2
- package/lib/runtime/LoadScriptRuntimeModule.js +11 -9
- package/lib/stats/DefaultStatsPrinterPlugin.js +1 -1
- package/lib/wasm-sync/WebAssemblyParser.js +1 -1
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +11 -9
- package/package.json +8 -7
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +31 -2
- package/types.d.ts +196 -126
@@ -897,7 +897,10 @@
|
|
897
897
|
},
|
898
898
|
"css": {
|
899
899
|
"description": "Enable css support.",
|
900
|
-
"
|
900
|
+
"anyOf": [
|
901
|
+
{
|
902
|
+
"enum": [false]
|
903
|
+
},
|
901
904
|
{
|
902
905
|
"$ref": "#/definitions/CssExperimentOptions"
|
903
906
|
}
|
@@ -913,7 +916,10 @@
|
|
913
916
|
},
|
914
917
|
"lazyCompilation": {
|
915
918
|
"description": "Compile entrypoints and import()s only when they are accessed.",
|
916
|
-
"
|
919
|
+
"anyOf": [
|
920
|
+
{
|
921
|
+
"enum": [false]
|
922
|
+
},
|
917
923
|
{
|
918
924
|
"$ref": "#/definitions/LazyCompilationOptions"
|
919
925
|
}
|
@@ -3737,6 +3743,29 @@
|
|
3737
3743
|
"type": "string"
|
3738
3744
|
}
|
3739
3745
|
},
|
3746
|
+
"extensionAlias": {
|
3747
|
+
"description": "An object which maps extension to extension aliases.",
|
3748
|
+
"type": "object",
|
3749
|
+
"additionalProperties": {
|
3750
|
+
"description": "Extension alias.",
|
3751
|
+
"anyOf": [
|
3752
|
+
{
|
3753
|
+
"description": "Multiple extensions.",
|
3754
|
+
"type": "array",
|
3755
|
+
"items": {
|
3756
|
+
"description": "Aliased extension.",
|
3757
|
+
"type": "string",
|
3758
|
+
"minLength": 1
|
3759
|
+
}
|
3760
|
+
},
|
3761
|
+
{
|
3762
|
+
"description": "Aliased extension.",
|
3763
|
+
"type": "string",
|
3764
|
+
"minLength": 1
|
3765
|
+
}
|
3766
|
+
]
|
3767
|
+
}
|
3768
|
+
},
|
3740
3769
|
"extensions": {
|
3741
3770
|
"description": "Extensions added to the request when trying to find the file.",
|
3742
3771
|
"type": "array",
|
package/types.d.ts
CHANGED
@@ -731,12 +731,12 @@ declare class Chunk {
|
|
731
731
|
renderedHash?: string;
|
732
732
|
chunkReason?: string;
|
733
733
|
extraAsync: boolean;
|
734
|
-
|
734
|
+
get entryModule(): Module;
|
735
735
|
hasEntryModule(): boolean;
|
736
736
|
addModule(module: Module): boolean;
|
737
737
|
removeModule(module: Module): void;
|
738
738
|
getNumberOfModules(): number;
|
739
|
-
|
739
|
+
get modulesIterable(): Iterable<Module>;
|
740
740
|
compareTo(otherChunk: Chunk): 0 | 1 | -1;
|
741
741
|
containsModule(module: Module): boolean;
|
742
742
|
getModules(): Module[];
|
@@ -762,7 +762,7 @@ declare class Chunk {
|
|
762
762
|
removeGroup(chunkGroup: ChunkGroup): void;
|
763
763
|
isInGroup(chunkGroup: ChunkGroup): boolean;
|
764
764
|
getNumberOfGroups(): number;
|
765
|
-
|
765
|
+
get groupsIterable(): Iterable<ChunkGroup>;
|
766
766
|
disconnectFromGroups(): void;
|
767
767
|
split(newChunk: Chunk): void;
|
768
768
|
updateHash(hash: Hash, chunkGraph: ChunkGraph): void;
|
@@ -982,12 +982,12 @@ declare abstract class ChunkGroup {
|
|
982
982
|
/**
|
983
983
|
* get a uniqueId for ChunkGroup, made up of its member Chunk debugId's
|
984
984
|
*/
|
985
|
-
|
985
|
+
get debugId(): string;
|
986
986
|
|
987
987
|
/**
|
988
988
|
* get a unique id for ChunkGroup, made up of its member Chunk id's
|
989
989
|
*/
|
990
|
-
|
990
|
+
get id(): string;
|
991
991
|
|
992
992
|
/**
|
993
993
|
* Performs an unshift of a specific chunk
|
@@ -1009,20 +1009,20 @@ declare abstract class ChunkGroup {
|
|
1009
1009
|
addChild(group: ChunkGroup): boolean;
|
1010
1010
|
getChildren(): ChunkGroup[];
|
1011
1011
|
getNumberOfChildren(): number;
|
1012
|
-
|
1012
|
+
get childrenIterable(): SortableSet<ChunkGroup>;
|
1013
1013
|
removeChild(group: ChunkGroup): boolean;
|
1014
1014
|
addParent(parentChunk: ChunkGroup): boolean;
|
1015
1015
|
getParents(): ChunkGroup[];
|
1016
1016
|
getNumberOfParents(): number;
|
1017
1017
|
hasParent(parent: ChunkGroup): boolean;
|
1018
|
-
|
1018
|
+
get parentsIterable(): SortableSet<ChunkGroup>;
|
1019
1019
|
removeParent(chunkGroup: ChunkGroup): boolean;
|
1020
1020
|
addAsyncEntrypoint(entrypoint: Entrypoint): boolean;
|
1021
|
-
|
1021
|
+
get asyncEntrypointsIterable(): SortableSet<ChunkGroup>;
|
1022
1022
|
getBlocks(): any[];
|
1023
1023
|
getNumberOfBlocks(): number;
|
1024
1024
|
hasBlock(block?: any): boolean;
|
1025
|
-
|
1025
|
+
get blocksIterable(): Iterable<AsyncDependenciesBlock>;
|
1026
1026
|
addBlock(block: AsyncDependenciesBlock): boolean;
|
1027
1027
|
addOrigin(module: Module, loc: DependencyLocation, request: string): void;
|
1028
1028
|
getFiles(): string[];
|
@@ -1175,7 +1175,7 @@ declare abstract class ChunkTemplate {
|
|
1175
1175
|
hash: { tap: (options?: any, fn?: any) => void };
|
1176
1176
|
hashForChunk: { tap: (options?: any, fn?: any) => void };
|
1177
1177
|
}>;
|
1178
|
-
|
1178
|
+
get outputOptions(): Output;
|
1179
1179
|
}
|
1180
1180
|
|
1181
1181
|
/**
|
@@ -1492,7 +1492,7 @@ declare class Compilation {
|
|
1492
1492
|
>;
|
1493
1493
|
statsFactory: SyncHook<[StatsFactory, NormalizedStatsOptions]>;
|
1494
1494
|
statsPrinter: SyncHook<[StatsPrinter, NormalizedStatsOptions]>;
|
1495
|
-
|
1495
|
+
get normalModuleLoader(): SyncHook<[object, NormalModule]>;
|
1496
1496
|
}>;
|
1497
1497
|
name?: string;
|
1498
1498
|
startTime: any;
|
@@ -2653,8 +2653,8 @@ declare class Dependency {
|
|
2653
2653
|
constructor();
|
2654
2654
|
weak: boolean;
|
2655
2655
|
optional: boolean;
|
2656
|
-
|
2657
|
-
|
2656
|
+
get type(): string;
|
2657
|
+
get category(): string;
|
2658
2658
|
loc: DependencyLocation;
|
2659
2659
|
setLoc(
|
2660
2660
|
startLine?: any,
|
@@ -2716,7 +2716,7 @@ declare class Dependency {
|
|
2716
2716
|
serialize(__0: { write: any }): void;
|
2717
2717
|
deserialize(__0: { read: any }): void;
|
2718
2718
|
module: any;
|
2719
|
-
|
2719
|
+
get disconnect(): any;
|
2720
2720
|
static NO_EXPORTS_REFERENCED: string[][];
|
2721
2721
|
static EXPORTS_OBJECT_REFERENCED: string[][];
|
2722
2722
|
static TRANSITIVE: typeof TRANSITIVE;
|
@@ -3133,6 +3133,17 @@ declare class EnableLibraryPlugin {
|
|
3133
3133
|
static setEnabled(compiler: Compiler, type: string): void;
|
3134
3134
|
static checkEnabled(compiler: Compiler, type: string): void;
|
3135
3135
|
}
|
3136
|
+
declare class EnableWasmLoadingPlugin {
|
3137
|
+
constructor(type: string);
|
3138
|
+
type: string;
|
3139
|
+
|
3140
|
+
/**
|
3141
|
+
* Apply the plugin
|
3142
|
+
*/
|
3143
|
+
apply(compiler: Compiler): void;
|
3144
|
+
static setEnabled(compiler: Compiler, type: string): void;
|
3145
|
+
static checkEnabled(compiler: Compiler, type: string): void;
|
3146
|
+
}
|
3136
3147
|
type Entry =
|
3137
3148
|
| string
|
3138
3149
|
| (() => string | EntryObject | string[] | Promise<EntryStatic>)
|
@@ -3543,12 +3554,12 @@ declare interface ExperimentsNormalizedExtra {
|
|
3543
3554
|
/**
|
3544
3555
|
* Enable css support.
|
3545
3556
|
*/
|
3546
|
-
css?: CssExperimentOptions;
|
3557
|
+
css?: false | CssExperimentOptions;
|
3547
3558
|
|
3548
3559
|
/**
|
3549
3560
|
* Compile entrypoints and import()s only when they are accessed.
|
3550
3561
|
*/
|
3551
|
-
lazyCompilation?: LazyCompilationOptions;
|
3562
|
+
lazyCompilation?: false | LazyCompilationOptions;
|
3552
3563
|
}
|
3553
3564
|
declare abstract class ExportInfo {
|
3554
3565
|
name: string;
|
@@ -3581,7 +3592,7 @@ declare abstract class ExportInfo {
|
|
3581
3592
|
canMangleUse?: boolean;
|
3582
3593
|
exportsInfoOwned: boolean;
|
3583
3594
|
exportsInfo?: ExportsInfo;
|
3584
|
-
|
3595
|
+
get canMangle(): boolean;
|
3585
3596
|
setUsedInUnknownWay(runtime: RuntimeSpec): boolean;
|
3586
3597
|
setUsedWithoutInfo(runtime: RuntimeSpec): boolean;
|
3587
3598
|
setHasUseInfo(): void;
|
@@ -3702,11 +3713,11 @@ declare interface ExportSpec {
|
|
3702
3713
|
}
|
3703
3714
|
type ExportedVariableInfo = string | ScopeInfo | VariableInfo;
|
3704
3715
|
declare abstract class ExportsInfo {
|
3705
|
-
|
3706
|
-
|
3707
|
-
|
3708
|
-
|
3709
|
-
|
3716
|
+
get ownedExports(): Iterable<ExportInfo>;
|
3717
|
+
get orderedOwnedExports(): Iterable<ExportInfo>;
|
3718
|
+
get exports(): Iterable<ExportInfo>;
|
3719
|
+
get orderedExports(): Iterable<ExportInfo>;
|
3720
|
+
get otherExportsInfo(): ExportInfo;
|
3710
3721
|
setRedirectNamedTo(exportsInfo?: any): boolean;
|
3711
3722
|
setHasProvideInfo(): void;
|
3712
3723
|
setHasUseInfo(): void;
|
@@ -3847,6 +3858,13 @@ declare interface ExpressionExpressionInfo {
|
|
3847
3858
|
getMembers: () => string[];
|
3848
3859
|
getMembersOptionals: () => boolean[];
|
3849
3860
|
}
|
3861
|
+
declare interface ExtensionAliasOption {
|
3862
|
+
alias: string | string[];
|
3863
|
+
extension: string;
|
3864
|
+
}
|
3865
|
+
declare interface ExtensionAliasOptions {
|
3866
|
+
[index: string]: string | string[];
|
3867
|
+
}
|
3850
3868
|
type ExternalItem =
|
3851
3869
|
| string
|
3852
3870
|
| RegExp
|
@@ -4502,16 +4520,52 @@ declare interface HandleModuleCreationOptions {
|
|
4502
4520
|
*/
|
4503
4521
|
connectOrigin?: boolean;
|
4504
4522
|
}
|
4523
|
+
declare class HarmonyImportDependency extends ModuleDependency {
|
4524
|
+
constructor(
|
4525
|
+
request: string,
|
4526
|
+
sourceOrder: number,
|
4527
|
+
assertions?: Record<string, any>
|
4528
|
+
);
|
4529
|
+
sourceOrder: number;
|
4530
|
+
getImportVar(moduleGraph: ModuleGraph): string;
|
4531
|
+
getImportStatement(
|
4532
|
+
update: boolean,
|
4533
|
+
__1: DependencyTemplateContext
|
4534
|
+
): [string, string];
|
4535
|
+
getLinkingErrors(
|
4536
|
+
moduleGraph: ModuleGraph,
|
4537
|
+
ids: string[],
|
4538
|
+
additionalMessage: string
|
4539
|
+
): undefined | WebpackError[];
|
4540
|
+
static Template: typeof HarmonyImportDependencyTemplate;
|
4541
|
+
static ExportPresenceModes: {
|
4542
|
+
NONE: 0;
|
4543
|
+
WARN: 1;
|
4544
|
+
AUTO: 2;
|
4545
|
+
ERROR: 3;
|
4546
|
+
fromUserOption(str?: any): 0 | 1 | 2 | 3;
|
4547
|
+
};
|
4548
|
+
static NO_EXPORTS_REFERENCED: string[][];
|
4549
|
+
static EXPORTS_OBJECT_REFERENCED: string[][];
|
4550
|
+
static TRANSITIVE: typeof TRANSITIVE;
|
4551
|
+
}
|
4552
|
+
declare class HarmonyImportDependencyTemplate extends DependencyTemplate {
|
4553
|
+
constructor();
|
4554
|
+
static getImportEmittedRuntime(
|
4555
|
+
module: Module,
|
4556
|
+
referencedModule: Module
|
4557
|
+
): undefined | string | boolean | SortableSet<string>;
|
4558
|
+
}
|
4505
4559
|
declare class Hash {
|
4506
4560
|
constructor();
|
4507
4561
|
|
4508
4562
|
/**
|
4509
|
-
* Update hash {@link https
|
4563
|
+
* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
|
4510
4564
|
*/
|
4511
4565
|
update(data: string | Buffer, inputEncoding?: string): Hash;
|
4512
4566
|
|
4513
4567
|
/**
|
4514
|
-
* Calculates the digest {@link https
|
4568
|
+
* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
|
4515
4569
|
*/
|
4516
4570
|
digest(encoding?: string): string | Buffer;
|
4517
4571
|
}
|
@@ -6114,7 +6168,7 @@ declare interface LazyCompilationOptions {
|
|
6114
6168
|
}
|
6115
6169
|
declare class LazySet<T> {
|
6116
6170
|
constructor(iterable?: Iterable<T>);
|
6117
|
-
|
6171
|
+
get size(): number;
|
6118
6172
|
add(item: T): LazySet<T>;
|
6119
6173
|
addAll(iterable: LazySet<T> | Iterable<T>): LazySet<T>;
|
6120
6174
|
clear(): void;
|
@@ -6626,9 +6680,9 @@ declare abstract class MainTemplate {
|
|
6626
6680
|
localVars: SyncWaterfallHook<[string, Chunk, string]>;
|
6627
6681
|
requireExtensions: SyncWaterfallHook<[string, Chunk, string]>;
|
6628
6682
|
requireEnsure: SyncWaterfallHook<[string, Chunk, string, string]>;
|
6629
|
-
|
6630
|
-
|
6631
|
-
|
6683
|
+
get jsonpScript(): SyncWaterfallHook<[string, Chunk]>;
|
6684
|
+
get linkPrefetch(): SyncWaterfallHook<[string, Chunk]>;
|
6685
|
+
get linkPreload(): SyncWaterfallHook<[string, Chunk]>;
|
6632
6686
|
}>;
|
6633
6687
|
renderCurrentHashCode: (hash: string, length?: number) => string;
|
6634
6688
|
getPublicPath: (options: object) => string;
|
@@ -6637,8 +6691,8 @@ declare abstract class MainTemplate {
|
|
6637
6691
|
path?: any,
|
6638
6692
|
options?: any
|
6639
6693
|
) => { path: string; info: AssetInfo };
|
6640
|
-
|
6641
|
-
|
6694
|
+
get requireFn(): "__webpack_require__";
|
6695
|
+
get outputOptions(): Output;
|
6642
6696
|
}
|
6643
6697
|
declare interface MapOptions {
|
6644
6698
|
columns?: boolean;
|
@@ -6713,29 +6767,29 @@ declare class Module extends DependenciesBlock {
|
|
6713
6767
|
presentationalDependencies?: Dependency[];
|
6714
6768
|
codeGenerationDependencies?: Dependency[];
|
6715
6769
|
id: string | number;
|
6716
|
-
|
6717
|
-
|
6770
|
+
get hash(): string;
|
6771
|
+
get renderedHash(): string;
|
6718
6772
|
profile: null | ModuleProfile;
|
6719
6773
|
index: number;
|
6720
6774
|
index2: number;
|
6721
6775
|
depth: number;
|
6722
6776
|
issuer: null | Module;
|
6723
|
-
|
6724
|
-
|
6777
|
+
get usedExports(): null | boolean | SortableSet<string>;
|
6778
|
+
get optimizationBailout(): (
|
6725
6779
|
| string
|
6726
6780
|
| ((requestShortener: RequestShortener) => string)
|
6727
6781
|
)[];
|
6728
|
-
|
6782
|
+
get optional(): boolean;
|
6729
6783
|
addChunk(chunk?: any): boolean;
|
6730
6784
|
removeChunk(chunk?: any): void;
|
6731
6785
|
isInChunk(chunk?: any): boolean;
|
6732
6786
|
isEntryModule(): boolean;
|
6733
6787
|
getChunks(): Chunk[];
|
6734
6788
|
getNumberOfChunks(): number;
|
6735
|
-
|
6789
|
+
get chunksIterable(): Iterable<Chunk>;
|
6736
6790
|
isProvided(exportName: string): null | boolean;
|
6737
|
-
|
6738
|
-
|
6791
|
+
get exportsArgument(): string;
|
6792
|
+
get moduleArgument(): string;
|
6739
6793
|
getExportsType(
|
6740
6794
|
moduleGraph: ModuleGraph,
|
6741
6795
|
strict: boolean
|
@@ -6829,10 +6883,10 @@ declare class Module extends DependenciesBlock {
|
|
6829
6883
|
missingDependencies: LazySet<string>,
|
6830
6884
|
buildDependencies: LazySet<string>
|
6831
6885
|
): void;
|
6832
|
-
|
6833
|
-
|
6834
|
-
|
6835
|
-
|
6886
|
+
get hasEqualsChunks(): any;
|
6887
|
+
get isUsed(): any;
|
6888
|
+
get errors(): any;
|
6889
|
+
get warnings(): any;
|
6836
6890
|
used: any;
|
6837
6891
|
}
|
6838
6892
|
declare class ModuleConcatenationPlugin {
|
@@ -7101,7 +7155,7 @@ declare class ModuleGraphConnection {
|
|
7101
7155
|
) => ConnectionState
|
7102
7156
|
): void;
|
7103
7157
|
addExplanation(explanation: string): void;
|
7104
|
-
|
7158
|
+
get explanation(): string;
|
7105
7159
|
active: void;
|
7106
7160
|
isActive(runtime: RuntimeSpec): boolean;
|
7107
7161
|
isTargetActive(runtime: RuntimeSpec): boolean;
|
@@ -7358,7 +7412,7 @@ declare abstract class ModuleTemplate {
|
|
7358
7412
|
package: { tap: (options?: any, fn?: any) => void };
|
7359
7413
|
hash: { tap: (options?: any, fn?: any) => void };
|
7360
7414
|
}>;
|
7361
|
-
|
7415
|
+
get runtimeTemplate(): any;
|
7362
7416
|
}
|
7363
7417
|
declare class MultiCompiler {
|
7364
7418
|
constructor(
|
@@ -7376,8 +7430,8 @@ declare class MultiCompiler {
|
|
7376
7430
|
compilers: Compiler[];
|
7377
7431
|
dependencies: WeakMap<Compiler, string[]>;
|
7378
7432
|
running: boolean;
|
7379
|
-
|
7380
|
-
|
7433
|
+
get options(): WebpackOptionsNormalized[] & MultiCompilerOptions;
|
7434
|
+
get outputPath(): string;
|
7381
7435
|
inputFileSystem: InputFileSystem;
|
7382
7436
|
outputFileSystem: OutputFileSystem;
|
7383
7437
|
watchFileSystem: WatchFileSystem;
|
@@ -7406,7 +7460,7 @@ declare interface MultiCompilerOptions {
|
|
7406
7460
|
}
|
7407
7461
|
declare abstract class MultiStats {
|
7408
7462
|
stats: Stats[];
|
7409
|
-
|
7463
|
+
get hash(): string;
|
7410
7464
|
hasErrors(): boolean;
|
7411
7465
|
hasWarnings(): boolean;
|
7412
7466
|
toJson(options?: any): StatsCompilation;
|
@@ -9574,6 +9628,7 @@ declare interface ResolveOptionsTypes {
|
|
9574
9628
|
alias: AliasOption[];
|
9575
9629
|
fallback: AliasOption[];
|
9576
9630
|
aliasFields: Set<string | string[]>;
|
9631
|
+
extensionAlias: ExtensionAliasOption[];
|
9577
9632
|
cachePredicate: (arg0: ResolveRequest) => boolean;
|
9578
9633
|
cacheWithContext: boolean;
|
9579
9634
|
|
@@ -9672,6 +9727,11 @@ declare interface ResolveOptionsWebpackOptions {
|
|
9672
9727
|
*/
|
9673
9728
|
exportsFields?: string[];
|
9674
9729
|
|
9730
|
+
/**
|
9731
|
+
* An object which maps extension to extension aliases.
|
9732
|
+
*/
|
9733
|
+
extensionAlias?: { [index: string]: string | string[] };
|
9734
|
+
|
9675
9735
|
/**
|
9676
9736
|
* Extensions added to the request when trying to find the file.
|
9677
9737
|
*/
|
@@ -10329,13 +10389,13 @@ declare class RuntimeSpecMap<T> {
|
|
10329
10389
|
update(runtime?: any, fn?: any): void;
|
10330
10390
|
keys(): RuntimeSpec[];
|
10331
10391
|
values(): IterableIterator<T>;
|
10332
|
-
|
10392
|
+
get size(): number;
|
10333
10393
|
}
|
10334
10394
|
declare class RuntimeSpecSet {
|
10335
10395
|
constructor(iterable?: any);
|
10336
10396
|
add(runtime?: any): void;
|
10337
10397
|
has(runtime?: any): boolean;
|
10338
|
-
|
10398
|
+
get size(): number;
|
10339
10399
|
[Symbol.iterator](): IterableIterator<RuntimeSpec>;
|
10340
10400
|
}
|
10341
10401
|
declare abstract class RuntimeTemplate {
|
@@ -10760,7 +10820,7 @@ declare abstract class RuntimeValue {
|
|
10760
10820
|
readonly version?: string;
|
10761
10821
|
}) => CodeValuePrimitive;
|
10762
10822
|
options: true | RuntimeValueOptions;
|
10763
|
-
|
10823
|
+
get fileDependencies(): true | string[];
|
10764
10824
|
exec(
|
10765
10825
|
parser: JavascriptParser,
|
10766
10826
|
valueCacheVersions: Map<string, string | Set<string>>,
|
@@ -11213,7 +11273,7 @@ declare abstract class StackedMap<K, V> {
|
|
11213
11273
|
asSet(): Set<K>;
|
11214
11274
|
asPairArray(): [K, Cell<V>][];
|
11215
11275
|
asMap(): Map<K, Cell<V>>;
|
11216
|
-
|
11276
|
+
get size(): number;
|
11217
11277
|
createChild(): StackedMap<K, V>;
|
11218
11278
|
}
|
11219
11279
|
type StartupRenderContext = RenderContext & { inlined: boolean };
|
@@ -11243,9 +11303,9 @@ type Statement =
|
|
11243
11303
|
declare class Stats {
|
11244
11304
|
constructor(compilation: Compilation);
|
11245
11305
|
compilation: Compilation;
|
11246
|
-
|
11247
|
-
|
11248
|
-
|
11306
|
+
get hash(): string;
|
11307
|
+
get startTime(): any;
|
11308
|
+
get endTime(): any;
|
11249
11309
|
hasWarnings(): boolean;
|
11250
11310
|
hasErrors(): boolean;
|
11251
11311
|
toJson(options?: string | StatsOptions): StatsCompilation;
|
@@ -11786,7 +11846,7 @@ declare class SyncModuleIdsPlugin {
|
|
11786
11846
|
/**
|
11787
11847
|
* operation mode (defaults to merge)
|
11788
11848
|
*/
|
11789
|
-
mode?: "read" | "
|
11849
|
+
mode?: "read" | "merge" | "create" | "update";
|
11790
11850
|
});
|
11791
11851
|
|
11792
11852
|
/**
|
@@ -11884,6 +11944,11 @@ declare interface UserResolveOptions {
|
|
11884
11944
|
*/
|
11885
11945
|
fallback?: AliasOption[] | AliasOptions;
|
11886
11946
|
|
11947
|
+
/**
|
11948
|
+
* An object which maps extension to extension aliases
|
11949
|
+
*/
|
11950
|
+
extensionAlias?: ExtensionAliasOptions;
|
11951
|
+
|
11887
11952
|
/**
|
11888
11953
|
* A list of alias fields in description files
|
11889
11954
|
*/
|
@@ -12632,75 +12697,75 @@ declare namespace exports {
|
|
12632
12697
|
export let matchObject: (obj?: any, str?: any) => boolean;
|
12633
12698
|
}
|
12634
12699
|
export namespace RuntimeGlobals {
|
12635
|
-
export let require:
|
12636
|
-
export let requireScope:
|
12637
|
-
export let exports:
|
12638
|
-
export let thisAsExports:
|
12639
|
-
export let returnExportsFromRuntime:
|
12640
|
-
export let module:
|
12641
|
-
export let moduleId:
|
12642
|
-
export let moduleLoaded:
|
12643
|
-
export let publicPath:
|
12644
|
-
export let entryModuleId:
|
12645
|
-
export let moduleCache:
|
12646
|
-
export let moduleFactories:
|
12647
|
-
export let moduleFactoriesAddOnly:
|
12648
|
-
export let ensureChunk:
|
12649
|
-
export let ensureChunkHandlers:
|
12650
|
-
export let ensureChunkIncludeEntries:
|
12651
|
-
export let prefetchChunk:
|
12652
|
-
export let prefetchChunkHandlers:
|
12653
|
-
export let preloadChunk:
|
12654
|
-
export let preloadChunkHandlers:
|
12655
|
-
export let definePropertyGetters:
|
12656
|
-
export let makeNamespaceObject:
|
12657
|
-
export let createFakeNamespaceObject:
|
12658
|
-
export let compatGetDefaultExport:
|
12659
|
-
export let harmonyModuleDecorator:
|
12660
|
-
export let nodeModuleDecorator:
|
12661
|
-
export let getFullHash:
|
12662
|
-
export let wasmInstances:
|
12663
|
-
export let instantiateWasm:
|
12664
|
-
export let uncaughtErrorHandler:
|
12665
|
-
export let scriptNonce:
|
12666
|
-
export let loadScript:
|
12667
|
-
export let createScript:
|
12668
|
-
export let createScriptUrl:
|
12669
|
-
export let getTrustedTypesPolicy:
|
12670
|
-
export let chunkName:
|
12671
|
-
export let runtimeId:
|
12672
|
-
export let getChunkScriptFilename:
|
12673
|
-
export let getChunkCssFilename:
|
12674
|
-
export let hasCssModules:
|
12675
|
-
export let getChunkUpdateScriptFilename:
|
12676
|
-
export let getChunkUpdateCssFilename:
|
12677
|
-
export let startup:
|
12678
|
-
export let startupNoDefault:
|
12679
|
-
export let startupOnlyAfter:
|
12680
|
-
export let startupOnlyBefore:
|
12681
|
-
export let chunkCallback:
|
12682
|
-
export let startupEntrypoint:
|
12683
|
-
export let onChunksLoaded:
|
12684
|
-
export let externalInstallChunk:
|
12685
|
-
export let interceptModuleExecution:
|
12686
|
-
export let global:
|
12687
|
-
export let shareScopeMap:
|
12688
|
-
export let initializeSharing:
|
12689
|
-
export let currentRemoteGetScope:
|
12690
|
-
export let getUpdateManifestFilename:
|
12691
|
-
export let hmrDownloadManifest:
|
12692
|
-
export let hmrDownloadUpdateHandlers:
|
12693
|
-
export let hmrModuleData:
|
12694
|
-
export let hmrInvalidateModuleHandlers:
|
12695
|
-
export let hmrRuntimeStatePrefix:
|
12696
|
-
export let amdDefine:
|
12697
|
-
export let amdOptions:
|
12698
|
-
export let system:
|
12699
|
-
export let hasOwnProperty:
|
12700
|
-
export let systemContext:
|
12701
|
-
export let baseURI:
|
12702
|
-
export let relativeUrl:
|
12703
|
-
export let asyncModule:
|
12700
|
+
export let require: "__webpack_require__";
|
12701
|
+
export let requireScope: "__webpack_require__.*";
|
12702
|
+
export let exports: "__webpack_exports__";
|
12703
|
+
export let thisAsExports: "top-level-this-exports";
|
12704
|
+
export let returnExportsFromRuntime: "return-exports-from-runtime";
|
12705
|
+
export let module: "module";
|
12706
|
+
export let moduleId: "module.id";
|
12707
|
+
export let moduleLoaded: "module.loaded";
|
12708
|
+
export let publicPath: "__webpack_require__.p";
|
12709
|
+
export let entryModuleId: "__webpack_require__.s";
|
12710
|
+
export let moduleCache: "__webpack_require__.c";
|
12711
|
+
export let moduleFactories: "__webpack_require__.m";
|
12712
|
+
export let moduleFactoriesAddOnly: "__webpack_require__.m (add only)";
|
12713
|
+
export let ensureChunk: "__webpack_require__.e";
|
12714
|
+
export let ensureChunkHandlers: "__webpack_require__.f";
|
12715
|
+
export let ensureChunkIncludeEntries: "__webpack_require__.f (include entries)";
|
12716
|
+
export let prefetchChunk: "__webpack_require__.E";
|
12717
|
+
export let prefetchChunkHandlers: "__webpack_require__.F";
|
12718
|
+
export let preloadChunk: "__webpack_require__.G";
|
12719
|
+
export let preloadChunkHandlers: "__webpack_require__.H";
|
12720
|
+
export let definePropertyGetters: "__webpack_require__.d";
|
12721
|
+
export let makeNamespaceObject: "__webpack_require__.r";
|
12722
|
+
export let createFakeNamespaceObject: "__webpack_require__.t";
|
12723
|
+
export let compatGetDefaultExport: "__webpack_require__.n";
|
12724
|
+
export let harmonyModuleDecorator: "__webpack_require__.hmd";
|
12725
|
+
export let nodeModuleDecorator: "__webpack_require__.nmd";
|
12726
|
+
export let getFullHash: "__webpack_require__.h";
|
12727
|
+
export let wasmInstances: "__webpack_require__.w";
|
12728
|
+
export let instantiateWasm: "__webpack_require__.v";
|
12729
|
+
export let uncaughtErrorHandler: "__webpack_require__.oe";
|
12730
|
+
export let scriptNonce: "__webpack_require__.nc";
|
12731
|
+
export let loadScript: "__webpack_require__.l";
|
12732
|
+
export let createScript: "__webpack_require__.ts";
|
12733
|
+
export let createScriptUrl: "__webpack_require__.tu";
|
12734
|
+
export let getTrustedTypesPolicy: "__webpack_require__.tt";
|
12735
|
+
export let chunkName: "__webpack_require__.cn";
|
12736
|
+
export let runtimeId: "__webpack_require__.j";
|
12737
|
+
export let getChunkScriptFilename: "__webpack_require__.u";
|
12738
|
+
export let getChunkCssFilename: "__webpack_require__.k";
|
12739
|
+
export let hasCssModules: "has css modules";
|
12740
|
+
export let getChunkUpdateScriptFilename: "__webpack_require__.hu";
|
12741
|
+
export let getChunkUpdateCssFilename: "__webpack_require__.hk";
|
12742
|
+
export let startup: "__webpack_require__.x";
|
12743
|
+
export let startupNoDefault: "__webpack_require__.x (no default handler)";
|
12744
|
+
export let startupOnlyAfter: "__webpack_require__.x (only after)";
|
12745
|
+
export let startupOnlyBefore: "__webpack_require__.x (only before)";
|
12746
|
+
export let chunkCallback: "webpackChunk";
|
12747
|
+
export let startupEntrypoint: "__webpack_require__.X";
|
12748
|
+
export let onChunksLoaded: "__webpack_require__.O";
|
12749
|
+
export let externalInstallChunk: "__webpack_require__.C";
|
12750
|
+
export let interceptModuleExecution: "__webpack_require__.i";
|
12751
|
+
export let global: "__webpack_require__.g";
|
12752
|
+
export let shareScopeMap: "__webpack_require__.S";
|
12753
|
+
export let initializeSharing: "__webpack_require__.I";
|
12754
|
+
export let currentRemoteGetScope: "__webpack_require__.R";
|
12755
|
+
export let getUpdateManifestFilename: "__webpack_require__.hmrF";
|
12756
|
+
export let hmrDownloadManifest: "__webpack_require__.hmrM";
|
12757
|
+
export let hmrDownloadUpdateHandlers: "__webpack_require__.hmrC";
|
12758
|
+
export let hmrModuleData: "__webpack_require__.hmrD";
|
12759
|
+
export let hmrInvalidateModuleHandlers: "__webpack_require__.hmrI";
|
12760
|
+
export let hmrRuntimeStatePrefix: "__webpack_require__.hmrS";
|
12761
|
+
export let amdDefine: "__webpack_require__.amdD";
|
12762
|
+
export let amdOptions: "__webpack_require__.amdO";
|
12763
|
+
export let system: "__webpack_require__.System";
|
12764
|
+
export let hasOwnProperty: "__webpack_require__.o";
|
12765
|
+
export let systemContext: "__webpack_require__.y";
|
12766
|
+
export let baseURI: "__webpack_require__.b";
|
12767
|
+
export let relativeUrl: "__webpack_require__.U";
|
12768
|
+
export let asyncModule: "__webpack_require__.a";
|
12704
12769
|
}
|
12705
12770
|
export const UsageState: Readonly<{
|
12706
12771
|
Unused: 0;
|
@@ -12721,7 +12786,12 @@ declare namespace exports {
|
|
12721
12786
|
) => void;
|
12722
12787
|
}
|
12723
12788
|
export namespace dependencies {
|
12724
|
-
export {
|
12789
|
+
export {
|
12790
|
+
ModuleDependency,
|
12791
|
+
HarmonyImportDependency,
|
12792
|
+
ConstDependency,
|
12793
|
+
NullDependency
|
12794
|
+
};
|
12725
12795
|
}
|
12726
12796
|
export namespace ids {
|
12727
12797
|
export {
|
@@ -12832,7 +12902,7 @@ declare namespace exports {
|
|
12832
12902
|
export { ElectronTargetPlugin };
|
12833
12903
|
}
|
12834
12904
|
export namespace wasm {
|
12835
|
-
export { AsyncWebAssemblyModulesPlugin };
|
12905
|
+
export { AsyncWebAssemblyModulesPlugin, EnableWasmLoadingPlugin };
|
12836
12906
|
}
|
12837
12907
|
export namespace library {
|
12838
12908
|
export { AbstractLibraryPlugin, EnableLibraryPlugin };
|