webpack 5.69.1 → 5.70.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.

Files changed (41) hide show
  1. package/lib/BannerPlugin.js +10 -4
  2. package/lib/CleanPlugin.js +64 -18
  3. package/lib/Compilation.js +41 -17
  4. package/lib/ContextModule.js +90 -26
  5. package/lib/ContextModuleFactory.js +65 -21
  6. package/lib/EntryOptionPlugin.js +1 -0
  7. package/lib/Generator.js +1 -0
  8. package/lib/ModuleHashingError.js +29 -0
  9. package/lib/NodeStuffPlugin.js +10 -0
  10. package/lib/NormalModule.js +21 -16
  11. package/lib/NormalModuleFactory.js +15 -8
  12. package/lib/ProgressPlugin.js +3 -4
  13. package/lib/RuntimeTemplate.js +1 -0
  14. package/lib/WebpackOptionsApply.js +2 -0
  15. package/lib/asset/AssetGenerator.js +119 -31
  16. package/lib/cache/ResolverCachePlugin.js +89 -28
  17. package/lib/config/browserslistTargetHandler.js +3 -5
  18. package/lib/config/normalization.js +1 -0
  19. package/lib/dependencies/ContextDependencyHelpers.js +1 -1
  20. package/lib/dependencies/HarmonyAcceptImportDependency.js +5 -3
  21. package/lib/dependencies/HarmonyExportInitFragment.js +4 -1
  22. package/lib/dependencies/ImportContextDependency.js +0 -2
  23. package/lib/dependencies/ImportMetaContextDependency.js +35 -0
  24. package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +252 -0
  25. package/lib/dependencies/ImportMetaContextPlugin.js +59 -0
  26. package/lib/dependencies/LoaderPlugin.js +2 -0
  27. package/lib/dependencies/RequireContextDependency.js +0 -16
  28. package/lib/esm/ModuleChunkLoadingRuntimeModule.js +24 -8
  29. package/lib/node/ReadFileChunkLoadingRuntimeModule.js +22 -7
  30. package/lib/node/RequireChunkLoadingRuntimeModule.js +22 -7
  31. package/lib/schemes/HttpUriPlugin.js +44 -3
  32. package/lib/util/internalSerializables.js +2 -0
  33. package/lib/web/JsonpChunkLoadingRuntimeModule.js +15 -5
  34. package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +30 -20
  35. package/module.d.ts +15 -0
  36. package/package.json +2 -2
  37. package/schemas/WebpackOptions.check.js +1 -1
  38. package/schemas/WebpackOptions.json +17 -1
  39. package/schemas/plugins/schemes/HttpUriPlugin.check.js +1 -1
  40. package/schemas/plugins/schemes/HttpUriPlugin.json +4 -0
  41. package/types.d.ts +164 -73
@@ -70,7 +70,7 @@
70
70
  ]
71
71
  },
72
72
  "AssetGeneratorDataUrlFunction": {
73
- "description": "Function that executes for module and should return an DataUrl string.",
73
+ "description": "Function that executes for module and should return an DataUrl string. It can have a string as 'ident' property which contributes to the module hash.",
74
74
  "instanceof": "Function",
75
75
  "tsType": "((source: string | Buffer, context: { filename: string, module: import('../lib/Module') }) => string)"
76
76
  },
@@ -496,6 +496,10 @@
496
496
  "description": "Enable/disable creating async chunks that are loaded on demand.",
497
497
  "type": "boolean"
498
498
  },
499
+ "baseUri": {
500
+ "description": "Base uri for this entry.",
501
+ "type": "string"
502
+ },
499
503
  "chunkLoading": {
500
504
  "$ref": "#/definitions/ChunkLoading"
501
505
  },
@@ -553,6 +557,10 @@
553
557
  "description": "Enable/disable creating async chunks that are loaded on demand.",
554
558
  "type": "boolean"
555
559
  },
560
+ "baseUri": {
561
+ "description": "Base uri for this entry.",
562
+ "type": "string"
563
+ },
556
564
  "chunkLoading": {
557
565
  "$ref": "#/definitions/ChunkLoading"
558
566
  },
@@ -1417,6 +1425,10 @@
1417
1425
  "type": "string",
1418
1426
  "absolutePath": true
1419
1427
  },
