webpack 5.37.0 → 5.37.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.

Files changed (94) hide show
  1. package/README.md +5 -8
  2. package/lib/CacheFacade.js +3 -3
  3. package/lib/Chunk.js +2 -3
  4. package/lib/Compilation.js +43 -55
  5. package/lib/Compiler.js +4 -4
  6. package/lib/ConcatenationScope.js +2 -1
  7. package/lib/ContextModule.js +3 -3
  8. package/lib/ContextReplacementPlugin.js +4 -3
  9. package/lib/DefinePlugin.js +16 -12
  10. package/lib/EvalSourceMapDevToolPlugin.js +3 -1
  11. package/lib/FileSystemInfo.js +24 -30
  12. package/lib/FlagDependencyExportsPlugin.js +8 -7
  13. package/lib/FlagDependencyUsagePlugin.js +2 -4
  14. package/lib/HotModuleReplacementPlugin.js +20 -30
  15. package/lib/JavascriptMetaInfoPlugin.js +2 -1
  16. package/lib/MainTemplate.js +2 -3
  17. package/lib/ModuleFilenameHelpers.js +4 -2
  18. package/lib/ModuleGraphConnection.js +6 -2
  19. package/lib/ModuleInfoHeaderPlugin.js +2 -3
  20. package/lib/MultiCompiler.js +31 -27
  21. package/lib/NormalModule.js +22 -5
  22. package/lib/RecordIdsPlugin.js +5 -4
  23. package/lib/ResolverFactory.js +10 -7
  24. package/lib/SourceMapDevToolPlugin.js +13 -14
  25. package/lib/Template.js +4 -2
  26. package/lib/Watching.js +83 -46
  27. package/lib/asset/AssetGenerator.js +19 -23
  28. package/lib/buildChunkGraph.js +21 -21
  29. package/lib/cache/PackFileCacheStrategy.js +12 -9
  30. package/lib/config/defaults.js +12 -9
  31. package/lib/config/normalization.js +7 -7
  32. package/lib/debug/ProfilingPlugin.js +4 -3
  33. package/lib/dependencies/AMDRequireDependency.js +3 -3
  34. package/lib/dependencies/CommonJsExportRequireDependency.js +2 -3
  35. package/lib/dependencies/CommonJsExportsParserPlugin.js +3 -1
  36. package/lib/dependencies/CommonJsImportsParserPlugin.js +2 -4
  37. package/lib/dependencies/CommonJsPlugin.js +8 -7
  38. package/lib/dependencies/CommonJsRequireContextDependency.js +2 -1
  39. package/lib/dependencies/ContextDependencyHelpers.js +10 -8
  40. package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +11 -13
  41. package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +2 -4
  42. package/lib/dependencies/HarmonyImportSpecifierDependency.js +4 -11
  43. package/lib/dependencies/ImportDependency.js +3 -3
  44. package/lib/dependencies/ImportParserPlugin.js +2 -4
  45. package/lib/dependencies/RequireEnsureDependenciesBlockParserPlugin.js +2 -3
  46. package/lib/dependencies/RequireEnsureDependency.js +3 -3
  47. package/lib/dependencies/WorkerDependency.js +6 -6
  48. package/lib/dependencies/WorkerPlugin.js +18 -19
  49. package/lib/hmr/LazyCompilationPlugin.js +6 -4
  50. package/lib/ids/HashedModuleIdsPlugin.js +3 -3
  51. package/lib/ids/OccurrenceModuleIdsPlugin.js +2 -3
  52. package/lib/index.js +5 -3
  53. package/lib/javascript/ArrayPushCallbackChunkFormatPlugin.js +4 -6
  54. package/lib/javascript/CommonJsChunkFormatPlugin.js +2 -3
  55. package/lib/javascript/JavascriptGenerator.js +3 -1
  56. package/lib/javascript/JavascriptModulesPlugin.js +15 -23
  57. package/lib/javascript/JavascriptParser.js +10 -8
  58. package/lib/library/AssignLibraryPlugin.js +4 -2
  59. package/lib/node/NodeWatchFileSystem.js +19 -4
  60. package/lib/optimize/AggressiveSplittingPlugin.js +5 -4
  61. package/lib/optimize/ConcatenatedModule.js +22 -27
  62. package/lib/optimize/FlagIncludedChunksPlugin.js +4 -6
  63. package/lib/optimize/InnerGraph.js +9 -11
  64. package/lib/optimize/InnerGraphPlugin.js +3 -1
  65. package/lib/optimize/ModuleConcatenationPlugin.js +7 -10
  66. package/lib/optimize/RealContentHashPlugin.js +14 -16
  67. package/lib/optimize/SideEffectsFlagPlugin.js +6 -5
  68. package/lib/optimize/SplitChunksPlugin.js +13 -15
  69. package/lib/runtime/EnsureChunkRuntimeModule.js +9 -8
  70. package/lib/runtime/LoadScriptRuntimeModule.js +2 -3
  71. package/lib/runtime/OnChunksLoadedRuntimeModule.js +38 -37
  72. package/lib/serialization/BinaryMiddleware.js +2 -3
  73. package/lib/serialization/FileMiddleware.js +3 -1
  74. package/lib/serialization/ObjectMiddleware.js +11 -7
  75. package/lib/stats/DefaultStatsFactoryPlugin.js +2 -3
  76. package/lib/stats/DefaultStatsPrinterPlugin.js +11 -9
  77. package/lib/stats/StatsFactory.js +2 -1
  78. package/lib/stats/StatsPrinter.js +3 -3
  79. package/lib/util/LazyBucketSortedSet.js +3 -3
  80. package/lib/util/cleverMerge.js +3 -1
  81. package/lib/util/comparators.js +13 -13
  82. package/lib/util/identifier.js +2 -1
  83. package/lib/validateSchema.js +5 -3
  84. package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +4 -4
  85. package/lib/wasm-sync/WasmFinalizeExportsPlugin.js +5 -4
  86. package/lib/wasm-sync/WebAssemblyGenerator.js +89 -83
  87. package/lib/wasm-sync/WebAssemblyModulesPlugin.js +2 -1
  88. package/lib/wasm-sync/WebAssemblyParser.js +6 -5
  89. package/lib/web/JsonpChunkLoadingRuntimeModule.js +2 -4
  90. package/lib/webpack.js +11 -7
  91. package/package.json +6 -3
  92. package/schemas/WebpackOptions.check.js +1 -1
  93. package/schemas/WebpackOptions.json +68 -60
  94. package/types.d.ts +89 -257
