webpack 5.106.2 → 5.107.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.
Files changed (220) hide show
  1. package/README.md +2 -2
  2. package/lib/APIPlugin.js +1 -1
  3. package/lib/Cache.js +3 -6
  4. package/lib/CompatibilityPlugin.js +8 -7
  5. package/lib/Compilation.js +34 -26
  6. package/lib/Compiler.js +4 -13
  7. package/lib/ContextModule.js +2 -2
  8. package/lib/DefinePlugin.js +2 -2
  9. package/lib/Dependency.js +22 -1
  10. package/lib/DependencyTemplate.js +2 -1
  11. package/lib/EnvironmentPlugin.js +1 -1
  12. package/lib/EvalSourceMapDevToolPlugin.js +8 -9
  13. package/lib/ExternalModule.js +76 -15
  14. package/lib/ExternalModuleFactoryPlugin.js +5 -0
  15. package/lib/FileSystemInfo.js +187 -72
  16. package/lib/Generator.js +3 -3
  17. package/lib/HotModuleReplacementPlugin.js +26 -8
  18. package/lib/IgnorePlugin.js +2 -1
  19. package/lib/Module.js +19 -18
  20. package/lib/ModuleFactory.js +1 -1
  21. package/lib/ModuleSourceTypeConstants.js +31 -1
  22. package/lib/ModuleTypeConstants.js +12 -3
  23. package/lib/MultiCompiler.js +2 -2
  24. package/lib/NodeStuffPlugin.js +1 -1
  25. package/lib/NormalModule.js +13 -31
  26. package/lib/NormalModuleFactory.js +10 -2
  27. package/lib/Parser.js +1 -1
  28. package/lib/ProgressPlugin.js +129 -56
  29. package/lib/RuntimeGlobals.js +5 -5
  30. package/lib/RuntimeModule.js +9 -7
  31. package/lib/RuntimePlugin.js +11 -0
  32. package/lib/WarnCaseSensitiveModulesPlugin.js +70 -2
  33. package/lib/WarnDeprecatedOptionPlugin.js +1 -1
  34. package/lib/WarnNoModeSetPlugin.js +16 -1
  35. package/lib/Watching.js +2 -3
  36. package/lib/WebpackError.js +3 -77
  37. package/lib/WebpackIsIncludedPlugin.js +1 -1
  38. package/lib/WebpackOptionsApply.js +13 -1
  39. package/lib/asset/AssetBytesGenerator.js +6 -2
  40. package/lib/asset/AssetGenerator.js +22 -8
  41. package/lib/asset/AssetModulesPlugin.js +3 -1
  42. package/lib/asset/AssetSourceGenerator.js +6 -2
  43. package/lib/buildChunkGraph.js +4 -6
  44. package/lib/cache/PackFileCacheStrategy.js +4 -4
  45. package/lib/cli.js +3 -1
  46. package/lib/config/defaults.js +197 -10
  47. package/lib/config/normalization.js +3 -1
  48. package/lib/css/CssGenerator.js +320 -105
  49. package/lib/css/CssInjectStyleRuntimeModule.js +44 -42
  50. package/lib/css/CssLoadingRuntimeModule.js +22 -4
  51. package/lib/{CssModule.js → css/CssModule.js} +15 -15
  52. package/lib/css/CssModulesPlugin.js +166 -86
  53. package/lib/css/CssParser.js +566 -269
  54. package/lib/css/walkCssTokens.js +148 -2
  55. package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +1 -1
  56. package/lib/dependencies/CommonJsDependencyHelpers.js +63 -0
  57. package/lib/dependencies/CommonJsExportRequireDependency.js +54 -10
  58. package/lib/dependencies/CommonJsExportsParserPlugin.js +1 -1
  59. package/lib/dependencies/CommonJsFullRequireDependency.js +32 -9
  60. package/lib/dependencies/CommonJsImportsParserPlugin.js +4 -3
  61. package/lib/dependencies/CommonJsRequireDependency.js +67 -4
  62. package/lib/dependencies/ContextDependency.js +1 -1
  63. package/lib/dependencies/ContextDependencyHelpers.js +1 -1
  64. package/lib/dependencies/CreateRequireParserPlugin.js +1 -1
  65. package/lib/dependencies/CriticalDependencyWarning.js +1 -1
  66. package/lib/dependencies/CssIcssExportDependency.js +332 -67
  67. package/lib/dependencies/CssIcssImportDependency.js +49 -7
  68. package/lib/dependencies/CssIcssSymbolDependency.js +11 -3
  69. package/lib/dependencies/CssImportDependency.js +8 -0
  70. package/lib/dependencies/CssUrlDependency.js +25 -0
  71. package/lib/dependencies/HarmonyDetectionParserPlugin.js +1 -1
  72. package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +8 -7
  73. package/lib/dependencies/HarmonyExportExpressionDependency.js +22 -14
  74. package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +110 -3
  75. package/lib/dependencies/HarmonyImportDependency.js +10 -2
  76. package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +22 -1
  77. package/lib/dependencies/HarmonyImportSpecifierDependency.js +1 -1
  78. package/lib/{HarmonyLinkingError.js → dependencies/HarmonyLinkingError.js} +5 -3
  79. package/lib/dependencies/HtmlInlineScriptDependency.js +133 -0
  80. package/lib/dependencies/HtmlInlineStyleDependency.js +101 -0
  81. package/lib/dependencies/HtmlScriptSrcDependency.js +318 -0
  82. package/lib/dependencies/HtmlSourceDependency.js +127 -0
  83. package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +1 -1
  84. package/lib/dependencies/ImportParserPlugin.js +2 -2
  85. package/lib/dependencies/ImportPhase.js +1 -1
  86. package/lib/dependencies/RequireIncludeDependencyParserPlugin.js +1 -1
  87. package/lib/{RequireJsStuffPlugin.js → dependencies/RequireJsStuffPlugin.js} +7 -7
  88. package/lib/dependencies/SystemPlugin.js +1 -1
  89. package/lib/dependencies/WebAssemblyImportDependency.js +1 -1
  90. package/lib/dependencies/WorkerPlugin.js +2 -2
  91. package/lib/{DelegatedModule.js → dll/DelegatedModule.js} +31 -31
  92. package/lib/{DelegatedModuleFactoryPlugin.js → dll/DelegatedModuleFactoryPlugin.js} +4 -4
  93. package/lib/{DelegatedPlugin.js → dll/DelegatedPlugin.js} +2 -2
  94. package/lib/{DllEntryPlugin.js → dll/DllEntryPlugin.js} +4 -4
  95. package/lib/{DllModule.js → dll/DllModule.js} +24 -24
  96. package/lib/{DllModuleFactory.js → dll/DllModuleFactory.js} +4 -4
  97. package/lib/{DllPlugin.js → dll/DllPlugin.js} +6 -5
  98. package/lib/{DllReferencePlugin.js → dll/DllReferencePlugin.js} +14 -14
  99. package/lib/{LibManifestPlugin.js → dll/LibManifestPlugin.js} +9 -9
  100. package/lib/{AsyncDependencyToInitialChunkError.js → errors/AsyncDependencyToInitialChunkError.js} +2 -2
  101. package/lib/errors/BuildCycleError.js +1 -1
  102. package/lib/{ChunkRenderError.js → errors/ChunkRenderError.js} +1 -1
  103. package/lib/{CodeGenerationError.js → errors/CodeGenerationError.js} +1 -1
  104. package/lib/{CommentCompilationWarning.js → errors/CommentCompilationWarning.js} +3 -3
  105. package/lib/{ConcurrentCompilationError.js → errors/ConcurrentCompilationError.js} +4 -2
  106. package/lib/{EnvironmentNotSupportAsyncWarning.js → errors/EnvironmentNotSupportAsyncWarning.js} +4 -4
  107. package/lib/{HookWebpackError.js → errors/HookWebpackError.js} +5 -5
  108. package/lib/{IgnoreErrorModuleFactory.js → errors/IgnoreErrorModuleFactory.js} +4 -4
  109. package/lib/{InvalidDependenciesModuleWarning.js → errors/InvalidDependenciesModuleWarning.js} +3 -3
  110. package/lib/errors/JSONParseError.js +114 -0
  111. package/lib/{ModuleBuildError.js → errors/ModuleBuildError.js} +5 -5
  112. package/lib/{ModuleDependencyError.js → errors/ModuleDependencyError.js} +2 -2
  113. package/lib/{ModuleDependencyWarning.js → errors/ModuleDependencyWarning.js} +4 -4
  114. package/lib/{ModuleError.js → errors/ModuleError.js} +5 -5
  115. package/lib/{ModuleHashingError.js → errors/ModuleHashingError.js} +1 -1
  116. package/lib/{ModuleNotFoundError.js → errors/ModuleNotFoundError.js} +2 -2
  117. package/lib/{ModuleParseError.js → errors/ModuleParseError.js} +8 -6
  118. package/lib/{ModuleRestoreError.js → errors/ModuleRestoreError.js} +1 -1
  119. package/lib/{ModuleStoreError.js → errors/ModuleStoreError.js} +1 -1
  120. package/lib/{ModuleWarning.js → errors/ModuleWarning.js} +5 -5
  121. package/lib/{NodeStuffInWebError.js → errors/NodeStuffInWebError.js} +4 -4
  122. package/lib/errors/NonErrorEmittedError.js +28 -0
  123. package/lib/{UnhandledSchemeError.js → errors/UnhandledSchemeError.js} +2 -2
  124. package/lib/{UnsupportedFeatureWarning.js → errors/UnsupportedFeatureWarning.js} +3 -3
  125. package/lib/errors/WebpackError.js +84 -0
  126. package/lib/html/HtmlGenerator.js +379 -0
  127. package/lib/html/HtmlModulesPlugin.js +433 -0
  128. package/lib/html/HtmlParser.js +1489 -0
  129. package/lib/html/walkHtmlTokens.js +2733 -0
  130. package/lib/ids/IdHelpers.js +2 -1
  131. package/lib/index.js +34 -15
  132. package/lib/javascript/JavascriptModulesPlugin.js +89 -8
  133. package/lib/javascript/JavascriptParser.js +197 -16
  134. package/lib/javascript/JavascriptParserHelpers.js +1 -1
  135. package/lib/json/JsonParser.js +7 -16
  136. package/lib/library/AbstractLibraryPlugin.js +1 -1
  137. package/lib/library/EnableLibraryPlugin.js +1 -1
  138. package/lib/{FalseIIFEUmdWarning.js → library/FalseIIFEUmdWarning.js} +1 -1
  139. package/lib/library/ModuleLibraryPlugin.js +74 -0
  140. package/lib/node/NodeEnvironmentPlugin.js +4 -2
  141. package/lib/node/nodeConsole.js +113 -64
  142. package/lib/optimize/ConcatenatedModule.js +51 -6
  143. package/lib/optimize/InnerGraph.js +1 -1
  144. package/lib/optimize/InnerGraphPlugin.js +11 -1
  145. package/lib/optimize/MinMaxSizeWarning.js +4 -4
  146. package/lib/optimize/ModuleConcatenationPlugin.js +15 -7
  147. package/lib/optimize/RealContentHashPlugin.js +89 -26
  148. package/lib/optimize/SideEffectsFlagPlugin.js +111 -3
  149. package/lib/optimize/SplitChunksPlugin.js +1 -1
  150. package/lib/performance/AssetsOverSizeLimitWarning.js +2 -2
  151. package/lib/performance/EntrypointsOverSizeLimitWarning.js +2 -2
  152. package/lib/performance/NoAsyncChunksWarning.js +5 -3
  153. package/lib/performance/SizeLimitsPlugin.js +1 -1
  154. package/lib/prefetch/ChunkPrefetchTriggerRuntimeModule.js +4 -1
  155. package/lib/rules/UseEffectRulePlugin.js +4 -3
  156. package/lib/runtime/MakeDeferredNamespaceObjectRuntime.js +119 -13
  157. package/lib/runtime/SetAnonymousDefaultNameRuntimeModule.js +35 -0
  158. package/lib/schemes/DataUriPlugin.js +13 -1
  159. package/lib/schemes/VirtualUrlPlugin.js +1 -1
  160. package/lib/serialization/SerializerMiddleware.js +2 -2
  161. package/lib/sharing/ConsumeSharedPlugin.js +2 -2
  162. package/lib/sharing/ConsumeSharedRuntimeModule.js +8 -4
  163. package/lib/sharing/ProvideSharedModule.js +1 -1
  164. package/lib/sharing/ProvideSharedPlugin.js +1 -1
  165. package/lib/sharing/resolveMatchedConfigs.js +1 -1
  166. package/lib/stats/DefaultStatsFactoryPlugin.js +2 -2
  167. package/lib/stats/DefaultStatsPresetPlugin.js +1 -1
  168. package/lib/stats/DefaultStatsPrinterPlugin.js +1 -1
  169. package/lib/stats/StatsFactory.js +1 -1
  170. package/lib/typescript/TypeScriptPlugin.js +210 -0
  171. package/lib/url/URLParserPlugin.js +2 -2
  172. package/lib/util/AsyncQueue.js +2 -2
  173. package/lib/util/Hash.js +2 -2
  174. package/lib/util/LocConverter.js +53 -0
  175. package/lib/util/SortableSet.js +1 -1
  176. package/lib/util/cleverMerge.js +2 -2
  177. package/lib/util/comparators.js +3 -3
  178. package/lib/util/concatenate.js +3 -3
  179. package/lib/util/conventions.js +42 -1
  180. package/lib/util/createMappings.js +118 -0
  181. package/lib/{formatLocation.js → util/formatLocation.js} +2 -2
  182. package/lib/{SizeFormatHelpers.js → util/formatSize.js} +3 -1
  183. package/lib/util/fs.js +8 -8
  184. package/lib/util/hash/md4.js +1 -1
  185. package/lib/util/hash/xxhash64.js +1 -1
  186. package/lib/util/identifier.js +48 -0
  187. package/lib/util/internalSerializables.js +35 -19
  188. package/lib/util/magicComment.js +10 -7
  189. package/lib/util/parseJson.js +2 -73
  190. package/lib/util/source.js +21 -0
  191. package/lib/util/topologicalSort.js +69 -0
  192. package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +2 -2
  193. package/lib/wasm-async/AsyncWebAssemblyParser.js +1 -1
  194. package/lib/wasm-sync/UnsupportedWebAssemblyFeatureError.js +5 -3
  195. package/lib/wasm-sync/WasmFinalizeExportsPlugin.js +1 -1
  196. package/lib/wasm-sync/WebAssemblyInInitialChunkError.js +5 -3
  197. package/lib/webpack.js +3 -1
  198. package/package.json +22 -20
  199. package/schemas/WebpackOptions.check.js +1 -1
  200. package/schemas/WebpackOptions.json +118 -3
  201. package/schemas/plugins/{DllPlugin.check.d.ts → HtmlGeneratorOptions.check.d.ts} +1 -1
  202. package/schemas/plugins/HtmlGeneratorOptions.check.js +6 -0
  203. package/schemas/plugins/HtmlGeneratorOptions.json +3 -0
  204. package/schemas/plugins/ProgressPlugin.check.js +1 -1
  205. package/schemas/plugins/ProgressPlugin.json +22 -0
  206. package/schemas/plugins/{DllReferencePlugin.check.d.ts → css/CssAutoOrModuleParserOptions.check.d.ts} +1 -1
  207. package/schemas/plugins/css/CssAutoOrModuleParserOptions.check.js +6 -0
  208. package/schemas/plugins/css/CssAutoOrModuleParserOptions.json +3 -0
  209. package/schemas/plugins/dll/DllPlugin.check.d.ts +7 -0
  210. package/schemas/plugins/dll/DllReferencePlugin.check.d.ts +7 -0
  211. package/types.d.ts +810 -101
  212. package/lib/CaseSensitiveModulesWarning.js +0 -80
  213. package/lib/GraphHelpers.js +0 -49
  214. package/lib/NoModeWarning.js +0 -23
  215. package/lib/css/CssMergeStyleSheetsRuntimeModule.js +0 -57
  216. /package/lib/{AbstractMethodError.js → errors/AbstractMethodError.js} +0 -0
  217. /package/schemas/plugins/{DllPlugin.check.js → dll/DllPlugin.check.js} +0 -0
  218. /package/schemas/plugins/{DllPlugin.json → dll/DllPlugin.json} +0 -0
  219. /package/schemas/plugins/{DllReferencePlugin.check.js → dll/DllReferencePlugin.check.js} +0 -0
  220. /package/schemas/plugins/{DllReferencePlugin.json → dll/DllReferencePlugin.json} +0 -0