1428
+ "proxy": {
1429
+ "description": "Proxy configuration, which can be used to specify a proxy server to use for HTTP requests.",
1430
+ "type": "string"
1431
+ },
1420
1432
  "upgrade": {
1421
1433
  "description": "When set, resources of existing lockfile entries will be fetched and entries will be upgraded when resource content has changed.",
1422
1434
  "type": "boolean"
@@ -1612,6 +1624,10 @@
1612
1624
  "description": "Enable/disable evaluating import.meta.",
1613
1625
  "type": "boolean"
1614
1626
  },
1627
+ "importMetaContext": {
1628
+ "description": "Enable/disable evaluating import.meta.webpackContext.",
1629
+ "type": "boolean"
1630
+ },
1615
1631
  "node": {
1616
1632
  "$ref": "#/definitions/Node"
1617
1633
  },
@@ -3,4 +3,4 @@
3
3
  * DO NOT MODIFY BY HAND.
4
4
  * Run `yarn special-lint-fix` to update
5
5
  */
6
- const r=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;module.exports=n,module.exports.default=n;const t=new RegExp("^https?://","u");function e(n,{instancePath:o="",parentData:s,parentDataProperty:a,rootData:l=n}={}){let i=null,p=0;if(0===p){if(!n||"object"!=typeof n||Array.isArray(n))return e.errors=[{params:{type:"object"}}],!1;{let o;if(void 0===n.allowedUris&&(o="allowedUris"))return e.errors=[{params:{missingProperty:o}}],!1;{const o=p;for(const r in n)if("allowedUris"!==r&&"cacheLocation"!==r&&"frozen"!==r&&"lockfileLocation"!==r&&"upgrade"!==r)return e.errors=[{params:{additionalProperty:r}}],!1;if(o===p){if(void 0!==n.allowedUris){let r=n.allowedUris;const o=p;if(p==p){if(!Array.isArray(r))return e.errors=[{params:{type:"array"}}],!1;{const n=r.length;for(let o=0;o<n;o++){let n=r[o];const s=p,a=p;let l=!1;const f=p;if(!(n instanceof RegExp)){const r={params:{}};null===i?i=[r]:i.push(r),p++}var c=f===p;if(l=l||c,!l){const r=p;if(p===r)if("string"==typeof n){if(!t.test(n)){const r={params:{pattern:"^https?://"}};null===i?i=[r]:i.push(r),p++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),p++}if(c=r===p,l=l||c,!l){const r=p;if(!(n instanceof Function)){const r={params:{}};null===i?i=[r]:i.push(r),p++}c=r===p,l=l||c}}if(!l){const r={params:{}};return null===i?i=[r]:i.push(r),p++,e.errors=i,!1}if(p=a,null!==i&&(a?i.length=a:i=null),s!==p)break}}}var f=o===p}else f=!0;if(f){if(void 0!==n.cacheLocation){let t=n.cacheLocation;const o=p,s=p;let a=!1;const l=p;if(!1!==t){const r={params:{}};null===i?i=[r]:i.push(r),p++}var u=l===p;if(a=a||u,!a){const e=p;if(p===e)if("string"==typeof t){if(t.includes("!")||!0!==r.test(t)){const r={params:{}};null===i?i=[r]:i.push(r),p++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),p++}u=e===p,a=a||u}if(!a){const r={params:{}};return null===i?i=[r]:i.push(r),p++,e.errors=i,!1}p=s,null!==i&&(s?i.length=s:i=null),f=o===p}else f=!0;if(f){if(void 0!==n.frozen){const r=p;if("boolean"!=typeof n.frozen)return e.errors=[{params:{type:"boolean"}}],!1;f=r===p}else f=!0;if(f){if(void 0!==n.lockfileLocation){let t=n.lockfileLocation;const o=p;if(p===o){if("string"!=typeof t)return e.errors=[{params:{type:"string"}}],!1;if(t.includes("!")||!0!==r.test(t))return e.errors=[{params:{}}],!1}f=o===p}else f=!0;if(f)if(void 0!==n.upgrade){const r=p;if("boolean"!=typeof n.upgrade)return e.errors=[{params:{type:"boolean"}}],!1;f=r===p}else f=!0}}}}}}}return e.errors=i,0===p}function n(r,{instancePath:t="",parentData:o,parentDataProperty:s,rootData:a=r}={}){let l=null,i=0;const p=i;let c=!1,f=null;const u=i;if(e(r,{instancePath:t,parentData:o,parentDataProperty:s,rootData:a})||(l=null===l?e.errors:l.concat(e.errors),i=l.length),u===i&&(c=!0,f=0),!c){const r={params:{passingSchemas:f}};return null===l?l=[r]:l.push(r),i++,n.errors=l,!1}return i=p,null!==l&&(p?l.length=p:l=null),n.errors=l,0===i}
6
+ const r=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;module.exports=n,module.exports.default=n;const t=new RegExp("^https?://","u");function e(n,{instancePath:o="",parentData:s,parentDataProperty:a,rootData:l=n}={}){let i=null,p=0;if(0===p){if(!n||"object"!=typeof n||Array.isArray(n))return e.errors=[{params:{type:"object"}}],!1;{let o;if(void 0===n.allowedUris&&(o="allowedUris"))return e.errors=[{params:{missingProperty:o}}],!1;{const o=p;for(const r in n)if("allowedUris"!==r&&"cacheLocation"!==r&&"frozen"!==r&&"lockfileLocation"!==r&&"proxy"!==r&&"upgrade"!==r)return e.errors=[{params:{additionalProperty:r}}],!1;if(o===p){if(void 0!==n.allowedUris){let r=n.allowedUris;const o=p;if(p==p){if(!Array.isArray(r))return e.errors=[{params:{type:"array"}}],!1;{const n=r.length;for(let o=0;o<n;o++){let n=r[o];const s=p,a=p;let l=!1;const c=p;if(!(n instanceof RegExp)){const r={params:{}};null===i?i=[r]:i.push(r),p++}var f=c===p;if(l=l||f,!l){const r=p;if(p===r)if("string"==typeof n){if(!t.test(n)){const r={params:{pattern:"^https?://"}};null===i?i=[r]:i.push(r),p++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),p++}if(f=r===p,l=l||f,!l){const r=p;if(!(n instanceof Function)){const r={params:{}};null===i?i=[r]:i.push(r),p++}f=r===p,l=l||f}}if(!l){const r={params:{}};return null===i?i=[r]:i.push(r),p++,e.errors=i,!1}if(p=a,null!==i&&(a?i.length=a:i=null),s!==p)break}}}var c=o===p}else c=!0;if(c){if(void 0!==n.cacheLocation){let t=n.cacheLocation;const o=p,s=p;let a=!1;const l=p;if(!1!==t){const r={params:{}};null===i?i=[r]:i.push(r),p++}var u=l===p;if(a=a||u,!a){const e=p;if(p===e)if("string"==typeof t){if(t.includes("!")||!0!==r.test(t)){const r={params:{}};null===i?i=[r]:i.push(r),p++}}else{const r={params:{type:"string"}};null===i?i=[r]:i.push(r),p++}u=e===p,a=a||u}if(!a){const r={params:{}};return null===i?i=[r]:i.push(r),p++,e.errors=i,!1}p=s,null!==i&&(s?i.length=s:i=null),c=o===p}else c=!0;if(c){if(void 0!==n.frozen){const r=p;if("boolean"!=typeof n.frozen)return e.errors=[{params:{type:"boolean"}}],!1;c=r===p}else c=!0;if(c){if(void 0!==n.lockfileLocation){let t=n.lockfileLocation;const o=p;if(p===o){if("string"!=typeof t)return e.errors=[{params:{type:"string"}}],!1;if(t.includes("!")||!0!==r.test(t))return e.errors=[{params:{}}],!1}c=o===p}else c=!0;if(c){if(void 0!==n.proxy){const r=p;if("string"!=typeof n.proxy)return e.errors=[{params:{type:"string"}}],!1;c=r===p}else c=!0;if(c)if(void 0!==n.upgrade){const r=p;if("boolean"!=typeof n.upgrade)return e.errors=[{params:{type:"boolean"}}],!1;c=r===p}else c=!0}}}}}}}}return e.errors=i,0===p}function n(r,{instancePath:t="",parentData:o,parentDataProperty:s,rootData:a=r}={}){let l=null,i=0;const p=i;let f=!1,c=null;const u=i;if(e(r,{instancePath:t,parentData:o,parentDataProperty:s,rootData:a})||(l=null===l?e.errors:l.concat(e.errors),i=l.length),u===i&&(f=!0,c=0),!f){const r={params:{passingSchemas:c}};return null===l?l=[r]:l.push(r),i++,n.errors=l,!1}return i=p,null!==l&&(p?l.length=p:l=null),n.errors=l,0===i}
@@ -29,6 +29,10 @@
29
29
  "type": "string",
