webpack 4.16.0 → 4.16.4

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.
Files changed (71) hide show
  1. package/README.md +5 -2
  2. package/SECURITY.md +9 -9
  3. package/buildin/global.js +20 -20
  4. package/buildin/module.js +22 -22
  5. package/hot/log-apply-result.js +44 -44
  6. package/hot/log.js +2 -0
  7. package/lib/BasicEvaluatedExpression.js +211 -211
  8. package/lib/Chunk.js +32 -10
  9. package/lib/ChunkGroup.js +3 -3
  10. package/lib/Compilation.js +47 -11
  11. package/lib/ContextExclusionPlugin.js +11 -0
  12. package/lib/ContextModule.js +116 -30
  13. package/lib/ContextModuleFactory.js +6 -0
  14. package/lib/DefinePlugin.js +49 -0
  15. package/lib/DelegatedModule.js +5 -0
  16. package/lib/DependenciesBlock.js +1 -1
  17. package/lib/DllModule.js +6 -0
  18. package/lib/DllReferencePlugin.js +51 -3
  19. package/lib/ExternalModule.js +6 -0
  20. package/lib/Generator.js +11 -3
  21. package/lib/HotModuleReplacementPlugin.js +1 -5
  22. package/lib/MemoryOutputFileSystem.js +5 -5
  23. package/lib/Module.js +52 -12
  24. package/lib/MultiModule.js +6 -0
  25. package/lib/NodeStuffPlugin.js +18 -0
  26. package/lib/NormalModule.js +6 -0
  27. package/lib/NullFactory.js +12 -12
  28. package/lib/OptionsApply.js +10 -10
  29. package/lib/Parser.js +12 -3
  30. package/lib/RuntimeTemplate.js +12 -0
  31. package/lib/Stats.js +19 -2
  32. package/lib/Template.js +44 -43
  33. package/lib/WatchIgnorePlugin.js +18 -18
  34. package/lib/debug/ProfilingPlugin.js +1 -1
  35. package/lib/dependencies/AMDRequireItemDependency.js +22 -22
  36. package/lib/dependencies/CommonJsRequireDependency.js +22 -22
  37. package/lib/dependencies/CommonJsRequireDependencyParserPlugin.js +6 -0
  38. package/lib/dependencies/CriticalDependencyWarning.js +20 -20
  39. package/lib/dependencies/DelegatedSourceDependency.js +18 -18
  40. package/lib/dependencies/DllEntryDependency.js +20 -20
  41. package/lib/dependencies/LocalModule.js +23 -23
  42. package/lib/dependencies/ModuleHotAcceptDependency.js +23 -23
  43. package/lib/dependencies/ModuleHotDeclineDependency.js +23 -23
  44. package/lib/dependencies/PrefetchDependency.js +18 -18
  45. package/lib/dependencies/RequireEnsureItemDependency.js +21 -21
  46. package/lib/dependencies/RequireResolveDependency.js +22 -22
  47. package/lib/node/NodeOutputFileSystem.js +22 -22
  48. package/lib/node/NodeTargetPlugin.js +1 -0
  49. package/lib/optimize/ConcatenatedModule.js +5 -0
  50. package/lib/optimize/OccurrenceChunkOrderPlugin.js +1 -1
  51. package/lib/optimize/OccurrenceModuleOrderPlugin.js +1 -1
  52. package/lib/optimize/OccurrenceOrderPlugin.js +2 -2
  53. package/lib/util/SortableSet.js +1 -0
  54. package/lib/util/StackedSetMap.js +12 -3
  55. package/lib/wasm/WebAssemblyGenerator.js +22 -5
  56. package/lib/wasm/WebAssemblyJavascriptGenerator.js +16 -2
  57. package/lib/webpack.js +1 -0
  58. package/package.json +12 -20
  59. package/schemas/WebpackOptions.json +2 -6
  60. package/schemas/ajv.absolutePath.js +55 -55
  61. package/schemas/plugins/BannerPlugin.json +96 -96
  62. package/schemas/plugins/DllPlugin.json +32 -32
  63. package/schemas/plugins/DllReferencePlugin.json +99 -99
  64. package/schemas/plugins/HashedModuleIdsPlugin.json +24 -24
  65. package/schemas/plugins/LoaderOptionsPlugin.json +26 -26
  66. package/schemas/plugins/SourceMapDevToolPlugin.json +187 -187
  67. package/schemas/plugins/WatchIgnorePlugin.json +16 -16
  68. package/schemas/plugins/debug/ProfilingPlugin.json +12 -12
  69. package/schemas/plugins/optimize/AggressiveSplittingPlugin.json +22 -22
  70. package/schemas/plugins/optimize/LimitChunkCountPlugin.json +15 -15
  71. package/schemas/plugins/optimize/MinChunkSizePlugin.json +13 -13