@@ -371,6 +371,46 @@
371
371
  "description": "This option enables cross-origin loading of chunks.",
372
372
  "enum": [false, "anonymous", "use-credentials"]
373
373
  },
374
+ "CssAutoOrModuleParserOptions": {
375
+ "description": "Parser options for css/auto and css/module modules.",
376
+ "type": "object",
377
+ "additionalProperties": false,
378
+ "properties": {
379
+ "animation": {
380
+ "$ref": "#/definitions/CssParserAnimation"
381
+ },
382
+ "container": {
383
+ "$ref": "#/definitions/CssParserContainer"
384
+ },
385
+ "customIdents": {
386
+ "$ref": "#/definitions/CssParserCustomIdents"
387
+ },
388
+ "dashedIdents": {
389
+ "$ref": "#/definitions/CssParserDashedIdents"
390
+ },
391
+ "exportType": {
392
+ "$ref": "#/definitions/CssParserExportType"
393
+ },
394
+ "function": {
395
+ "$ref": "#/definitions/CssParserFunction"
396
+ },
397
+ "grid": {
398
+ "$ref": "#/definitions/CssParserGrid"
399
+ },
400
+ "import": {
401
+ "$ref": "#/definitions/CssParserImport"
402
+ },
403
+ "namedExports": {
404
+ "$ref": "#/definitions/CssParserNamedExports"
405
+ },
406
+ "pure": {
407
+ "$ref": "#/definitions/CssParserPure"
408
+ },
409
+ "url": {
410
+ "$ref": "#/definitions/CssParserUrl"
411
+ }
412
+ }
413
+ },
374
414
  "CssChunkFilename": {
375
415
  "description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
376
416
  "oneOf": [
@@ -473,7 +513,7 @@
473
513
  }
474
514
  },
