webpack 5.80.0 → 5.82.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/bin/webpack.js +13 -2
- package/lib/AsyncDependenciesBlock.js +8 -0
- package/lib/CodeGenerationResults.js +2 -2
- package/lib/Compilation.js +4 -2
- package/lib/ContextModule.js +8 -0
- package/lib/CssModule.js +169 -0
- package/lib/DefinePlugin.js +81 -44
- package/lib/DelegatedModule.js +5 -0
- package/lib/DependenciesBlock.js +8 -0
- package/lib/Dependency.js +8 -0
- package/lib/DllModule.js +8 -0
- package/lib/ExportsInfo.js +3 -0
- package/lib/ExternalModule.js +8 -0
- package/lib/FileSystemInfo.js +8 -0
- package/lib/LoaderOptionsPlugin.js +12 -2
- package/lib/Module.js +8 -0
- package/lib/ModuleBuildError.js +9 -0
- package/lib/ModuleError.js +9 -0
- package/lib/ModuleFilenameHelpers.js +113 -4
- package/lib/ModuleParseError.js +9 -0
- package/lib/ModuleTypeConstants.js +21 -0
- package/lib/ModuleWarning.js +9 -0
- package/lib/NormalModule.js +8 -0
- package/lib/NormalModuleFactory.js +15 -3
- package/lib/RawModule.js +8 -0
- package/lib/WebpackError.js +8 -0
- package/lib/WebpackOptionsApply.js +33 -40
- package/lib/asset/RawDataUrlModule.js +8 -0
- package/lib/cache/MemoryWithGcCachePlugin.js +2 -0
- package/lib/cache/ResolverCachePlugin.js +3 -0
- package/lib/config/defaults.js +1 -0
- package/lib/config/normalization.js +1 -0
- package/lib/container/ContainerEntryModule.js +5 -0
- package/lib/container/ContainerExposedDependency.js +9 -0
- package/lib/container/FallbackDependency.js +6 -0
- package/lib/container/FallbackModule.js +5 -0
- package/lib/container/RemoteModule.js +5 -0
- package/lib/css/CssGenerator.js +4 -0
- package/lib/css/CssLoadingRuntimeModule.js +9 -2
- package/lib/css/CssModulesPlugin.js +201 -57
- package/lib/css/CssParser.js +270 -147
- package/lib/css/walkCssTokens.js +121 -65
- package/lib/debug/ProfilingPlugin.js +2 -0
- package/lib/dependencies/AMDDefineDependency.js +8 -0
- package/lib/dependencies/AMDRequireArrayDependency.js +8 -0
- package/lib/dependencies/AMDRequireContextDependency.js +9 -0
- package/lib/dependencies/AMDRequireDependency.js +8 -0
- package/lib/dependencies/CachedConstDependency.js +8 -0
- package/lib/dependencies/CommonJsDependencyHelpers.js +9 -0
- package/lib/dependencies/CommonJsExportRequireDependency.js +8 -0
- package/lib/dependencies/CommonJsExportsDependency.js +8 -0
- package/lib/dependencies/CommonJsExportsParserPlugin.js +65 -3
- package/lib/dependencies/CommonJsFullRequireDependency.js +8 -0
- package/lib/dependencies/CommonJsRequireContextDependency.js +9 -0
- package/lib/dependencies/CommonJsSelfReferenceDependency.js +8 -0
- package/lib/dependencies/ConstDependency.js +8 -0
- package/lib/dependencies/ContextDependency.js +8 -0
- package/lib/dependencies/ContextElementDependency.js +8 -0
- package/lib/dependencies/CreateScriptUrlDependency.js +8 -0
- package/lib/dependencies/CssExportDependency.js +8 -0
- package/lib/dependencies/CssImportDependency.js +52 -1
- package/lib/dependencies/CssLocalIdentifierDependency.js +8 -0
- package/lib/dependencies/CssSelfLocalIdentifierDependency.js +8 -0
- package/lib/dependencies/CssUrlDependency.js +8 -0
- package/lib/dependencies/DllEntryDependency.js +9 -0
- package/lib/dependencies/ExportsInfoDependency.js +5 -0
- package/lib/dependencies/HarmonyAcceptDependency.js +8 -0
- package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +8 -0
- package/lib/dependencies/HarmonyExportExpressionDependency.js +8 -0
- package/lib/dependencies/HarmonyExportHeaderDependency.js +8 -0
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +14 -0
- package/lib/dependencies/HarmonyExportSpecifierDependency.js +8 -0
- package/lib/dependencies/HarmonyImportDependency.js +8 -0
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +1 -0
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +8 -0
- package/lib/dependencies/ImportContextDependency.js +9 -0
- package/lib/dependencies/ImportDependency.js +8 -0
- package/lib/dependencies/JsonExportsDependency.js +8 -0
- package/lib/dependencies/LocalModuleDependency.js +8 -0
- package/lib/dependencies/ModuleDecoratorDependency.js +8 -0
- package/lib/dependencies/ModuleDependency.js +8 -0
- package/lib/dependencies/ProvidedDependency.js +8 -0
- package/lib/dependencies/PureExpressionDependency.js +8 -0
- package/lib/dependencies/RequireEnsureDependency.js +8 -0
- package/lib/dependencies/RequireHeaderDependency.js +5 -0
- package/lib/dependencies/RequireResolveContextDependency.js +9 -0
- package/lib/dependencies/RequireResolveHeaderDependency.js +5 -0
- package/lib/dependencies/RuntimeRequirementsDependency.js +8 -0
- package/lib/dependencies/StaticExportsDependency.js +8 -0
- package/lib/dependencies/URLDependency.js +8 -0
- package/lib/dependencies/UnsupportedDependency.js +8 -0
- package/lib/dependencies/WebAssemblyExportImportedDependency.js +8 -0
- package/lib/dependencies/WebAssemblyImportDependency.js +8 -0
- package/lib/dependencies/WorkerDependency.js +8 -0
- package/lib/index.js +1 -0
- package/lib/javascript/BasicEvaluatedExpression.js +108 -1
- package/lib/javascript/JavascriptParser.js +133 -12
- package/lib/json/JsonData.js +25 -0
- package/lib/json/JsonGenerator.js +15 -3
- package/lib/json/JsonModulesPlugin.js +1 -0
- package/lib/json/JsonParser.js +2 -1
- package/lib/library/ModuleLibraryPlugin.js +2 -1
- package/lib/optimize/RealContentHashPlugin.js +6 -0
- package/lib/runtime/AutoPublicPathRuntimeModule.js +6 -1
- package/lib/runtime/GetChunkFilenameRuntimeModule.js +4 -0
- package/lib/runtime/GetTrustedTypesPolicyRuntimeModule.js +22 -3
- package/lib/schemes/DataUriPlugin.js +4 -0
- package/lib/schemes/HttpUriPlugin.js +38 -0
- package/lib/serialization/ObjectMiddleware.js +2 -0
- package/lib/sharing/ConsumeSharedModule.js +8 -0
- package/lib/sharing/ConsumeSharedRuntimeModule.js +9 -3
- package/lib/sharing/ProvideSharedDependency.js +6 -0
- package/lib/sharing/ProvideSharedModule.js +5 -0
- package/lib/sharing/ShareRuntimeModule.js +7 -4
- package/lib/sharing/utils.js +293 -7
- package/lib/stats/DefaultStatsPrinterPlugin.js +25 -0
- package/lib/util/LazySet.js +10 -2
- package/lib/util/MapHelpers.js +19 -5
- package/lib/util/StackedCacheMap.js +6 -0
- package/lib/util/StringXor.js +51 -0
- package/lib/util/binarySearchBounds.js +49 -0
- package/lib/util/compileBooleanMatcher.js +31 -0
- package/lib/util/deprecation.js +8 -0
- package/lib/util/identifier.js +4 -0
- package/lib/util/internalSerializables.js +1 -0
- package/lib/util/numberHash.js +75 -21
- package/lib/util/propertyAccess.js +5 -0
- package/lib/util/semver.js +1 -1
- package/lib/wasm/EnableWasmLoadingPlugin.js +4 -0
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +1 -0
- package/lib/wasm-async/AsyncWebAssemblyParser.js +1 -1
- package/package.json +4 -5
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +33 -0
- package/types.d.ts +176 -48
@@ -944,6 +944,24 @@
|
|
944
944
|
}
|
945
945
|
}
|
946
946
|
},
|
947
|
+
"Extends": {
|
948
|
+
"description": "Extend configuration from another configuration (only works when using webpack-cli).",
|
949
|
+
"anyOf": [
|
950
|
+
{
|
951
|
+
"type": "array",
|
952
|
+
"items": {
|
953
|
+
"$ref": "#/definitions/ExtendsItem"
|
954
|
+
}
|
955
|
+
},
|
956
|
+
{
|
957
|
+
"$ref": "#/definitions/ExtendsItem"
|
958
|
+
}
|
959
|
+
]
|
960
|
+
},
|
961
|
+
"ExtendsItem": {
|
962
|
+
"description": "Path to the configuration to be extended (only works when using webpack-cli).",
|
963
|
+
"type": "string"
|
964
|
+
},
|
947
965
|
"ExternalItem": {
|
948
966
|
"description": "Specify dependency that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.",
|
949
967
|
"anyOf": [
|
@@ -3162,6 +3180,10 @@
|
|
3162
3180
|
"hotUpdateMainFilename": {
|
3163
3181
|
"$ref": "#/definitions/HotUpdateMainFilename"
|
3164
3182
|
},
|
3183
|
+
"ignoreBrowserWarnings": {
|
3184
|
+
"description": "Ignore warnings in the browser.",
|
3185
|
+
"type": "boolean"
|
3186
|
+
},
|
3165
3187
|
"iife": {
|
3166
3188
|
"$ref": "#/definitions/Iife"
|
3167
3189
|
},
|
@@ -3364,6 +3386,10 @@
|
|
3364
3386
|
"hotUpdateMainFilename": {
|
3365
3387
|
"$ref": "#/definitions/HotUpdateMainFilename"
|
3366
3388
|
},
|
3389
|
+
"ignoreBrowserWarnings": {
|
3390
|
+
"description": "Ignore warnings in the browser.",
|
3391
|
+
"type": "boolean"
|
3392
|
+
},
|
3367
3393
|
"iife": {
|
3368
3394
|
"$ref": "#/definitions/Iife"
|
3369
3395
|
},
|
@@ -5013,6 +5039,10 @@
|
|
5013
5039
|
"type": "object",
|
5014
5040
|
"additionalProperties": false,
|
5015
5041
|
"properties": {
|
5042
|
+
"onPolicyCreationFailure": {
|
5043
|
+
"description": "If the call to `trustedTypes.createPolicy(...)` fails -- e.g., due to the policy name missing from the CSP `trusted-types` list, or it being a duplicate name, etc. -- controls whether to continue with loading in the hope that `require-trusted-types-for 'script'` isn't enforced yet, versus fail immediately. Default behavior is 'stop'.",
|
5044
|
+
"enum": ["continue", "stop"]
|
5045
|
+
},
|
5016
5046
|
"policyName": {
|
5017
5047
|
"description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.",
|
5018
5048
|
"type": "string",
|
@@ -5341,6 +5371,9 @@
|
|
5341
5371
|
"experiments": {
|
5342
5372
|
"$ref": "#/definitions/Experiments"
|
5343
5373
|
},
|
5374
|
+
"extends": {
|
5375
|
+
"$ref": "#/definitions/Extends"
|
5376
|
+
},
|
5344
5377
|
"externals": {
|
5345
5378
|
"$ref": "#/definitions/Externals"
|
5346
5379
|
},
|
package/types.d.ts
CHANGED
@@ -482,9 +482,9 @@ declare abstract class BasicEvaluatedExpression {
|
|
482
482
|
options?: BasicEvaluatedExpression[];
|
483
483
|
prefix?: BasicEvaluatedExpression;
|
484
484
|
postfix?: BasicEvaluatedExpression;
|
485
|
-
wrappedInnerExpressions:
|
485
|
+
wrappedInnerExpressions: BasicEvaluatedExpression[];
|
486
486
|
identifier?: string | VariableInfoInterface;
|
487
|
-
rootInfo: VariableInfoInterface;
|
487
|
+
rootInfo: string | VariableInfoInterface;
|
488
488
|
getMembers: () => string[];
|
489
489
|
getMembersOptionals: () => boolean[];
|
490
490
|
expression: NodeEstreeIndex;
|
@@ -525,43 +525,116 @@ declare abstract class BasicEvaluatedExpression {
|
|
525
525
|
* Can this expression have side effects?
|
526
526
|
*/
|
527
527
|
couldHaveSideEffects(): boolean;
|
528
|
-
|
528
|
+
|
529
|
+
/**
|
530
|
+
* Creates a boolean representation of this evaluated expression.
|
531
|
+
*/
|
532
|
+
asBool(): undefined | boolean;
|
533
|
+
|
534
|
+
/**
|
535
|
+
* Creates a nullish coalescing representation of this evaluated expression.
|
536
|
+
*/
|
529
537
|
asNullish(): undefined | boolean;
|
530
|
-
|
538
|
+
|
539
|
+
/**
|
540
|
+
* Creates a string representation of this evaluated expression.
|
541
|
+
*/
|
542
|
+
asString(): undefined | string;
|
531
543
|
setString(string?: any): BasicEvaluatedExpression;
|
532
544
|
setUndefined(): BasicEvaluatedExpression;
|
533
545
|
setNull(): BasicEvaluatedExpression;
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
546
|
+
|
547
|
+
/**
|
548
|
+
* Set's the value of this expression to a number
|
549
|
+
*/
|
550
|
+
setNumber(number: number): BasicEvaluatedExpression;
|
551
|
+
|
552
|
+
/**
|
553
|
+
* Set's the value of this expression to a BigInt
|
554
|
+
*/
|
555
|
+
setBigInt(bigint: bigint): BasicEvaluatedExpression;
|
556
|
+
|
557
|
+
/**
|
558
|
+
* Set's the value of this expression to a boolean
|
559
|
+
*/
|
560
|
+
setBoolean(bool: boolean): BasicEvaluatedExpression;
|
561
|
+
|
562
|
+
/**
|
563
|
+
* Set's the value of this expression to a regular expression
|
564
|
+
*/
|
565
|
+
setRegExp(regExp: RegExp): BasicEvaluatedExpression;
|
566
|
+
|
567
|
+
/**
|
568
|
+
* Set's the value of this expression to a particular identifier and its members.
|
569
|
+
*/
|
538
570
|
setIdentifier(
|
539
|
-
identifier
|
540
|
-
rootInfo
|
541
|
-
getMembers
|
542
|
-
getMembersOptionals?:
|
571
|
+
identifier: string | VariableInfoInterface,
|
572
|
+
rootInfo: string | VariableInfoInterface,
|
573
|
+
getMembers: () => string[],
|
574
|
+
getMembersOptionals?: () => boolean[]
|
543
575
|
): BasicEvaluatedExpression;
|
576
|
+
|
577
|
+
/**
|
578
|
+
* Wraps an array of expressions with a prefix and postfix expression.
|
579
|
+
*/
|
544
580
|
setWrapped(
|
545
|
-
prefix
|
546
|
-
postfix
|
547
|
-
innerExpressions
|
581
|
+
prefix: null | BasicEvaluatedExpression,
|
582
|
+
postfix: BasicEvaluatedExpression,
|
583
|
+
innerExpressions: BasicEvaluatedExpression[]
|
548
584
|
): BasicEvaluatedExpression;
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
585
|
+
|
586
|
+
/**
|
587
|
+
* Stores the options of a conditional expression.
|
588
|
+
*/
|
589
|
+
setOptions(options: BasicEvaluatedExpression[]): BasicEvaluatedExpression;
|
590
|
+
|
591
|
+
/**
|
592
|
+
* Adds options to a conditional expression.
|
593
|
+
*/
|
594
|
+
addOptions(options: BasicEvaluatedExpression[]): BasicEvaluatedExpression;
|
595
|
+
|
596
|
+
/**
|
597
|
+
* Set's the value of this expression to an array of expressions.
|
598
|
+
*/
|
599
|
+
setItems(items: BasicEvaluatedExpression[]): BasicEvaluatedExpression;
|
600
|
+
|
601
|
+
/**
|
602
|
+
* Set's the value of this expression to an array of strings.
|
603
|
+
*/
|
604
|
+
setArray(array: string[]): BasicEvaluatedExpression;
|
605
|
+
|
606
|
+
/**
|
607
|
+
* Set's the value of this expression to a processed/unprocessed template string. Used
|
608
|
+
* for evaluating TemplateLiteral expressions in the JavaScript Parser.
|
609
|
+
*/
|
553
610
|
setTemplateString(
|
554
|
-
quasis
|
555
|
-
parts
|
556
|
-
kind
|
611
|
+
quasis: BasicEvaluatedExpression[],
|
612
|
+
parts: BasicEvaluatedExpression[],
|
613
|
+
kind: "raw" | "cooked"
|
557
614
|
): BasicEvaluatedExpression;
|
558
|
-
templateStringKind
|
615
|
+
templateStringKind?: "raw" | "cooked";
|
559
616
|
setTruthy(): BasicEvaluatedExpression;
|
560
617
|
setFalsy(): BasicEvaluatedExpression;
|
561
|
-
|
562
|
-
|
618
|
+
|
619
|
+
/**
|
620
|
+
* Set's the value of the expression to nullish.
|
621
|
+
*/
|
622
|
+
setNullish(value: boolean): BasicEvaluatedExpression;
|
623
|
+
|
624
|
+
/**
|
625
|
+
* Set's the range for the expression.
|
626
|
+
*/
|
627
|
+
setRange(range: [number, number]): BasicEvaluatedExpression;
|
628
|
+
|
629
|
+
/**
|
630
|
+
* Set whether or not the expression has side effects.
|
631
|
+
*/
|
563
632
|
setSideEffects(sideEffects?: boolean): BasicEvaluatedExpression;
|
564
|
-
|
633
|
+
|
634
|
+
/**
|
635
|
+
* Set the expression node for the expression.
|
636
|
+
*/
|
637
|
+
setExpression(expression: NodeEstreeIndex): BasicEvaluatedExpression;
|
565
638
|
}
|
566
639
|
type BuildMeta = KnownBuildMeta & Record<string, any>;
|
567
640
|
declare abstract class ByTypeGenerator extends Generator {
|
@@ -2123,6 +2196,11 @@ declare interface Configuration {
|
|
2123
2196
|
*/
|
2124
2197
|
experiments?: Experiments;
|
2125
2198
|
|
2199
|
+
/**
|
2200
|
+
* Extend configuration from another configuration (only works when using webpack-cli).
|
2201
|
+
*/
|
2202
|
+
extends?: string | string[];
|
2203
|
+
|
2126
2204
|
/**
|
2127
2205
|
* Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.
|
2128
2206
|
*/
|
@@ -2646,8 +2724,8 @@ declare abstract class DependenciesBlock {
|
|
2646
2724
|
*/
|
2647
2725
|
clearDependenciesAndBlocks(): void;
|
2648
2726
|
updateHash(hash: Hash, context: UpdateHashContextDependency): void;
|
2649
|
-
serialize(__0:
|
2650
|
-
deserialize(__0:
|
2727
|
+
serialize(__0: ObjectSerializerContext): void;
|
2728
|
+
deserialize(__0: ObjectDeserializerContext): void;
|
2651
2729
|
}
|
2652
2730
|
declare interface DependenciesBlockLike {
|
2653
2731
|
dependencies: Dependency[];
|
@@ -2717,8 +2795,8 @@ declare class Dependency {
|
|
2717
2795
|
moduleGraph: ModuleGraph
|
2718
2796
|
): ConnectionState;
|
2719
2797
|
createIgnoredModule(context: string): Module;
|
2720
|
-
serialize(__0:
|
2721
|
-
deserialize(__0:
|
2798
|
+
serialize(__0: ObjectSerializerContext): void;
|
2799
|
+
deserialize(__0: ObjectDeserializerContext): void;
|
2722
2800
|
module: any;
|
2723
2801
|
get disconnect(): any;
|
2724
2802
|
static NO_EXPORTS_REFERENCED: string[][];
|
@@ -6204,9 +6282,9 @@ declare class LazySet<T> {
|
|
6204
6282
|
has(item: T): boolean;
|
6205
6283
|
keys(): IterableIterator<T>;
|
6206
6284
|
values(): IterableIterator<T>;
|
6207
|
-
serialize(__0:
|
6285
|
+
serialize(__0: ObjectSerializerContext): void;
|
6208
6286
|
[Symbol.iterator](): IterableIterator<T>;
|
6209
|
-
static deserialize(__0:
|
6287
|
+
static deserialize<T>(__0: ObjectDeserializerContext): LazySet<T>;
|
6210
6288
|
}
|
6211
6289
|
declare interface LibIdentOptions {
|
6212
6290
|
/**
|
@@ -6433,8 +6511,8 @@ declare interface LoaderModule<OptionsType = {}, ContextAdditions = {}> {
|
|
6433
6511
|
pitch?: PitchLoaderDefinitionFunction<OptionsType, ContextAdditions>;
|
6434
6512
|
}
|
6435
6513
|
declare class LoaderOptionsPlugin {
|
6436
|
-
constructor(options?: LoaderOptionsPluginOptions);
|
6437
|
-
options: LoaderOptionsPluginOptions;
|
6514
|
+
constructor(options?: LoaderOptionsPluginOptions & MatchObject);
|
6515
|
+
options: LoaderOptionsPluginOptions & MatchObject;
|
6438
6516
|
|
6439
6517
|
/**
|
6440
6518
|
* Apply the plugin
|
@@ -6733,6 +6811,12 @@ declare interface MapOptions {
|
|
6733
6811
|
columns?: boolean;
|
6734
6812
|
module?: boolean;
|
6735
6813
|
}
|
6814
|
+
declare interface MatchObject {
|
6815
|
+
test?: string | RegExp | string[] | RegExp[];
|
6816
|
+
include?: string | RegExp | string[] | RegExp[];
|
6817
|
+
exclude?: string | RegExp | string[] | RegExp[];
|
6818
|
+
}
|
6819
|
+
type Matcher = string | RegExp | string[] | RegExp[];
|
6736
6820
|
|
6737
6821
|
/**
|
6738
6822
|
* Options object for in-memory caching.
|
@@ -7847,6 +7931,7 @@ declare abstract class NormalModuleFactory extends ModuleFactory {
|
|
7847
7931
|
parser: HookMap<SyncHook<any>>;
|
7848
7932
|
createGenerator: HookMap<SyncBailHook<any, any>>;
|
7849
7933
|
generator: HookMap<SyncHook<any>>;
|
7934
|
+
createModuleClass: HookMap<SyncBailHook<any, any>>;
|
7850
7935
|
}>;
|
7851
7936
|
resolverFactory: ResolverFactory;
|
7852
7937
|
ruleSet: RuleSet;
|
@@ -8001,6 +8086,7 @@ declare class NullDependencyTemplate extends DependencyTemplate {
|
|
8001
8086
|
}
|
8002
8087
|
declare interface ObjectDeserializerContext {
|
8003
8088
|
read: () => any;
|
8089
|
+
setCircularReference: (arg0?: any) => void;
|
8004
8090
|
}
|
8005
8091
|
declare interface ObjectSerializer {
|
8006
8092
|
serialize: (arg0: any, arg1: ObjectSerializerContext) => void;
|
@@ -8008,6 +8094,7 @@ declare interface ObjectSerializer {
|
|
8008
8094
|
}
|
8009
8095
|
declare interface ObjectSerializerContext {
|
8010
8096
|
write: (arg0?: any) => void;
|
8097
|
+
setCircularReference: (arg0?: any) => void;
|
8011
8098
|
}
|
8012
8099
|
declare class OccurrenceChunkIdsPlugin {
|
8013
8100
|
constructor(options?: OccurrenceChunkIdsPluginOptions);
|
@@ -8609,6 +8696,11 @@ declare interface Output {
|
|
8609
8696
|
*/
|
8610
8697
|
hotUpdateMainFilename?: string;
|
8611
8698
|
|
8699
|
+
/**
|
8700
|
+
* Ignore warnings in the browser.
|
8701
|
+
*/
|
8702
|
+
ignoreBrowserWarnings?: boolean;
|
8703
|
+
|
8612
8704
|
/**
|
8613
8705
|
* Wrap javascript code into IIFE's to avoid leaking into global scope.
|
8614
8706
|
*/
|
@@ -8923,6 +9015,11 @@ declare interface OutputNormalized {
|
|
8923
9015
|
*/
|
8924
9016
|
hotUpdateMainFilename?: string;
|
8925
9017
|
|
9018
|
+
/**
|
9019
|
+
* Ignore warnings in the browser.
|
9020
|
+
*/
|
9021
|
+
ignoreBrowserWarnings?: boolean;
|
9022
|
+
|
8926
9023
|
/**
|
8927
9024
|
* Wrap javascript code into IIFE's to avoid leaking into global scope.
|
8928
9025
|
*/
|
@@ -9243,7 +9340,7 @@ declare class ProgressPlugin {
|
|
9243
9340
|
showModules?: boolean;
|
9244
9341
|
showDependencies?: boolean;
|
9245
9342
|
showActiveModules?: boolean;
|
9246
|
-
percentBy?: null | "
|
9343
|
+
percentBy?: null | "entries" | "modules" | "dependencies";
|
9247
9344
|
apply(compiler: Compiler | MultiCompiler): void;
|
9248
9345
|
static getReporter(
|
9249
9346
|
compiler: Compiler
|
@@ -9304,7 +9401,7 @@ declare interface ProgressPluginOptions {
|
|
9304
9401
|
/**
|
9305
9402
|
* Collect percent algorithm. By default it calculates by a median from modules, entries and dependencies percent.
|
9306
9403
|
*/
|
9307
|
-
percentBy?: null | "
|
9404
|
+
percentBy?: null | "entries" | "modules" | "dependencies";
|
9308
9405
|
|
9309
9406
|
/**
|
9310
9407
|
* Collect profile data for progress steps. Default: false.
|
@@ -9437,7 +9534,16 @@ declare interface ReaddirOptions {
|
|
9437
9534
|
withFileTypes?: boolean;
|
9438
9535
|
}
|
9439
9536
|
declare class RealContentHashPlugin {
|
9440
|
-
constructor(__0: {
|
9537
|
+
constructor(__0: {
|
9538
|
+
/**
|
9539
|
+
* the hash function to use
|
9540
|
+
*/
|
9541
|
+
hashFunction: string | typeof Hash;
|
9542
|
+
/**
|
9543
|
+
* the hash digest to use
|
9544
|
+
*/
|
9545
|
+
hashDigest: string;
|
9546
|
+
});
|
9441
9547
|
|
9442
9548
|
/**
|
9443
9549
|
* Apply the plugin
|
@@ -10910,6 +11016,12 @@ declare interface RuntimeValueOptions {
|
|
10910
11016
|
buildDependencies?: string[];
|
10911
11017
|
version?: string | (() => string);
|
10912
11018
|
}
|
11019
|
+
|
11020
|
+
/**
|
11021
|
+
* Helper function for joining two ranges into a single range. This is useful
|
11022
|
+
* when working with AST nodes, as it allows you to combine the ranges of child nodes
|
11023
|
+
* to create the range of the _parent node_.
|
11024
|
+
*/
|
10913
11025
|
declare interface ScopeInfo {
|
10914
11026
|
definitions: StackedMap<string, ScopeInfo | VariableInfo>;
|
10915
11027
|
topLevelScope: boolean | "arrow";
|
@@ -11071,8 +11183,8 @@ declare abstract class Snapshot {
|
|
11071
11183
|
hasChildren(): boolean;
|
11072
11184
|
setChildren(value?: any): void;
|
11073
11185
|
addChild(child?: any): void;
|
11074
|
-
serialize(__0:
|
11075
|
-
deserialize(__0:
|
11186
|
+
serialize(__0: ObjectSerializerContext): void;
|
11187
|
+
deserialize(__0: ObjectDeserializerContext): void;
|
11076
11188
|
getFileIterable(): Iterable<string>;
|
11077
11189
|
getContextIterable(): Iterable<string>;
|
11078
11190
|
getMissingIterable(): Iterable<string>;
|
@@ -11947,6 +12059,12 @@ declare interface SyntheticDependencyLocation {
|
|
11947
12059
|
declare const TOMBSTONE: unique symbol;
|
11948
12060
|
declare const TRANSITIVE: unique symbol;
|
11949
12061
|
declare const TRANSITIVE_ONLY: unique symbol;
|
12062
|
+
|
12063
|
+
/**
|
12064
|
+
* Helper function for joining two ranges into a single range. This is useful
|
12065
|
+
* when working with AST nodes, as it allows you to combine the ranges of child nodes
|
12066
|
+
* to create the range of the _parent node_.
|
12067
|
+
*/
|
11950
12068
|
declare interface TagInfo {
|
11951
12069
|
tag: any;
|
11952
12070
|
data: any;
|
@@ -11998,6 +12116,11 @@ declare class TopLevelSymbol {
|
|
11998
12116
|
* Use a Trusted Types policy to create urls for chunks.
|
11999
12117
|
*/
|
12000
12118
|
declare interface TrustedTypes {
|
12119
|
+
/**
|
12120
|
+
* If the call to `trustedTypes.createPolicy(...)` fails -- e.g., due to the policy name missing from the CSP `trusted-types` list, or it being a duplicate name, etc. -- controls whether to continue with loading in the hope that `require-trusted-types-for 'script'` isn't enforced yet, versus fail immediately. Default behavior is 'stop'.
|
12121
|
+
*/
|
12122
|
+
onPolicyCreationFailure?: "continue" | "stop";
|
12123
|
+
|
12001
12124
|
/**
|
12002
12125
|
* The name of the Trusted Types policy created by webpack to serve bundle chunks.
|
12003
12126
|
*/
|
@@ -12400,8 +12523,8 @@ declare class WebpackError extends Error {
|
|
12400
12523
|
hideStack: boolean;
|
12401
12524
|
chunk: Chunk;
|
12402
12525
|
file: string;
|
12403
|
-
serialize(__0:
|
12404
|
-
deserialize(__0:
|
12526
|
+
serialize(__0: ObjectSerializerContext): void;
|
12527
|
+
deserialize(__0: ObjectDeserializerContext): void;
|
12405
12528
|
|
12406
12529
|
/**
|
12407
12530
|
* Create .stack property on a target object
|
@@ -12774,13 +12897,17 @@ declare namespace exports {
|
|
12774
12897
|
hashFunction: string | typeof Hash;
|
12775
12898
|
}
|
12776
12899
|
) => string;
|
12777
|
-
export let replaceDuplicates: (
|
12778
|
-
array
|
12779
|
-
fn
|
12780
|
-
|
12781
|
-
|
12782
|
-
|
12783
|
-
|
12900
|
+
export let replaceDuplicates: <T>(
|
12901
|
+
array: T[],
|
12902
|
+
fn: (
|
12903
|
+
duplicateItem: T,
|
12904
|
+
duplicateItemIndex: number,
|
12905
|
+
numberOfTimesReplaced: number
|
12906
|
+
) => T,
|
12907
|
+
comparator?: (firstElement: T, nextElement: T) => 0 | 1 | -1
|
12908
|
+
) => T[];
|
12909
|
+
export let matchPart: (str: string, test: Matcher) => boolean;
|
12910
|
+
export let matchObject: (obj: MatchObject, str: string) => boolean;
|
12784
12911
|
}
|
12785
12912
|
export namespace RuntimeGlobals {
|
12786
12913
|
export let require: "__webpack_require__";
|
@@ -13240,6 +13367,7 @@ declare namespace exports {
|
|
13240
13367
|
Externals,
|
13241
13368
|
FileCacheOptions,
|
13242
13369
|
LibraryOptions,
|
13370
|
+
MemoryCacheOptions,
|
13243
13371
|
ModuleOptions,
|
13244
13372
|
ResolveOptionsWebpackOptions as ResolveOptions,
|
13245
13373
|
RuleSetCondition,
|