@@ -3391,40 +3391,13 @@
3391
3391
  {
3392
3392
  "type": "string"
3393
3393
  },
3394
- {
3395
- "type": "object",
3396
- "additionalProperties": false,
3397
- "properties": {
3398
- "and": {
3399
- "description": "Logical AND.",
3400
- "oneOf": [
3401
- {
3402
- "$ref": "#/definitions/RuleSetConditions"
3403
- }
3404
- ]
3405
- },
3406
- "not": {
3407
- "description": "Logical NOT.",
3408
- "oneOf": [
3409
- {
3410
- "$ref": "#/definitions/RuleSetConditions"
3411
- }
3412
- ]
3413
- },
3414
- "or": {
3415
- "description": "Logical OR.",
3416
- "oneOf": [
3417
- {
3418
- "$ref": "#/definitions/RuleSetConditions"
3419
- }
3420
- ]
3421
- }
3422
- }
3423
- },
3424
3394
  {
3425
3395
  "instanceof": "Function",
3426
3396
  "tsType": "((value: string) => boolean)"
3427
3397
  },
3398
+ {
3399
+ "$ref": "#/definitions/RuleSetLogicalConditions"
3400
+ },
3428
3401
  {
3429
3402
  "$ref": "#/definitions/RuleSetConditions"
3430
3403
  }