30
30
  "absolutePath": true
31
31
  },
32
+ "proxy": {
33
+ "description": "Proxy configuration, which can be used to specify a proxy server to use for HTTP requests.",
34
+ "type": "string"
35
+ },
32
36
  "upgrade": {
33
37
  "description": "When set, resources of existing lockfile entries will be fetched and entries will be upgraded when resource content has changed.",
34
38
  "type": "boolean"
package/types.d.ts CHANGED
@@ -2526,7 +2526,7 @@ declare interface ContextModuleOptions {
2526
2526
  * exports referenced from modules (won't be mangled)
2527
2527
  */
2528
2528
  referencedExports?: string[][];
2529
- resource: string;
2529
+ resource: string | false | string[];
2530
2530
  resourceQuery?: string;
2531
2531
  resourceFragment?: string;
2532
2532
  resolveOptions: any;
@@ -3139,6 +3139,11 @@ declare interface EntryDescription {
3139
3139
  */
3140
3140
  asyncChunks?: boolean;
3141
3141
 
3142
+ /**
3143
+ * Base uri for this entry.
3144
+ */
3145
+ baseUri?: string;
3146
+
3142
3147
  /**
3143
3148
  * The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).
3144
3149
  */
@@ -3194,6 +3199,11 @@ declare interface EntryDescriptionNormalized {
3194
3199
  */
3195
3200
  asyncChunks?: boolean;
3196
3201
 
3202
+ /**
3203
+ * Base uri for this entry.
3204
+ */
3205
+ baseUri?: string;
3206
+
3197
3207
  /**
3198
3208
  * The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).
3199
3209
  */
@@ -4553,6 +4563,11 @@ declare interface HttpUriOptions {
4553
4563
  */
4554
4564
  lockfileLocation?: string;
4555
4565
 
4566
+ /**
4567
+ * Proxy configuration, which can be used to specify a proxy server to use for HTTP requests.
4568
+ */
4569
+ proxy?: string;
4570
+
4556
4571
  /**
4557
4572
  * When set, resources of existing lockfile entries will be fetched and entries will be upgraded when resource content has changed.
4558
4573
  */
@@ -4645,6 +4660,11 @@ declare interface ImportModuleOptions {
4645
4660
  * the target public path
4646
4661
  */
4647
4662
  publicPath?: string;
4663
+
4664
+ /**
4665
+ * target base uri
4666
+ */
4667
+ baseUri?: string;
4648
4668
  }
4649
4669
  type ImportSource =
4650
4670
  | undefined
@@ -5488,6 +5508,11 @@ declare interface JavascriptParserOptions {
5488
5508
  */
5489
5509
  importMeta?: boolean;
5490
5510
 
5511
+ /**
5512
+ * Enable/disable evaluating import.meta.webpackContext.
5513
+ */
5514
+ importMetaContext?: boolean;
5515
+
5491
5516
  /**
5492
5517
  * Include polyfills or mocks for various node stuff.
5493
5518
  */
@@ -7236,6 +7261,37 @@ declare interface ModuleReferenceOptions {
7236
7261
  */
7237
7262
  asiSafe?: boolean;
7238
7263
  }
7264
+ declare interface ModuleSettings {
7265
+ /**
7266
+ * Specifies the layer in which the module should be placed in.
7267
+ */
7268
+ layer?: string;
7269
+
7270
+ /**
7271
+ * Module type to use for the module.
7272
+ */
7273
+ type?: string;
7274
+
7275
+ /**
7276
+ * Options for the resolver.
7277
+ */
7278
+ resolve?: ResolveOptionsWebpackOptions;
7279
+
7280
+ /**
7281
+ * Options for parsing.
7282
+ */
7283
+ parser?: { [index: string]: any };
7284
+
7285
+ /**
7286
+ * The options for the module generator.
7287
+ */
7288
+ generator?: { [index: string]: any };
7289
+
7290
+ /**
7291
+ * Flags a module as with or without side effects.
7292
+ */
7293
+ sideEffects?: boolean;
7294
+ }
7239
7295
  declare abstract class ModuleTemplate {
7240
7296
  type: string;
7241
7297
  hooks: Readonly<{
@@ -7487,76 +7543,15 @@ declare class NodeTemplatePlugin {
7487
7543
  }
7488
7544
  type NodeWebpackOptions = false | NodeOptions;
7489
7545
  declare class NormalModule extends Module {
7490
- constructor(__0: {
7491
- /**
7492
- * an optional layer in which the module is
7493
- */
7494
- layer?: string;
7495
- /**
7496
- * module type
7497
- */
7498
- type: string;
7499
- /**
7500
- * request string
7501
- */
7502
- request: string;
7503
- /**
7504
- * request intended by user (without loaders from config)
7505
- */
7506
- userRequest: string;
7507
- /**
7508
- * request without resolving
7509
- */
7510
- rawRequest: string;
7511
- /**
7512
- * list of loaders
7513
- */
7514
- loaders: LoaderItem[];
7515
- /**
7516
- * path + query of the real resource
7517
- */
7518
- resource: string;
7519
- /**
7520
- * resource resolve data
7521
- */
7522
- resourceResolveData?: Record<string, any>;
7523
- /**
7524
- * context directory for resolving
7525
- */
7526
- context: string;
7527
- /**
7528
- * path + query of the matched resource (virtual)
7529
- */
7530
- matchResource?: string;
7531
- /**
7532
- * the parser used
7533
- */
7534
- parser: Parser;
7535
- /**
7536
- * the options of the parser used
7537
- */
7538
- parserOptions: object;
7539
- /**
7540
- * the generator used
7541
- */
7542
- generator: Generator;
7543
- /**
7544
- * the options of the generator used
7545
- */
7546
- generatorOptions: object;
7547
- /**
7548
- * options used for resolving requests from this module
7549
- */
7550
- resolveOptions: Object;
7551
- });
7546
+ constructor(__0: NormalModuleCreateData);
7552
7547
  request: string;
7553
7548
  userRequest: string;
7554
7549
  rawRequest: string;
7555
7550
  binary: boolean;
7556
7551
  parser: Parser;
7557
- parserOptions: object;
7552
+ parserOptions?: Record<string, any>;
7558
7553
  generator: Generator;
7559
- generatorOptions: object;
7554
+ generatorOptions?: Record<string, any>;
7560
7555
  resource: string;
7561
7556
  resourceResolveData?: Record<string, any>;
7562
7557
  matchResource?: string;
@@ -7599,20 +7594,109 @@ declare interface NormalModuleCompilationHooks {
7599
7594
  readResource: HookMap<AsyncSeriesBailHook<[object], string | Buffer>>;
7600
7595
  needBuild: AsyncSeriesBailHook<[NormalModule, NeedBuildContext], boolean>;
7601
7596
  }
7597
+ declare interface NormalModuleCreateData {
7598
+ /**
7599
+ * an optional layer in which the module is
7600
+ */
7601
+ layer?: string;
7602
+
7603
+ /**
7604
+ * module type
7605
+ */
7606
+ type: string;
7607
+
7608
+ /**
7609
+ * request string
7610
+ */
7611
+ request: string;
7612
+
7613
+ /**
7614
+ * request intended by user (without loaders from config)
7615
+ */
7616
+ userRequest: string;
7617
+
7618
+ /**
7619
+ * request without resolving
7620
+ */
7621
+ rawRequest: string;
7622
+
7623
+ /**
7624
+ * list of loaders
7625
+ */
7626
+ loaders: LoaderItem[];
7627
+
7628
+ /**
7629
+ * path + query of the real resource
7630
+ */
7631
+ resource: string;
7632
+
7633
+ /**
7634
+ * resource resolve data
7635
+ */
7636
+ resourceResolveData?: Record<string, any>;
7637
+
7638
+ /**
7639
+ * context directory for resolving
7640
+ */
7641
+ context: string;
7642
+
7643
+ /**
7644
+ * path + query of the matched resource (virtual)
7645
+ */
7646
+ matchResource?: string;
7647
+
7648
+ /**
7649
+ * the parser used
7650
+ */
7651
+ parser: Parser;
7652
+
7653
+ /**
7654
+ * the options of the parser used
7655
+ */
7656
+ parserOptions?: Record<string, any>;
7657
+
7658
+ /**
7659
+ * the generator used
7660
+ */
7661
+ generator: Generator;
7662
+
7663
+ /**
7664
+ * the options of the generator used
7665
+ */
7666
+ generatorOptions?: Record<string, any>;
7667
+
7668
+ /**
7669
+ * options used for resolving requests from this module
7670
+ */
7671
+ resolveOptions?: ResolveOptionsWebpackOptions;
7672
+ }
7602
7673
  declare abstract class NormalModuleFactory extends ModuleFactory {
7603
7674
  hooks: Readonly<{
7604
- resolve: AsyncSeriesBailHook<[ResolveData], any>;
7675
+ resolve: AsyncSeriesBailHook<[ResolveData], false | void | Module>;
7605
7676
  resolveForScheme: HookMap<
7606
7677
  AsyncSeriesBailHook<[ResourceDataWithData, ResolveData], true | void>
7607
7678
  >;
7608
7679
  resolveInScheme: HookMap<
7609
7680
  AsyncSeriesBailHook<[ResourceDataWithData, ResolveData], true | void>
7610
7681
  >;
7611
- factorize: AsyncSeriesBailHook<[ResolveData], any>;
7612
- beforeResolve: AsyncSeriesBailHook<[ResolveData], any>;
7613
- afterResolve: AsyncSeriesBailHook<[ResolveData], any>;
7614
- createModule: AsyncSeriesBailHook<[Object, ResolveData], any>;
7615
- module: SyncWaterfallHook<[Module, Object, ResolveData], any>;
7682
+ factorize: AsyncSeriesBailHook<[ResolveData], Module>;
7683
+ beforeResolve: AsyncSeriesBailHook<[ResolveData], false | void>;
7684
+ afterResolve: AsyncSeriesBailHook<[ResolveData], false | void>;
7685
+ createModule: AsyncSeriesBailHook<
7686
+ [
7687
+ Partial<NormalModuleCreateData & { settings: ModuleSettings }>,
7688
+ ResolveData
7689
+ ],
7690
+ void | Module
7691
+ >;
7692
+ module: SyncWaterfallHook<
7693
+ [
7694
+ Module,
7695
+ Partial<NormalModuleCreateData & { settings: ModuleSettings }>,
7696
+ ResolveData
7697
+ ],
7698
+ Module
7699
+ >;
7616
7700
  createParser: HookMap<SyncBailHook<any, any>>;
7617
7701
  parser: HookMap<SyncHook<any>>;
7618
7702
  createGenerator: HookMap<SyncBailHook<any, any>>;
@@ -9405,6 +9489,11 @@ declare interface ResolveContext {
9405
9489
  * log function
9406
9490
  */
9407
9491
  log?: (arg0: string) => void;
9492
+
9493
+ /**
9494
+ * yield result, if provided plugins can return several results
9495
+ */
9496
+ yield?: (arg0: ResolveRequest) => void;
9408
9497
  }
9409
9498
  declare interface ResolveData {
9410
9499
  contextInfo: ModuleFactoryCreateDataContextInfo;
@@ -9414,7 +9503,7 @@ declare interface ResolveData {
9414
9503
  assertions?: Record<string, any>;
9415
9504
  dependencies: ModuleDependency[];
9416
9505
  dependencyType: string;
9417
- createData: Object;
9506
+ createData: Partial<NormalModuleCreateData & { settings: ModuleSettings }>;
9418
9507
  fileDependencies: LazySet<string>;
9419
9508
  missingDependencies: LazySet<string>;
9420
9509
  contextDependencies: LazySet<string>;
@@ -10197,6 +10286,7 @@ declare abstract class RuntimeTemplate {
10197
10286
  outputOptions: OutputNormalized;
10198
10287
  requestShortener: RequestShortener;
10199
10288
  globalObject: string;
10289
+ contentHashReplacement: string;
10200
10290
  isIIFE(): undefined | boolean;
10201
10291
  isModule(): undefined | boolean;
10202
10292
  supportsConst(): undefined | boolean;
@@ -11723,6 +11813,7 @@ declare interface UpdateHashContextGenerator {
11723
11813
  module: NormalModule;
11724
11814
  chunkGraph: ChunkGraph;
11725
11815
  runtime: RuntimeSpec;
11816
+ runtimeTemplate?: RuntimeTemplate;
11726
11817
  }
11727
11818
  type UsageStateType = 0 | 1 | 2 | 3 | 4;
11728
11819
  declare interface UserResolveOptions {
@@ -11851,7 +11942,7 @@ declare interface UserResolveOptions {
11851
11942
  restrictions?: (string | RegExp)[];
11852
11943
 
11853
11944
  /**
11854
- * Use only the sync constiants of the file system calls
11945
+ * Use only the sync constraints of the file system calls
11855
11946
  */
11856
11947
  useSyncFileSystemCalls?: boolean;
11857
11948