@@ -1,99 +1,99 @@
1
- {
2
- "additionalProperties": false,
3
- "anyOf": [
4
- {
5
- "required": [
6
- "manifest"
7
- ]
8
- },
9
- {
10
- "required": [
11
- "content"
12
- ]
13
- }
14
- ],
15
- "properties": {
16
- "context": {
17
- "description": "(absolute path) context of requests in the manifest (or content property)",
18
- "type": "string",
19
- "absolutePath": true
20
- },
21
- "manifest": {
22
- "description": "An object containing content and name or a string to the absolute path of the JSON manifest to be loaded upon compilation",
23
- "oneOf": [
24
- {
25
- "type": "object",
26
- "additionalProperties": false,
27
- "properties": {
28
- "content": {
29
- "description": "The mappings from request to module id",
30
- "minLength": 1,
31
- "type": "object"
32
- },
33
- "name": {
34
- "description": "The name where the dll is exposed (external name)",
35
- "minLength": 1,
36
- "type": "string"
37
- },
38
- "type": {
39
- "description": "The type how the dll is exposed (external type)",
40
- "minLength": 1,
41
- "type": "string"
42
- }
43
- }
44
- },
45
- {
46
- "type": "string",
47
- "absolutePath": true
48
- }
49
- ]
50
- },
51
- "content": {
52
- "description": "The mappings from request to module id (defaults to manifest.content)",
53
- "minLength": 1,
54
- "type": "object"
55
- },
56
- "name": {
57
- "description": "The name where the dll is exposed (external name, defaults to manifest.name)",
58
- "minLength": 1,
59
- "type": "string"
60
- },
61
- "type": {
62
- "description": "The way how the export of the dll bundle is used",
63
- "enum": [
64
- "require",
65
- "object"
66
- ]
67
- },
68
- "scope": {
69
- "description": "Prefix which is used for accessing the content of the dll",
70
- "minLength": 1,
71
- "type": "string"
72
- },
73
- "sourceType": {
74
- "description": "How the dll is exposed (libraryTarget, defaults to manifest.type)",
75
- "enum": [
76
- "var",
77
- "assign",
78
- "this",
79
- "window",
80
- "global",
81
- "commonjs",
82
- "commonjs2",
83
- "commonjs-module",
84
- "amd",
85
- "umd",
86
- "umd2",
87
- "jsonp"
88
- ]
89
- },
90
- "extensions": {
91
- "description": "Extensions used to resolve modules in the dll bundle (only used when using 'scope')",
92
- "type": "array",
93
- "items": {
94
- "description": "An extension",
95
- "type": "string"
96
- }
97
- }
98
- }
99
- }
1
+ {
2
+ "additionalProperties": false,
3
+ "anyOf": [
4
+ {
5
+ "required": [
6
+ "manifest"
7
+ ]
8
+ },
9
+ {
10
+ "required": [
11
+ "content"
12
+ ]
13
+ }
14
+ ],
15
+ "properties": {
16
+ "context": {
17
+ "description": "(absolute path) context of requests in the manifest (or content property)",
18
+ "type": "string",
19
+ "absolutePath": true
20
+ },
21
+ "manifest": {
22
+ "description": "An object containing content and name or a string to the absolute path of the JSON manifest to be loaded upon compilation",
23
+ "oneOf": [
24
+ {
25
+ "type": "object",
26
+ "additionalProperties": false,
27
+ "properties": {
28
+ "content": {
29
+ "description": "The mappings from request to module id",
30
+ "minLength": 1,
31
+ "type": "object"
32
+ },
33
+ "name": {
34
+ "description": "The name where the dll is exposed (external name)",
35
+ "minLength": 1,
36
+ "type": "string"
37
+ },
38
+ "type": {
39
+ "description": "The type how the dll is exposed (external type)",
40
+ "minLength": 1,
41
+ "type": "string"
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "type": "string",
47
+ "absolutePath": true
48
+ }
49
+ ]
50
+ },
51
+ "content": {
52
+ "description": "The mappings from request to module id (defaults to manifest.content)",
53
+ "minLength": 1,
54
+ "type": "object"
55
+ },
56
+ "name": {
57
+ "description": "The name where the dll is exposed (external name, defaults to manifest.name)",
58
+ "minLength": 1,
59
+ "type": "string"
60
+ },
61
+ "type": {
62
+ "description": "The way how the export of the dll bundle is used",
63
+ "enum": [
64
+ "require",
65
+ "object"
66
+ ]
67
+ },
68
+ "scope": {
69
+ "description": "Prefix which is used for accessing the content of the dll",
70
+ "minLength": 1,
71
+ "type": "string"
72
+ },
73
+ "sourceType": {
74
+ "description": "How the dll is exposed (libraryTarget, defaults to manifest.type)",
75
+ "enum": [
76
+ "var",
77
+ "assign",
78
+ "this",
79
+ "window",
80
+ "global",
81
+ "commonjs",
82
+ "commonjs2",
83
+ "commonjs-module",
84
+ "amd",
85
+ "umd",
86
+ "umd2",
87
+ "jsonp"
88
+ ]
89
+ },
90
+ "extensions": {
91
+ "description": "Extensions used to resolve modules in the dll bundle (only used when using 'scope')",
92
+ "type": "array",
93
+ "items": {
94
+ "description": "An extension",
95
+ "type": "string"
96
+ }
97
+ }
98
+ }
99
+ }
@@ -1,24 +1,24 @@
1
- {
2
- "type": "object",
3
- "additionalProperties": false,
4
- "properties": {
5
- "hashFunction": {
6
- "description": "The hashing algorithm to use, defaults to 'md5'. All functions from Node.JS' crypto.createHash are supported.",
7
- "type": "string",
8
- "minLength": 1
9
- },
10
- "hashDigest": {
11
- "description": "The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.",
12
- "enum": [
13
- "hex",
14
- "latin1",
15
- "base64"
16
- ]
17
- },
18
- "hashDigestLength": {
19
- "description": "The prefix length of the hash digest to use, defaults to 4.",
20
- "type": "number",
21
- "minimum": 1
22
- }
23
- }
24
- }
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": false,
4
+ "properties": {
5
+ "hashFunction": {
6
+ "description": "The hashing algorithm to use, defaults to 'md5'. All functions from Node.JS' crypto.createHash are supported.",
7
+ "type": "string",
8
+ "minLength": 1
9
+ },
10
+ "hashDigest": {
11
+ "description": "The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.",
12
+ "enum": [
13
+ "hex",
14
+ "latin1",
15
+ "base64"
16
+ ]
17
+ },
18
+ "hashDigestLength": {
19
+ "description": "The prefix length of the hash digest to use, defaults to 4.",
20
+ "type": "number",
21
+ "minimum": 1
22
+ }
23
+ }
24
+ }
@@ -1,26 +1,26 @@
1
- {
2
- "type": "object",
3
- "additionalProperties": true,
4
- "properties": {
5
- "debug": {
6
- "description": "Whether loaders should be in debug mode or not. debug will be removed as of webpack 3",
7
- "type": "boolean"
8
- },
9
- "minimize": {
10
- "description": "Where loaders can be switched to minimize mode",
11
- "type": "boolean"
12
- },
13
- "options": {
14
- "description": "A configuration object that can be used to configure older loaders",
15
- "type": "object",
16
- "additionalProperties": true,
17
- "properties": {
18
- "context": {
19
- "description": "The context that can be used to configure older loaders",
20
- "type": "string",
21
- "absolutePath": true
22
- }
23
- }
24
- }
25
- }
26
- }
1
+ {
2
+ "type": "object",
3
+ "additionalProperties": true,
4
+ "properties": {
5
+ "debug": {
6
+ "description": "Whether loaders should be in debug mode or not. debug will be removed as of webpack 3",
7
+ "type": "boolean"
8
+ },
9
+ "minimize": {
10
+ "description": "Where loaders can be switched to minimize mode",
11
+ "type": "boolean"
12
+ },
13
+ "options": {
14
+ "description": "A configuration object that can be used to configure older loaders",
15
+ "type": "object",
16
+ "additionalProperties": true,
17
+ "properties": {
18
+ "context": {
19
+ "description": "The context that can be used to configure older loaders",
20
+ "type": "string",
21
+ "absolutePath": true
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }