webpack 5.45.0 → 5.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of webpack might be problematic. Click here for more details.
- package/lib/NormalModule.js +2 -6
- package/lib/NormalModuleFactory.js +2 -8
- package/lib/asset/AssetGenerator.js +28 -15
- package/lib/config/defaults.js +12 -18
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +3 -6
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +2 -4
- package/lib/dependencies/HarmonyImportDependency.js +1 -5
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +5 -40
- package/lib/dependencies/HarmonyImportSideEffectDependency.js +2 -2
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +2 -10
- package/lib/dependencies/ModuleDependency.js +1 -8
- package/lib/javascript/JavascriptModulesPlugin.js +3 -1
- package/lib/javascript/JavascriptParser.js +9 -14
- package/lib/prefetch/ChunkPrefetchStartupRuntimeModule.js +5 -4
- package/lib/rules/{ObjectMatcherRulePlugin.js → DescriptionDataMatcherRulePlugin.js} +10 -14
- package/lib/runtime/OnChunksLoadedRuntimeModule.js +5 -1
- package/lib/schemes/DataUriPlugin.js +7 -6
- package/package.json +1 -2
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +0 -7
- package/types.d.ts +8 -38
@@ -3585,13 +3585,6 @@
|
|
3585
3585
|
"type": "object",
|
3586
3586
|
"additionalProperties": false,
|
3587
3587
|
"properties": {
|
3588
|
-
"assert": {
|
3589
|
-
"description": "Match on import assertions of the dependency.",
|
3590
|
-
"type": "object",
|
3591
|
-
"additionalProperties": {
|
3592
|
-
"$ref": "#/definitions/RuleSetConditionOrConditions"
|
3593
|
-
}
|
3594
|
-
},
|
3595
3588
|
"compiler": {
|
3596
3589
|
"description": "Match the child compiler name.",
|
3597
3590
|
"oneOf": [
|
package/types.d.ts
CHANGED
@@ -4735,44 +4735,21 @@ declare class JavascriptParser extends Parser {
|
|
4735
4735
|
boolean | void
|
4736
4736
|
>;
|
4737
4737
|
label: HookMap<SyncBailHook<[LabeledStatement], boolean | void>>;
|
4738
|
-
import: SyncBailHook<[
|
4738
|
+
import: SyncBailHook<[Statement, ImportSource], boolean | void>;
|
4739
4739
|
importSpecifier: SyncBailHook<
|
4740
|
-
[
|
4741
|
-
boolean | void
|
4742
|
-
>;
|
4743
|
-
export: SyncBailHook<
|
4744
|
-
[ExportNamedDeclaration | ExportAllDeclaration],
|
4745
|
-
boolean | void
|
4746
|
-
>;
|
4747
|
-
exportImport: SyncBailHook<
|
4748
|
-
[ExportNamedDeclaration | ExportAllDeclaration, ImportSource],
|
4749
|
-
boolean | void
|
4750
|
-
>;
|
4751
|
-
exportDeclaration: SyncBailHook<
|
4752
|
-
[ExportNamedDeclaration | ExportAllDeclaration, Declaration],
|
4753
|
-
boolean | void
|
4754
|
-
>;
|
4755
|
-
exportExpression: SyncBailHook<
|
4756
|
-
[ExportDefaultDeclaration, Declaration],
|
4740
|
+
[Statement, ImportSource, string, string],
|
4757
4741
|
boolean | void
|
4758
4742
|
>;
|
4743
|
+
export: SyncBailHook<[Statement], boolean | void>;
|
4744
|
+
exportImport: SyncBailHook<[Statement, ImportSource], boolean | void>;
|
4745
|
+
exportDeclaration: SyncBailHook<[Statement, Declaration], boolean | void>;
|
4746
|
+
exportExpression: SyncBailHook<[Statement, Declaration], boolean | void>;
|
4759
4747
|
exportSpecifier: SyncBailHook<
|
4760
|
-
[
|
4761
|
-
ExportNamedDeclaration | ExportAllDeclaration,
|
4762
|
-
string,
|
4763
|
-
string,
|
4764
|
-
undefined | number
|
4765
|
-
],
|
4748
|
+
[Statement, string, string, undefined | number],
|
4766
4749
|
boolean | void
|
4767
4750
|
>;
|
4768
4751
|
exportImportSpecifier: SyncBailHook<
|
4769
|
-
[
|
4770
|
-
ExportNamedDeclaration | ExportAllDeclaration,
|
4771
|
-
ImportSource,
|
4772
|
-
string,
|
4773
|
-
string,
|
4774
|
-
undefined | number
|
4775
|
-
],
|
4752
|
+
[Statement, ImportSource, string, string, undefined | number],
|
4776
4753
|
boolean | void
|
4777
4754
|
>;
|
4778
4755
|
preDeclarator: SyncBailHook<
|
@@ -6397,7 +6374,6 @@ declare class ModuleDependency extends Dependency {
|
|
6397
6374
|
request: string;
|
6398
6375
|
userRequest: string;
|
6399
6376
|
range: any;
|
6400
|
-
assertions?: Record<string, any>;
|
6401
6377
|
static Template: typeof DependencyTemplate;
|
6402
6378
|
static NO_EXPORTS_REFERENCED: string[][];
|
6403
6379
|
static EXPORTS_OBJECT_REFERENCED: string[][];
|
@@ -8954,7 +8930,6 @@ declare interface ResolveData {
|
|
8954
8930
|
resolveOptions?: ResolveOptionsWebpackOptions;
|
8955
8931
|
context: string;
|
8956
8932
|
request: string;
|
8957
|
-
assertions?: Record<string, any>;
|
8958
8933
|
dependencies: ModuleDependency[];
|
8959
8934
|
createData: Object;
|
8960
8935
|
fileDependencies: LazySet<string>;
|
@@ -9366,11 +9341,6 @@ declare interface RuleSetLogicalConditionsAbsolute {
|
|
9366
9341
|
* A rule description with conditions and effects for modules.
|
9367
9342
|
*/
|
9368
9343
|
declare interface RuleSetRule {
|
9369
|
-
/**
|
9370
|
-
* Match on import assertions of the dependency.
|
9371
|
-
*/
|
9372
|
-
assert?: { [index: string]: RuleSetConditionOrConditions };
|
9373
|
-
|
9374
9344
|
/**
|
9375
9345
|
* Match the child compiler name.
|
9376
9346
|
*/
|