@@ -3444,40 +3417,13 @@
3444
3417
  "type": "string",
3445
3418
  "absolutePath": true
3446
3419
  },
3447
- {
3448
- "type": "object",
3449
- "additionalProperties": false,
3450
- "properties": {
3451
- "and": {
3452
- "description": "Logical AND.",
3453
- "oneOf": [
3454
- {
3455
- "$ref": "#/definitions/RuleSetConditionsAbsolute"
3456
- }
3457
- ]
3458
- },
3459
- "not": {
3460
- "description": "Logical NOT.",
3461
- "oneOf": [
3462
- {
3463
- "$ref": "#/definitions/RuleSetConditionsAbsolute"
3464
- }
3465
- ]
3466
- },
3467
- "or": {
3468
- "description": "Logical OR.",
3469
- "oneOf": [
3470
- {
3471
- "$ref": "#/definitions/RuleSetConditionsAbsolute"
3472
- }
3473
- ]
3474
- }
3475
- }
3476
- },
3477
3420
  {
3478
3421
  "instanceof": "Function",
3479
3422
  "tsType": "((value: string) => boolean)"
3480
3423
  },
3424
+ {
3425
+ "$ref": "#/definitions/RuleSetLogicalConditionsAbsolute"
3426
+ },
3481
3427
  {
3482
3428
  "$ref": "#/definitions/RuleSetConditionsAbsolute"
3483
3429
  }
@@ -3551,6 +3497,68 @@
3551
3497
  }
3552
3498
  ]
3553
3499
  },