475
515
  "CssModuleParserOptions": {
476
- "description": "Parser options for css/module modules.",
516
+ "description": "Parser options for css/global modules.",
477
517
  "type": "object",
478
518
  "additionalProperties": false,
479
519
  "properties": {
@@ -564,6 +604,10 @@
564
604
  }
565
605
  }
566
606
  },
607
+ "CssParserPure": {
608
+ "description": "Enable strict pure mode: every selector must contain at least one local class or id selector.",
609
+ "type": "boolean"
610
+ },
567
611
  "CssParserUrl": {
568
612
  "description": "Enable/disable `url()`/`image-set()`/`src()`/`image()` functions handling.",
569
613
  "type": "boolean"
@@ -1092,6 +1136,11 @@
1092
1136
  "type": "boolean",
1093
1137
  "experimental": true
1094
1138
  },
1139
+ "html": {
1140
+ "description": "Enable experimental HTML support. This flag does not by itself make `.html` files usable directly as entry points without additional HTML handling.",
1141
+ "type": "boolean",
1142
+ "experimental": true
1143
+ },
1095
1144
  "lazyCompilation": {
1096
1145
  "description": "Compile entrypoints and import()s only when they are accessed.",
1097
1146
  "anyOf": [
@@ -1118,6 +1167,11 @@
1118
1167
  "description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
1119
1168
  "type": "boolean",
1120
1169
  "experimental": true
1170
+ },
1171
+ "typescript": {
1172
+ "description": "Enable typescript support.",
1173
+ "type": "boolean",
1174
+ "experimental": true
1121
1175
  }
1122
1176
  }
