webpack 5.62.0 → 5.64.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/lib/Compilation.js +7 -4
- package/lib/EntryOptionPlugin.js +1 -0
- package/lib/FileSystemInfo.js +7 -6
- package/lib/RuntimePlugin.js +9 -1
- package/lib/WatchIgnorePlugin.js +5 -6
- package/lib/buildChunkGraph.js +35 -5
- package/lib/config/defaults.js +15 -4
- package/lib/config/normalization.js +3 -0
- package/lib/debug/ProfilingPlugin.js +9 -7
- package/lib/dependencies/CommonJsFullRequireDependency.js +1 -1
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +4 -4
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +4 -4
- package/lib/dependencies/HarmonyImportDependency.js +2 -0
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +4 -4
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +4 -4
- package/lib/stats/DefaultStatsPrinterPlugin.js +1 -1
- package/lib/util/ArrayHelpers.js +16 -0
- package/package.json +1 -1
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +16 -0
- package/types.d.ts +20 -0
@@ -434,6 +434,10 @@
|
|
434
434
|
"type": "object",
|
435
435
|
"additionalProperties": false,
|
436
436
|
"properties": {
|
437
|
+
"asyncChunks": {
|
438
|
+
"description": "Enable/disable creating async chunks that are loaded on demand.",
|
439
|
+
"type": "boolean"
|
440
|
+
},
|
437
441
|
"chunkLoading": {
|
438
442
|
"$ref": "#/definitions/ChunkLoading"
|
439
443
|
},
|
@@ -487,6 +491,10 @@
|
|
487
491
|
"type": "object",
|
488
492
|
"additionalProperties": false,
|
489
493
|
"properties": {
|
494
|
+
"asyncChunks": {
|
495
|
+
"description": "Enable/disable creating async chunks that are loaded on demand.",
|
496
|
+
"type": "boolean"
|
497
|
+
},
|
490
498
|
"chunkLoading": {
|
491
499
|
"$ref": "#/definitions/ChunkLoading"
|
492
500
|
},
|
@@ -2891,6 +2899,10 @@
|
|
2891
2899
|
"assetModuleFilename": {
|
2892
2900
|
"$ref": "#/definitions/AssetModuleFilename"
|
2893
2901
|
},
|
2902
|
+
"asyncChunks": {
|
2903
|
+
"description": "Enable/disable creating async chunks that are loaded on demand.",
|
2904
|
+
"type": "boolean"
|
2905
|
+
},
|
2894
2906
|
"auxiliaryComment": {
|
2895
2907
|
"cli": {
|
2896
2908
|
"exclude": true
|
@@ -3090,6 +3102,10 @@
|
|
3090
3102
|
"assetModuleFilename": {
|
3091
3103
|
"$ref": "#/definitions/AssetModuleFilename"
|
3092
3104
|
},
|
3105
|
+
"asyncChunks": {
|
3106
|
+
"description": "Enable/disable creating async chunks that are loaded on demand.",
|
3107
|
+
"type": "boolean"
|
3108
|
+
},
|
3093
3109
|
"charset": {
|
3094
3110
|
"$ref": "#/definitions/Charset"
|
3095
3111
|
},
|
package/types.d.ts
CHANGED
@@ -3024,6 +3024,11 @@ declare abstract class EntryDependency extends ModuleDependency {}
|
|
3024
3024
|
* An object with entry point description.
|
3025
3025
|
*/
|
3026
3026
|
declare interface EntryDescription {
|
3027
|
+
/**
|
3028
|
+
* Enable/disable creating async chunks that are loaded on demand.
|
3029
|
+
*/
|
3030
|
+
asyncChunks?: boolean;
|
3031
|
+
|
3027
3032
|
/**
|
3028
3033
|
* 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).
|
3029
3034
|
*/
|
@@ -3074,6 +3079,11 @@ declare interface EntryDescription {
|
|
3074
3079
|
* An object with entry point description.
|
3075
3080
|
*/
|
3076
3081
|
declare interface EntryDescriptionNormalized {
|
3082
|
+
/**
|
3083
|
+
* Enable/disable creating async chunks that are loaded on demand.
|
3084
|
+
*/
|
3085
|
+
asyncChunks?: boolean;
|
3086
|
+
|
3077
3087
|
/**
|
3078
3088
|
* 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).
|
3079
3089
|
*/
|
@@ -8062,6 +8072,11 @@ declare interface Output {
|
|
8062
8072
|
| string
|
8063
8073
|
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
8064
8074
|
|
8075
|
+
/**
|
8076
|
+
* Enable/disable creating async chunks that are loaded on demand.
|
8077
|
+
*/
|
8078
|
+
asyncChunks?: boolean;
|
8079
|
+
|
8065
8080
|
/**
|
8066
8081
|
* Add a comment in the UMD wrapper.
|
8067
8082
|
*/
|
@@ -8353,6 +8368,11 @@ declare interface OutputNormalized {
|
|
8353
8368
|
| string
|
8354
8369
|
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
8355
8370
|
|
8371
|
+
/**
|
8372
|
+
* Enable/disable creating async chunks that are loaded on demand.
|
8373
|
+
*/
|
8374
|
+
asyncChunks?: boolean;
|
8375
|
+
|
8356
8376
|
/**
|
8357
8377
|
* Add charset attribute for script tag.
|
8358
8378
|
*/
|