3500
+ "RuleSetLogicalConditions": {
3501
+ "description": "Logic operators used in a condition matcher.",
3502
+ "type": "object",
3503
+ "additionalProperties": false,
3504
+ "properties": {
3505
+ "and": {
3506
+ "description": "Logical AND.",
3507
+ "oneOf": [
3508
+ {
3509
+ "$ref": "#/definitions/RuleSetConditions"
3510
+ }
3511
+ ]
3512
+ },
3513
+ "not": {
3514
+ "description": "Logical NOT.",
3515
+ "oneOf": [
3516
+ {
3517
+ "$ref": "#/definitions/RuleSetCondition"
3518
+ }
3519
+ ]
3520
+ },
3521
+ "or": {
3522
+ "description": "Logical OR.",
3523
+ "oneOf": [
3524
+ {
3525
+ "$ref": "#/definitions/RuleSetConditions"
3526
+ }
3527
+ ]
3528
+ }
3529
+ }
3530
+ },
3531
+ "RuleSetLogicalConditionsAbsolute": {
3532
+ "description": "Logic operators used in a condition matcher.",
3533
+ "type": "object",
3534
+ "additionalProperties": false,
3535
+ "properties": {
3536
+ "and": {
3537
+ "description": "Logical AND.",
3538
+ "oneOf": [
3539
+ {
3540
+ "$ref": "#/definitions/RuleSetConditionsAbsolute"
3541
+ }
3542
+ ]
3543
+ },
3544
+ "not": {
3545
+ "description": "Logical NOT.",
3546
+ "oneOf": [
3547
+ {
3548
+ "$ref": "#/definitions/RuleSetConditionAbsolute"
3549
+ }
3550
+ ]
3551
+ },
3552
+ "or": {
3553
+ "description": "Logical OR.",
3554
+ "oneOf": [
3555
+ {
3556
+ "$ref": "#/definitions/RuleSetConditionsAbsolute"
3557
+ }
3558
+ ]
3559
+ }
3560
+ }
3561
+ },
3554
3562
  "RuleSetRule": {
3555
3563
  "description": "A rule description with conditions and effects for modules.",
3556
3564
  "type": "object",
package/types.d.ts CHANGED
@@ -3360,17 +3360,7 @@ declare abstract class ExportInfo {
3360
3360
  | "maybe provided (runtime-defined)"
3361
3361
  | "provided"
3362
3362
  | "not provided";
3363
- getRenameInfo():
3364
- | string
3365
- | "missing provision and use info prevents renaming"
3366
- | "usage prevents renaming (no provision info)"
3367
- | "missing provision info prevents renaming"
3368
- | "missing usage info prevents renaming"
3369
- | "usage prevents renaming"
3370
- | "could be renamed"
3371
- | "provision prevents renaming (no use info)"
3372
- | "usage and provision prevents renaming"
3373
- | "provision prevents renaming";
3363
+ getRenameInfo(): string;
3374
3364
  }
3375
3365
  declare interface ExportSpec {
3376
3366
  /**
@@ -5011,9 +5001,7 @@ declare class JavascriptParser extends Parser {
5011
5001
  parseCommentOptions(
5012
5002
  range?: any
5013
5003
  ): { options: null; errors: null } | { options: object; errors: any[] };
5014
- extractMemberExpressionChain(
5015
- expression: MemberExpression
5016
- ): {
5004
+ extractMemberExpressionChain(expression: MemberExpression): {
5017
5005
  members: string[];
5018
5006
  object:
5019
5007
  | UnaryExpression
@@ -5045,16 +5033,15 @@ declare class JavascriptParser extends Parser {
5045
5033
  | ChainExpression
5046
5034
  | Super;
5047
5035
  };
5048
- getFreeInfoFromVariable(
5049
- varName: string
5050
- ): { name: string; info: string | VariableInfo };
5036
+ getFreeInfoFromVariable(varName: string): {
5037
+ name: string;
5038
+ info: string | VariableInfo;
5039
+ };
5051
5040
  getMemberExpressionInfo(
5052
5041
  expression: MemberExpression,
5053
5042
  allowedTypes: number
5054
5043
  ): undefined | CallExpressionInfo | ExpressionExpressionInfo;
5055
- getNameForExpression(
5056
- expression: MemberExpression
5057
- ): {
5044
+ getNameForExpression(expression: MemberExpression): {
5058
5045
  name: string;
5059
5046
  rootInfo: ExportedVariableInfo;
5060
5047
  getMembers: () => string[];
@@ -5805,13 +5792,11 @@ type LoaderContext<OptionsType> = NormalModuleLoaderContext<OptionsType> &
5805
5792
  LoaderRunnerLoaderContext<OptionsType> &
5806
5793
  LoaderPluginLoaderContext &
5807
5794
  HotModuleReplacementPluginLoaderContext;
5808
- type LoaderDefinition<
5809
- OptionsType = {},
5810
- ContextAdditions = {}
5811
- > = LoaderDefinitionFunction<OptionsType, ContextAdditions> & {
5812
- raw?: false;
5813
- pitch?: PitchLoaderDefinitionFunction<OptionsType, ContextAdditions>;
5814
- };
5795
+ type LoaderDefinition<OptionsType = {}, ContextAdditions = {}> =
5796
+ LoaderDefinitionFunction<OptionsType, ContextAdditions> & {
5797
+ raw?: false;
5798
+ pitch?: PitchLoaderDefinitionFunction<OptionsType, ContextAdditions>;
5799
+ };
5815
5800
  declare interface LoaderDefinitionFunction<
5816
5801
  OptionsType = {},
5817
5802
  ContextAdditions = {}
@@ -7197,9 +7182,7 @@ declare interface NormalModuleLoaderContext<OptionsType> {
7197
7182
  arg2?: ResolveRequest
7198
7183
  ) => void
7199
7184
  ): any;
7200
- getResolve(
7201
- options?: ResolveOptionsWithDependencyType
7202
- ): {
7185
+ getResolve(options?: ResolveOptionsWithDependencyType): {
7203
7186
  (
7204
7187
  context: string,
7205
7188
  request: string,
@@ -8671,13 +8654,11 @@ declare interface RawChunkGroupOptions {
8671
8654
  preloadOrder?: number;
8672
8655
  prefetchOrder?: number;
8673
8656
  }
8674
- type RawLoaderDefinition<
8675
- OptionsType = {},
8676
- ContextAdditions = {}
8677
- > = RawLoaderDefinitionFunction<OptionsType, ContextAdditions> & {
8678
- raw: true;
8679
- pitch?: PitchLoaderDefinitionFunction<OptionsType, ContextAdditions>;
8680
- };
8657
+ type RawLoaderDefinition<OptionsType = {}, ContextAdditions = {}> =
8658
+ RawLoaderDefinitionFunction<OptionsType, ContextAdditions> & {
8659
+ raw: true;
8660
+ pitch?: PitchLoaderDefinitionFunction<OptionsType, ContextAdditions>;
8661
+ };
8681
8662
  declare interface RawLoaderDefinitionFunction<
8682
8663
  OptionsType = {},
8683
8664
  ContextAdditions = {}
@@ -9308,61 +9289,72 @@ declare interface RuleSet {
9308
9289
  type RuleSetCondition =
9309
9290
  | string
9310
9291
  | RegExp
9311
- | {
9312
- /**
9313
- * Logical AND.
9314
- */
9315
- and?: RuleSetCondition[];
9316
- /**
9317
- * Logical NOT.
9318
- */
9319
- not?: RuleSetCondition[];
9320
- /**
9321
- * Logical OR.
9322
- */
9323
- or?: RuleSetCondition[];
9324
- }
9325
9292
  | ((value: string) => boolean)
9293
+ | RuleSetLogicalConditions
9326
9294
  | RuleSetCondition[];
9327
9295
  type RuleSetConditionAbsolute =
9328
9296
  | string
9329
9297
  | RegExp
9330
- | {
9331
- /**
9332
- * Logical AND.
9333
- */
9334
- and?: RuleSetConditionAbsolute[];
9335
- /**
9336
- * Logical NOT.
9337
- */
9338
- not?: RuleSetConditionAbsolute[];
9339
- /**
9340
- * Logical OR.
9341
- */
9342
- or?: RuleSetConditionAbsolute[];
9343
- }
9344
9298
  | ((value: string) => boolean)
9299
+ | RuleSetLogicalConditionsAbsolute
9345
9300
  | RuleSetConditionAbsolute[];
9346
9301
  type RuleSetConditionOrConditions =
9347
9302
  | string
9348
9303
  | RegExp
9349
- | {
9350
- /**
9351
- * Logical AND.
9352
- */
9353
- and?: RuleSetCondition[];
9354
- /**
9355
- * Logical NOT.
9356
- */
9357
- not?: RuleSetCondition[];
9358
- /**
9359
- * Logical OR.
9360
- */
9361
- or?: RuleSetCondition[];
9362
- }
9363
9304
  | ((value: string) => boolean)
9305
+ | RuleSetLogicalConditions
9364
9306
  | RuleSetCondition[];
9365
9307
 
9308
+ /**
9309
+ * Logic operators used in a condition matcher.
9310
+ */
9311
+ declare interface RuleSetLogicalConditions {
9312
+ /**
9313
+ * Logical AND.
9314
+ */
9315
+ and?: RuleSetCondition[];
9316
+
9317
+ /**
9318
+ * Logical NOT.
9319
+ */
9320
+ not?:
9321
+ | string
9322
+ | RegExp
9323
+ | ((value: string) => boolean)
9324
+ | RuleSetLogicalConditions
9325
+ | RuleSetCondition[];
9326
+
9327
+ /**
9328
+ * Logical OR.
9329
+ */
9330
+ or?: RuleSetCondition[];
9331
+ }
9332
+
9333
+ /**
9334
+ * Logic operators used in a condition matcher.
9335
+ */
9336
+ declare interface RuleSetLogicalConditionsAbsolute {
9337
+ /**
9338
+ * Logical AND.
9339
+ */
9340
+ and?: RuleSetConditionAbsolute[];
9341
+
9342
+ /**
9343
+ * Logical NOT.
9344
+ */
9345
+ not?:
9346
+ | string
9347
+ | RegExp
9348
+ | ((value: string) => boolean)
9349
+ | RuleSetLogicalConditionsAbsolute
9350
+ | RuleSetConditionAbsolute[];
9351
+
9352
+ /**
9353
+ * Logical OR.
9354
+ */
9355
+ or?: RuleSetConditionAbsolute[];
9356
+ }
9357
+
9366
9358
  /**
9367
9359
  * A rule description with conditions and effects for modules.
9368
9360
  */
@@ -9373,21 +9365,8 @@ declare interface RuleSetRule {
9373
9365
  compiler?:
9374
9366
  | string
9375
9367
  | RegExp
9376
- | {
9377
- /**
9378
- * Logical AND.
9379
- */
9380
- and?: RuleSetCondition[];
9381
- /**
9382
- * Logical NOT.
9383
- */
9384
- not?: RuleSetCondition[];
9385
- /**
9386
- * Logical OR.
9387
- */
9388
- or?: RuleSetCondition[];
9389
- }
9390
9368
  | ((value: string) => boolean)
9369
+ | RuleSetLogicalConditions
9391
9370
  | RuleSetCondition[];
9392
9371
 
9393
9372
  /**
@@ -9396,21 +9375,8 @@ declare interface RuleSetRule {
9396
9375
  dependency?:
9397
9376
  | string
9398
9377
  | RegExp
9399
- | {
9400
- /**
9401
- * Logical AND.
9402
- */
9403
- and?: RuleSetCondition[];
9404
- /**
9405
- * Logical NOT.
9406
- */
9407
- not?: RuleSetCondition[];
9408
- /**
9409
- * Logical OR.
9410
- */
9411
- or?: RuleSetCondition[];
9412
- }
9413
9378
  | ((value: string) => boolean)
9379
+ | RuleSetLogicalConditions
9414
9380
  | RuleSetCondition[];
9415
9381
 
9416
9382
  /**
@@ -9429,21 +9395,8 @@ declare interface RuleSetRule {
9429
9395
  exclude?:
9430
9396
  | string
9431
9397
  | RegExp
9432
- | {
9433
- /**
9434
- * Logical AND.
9435
- */
9436
- and?: RuleSetConditionAbsolute[];
9437
- /**
9438
- * Logical NOT.
9439
- */
9440
- not?: RuleSetConditionAbsolute[];
9441
- /**
9442
- * Logical OR.
9443
- */
9444
- or?: RuleSetConditionAbsolute[];
9445
- }
9446
9398
  | ((value: string) => boolean)