1123
1177
  },
@@ -1165,6 +1219,11 @@
1165
1219
  "type": "boolean",
1166
1220
  "experimental": true
1167
1221
  },
1222
+ "html": {
1223
+ "description": "Enable HTML entry support. Treats `.html` files as a first-class module type so they can be used directly as entry points.",
1224
+ "type": "boolean",
1225
+ "experimental": true
1226
+ },
1168
1227
  "lazyCompilation": {
1169
1228
  "description": "Compile entrypoints and import()s only when they are accessed.",
1170
1229
  "anyOf": [
@@ -1191,6 +1250,11 @@
1191
1250
  "description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
1192
1251
  "type": "boolean",
1193
1252
  "experimental": true
1253
+ },
1254
+ "typescript": {
1255
+ "description": "Enable typescript support.",
1256
+ "type": "boolean",
1257
+ "experimental": true
1194
1258
  }
1195
1259
  }
1196
1260
  },
@@ -1627,6 +1691,9 @@
1627
1691
  "css/module": {
1628
1692
  "$ref": "#/definitions/CssModuleGeneratorOptions"
1629
1693
  },
1694
+ "html": {
1695
+ "$ref": "#/definitions/HtmlGeneratorOptions"
1696
+ },
1630
1697
  "javascript": {
1631
1698
  "$ref": "#/definitions/EmptyGeneratorOptions"
1632
1699
  },
@@ -1690,6 +1757,33 @@
1690
1757
  "type": "string",
1691
1758
  "absolutePath": false
1692
1759
  },
1760
+ "HtmlChunkFilename": {
1761
+ "description": "Specifies the filename template of non-initial output html files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
1762
+ "oneOf": [
1763
+ {
1764
+ "$ref": "#/definitions/FilenameTemplate"
1765
+ }
1766
+ ]
1767
+ },
1768
+ "HtmlFilename": {
1769
+ "description": "Specifies the filename template of output html files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
1770
+ "oneOf": [
1771
+ {
1772
+ "$ref": "#/definitions/FilenameTemplate"
1773
+ }
1774
+ ]
1775
+ },
1776
+ "HtmlGeneratorOptions": {
1777
+ "description": "Generator options for html modules.",
1778
+ "type": "object",
1779
+ "additionalProperties": false,
1780
+ "properties": {
1781
+ "extract": {
1782
+ "description": "Emit the parsed and URL-rewritten HTML as a standalone `.html` output file alongside the module's JavaScript export. When unset, extraction defaults to `true` for HTML modules used as compilation entries (HTML entry points) and `false` for HTML modules imported from JavaScript. Filenames follow `output.htmlFilename` / `output.htmlChunkFilename`.",
1783
+ "type": "boolean"
1784
+ }
1785
+ }
1786
+ },
1693
1787
  "HttpUriAllowedUris": {
1694
1788
  "description": "List of allowed URIs for building http resources.",
1695
1789
  "cli": {
@@ -1873,6 +1967,10 @@
1873
1967
  "amd": {
1874
1968
  "$ref": "#/definitions/Amd"
1875
1969
  },
1970
+ "anonymousDefaultExportName": {
1971
+ "description": "Set .name to \"default\" for anonymous default export functions and classes per ES spec. Disable to reduce output size when .name is not needed.",
1972
+ "type": "boolean"
1973
+ },
1876
1974
  "browserify": {
1877
1975
  "description": "Enable/disable special handling for browserify bundles.",
1878
1976
  "type": "boolean"
@@ -2039,6 +2137,11 @@
2039
2137
  "description": "Enable/disable parsing of System.js special syntax like System.import, System.get, System.set and System.register.",
2040
2138
  "type": "boolean"
2041
2139
  },
2140
+ "typescript": {
2141
+ "description": "Enable typescript support.",
2142
+ "type": "boolean",
2143
+ "experimental": true
2144
+ },
2042
2145
  "unknownContextCritical": {
2043
2146
  "description": "Enable warnings when using the require function in a not statically analyse-able way.",
2044
2147
  "type": "boolean"
@@ -3718,6 +3821,12 @@
3718
3821
  "hotUpdateMainFilename": {
3719
3822
  "$ref": "#/definitions/HotUpdateMainFilename"
3720
3823
  },
3824
+ "htmlChunkFilename": {
3825
+ "$ref": "#/definitions/HtmlChunkFilename"
3826
+ },
3827
+ "htmlFilename": {
3828
+ "$ref": "#/definitions/HtmlFilename"
3829
+ },
3721
3830
  "ignoreBrowserWarnings": {
3722
3831
  "description": "Ignore warnings in the browser.",
3723
3832
  "type": "boolean"
@@ -3924,6 +4033,12 @@
3924
4033
  "hotUpdateMainFilename": {
3925
4034
  "$ref": "#/definitions/HotUpdateMainFilename"
3926
4035
  },
4036
+ "htmlChunkFilename": {
4037
+ "$ref": "#/definitions/HtmlChunkFilename"
4038
+ },
4039
+ "htmlFilename": {
4040
+ "$ref": "#/definitions/HtmlFilename"
4041
+ },
3927
4042
  "ignoreBrowserWarnings": {
3928
4043
  "description": "Ignore warnings in the browser.",
3929
4044
  "type": "boolean"
@@ -4029,13 +4144,13 @@
4029
4144
  "$ref": "#/definitions/CssParserOptions"
4030
4145
  },
4031
4146
  "css/auto": {
4032
- "$ref": "#/definitions/CssModuleParserOptions"
4147
+ "$ref": "#/definitions/CssAutoOrModuleParserOptions"
4033
4148
  },
4034
4149
  "css/global": {
4035
4150
  "$ref": "#/definitions/CssModuleParserOptions"
4036
4151
  },
4037
4152
  "css/module": {
4038
- "$ref": "#/definitions/CssModuleParserOptions"
4153
+ "$ref": "#/definitions/CssAutoOrModuleParserOptions"
4039
4154
  },
4040
4155
  "javascript": {
4041
4156
  "$ref": "#/definitions/JavascriptParserOptions"
@@ -3,5 +3,5 @@
3
3
  * DO NOT MODIFY BY HAND.
4
4
  * Run `yarn fix:special` to update
5
5
  */
6
- declare const check: (options: import("../../declarations/plugins/DllPlugin").DllPluginOptions) => boolean;
6
+ declare const check: (options: any) => boolean;
7
7
  export = check;
@@ -0,0 +1,6 @@
1
+ /*
2
+ * This file was automatically generated.
3
+ * DO NOT MODIFY BY HAND.
4
+ * Run `yarn fix:special` to update
5
+ */
6
+ "use strict";function r(t,{instancePath:e="",parentData:a,parentDataProperty:o,rootData:n=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return r.errors=[{params:{type:"object"}}],!1;{const e=0;for(const e in t)if("extract"!==e)return r.errors=[{params:{additionalProperty:e}}],!1;if(0===e&&void 0!==t.extract&&"boolean"!=typeof t.extract)return r.errors=[{params:{type:"boolean"}}],!1}return r.errors=null,!0}module.exports=r,module.exports.default=r;
@@ -0,0 +1,3 @@
1
+ {
2
+ "$ref": "../WebpackOptions.json#/definitions/HtmlGeneratorOptions"
3
+ }
@@ -3,4 +3,4 @@
3
3
  * DO NOT MODIFY BY HAND.
4
4
  * Run `yarn fix:special` to update
5
5
  */
6
- "use strict";module.exports=t,module.exports.default=t;const e={type:"object",additionalProperties:!1,properties:{activeModules:{type:"boolean"},dependencies:{type:"boolean"},dependenciesCount:{type:"number"},entries:{type:"boolean"},handler:{oneOf:[{$ref:"#/definitions/HandlerFunction"}]},modules:{type:"boolean"},modulesCount:{type:"number"},percentBy:{enum:["entries","modules","dependencies",null]},profile:{enum:[!0,!1,null]}}},r=Object.prototype.hasOwnProperty;function n(t,{instancePath:o="",parentData:s,parentDataProperty:a,rootData:l=t}={}){let i=null,p=0;if(0===p){if(!t||"object"!=typeof t||Array.isArray(t))return n.errors=[{params:{type:"object"}}],!1;{const o=p;for(const o in t)if(!r.call(e.properties,o))return n.errors=[{params:{additionalProperty:o}}],!1;if(o===p){if(void 0!==t.activeModules){const e=p;if("boolean"!=typeof t.activeModules)return n.errors=[{params:{type:"boolean"}}],!1;var u=e===p}else u=!0;if(u){if(void 0!==t.dependencies){const e=p;if("boolean"!=typeof t.dependencies)return n.errors=[{params:{type:"boolean"}}],!1;u=e===p}else u=!0;if(u){if(void 0!==t.dependenciesCount){const e=p;if("number"!=typeof t.dependenciesCount)return n.errors=[{params:{type:"number"}}],!1;u=e===p}else u=!0;if(u){if(void 0!==t.entries){const e=p;if("boolean"!=typeof t.entries)return n.errors=[{params:{type:"boolean"}}],!1;u=e===p}else u=!0;if(u){if(void 0!==t.handler){const e=p,r=p;let o=!1,s=null;const a=p;if(!(t.handler instanceof Function)){const e={params:{}};null===i?i=[e]:i.push(e),p++}if(a===p&&(o=!0,s=0),!o){const e={params:{passingSchemas:s}};return null===i?i=[e]:i.push(e),p++,n.errors=i,!1}p=r,null!==i&&(r?i.length=r:i=null),u=e===p}else u=!0;if(u){if(void 0!==t.modules){const e=p;if("boolean"!=typeof t.modules)return n.errors=[{params:{type:"boolean"}}],!1;u=e===p}else u=!0;if(u){if(void 0!==t.modulesCount){const e=p;if("number"!=typeof t.modulesCount)return n.errors=[{params:{type:"number"}}],!1;u=e===p}else u=!0;if(u){if(void 0!==t.percentBy){let e=t.percentBy;const r=p;if("entries"!==e&&"modules"!==e&&"dependencies"!==e&&null!==e)return n.errors=[{params:{}}],!1;u=r===p}else u=!0;if(u)if(void 0!==t.profile){let e=t.profile;const r=p;if(!0!==e&&!1!==e&&null!==e)return n.errors=[{params:{}}],!1;u=r===p}else u=!0}}}}}}}}}}return n.errors=i,0===p}function t(e,{instancePath:r="",parentData:o,parentDataProperty:s,rootData:a=e}={}){let l=null,i=0;const p=i;let u=!1;const c=i;n(e,{instancePath:r,parentData:o,parentDataProperty:s,rootData:a})||(l=null===l?n.errors:l.concat(n.errors),i=l.length);var f=c===i;if(u=u||f,!u){const r=i;if(!(e instanceof Function)){const e={params:{}};null===l?l=[e]:l.push(e),i++}f=r===i,u=u||f}if(!u){const e={params:{}};return null===l?l=[e]:l.push(e),i++,t.errors=l,!1}return i=p,null!==l&&(p?l.length=p:l=null),t.errors=l,0===i}
6
+ "use strict";module.exports=o,module.exports.default=o;const e={type:"object",additionalProperties:!1,properties:{activeModules:{type:"boolean"},dependencies:{type:"boolean"},dependenciesCount:{type:"number"},entries:{type:"boolean"},handler:{oneOf:[{$ref:"#/definitions/HandlerFunction"}]},modules:{type:"boolean"},modulesCount:{type:"number"},percentBy:{enum:["entries","modules","dependencies",null]},profile:{enum:[!0,!1,null]},progressBar:{anyOf:[{type:"boolean"},{type:"object",additionalProperties:!1,properties:{color:{type:"string"},name:{type:"string"}}}]}}},r=Object.prototype.hasOwnProperty;function n(o,{instancePath:t="",parentData:s,parentDataProperty:a,rootData:l=o}={}){let i=null,p=0;if(0===p){if(!o||"object"!=typeof o||Array.isArray(o))return n.errors=[{params:{type:"object"}}],!1;{const t=p;for(const t in o)if(!r.call(e.properties,t))return n.errors=[{params:{additionalProperty:t}}],!1;if(t===p){if(void 0!==o.activeModules){const e=p;if("boolean"!=typeof o.activeModules)return n.errors=[{params:{type:"boolean"}}],!1;var u=e===p}else u=!0;if(u){if(void 0!==o.dependencies){const e=p;if("boolean"!=typeof o.dependencies)return n.errors=[{params:{type:"boolean"}}],!1;u=e===p}else u=!0;if(u){if(void 0!==o.dependenciesCount){const e=p;if("number"!=typeof o.dependenciesCount)return n.errors=[{params:{type:"number"}}],!1;u=e===p}else u=!0;if(u){if(void 0!==o.entries){const e=p;if("boolean"!=typeof o.entries)return n.errors=[{params:{type:"boolean"}}],!1;u=e===p}else u=!0;if(u){if(void 0!==o.handler){const e=p,r=p;let t=!1,s=null;const a=p;if(!(o.handler instanceof Function)){const e={params:{}};null===i?i=[e]:i.push(e),p++}if(a===p&&(t=!0,s=0),!t){const e={params:{passingSchemas:s}};return null===i?i=[e]:i.push(e),p++,n.errors=i,!1}p=r,null!==i&&(r?i.length=r:i=null),u=e===p}else u=!0;if(u){if(void 0!==o.modules){const e=p;if("boolean"!=typeof o.modules)return n.errors=[{params:{type:"boolean"}}],!1;u=e===p}else u=!0;if(u){if(void 0!==o.modulesCount){const e=p;if("number"!=typeof o.modulesCount)return n.errors=[{params:{type:"number"}}],!1;u=e===p}else u=!0;if(u){if(void 0!==o.percentBy){let e=o.percentBy;const r=p;if("entries"!==e&&"modules"!==e&&"dependencies"!==e&&null!==e)return n.errors=[{params:{}}],!1;u=r===p}else u=!0;if(u){if(void 0!==o.profile){let e=o.profile;const r=p;if(!0!==e&&!1!==e&&null!==e)return n.errors=[{params:{}}],!1;u=r===p}else u=!0;if(u)if(void 0!==o.progressBar){let e=o.progressBar;const r=p,t=p;let s=!1;const a=p;if("boolean"!=typeof e){const e={params:{type:"boolean"}};null===i?i=[e]:i.push(e),p++}var c=a===p;if(s=s||c,!s){const r=p;if(p===r)if(e&&"object"==typeof e&&!Array.isArray(e)){const r=p;for(const r in e)if("color"!==r&&"name"!==r){const e={params:{additionalProperty:r}};null===i?i=[e]:i.push(e),p++;break}if(r===p){if(void 0!==e.color){const r=p;if("string"!=typeof e.color){const e={params:{type:"string"}};null===i?i=[e]:i.push(e),p++}var f=r===p}else f=!0;if(f)if(void 0!==e.name){const r=p;if("string"!=typeof e.name){const e={params:{type:"string"}};null===i?i=[e]:i.push(e),p++}f=r===p}else f=!0}}else{const e={params:{type:"object"}};null===i?i=[e]:i.push(e),p++}c=r===p,s=s||c}if(!s){const e={params:{}};return null===i?i=[e]:i.push(e),p++,n.errors=i,!1}p=t,null!==i&&(t?i.length=t:i=null),u=r===p}else u=!0}}}}}}}}}}}return n.errors=i,0===p}function o(e,{instancePath:r="",parentData:t,parentDataProperty:s,rootData:a=e}={}){let l=null,i=0;const p=i;let u=!1;const c=i;n(e,{instancePath:r,parentData:t,parentDataProperty:s,rootData:a})||(l=null===l?n.errors:l.concat(n.errors),i=l.length);var f=c===i;if(u=u||f,!u){const r=i;if(!(e instanceof Function)){const e={params:{}};null===l?l=[e]:l.push(e),i++}f=r===i,u=u||f}if(!u){const e={params:{}};return null===l?l=[e]:l.push(e),i++,o.errors=l,!1}return i=p,null!==l&&(p?l.length=p:l=null),o.errors=l,0===i}
@@ -49,6 +49,28 @@
49
49
  "profile": {
50
50
  "description": "Collect profile data for progress steps. Default: false.",
51
51
  "enum": [true, false, null]
52
+ },
53
+ "progressBar": {
54
+ "description": "Generate progress bar. Default: false.",
55
+ "anyOf": [
56
+ {
57
+ "type": "boolean"
58
+ },
59
+ {
60
+ "type": "object",
61
+ "additionalProperties": false,
62
+ "properties": {
63
+ "color": {
64
+ "description": "Color used for the filled portion of the bar.",
65
+ "type": "string"
66
+ },
67
+ "name": {
68
+ "description": "Name shown before the progress bar.",
69
+ "type": "string"
70
+ }
71
+ }
72
+ }
73
+ ]
52
74
  }
53
75
  }
54
76
  }
@@ -3,5 +3,5 @@
3
3
  * DO NOT MODIFY BY HAND.
4
4
  * Run `yarn fix:special` to update
5
5
  */
6
- declare const check: (options: import("../../declarations/plugins/DllReferencePlugin").DllReferencePluginOptions) => boolean;
6
+ declare const check: (options: any) => boolean;
7
7
  export = check;
@@ -0,0 +1,6 @@
1
+ /*
2
+ * This file was automatically generated.
3
+ * DO NOT MODIFY BY HAND.
4
+ * Run `yarn fix:special` to update
5
+ */
6
+ "use strict";module.exports=t,module.exports.default=t;const e={type:"object",additionalProperties:!1,properties:{animation:{$ref:"#/definitions/CssParserAnimation"},container:{$ref:"#/definitions/CssParserContainer"},customIdents:{$ref:"#/definitions/CssParserCustomIdents"},dashedIdents:{$ref:"#/definitions/CssParserDashedIdents"},exportType:{$ref:"#/definitions/CssParserExportType"},function:{$ref:"#/definitions/CssParserFunction"},grid:{$ref:"#/definitions/CssParserGrid"},import:{$ref:"#/definitions/CssParserImport"},namedExports:{$ref:"#/definitions/CssParserNamedExports"},pure:{$ref:"#/definitions/CssParserPure"},url:{$ref:"#/definitions/CssParserUrl"}}},r=Object.prototype.hasOwnProperty;function o(t,{instancePath:s="",parentData:n,parentDataProperty:i,rootData:a=t}={}){if(!t||"object"!=typeof t||Array.isArray(t))return o.errors=[{params:{type:"object"}}],!1;{const s=0;for(const s in t)if(!r.call(e.properties,s))return o.errors=[{params:{additionalProperty:s}}],!1;if(0===s){if(void 0!==t.animation){const e=0;if("boolean"!=typeof t.animation)return o.errors=[{params:{type:"boolean"}}],!1;var f=0===e}else f=!0;if(f){if(void 0!==t.container){const e=0;if("boolean"!=typeof t.container)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.customIdents){const e=0;if("boolean"!=typeof t.customIdents)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.dashedIdents){const e=0;if("boolean"!=typeof t.dashedIdents)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.exportType){let e=t.exportType;const r=0;if("link"!==e&&"text"!==e&&"css-style-sheet"!==e&&"style"!==e)return o.errors=[{params:{}}],!1;f=0===r}else f=!0;if(f){if(void 0!==t.function){const e=0;if("boolean"!=typeof t.function)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.grid){const e=0;if("boolean"!=typeof t.grid)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.import){const e=0;if("boolean"!=typeof t.import)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.namedExports){const e=0;if("boolean"!=typeof t.namedExports)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f){if(void 0!==t.pure){const e=0;if("boolean"!=typeof t.pure)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0;if(f)if(void 0!==t.url){const e=0;if("boolean"!=typeof t.url)return o.errors=[{params:{type:"boolean"}}],!1;f=0===e}else f=!0}}}}}}}}}}}return o.errors=null,!0}function t(e,{instancePath:r="",parentData:s,parentDataProperty:n,rootData:i=e}={}){let a=null,f=0;return o(e,{instancePath:r,parentData:s,parentDataProperty:n,rootData:i})||(a=null===a?o.errors:a.concat(o.errors),f=a.length),t.errors=a,0===f}
@@ -0,0 +1,3 @@
1
+ {
2
+ "$ref": "../../WebpackOptions.json#/definitions/CssAutoOrModuleParserOptions"
3
+ }
@@ -0,0 +1,7 @@
1
+ /*
2
+ * This file was automatically generated.
3
+ * DO NOT MODIFY BY HAND.
4
+ * Run `yarn fix:special` to update
5
+ */
6
+ declare const check: (options: import("../../../declarations/plugins/dll/DllPlugin").DllPluginOptions) => boolean;
7
+ export = check;
@@ -0,0 +1,7 @@
1
+ /*
2
+ * This file was automatically generated.
3
+ * DO NOT MODIFY BY HAND.
4
+ * Run `yarn fix:special` to update
5
+ */
6
+ declare const check: (options: import("../../../declarations/plugins/dll/DllReferencePlugin").DllReferencePluginOptions) => boolean;
7
+ export = check;