webpack 5.35.1 → 5.37.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/Chunk.js +8 -2
- package/lib/ChunkGraph.js +58 -35
- package/lib/Compilation.js +73 -43
- package/lib/Compiler.js +27 -13
- package/lib/Dependency.js +69 -4
- package/lib/EntryPlugin.js +1 -1
- package/lib/FileSystemInfo.js +1 -1
- package/lib/InitFragment.js +21 -6
- package/lib/ModuleGraph.js +2 -2
- package/lib/NormalModule.js +16 -2
- package/lib/NormalModuleFactory.js +27 -23
- package/lib/RuntimeGlobals.js +7 -0
- package/lib/RuntimePlugin.js +19 -1
- package/lib/SourceMapDevToolPlugin.js +1 -1
- package/lib/WebpackOptionsApply.js +1 -0
- package/lib/buildChunkGraph.js +7 -2
- package/lib/cache/PackFileCacheStrategy.js +65 -4
- package/lib/config/defaults.js +12 -1
- package/lib/config/normalization.js +10 -0
- package/lib/dependencies/CreateScriptUrlDependency.js +54 -0
- package/lib/dependencies/HarmonyExportInitFragment.js +47 -0
- package/lib/dependencies/NullDependency.js +0 -8
- package/lib/dependencies/WorkerPlugin.js +32 -4
- package/lib/javascript/JavascriptParser.js +39 -31
- package/lib/optimize/InnerGraphPlugin.js +8 -9
- package/lib/runtime/CreateScriptUrlRuntimeModule.js +61 -0
- package/lib/runtime/LoadScriptRuntimeModule.js +10 -2
- package/lib/util/AsyncQueue.js +6 -1
- package/lib/util/comparators.js +22 -16
- package/lib/util/fs.js +8 -8
- package/lib/util/internalSerializables.js +2 -0
- package/lib/webworker/ImportScriptsChunkLoadingPlugin.js +13 -1
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +14 -4
- package/package.json +5 -5
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +35 -0
- package/types.d.ts +479 -44
@@ -999,6 +999,10 @@
|
|
999
999
|
"description": "Name for the cache. Different names will lead to different coexisting caches.",
|
1000
1000
|
"type": "string"
|
1001
1001
|
},
|
1002
|
+
"profile": {
|
1003
|
+
"description": "Track and log detailed timing information for individual cache items.",
|
1004
|
+
"type": "boolean"
|
1005
|
+
},
|
1002
1006
|
"store": {
|
1003
1007
|
"description": "When to store data to the filesystem. (pack: Store data when compiler is idle in a single file).",
|
1004
1008
|
"enum": ["pack"]
|
@@ -2682,6 +2686,22 @@
|
|
2682
2686
|
"strictModuleExceptionHandling": {
|
2683
2687
|
"$ref": "#/definitions/StrictModuleExceptionHandling"
|
2684
2688
|
},
|
2689
|
+
"trustedTypes": {
|
2690
|
+
"description": "Use a Trusted Types policy to create urls for chunks. 'output.uniqueName' is used a default policy name. Passing a string sets a custom policy name.",
|
2691
|
+
"anyOf": [
|
2692
|
+
{
|
2693
|
+
"enum": [true]
|
2694
|
+
},
|
2695
|
+
{
|
2696
|
+
"description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.",
|
2697
|
+
"type": "string",
|
2698
|
+
"minLength": 1
|
2699
|
+
},
|
2700
|
+
{
|
2701
|
+
"$ref": "#/definitions/TrustedTypes"
|
2702
|
+
}
|
2703
|
+
]
|
2704
|
+
},
|
2685
2705
|
"umdNamedDefine": {
|
2686
2706
|
"cli": {
|
2687
2707
|
"exclude": true
|
@@ -2835,6 +2855,9 @@
|
|
2835
2855
|
"strictModuleExceptionHandling": {
|
2836
2856
|
"$ref": "#/definitions/StrictModuleExceptionHandling"
|
2837
2857
|
},
|
2858
|
+
"trustedTypes": {
|
2859
|
+
"$ref": "#/definitions/TrustedTypes"
|
2860
|
+
},
|
2838
2861
|
"uniqueName": {
|
2839
2862
|
"$ref": "#/definitions/UniqueName"
|
2840
2863
|
},
|
@@ -4352,6 +4375,18 @@
|
|
4352
4375
|
}
|
4353
4376
|
]
|
4354
4377
|
},
|
4378
|
+
"TrustedTypes": {
|
4379
|
+
"description": "Use a Trusted Types policy to create urls for chunks.",
|
4380
|
+
"type": "object",
|
4381
|
+
"additionalProperties": false,
|
4382
|
+
"properties": {
|
4383
|
+
"policyName": {
|
4384
|
+
"description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.",
|
4385
|
+
"type": "string",
|
4386
|
+
"minLength": 1
|
4387
|
+
}
|
4388
|
+
}
|
4389
|
+
},
|
4355
4390
|
"UmdNamedDefine": {
|
4356
4391
|
"description": "If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.",
|
4357
4392
|
"type": "boolean"
|