9399
+ | RuleSetLogicalConditionsAbsolute
9447
9400
  | RuleSetConditionAbsolute[];
9448
9401
 
9449
9402
  /**
@@ -9457,21 +9410,8 @@ declare interface RuleSetRule {
9457
9410
  include?:
9458
9411
  | string
9459
9412
  | RegExp
9460
- | {
9461
- /**
9462
- * Logical AND.
9463
- */
9464
- and?: RuleSetConditionAbsolute[];
9465
- /**
9466
- * Logical NOT.
9467
- */
9468
- not?: RuleSetConditionAbsolute[];
9469
- /**
9470
- * Logical OR.
9471
- */
9472
- or?: RuleSetConditionAbsolute[];
9473
- }
9474
9413
  | ((value: string) => boolean)
9414
+ | RuleSetLogicalConditionsAbsolute
9475
9415
  | RuleSetConditionAbsolute[];
9476
9416
 
9477
9417
  /**
@@ -9480,21 +9420,8 @@ declare interface RuleSetRule {
9480
9420
  issuer?:
9481
9421
  | string
9482
9422
  | RegExp
9483
- | {
9484
- /**
9485
- * Logical AND.
9486
- */
9487
- and?: RuleSetConditionAbsolute[];
9488
- /**
9489
- * Logical NOT.
9490
- */
9491
- not?: RuleSetConditionAbsolute[];
9492
- /**
9493
- * Logical OR.
9494
- */
9495
- or?: RuleSetConditionAbsolute[];
9496
- }
9497
9423
  | ((value: string) => boolean)
9424
+ | RuleSetLogicalConditionsAbsolute
9498
9425
  | RuleSetConditionAbsolute[];
9499
9426
 
9500
9427
  /**
@@ -9503,21 +9430,8 @@ declare interface RuleSetRule {
9503
9430
  issuerLayer?:
9504
9431
  | string
9505
9432
  | RegExp
9506
- | {
9507
- /**
9508
- * Logical AND.
9509
- */
9510
- and?: RuleSetCondition[];
9511
- /**
9512
- * Logical NOT.
9513
- */
9514
- not?: RuleSetCondition[];
9515
- /**
9516
- * Logical OR.
9517
- */
9518
- or?: RuleSetCondition[];
9519
- }
9520
9433
  | ((value: string) => boolean)
9434
+ | RuleSetLogicalConditions
9521
9435
  | RuleSetCondition[];
9522
9436
 
9523
9437
  /**
@@ -9536,21 +9450,8 @@ declare interface RuleSetRule {
9536
9450
  mimetype?:
9537
9451
  | string
9538
9452
  | RegExp
9539
- | {
9540
- /**
9541
- * Logical AND.
9542
- */
9543
- and?: RuleSetCondition[];
9544
- /**
9545
- * Logical NOT.
9546
- */
9547
- not?: RuleSetCondition[];
9548
- /**
9549
- * Logical OR.
9550
- */
9551
- or?: RuleSetCondition[];
9552
- }
9553
9453
  | ((value: string) => boolean)
9454
+ | RuleSetLogicalConditions
9554
9455
  | RuleSetCondition[];
9555
9456
 
9556
9457
  /**
@@ -9574,21 +9475,8 @@ declare interface RuleSetRule {
9574
9475
  realResource?:
9575
9476
  | string
9576
9477
  | RegExp
9577
- | {
9578
- /**
9579
- * Logical AND.
9580
- */
9581
- and?: RuleSetConditionAbsolute[];
9582
- /**
9583
- * Logical NOT.
9584
- */
9585
- not?: RuleSetConditionAbsolute[];
9586
- /**
9587
- * Logical OR.
9588
- */
9589
- or?: RuleSetConditionAbsolute[];
9590
- }
9591
9478
  | ((value: string) => boolean)
9479
+ | RuleSetLogicalConditionsAbsolute
9592
9480
  | RuleSetConditionAbsolute[];
9593
9481
 
9594
9482
  /**
@@ -9602,21 +9490,8 @@ declare interface RuleSetRule {
9602
9490
  resource?:
9603
9491
  | string
9604
9492
  | RegExp
9605
- | {
9606
- /**
9607
- * Logical AND.
9608
- */
9609
- and?: RuleSetConditionAbsolute[];
9610
- /**
9611
- * Logical NOT.
9612
- */
9613
- not?: RuleSetConditionAbsolute[];
9614
- /**
9615
- * Logical OR.
9616
- */
9617
- or?: RuleSetConditionAbsolute[];
9618
- }
9619
9493
  | ((value: string) => boolean)
9494
+ | RuleSetLogicalConditionsAbsolute
9620
9495
  | RuleSetConditionAbsolute[];
9621
9496
 
9622
9497
  /**
@@ -9625,21 +9500,8 @@ declare interface RuleSetRule {
9625
9500
  resourceFragment?:
9626
9501
  | string
9627
9502
  | RegExp
9628
- | {
9629
- /**
9630
- * Logical AND.
9631
- */
9632
- and?: RuleSetCondition[];
9633
- /**
9634
- * Logical NOT.
9635
- */
9636
- not?: RuleSetCondition[];
9637
- /**
9638
- * Logical OR.
9639
- */
9640
- or?: RuleSetCondition[];
9641
- }
9642
9503
  | ((value: string) => boolean)
9504
+ | RuleSetLogicalConditions
9643
9505
  | RuleSetCondition[];
9644
9506
 
9645
9507
  /**
@@ -9648,21 +9510,8 @@ declare interface RuleSetRule {
9648
9510
  resourceQuery?:
9649
9511
  | string
9650
9512
  | RegExp
9651
- | {
9652
- /**
9653
- * Logical AND.
9654
- */
9655
- and?: RuleSetCondition[];
9656
- /**
9657
- * Logical NOT.
9658
- */
9659
- not?: RuleSetCondition[];
9660
- /**
9661
- * Logical OR.
9662
- */
9663
- or?: RuleSetCondition[];
9664
- }
9665
9513
  | ((value: string) => boolean)
9514
+ | RuleSetLogicalConditions
9666
9515
  | RuleSetCondition[];
9667
9516
 
9668
9517
  /**
@@ -9681,21 +9530,8 @@ declare interface RuleSetRule {
9681
9530
  test?:
9682
9531
  | string
9683
9532
  | RegExp
9684
- | {
9685
- /**
9686
- * Logical AND.
9687
- */
9688
- and?: RuleSetConditionAbsolute[];
9689
- /**
9690
- * Logical NOT.
9691
- */
9692
- not?: RuleSetConditionAbsolute[];
9693
- /**
9694
- * Logical OR.
9695
- */
9696
- or?: RuleSetConditionAbsolute[];
9697
- }
9698
9533
  | ((value: string) => boolean)
9534
+ | RuleSetLogicalConditionsAbsolute
9699
9535
  | RuleSetConditionAbsolute[];
9700
9536
 
9701
9537
  /**
@@ -9730,9 +9566,7 @@ declare interface RuleSetRule {
9730
9566
  */
9731
9567
  options?: string | { [index: string]: any };
9732
9568
  }
9733
- | ((
9734
- data: object
9735
- ) =>
9569
+ | ((data: object) =>
9736
9570
  | string
9737
9571
  | {
9738
9572
  /**
@@ -11617,8 +11451,8 @@ declare abstract class Watching {
11617
11451
  };
11618
11452
  compiler: Compiler;
11619
11453
  running: boolean;
11620
- watcher: any;
11621
- pausedWatcher: any;
11454
+ watcher?: null | Watcher;
11455
+ pausedWatcher?: null | Watcher;
11622
11456
  watch(
11623
11457
  files: Iterable<string>,
11624
11458
  dirs: Iterable<string>,
@@ -11923,9 +11757,7 @@ declare interface WithOptions {
11923
11757
  declare interface WriteOnlySet<T> {
11924
11758
  add: (T?: any) => void;
11925
11759
  }
11926
- type __TypeWebpackOptions = (
11927
- data: object
11928
- ) =>
11760
+ type __TypeWebpackOptions = (data: object) =>
11929
11761
  | string
11930
11762
  | {
11931
11763
  /**
@@ -11948,14 +11780,14 @@ declare function exports(
11948
11780
  callback?: CallbackWebpack<Stats>
11949
11781
  ): Compiler;
11950
11782
  declare function exports(
11951
- options: Configuration[] & MultiCompilerOptions,
11783
+ options: ReadonlyArray<Configuration> & MultiCompilerOptions,
11952
11784
  callback?: CallbackWebpack<MultiStats>
11953
11785
  ): MultiCompiler;
11954
11786
  declare namespace exports {
11955
11787
  export const webpack: {
11956
11788
  (options: Configuration, callback?: CallbackWebpack<Stats>): Compiler;
11957
11789
  (
11958
- options: Configuration[] & MultiCompilerOptions,
11790
+ options: ReadonlyArray<Configuration> & MultiCompilerOptions,
11959
11791
  callback?: CallbackWebpack<MultiStats>
11960
11792
  ): MultiCompiler;
11961
11793
  };