UNPKG

171 kBJSONView Raw
1{
2 "definitions": {
3 "Amd": {
4 "description": "Set the value of `require.amd` and `define.amd`. Or disable AMD support.",
5 "anyOf": [
6 {
7 "description": "You can pass `false` to disable AMD support.",
8 "enum": [false]
9 },
10 {
11 "description": "You can pass an object to set the value of `require.amd` and `define.amd`.",
12 "type": "object"
13 }
14 ]
15 },
16 "AssetFilterItemTypes": {
17 "description": "Filtering value, regexp or function.",
18 "cli": {
19 "helper": true
20 },
21 "anyOf": [
22 {
23 "instanceof": "RegExp",
24 "tsType": "RegExp"
25 },
26 {
27 "type": "string",
28 "absolutePath": false
29 },
30 {
31 "instanceof": "Function",
32 "tsType": "((name: string, asset: import('../lib/stats/DefaultStatsFactoryPlugin').StatsAsset) => boolean)"
33 }
34 ]
35 },
36 "AssetFilterTypes": {
37 "description": "Filtering modules.",
38 "cli": {
39 "helper": true
40 },
41 "anyOf": [
42 {
43 "type": "array",
44 "items": {
45 "description": "Rule to filter.",
46 "cli": {
47 "helper": true
48 },
49 "oneOf": [
50 {
51 "$ref": "#/definitions/AssetFilterItemTypes"
52 }
53 ]
54 }
55 },
56 {
57 "$ref": "#/definitions/AssetFilterItemTypes"
58 }
59 ]
60 },
61 "AssetGeneratorDataUrl": {
62 "description": "The options for data url generator.",
63 "anyOf": [
64 {
65 "$ref": "#/definitions/AssetGeneratorDataUrlOptions"
66 },
67 {
68 "$ref": "#/definitions/AssetGeneratorDataUrlFunction"
69 }
70 ]
71 },
72 "AssetGeneratorDataUrlFunction": {
73 "description": "Function that executes for module and should return an DataUrl string.",
74 "instanceof": "Function",
75 "tsType": "((source: string | Buffer, context: { filename: string, module: import('../lib/Module') }) => string)"
76 },
77 "AssetGeneratorDataUrlOptions": {
78 "description": "Options object for data url generation.",
79 "type": "object",
80 "additionalProperties": false,
81 "properties": {
82 "encoding": {
83 "description": "Asset encoding (defaults to base64).",
84 "enum": [false, "base64"]
85 },
86 "mimetype": {
87 "description": "Asset mimetype (getting from file extension by default).",
88 "type": "string"
89 }
90 }
91 },
92 "AssetGeneratorOptions": {
93 "description": "Generator options for asset modules.",
94 "type": "object",
95 "implements": [
96 "#/definitions/AssetInlineGeneratorOptions",
97 "#/definitions/AssetResourceGeneratorOptions"
98 ],
99 "additionalProperties": false,
100 "properties": {
101 "dataUrl": {
102 "$ref": "#/definitions/AssetGeneratorDataUrl"
103 },
104 "emit": {
105 "description": "Emit an output asset from this asset module. This can be set to 'false' to omit emitting e. g. for SSR.",
106 "type": "boolean"
107 },
108 "filename": {
109 "$ref": "#/definitions/FilenameTemplate"
110 },
111 "publicPath": {
112 "$ref": "#/definitions/RawPublicPath"
113 }
114 }
115 },
116 "AssetInlineGeneratorOptions": {
117 "description": "Generator options for asset/inline modules.",
118 "type": "object",
119 "additionalProperties": false,
120 "properties": {
121 "dataUrl": {
122 "$ref": "#/definitions/AssetGeneratorDataUrl"
123 }
124 }
125 },
126 "AssetModuleFilename": {
127 "description": "The filename of asset modules as relative path inside the 'output.path' directory.",
128 "anyOf": [
129 {
130 "type": "string",
131 "absolutePath": false
132 },
133 {
134 "instanceof": "Function",
135 "tsType": "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
136 }
137 ]
138 },
139 "AssetParserDataUrlFunction": {
140 "description": "Function that executes for module and should return whenever asset should be inlined as DataUrl.",
141 "instanceof": "Function",
142 "tsType": "((source: string | Buffer, context: { filename: string, module: import('../lib/Module') }) => boolean)"
143 },
144 "AssetParserDataUrlOptions": {
145 "description": "Options object for DataUrl condition.",
146 "type": "object",
147 "additionalProperties": false,
148 "properties": {
149 "maxSize": {
150 "description": "Maximum size of asset that should be inline as modules. Default: 8kb.",
151 "type": "number"
152 }
153 }
154 },
155 "AssetParserOptions": {
156 "description": "Parser options for asset modules.",
157 "type": "object",
158 "additionalProperties": false,
159 "properties": {
160 "dataUrlCondition": {
161 "description": "The condition for inlining the asset as DataUrl.",
162 "anyOf": [
163 {
164 "$ref": "#/definitions/AssetParserDataUrlOptions"
165 },
166 {
167 "$ref": "#/definitions/AssetParserDataUrlFunction"
168 }
169 ]
170 }
171 }
172 },
173 "AssetResourceGeneratorOptions": {
174 "description": "Generator options for asset/resource modules.",
175 "type": "object",
176 "additionalProperties": false,
177 "properties": {
178 "emit": {
179 "description": "Emit an output asset from this asset module. This can be set to 'false' to omit emitting e. g. for SSR.",
180 "type": "boolean"
181 },
182 "filename": {
183 "$ref": "#/definitions/FilenameTemplate"
184 },
185 "publicPath": {
186 "$ref": "#/definitions/RawPublicPath"
187 }
188 }
189 },
190 "AuxiliaryComment": {
191 "description": "Add a comment in the UMD wrapper.",
192 "anyOf": [
193 {
194 "description": "Append the same comment above each import style.",
195 "type": "string"
196 },
197 {
198 "$ref": "#/definitions/LibraryCustomUmdCommentObject"
199 }
200 ]
201 },
202 "Bail": {
203 "description": "Report the first error as a hard error instead of tolerating it.",
204 "type": "boolean"
205 },
206 "CacheOptions": {
207 "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.",
208 "anyOf": [
209 {
210 "description": "Enable in memory caching.",
211 "enum": [true]
212 },
213 {
214 "$ref": "#/definitions/CacheOptionsNormalized"
215 }
216 ]
217 },
218 "CacheOptionsNormalized": {
219 "description": "Cache generated modules and chunks to improve performance for multiple incremental builds.",
220 "anyOf": [
221 {
222 "description": "Disable caching.",
223 "enum": [false]
224 },
225 {
226 "$ref": "#/definitions/MemoryCacheOptions"
227 },
228 {
229 "$ref": "#/definitions/FileCacheOptions"
230 }
231 ]
232 },
233 "Charset": {
234 "description": "Add charset attribute for script tag.",
235 "type": "boolean"
236 },
237 "ChunkFilename": {
238 "description": "Specifies the filename template of output files of non-initial chunks 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.",
239 "oneOf": [
240 {
241 "$ref": "#/definitions/FilenameTemplate"
242 }
243 ]
244 },
245 "ChunkFormat": {
246 "description": "The format of chunks (formats included by default are 'array-push' (web/WebWorker), 'commonjs' (node.js), 'module' (ESM), but others might be added by plugins).",
247 "anyOf": [
248 {
249 "enum": ["array-push", "commonjs", "module", false]
250 },
251 {
252 "type": "string"
253 }
254 ]
255 },
256 "ChunkLoadTimeout": {
257 "description": "Number of milliseconds before chunk request expires.",
258 "type": "number"
259 },
260 "ChunkLoading": {
261 "description": "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).",
262 "anyOf": [
263 {
264 "enum": [false]
265 },
266 {
267 "$ref": "#/definitions/ChunkLoadingType"
268 }
269 ]
270 },
271 "ChunkLoadingGlobal": {
272 "description": "The global variable used by webpack for loading of chunks.",
273 "type": "string"
274 },
275 "ChunkLoadingType": {
276 "description": "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).",
277 "anyOf": [
278 {
279 "enum": ["jsonp", "import-scripts", "require", "async-node", "import"]
280 },
281 {
282 "type": "string"
283 }
284 ]
285 },
286 "Clean": {
287 "description": "Clean the output directory before emit.",
288 "anyOf": [
289 {
290 "type": "boolean"
291 },
292 {
293 "$ref": "#/definitions/CleanOptions"
294 }
295 ]
296 },
297 "CleanOptions": {
298 "description": "Advanced options for cleaning assets.",
299 "type": "object",
300 "additionalProperties": false,
301 "properties": {
302 "dry": {
303 "description": "Log the assets that should be removed instead of deleting them.",
304 "type": "boolean"
305 },
306 "keep": {
307 "description": "Keep these assets.",
308 "anyOf": [
309 {
310 "instanceof": "RegExp",
311 "tsType": "RegExp"
312 },
313 {
314 "type": "string",
315 "absolutePath": false
316 },
317 {
318 "instanceof": "Function",
319 "tsType": "((filename: string) => boolean)"
320 }
321 ]
322 }
323 }
324 },
325 "CompareBeforeEmit": {
326 "description": "Check if to be emitted file already exists and have the same content before writing to output filesystem.",
327 "type": "boolean"
328 },
329 "Context": {
330 "description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.",
331 "type": "string",
332 "absolutePath": true
333 },
334 "CrossOriginLoading": {
335 "description": "This option enables cross-origin loading of chunks.",
336 "enum": [false, "anonymous", "use-credentials"]
337 },
338 "Dependencies": {
339 "description": "References to other configurations to depend on.",
340 "type": "array",
341 "items": {
342 "description": "References to another configuration to depend on.",
343 "type": "string"
344 }
345 },
346 "DevServer": {
347 "description": "Options for the webpack-dev-server.",
348 "type": "object"
349 },
350 "DevTool": {
351 "description": "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).",
352 "anyOf": [
353 {
354 "enum": [false, "eval"]
355 },
356 {
357 "type": "string",
358 "pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$"
359 }
360 ]
361 },
362 "DevtoolFallbackModuleFilenameTemplate": {
363 "description": "Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.",
364 "anyOf": [
365 {
366 "type": "string"
367 },
368 {
369 "instanceof": "Function",
370 "tsType": "Function"
371 }
372 ]
373 },
374 "DevtoolModuleFilenameTemplate": {
375 "description": "Filename template string of function for the sources array in a generated SourceMap.",
376 "anyOf": [
377 {
378 "type": "string"
379 },
380 {
381 "instanceof": "Function",
382 "tsType": "Function"
383 }
384 ]
385 },
386 "DevtoolNamespace": {
387 "description": "Module namespace to use when interpolating filename template string for the sources array in a generated SourceMap. Defaults to `output.library` if not set. It's useful for avoiding runtime collisions in sourcemaps from multiple webpack projects built as libraries.",
388 "type": "string"
389 },
390 "EmptyGeneratorOptions": {
391 "description": "No generator options are supported for this module type.",
392 "type": "object",
393 "additionalProperties": false
394 },
395 "EmptyParserOptions": {
396 "description": "No parser options are supported for this module type.",
397 "type": "object",
398 "additionalProperties": false
399 },
400 "EnabledChunkLoadingTypes": {
401 "description": "List of chunk loading types enabled for use by entry points.",
402 "type": "array",
403 "items": {
404 "$ref": "#/definitions/ChunkLoadingType"
405 }
406 },
407 "EnabledLibraryTypes": {
408 "description": "List of library types enabled for use by entry points.",
409 "type": "array",
410 "items": {
411 "$ref": "#/definitions/LibraryType"
412 }
413 },
414 "EnabledWasmLoadingTypes": {
415 "description": "List of wasm loading types enabled for use by entry points.",
416 "type": "array",
417 "items": {
418 "$ref": "#/definitions/WasmLoadingType"
419 }
420 },
421 "Entry": {
422 "description": "The entry point(s) of the compilation.",
423 "anyOf": [
424 {
425 "$ref": "#/definitions/EntryDynamic"
426 },
427 {
428 "$ref": "#/definitions/EntryStatic"
429 }
430 ]
431 },
432 "EntryDescription": {
433 "description": "An object with entry point description.",
434 "type": "object",
435 "additionalProperties": false,
436 "properties": {
437 "chunkLoading": {
438 "$ref": "#/definitions/ChunkLoading"
439 },
440 "dependOn": {
441 "description": "The entrypoints that the current entrypoint depend on. They must be loaded when this entrypoint is loaded.",
442 "anyOf": [
443 {
444 "description": "The entrypoints that the current entrypoint depend on. They must be loaded when this entrypoint is loaded.",
445 "type": "array",
446 "items": {
447 "description": "An entrypoint that the current entrypoint depend on. It must be loaded when this entrypoint is loaded.",
448 "type": "string",
449 "minLength": 1
450 },
451 "minItems": 1,
452 "uniqueItems": true
453 },
454 {
455 "description": "An entrypoint that the current entrypoint depend on. It must be loaded when this entrypoint is loaded.",
456 "type": "string",
457 "minLength": 1
458 }
459 ]
460 },
461 "filename": {
462 "$ref": "#/definitions/EntryFilename"
463 },
464 "import": {
465 "$ref": "#/definitions/EntryItem"
466 },
467 "layer": {
468 "$ref": "#/definitions/Layer"
469 },
470 "library": {
471 "$ref": "#/definitions/LibraryOptions"
472 },
473 "publicPath": {
474 "$ref": "#/definitions/PublicPath"
475 },
476 "runtime": {
477 "$ref": "#/definitions/EntryRuntime"
478 },
479 "wasmLoading": {
480 "$ref": "#/definitions/WasmLoading"
481 }
482 },
483 "required": ["import"]
484 },
485 "EntryDescriptionNormalized": {
486 "description": "An object with entry point description.",
487 "type": "object",
488 "additionalProperties": false,
489 "properties": {
490 "chunkLoading": {
491 "$ref": "#/definitions/ChunkLoading"
492 },
493 "dependOn": {
494 "description": "The entrypoints that the current entrypoint depend on. They must be loaded when this entrypoint is loaded.",
495 "type": "array",
496 "items": {
497 "description": "An entrypoint that the current entrypoint depend on. It must be loaded when this entrypoint is loaded.",
498 "type": "string",
499 "minLength": 1
500 },
501 "minItems": 1,
502 "uniqueItems": true
503 },
504 "filename": {
505 "$ref": "#/definitions/Filename"
506 },
507 "import": {
508 "description": "Module(s) that are loaded upon startup. The last one is exported.",
509 "type": "array",
510 "items": {
511 "description": "Module that is loaded upon startup. Only the last one is exported.",
512 "type": "string",
513 "minLength": 1
514 },
515 "minItems": 1,
516 "uniqueItems": true
517 },
518 "layer": {
519 "$ref": "#/definitions/Layer"
520 },
521 "library": {
522 "$ref": "#/definitions/LibraryOptions"
523 },
524 "publicPath": {
525 "$ref": "#/definitions/PublicPath"
526 },
527 "runtime": {
528 "$ref": "#/definitions/EntryRuntime"
529 },
530 "wasmLoading": {
531 "$ref": "#/definitions/WasmLoading"
532 }
533 }
534 },
535 "EntryDynamic": {
536 "description": "A Function returning an entry object, an entry string, an entry array or a promise to these things.",
537 "instanceof": "Function",
538 "tsType": "(() => EntryStatic | Promise<EntryStatic>)"
539 },
540 "EntryDynamicNormalized": {
541 "description": "A Function returning a Promise resolving to a normalized entry.",
542 "instanceof": "Function",
543 "tsType": "(() => Promise<EntryStaticNormalized>)"
544 },
545 "EntryFilename": {
546 "description": "Specifies the filename of the output file 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.",
547 "oneOf": [
548 {
549 "$ref": "#/definitions/FilenameTemplate"
550 }
551 ]
552 },
553 "EntryItem": {
554 "description": "Module(s) that are loaded upon startup.",
555 "anyOf": [
556 {
557 "description": "All modules are loaded upon startup. The last one is exported.",
558 "type": "array",
559 "items": {
560 "description": "A module that is loaded upon startup. Only the last one is exported.",
561 "type": "string",
562 "minLength": 1
563 },
564 "minItems": 1,
565 "uniqueItems": true
566 },
567 {
568 "description": "The string is resolved to a module which is loaded upon startup.",
569 "type": "string",
570 "minLength": 1
571 }
572 ]
573 },
574 "EntryNormalized": {
575 "description": "The entry point(s) of the compilation.",
576 "anyOf": [
577 {
578 "$ref": "#/definitions/EntryDynamicNormalized"
579 },
580 {
581 "$ref": "#/definitions/EntryStaticNormalized"
582 }
583 ]
584 },
585 "EntryObject": {
586 "description": "Multiple entry bundles are created. The key is the entry name. The value can be a string, an array or an entry description object.",
587 "type": "object",
588 "additionalProperties": {
589 "description": "An entry point with name.",
590 "anyOf": [
591 {
592 "$ref": "#/definitions/EntryItem"
593 },
594 {
595 "$ref": "#/definitions/EntryDescription"
596 }
597 ]
598 }
599 },
600 "EntryRuntime": {
601 "description": "The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.",
602 "anyOf": [
603 {
604 "enum": [false]
605 },
606 {
607 "type": "string",
608 "minLength": 1
609 }
610 ]
611 },
612 "EntryStatic": {
613 "description": "A static entry description.",
614 "anyOf": [
615 {
616 "$ref": "#/definitions/EntryObject"
617 },
618 {
619 "$ref": "#/definitions/EntryUnnamed"
620 }
621 ]
622 },
623 "EntryStaticNormalized": {
624 "description": "Multiple entry bundles are created. The key is the entry name. The value is an entry description object.",
625 "type": "object",
626 "additionalProperties": {
627 "description": "An object with entry point description.",
628 "oneOf": [
629 {
630 "$ref": "#/definitions/EntryDescriptionNormalized"
631 }
632 ]
633 }
634 },
635 "EntryUnnamed": {
636 "description": "An entry point without name.",
637 "oneOf": [
638 {
639 "$ref": "#/definitions/EntryItem"
640 }
641 ]
642 },
643 "Environment": {
644 "description": "The abilities of the environment where the webpack generated code should run.",
645 "type": "object",
646 "additionalProperties": false,
647 "properties": {
648 "arrowFunction": {
649 "description": "The environment supports arrow functions ('() => { ... }').",
650 "type": "boolean"
651 },
652 "bigIntLiteral": {
653 "description": "The environment supports BigInt as literal (123n).",
654 "type": "boolean"
655 },
656 "const": {
657 "description": "The environment supports const and let for variable declarations.",
658 "type": "boolean"
659 },
660 "destructuring": {
661 "description": "The environment supports destructuring ('{ a, b } = obj').",
662 "type": "boolean"
663 },
664 "dynamicImport": {
665 "description": "The environment supports an async import() function to import EcmaScript modules.",
666 "type": "boolean"
667 },
668 "forOf": {
669 "description": "The environment supports 'for of' iteration ('for (const x of array) { ... }').",
670 "type": "boolean"
671 },
672 "module": {
673 "description": "The environment supports EcmaScript Module syntax to import EcmaScript modules (import ... from '...').",
674 "type": "boolean"
675 }
676 }
677 },
678 "Experiments": {
679 "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).",
680 "type": "object",
681 "implements": ["#/definitions/ExperimentsCommon"],
682 "additionalProperties": false,
683 "properties": {
684 "asyncWebAssembly": {
685 "description": "Support WebAssembly as asynchronous EcmaScript Module.",
686 "type": "boolean"
687 },
688 "backCompat": {
689 "description": "Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.",
690 "type": "boolean"
691 },
692 "buildHttp": {
693 "description": "Build http(s): urls using a lockfile and resource content cache.",
694 "anyOf": [
695 {
696 "$ref": "#/definitions/HttpUriAllowedUris"
697 },
698 {
699 "$ref": "#/definitions/HttpUriOptions"
700 }
701 ]
702 },
703 "cacheUnaffected": {
704 "description": "Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.",
705 "type": "boolean"
706 },
707 "futureDefaults": {
708 "description": "Apply defaults of next major version.",
709 "type": "boolean"
710 },
711 "layers": {
712 "description": "Enable module layers.",
713 "type": "boolean"
714 },
715 "lazyCompilation": {
716 "description": "Compile entrypoints and import()s only when they are accessed.",
717 "anyOf": [
718 {
719 "type": "boolean"
720 },
721 {
722 "$ref": "#/definitions/LazyCompilationOptions"
723 }
724 ]
725 },
726 "outputModule": {
727 "description": "Allow output javascript files as module source type.",
728 "type": "boolean"
729 },
730 "syncWebAssembly": {
731 "description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
732 "type": "boolean"
733 },
734 "topLevelAwait": {
735 "description": "Allow using top-level-await in EcmaScript Modules.",
736 "type": "boolean"
737 }
738 }
739 },
740 "ExperimentsCommon": {
741 "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).",
742 "type": "object",
743 "additionalProperties": false,
744 "properties": {
745 "asyncWebAssembly": {
746 "description": "Support WebAssembly as asynchronous EcmaScript Module.",
747 "type": "boolean"
748 },
749 "backCompat": {
750 "description": "Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.",
751 "type": "boolean"
752 },
753 "cacheUnaffected": {
754 "description": "Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.",
755 "type": "boolean"
756 },
757 "futureDefaults": {
758 "description": "Apply defaults of next major version.",
759 "type": "boolean"
760 },
761 "layers": {
762 "description": "Enable module layers.",
763 "type": "boolean"
764 },
765 "outputModule": {
766 "description": "Allow output javascript files as module source type.",
767 "type": "boolean"
768 },
769 "syncWebAssembly": {
770 "description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
771 "type": "boolean"
772 },
773 "topLevelAwait": {
774 "description": "Allow using top-level-await in EcmaScript Modules.",
775 "type": "boolean"
776 }
777 }
778 },
779 "ExperimentsNormalized": {
780 "description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).",
781 "type": "object",
782 "implements": ["#/definitions/ExperimentsCommon"],
783 "additionalProperties": false,
784 "properties": {
785 "asyncWebAssembly": {
786 "description": "Support WebAssembly as asynchronous EcmaScript Module.",
787 "type": "boolean"
788 },
789 "backCompat": {
790 "description": "Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.",
791 "type": "boolean"
792 },
793 "buildHttp": {
794 "description": "Build http(s): urls using a lockfile and resource content cache.",
795 "oneOf": [
796 {
797 "$ref": "#/definitions/HttpUriOptions"
798 }
799 ]
800 },
801 "cacheUnaffected": {
802 "description": "Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.",
803 "type": "boolean"
804 },
805 "futureDefaults": {
806 "description": "Apply defaults of next major version.",
807 "type": "boolean"
808 },
809 "layers": {
810 "description": "Enable module layers.",
811 "type": "boolean"
812 },
813 "lazyCompilation": {
814 "description": "Compile entrypoints and import()s only when they are accessed.",
815 "oneOf": [
816 {
817 "$ref": "#/definitions/LazyCompilationOptions"
818 }
819 ]
820 },
821 "outputModule": {
822 "description": "Allow output javascript files as module source type.",
823 "type": "boolean"
824 },
825 "syncWebAssembly": {
826 "description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
827 "type": "boolean"
828 },
829 "topLevelAwait": {
830 "description": "Allow using top-level-await in EcmaScript Modules.",
831 "type": "boolean"
832 }
833 }
834 },
835 "ExternalItem": {
836 "description": "Specify dependency that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.",
837 "anyOf": [
838 {
839 "description": "Every matched dependency becomes external.",
840 "instanceof": "RegExp",
841 "tsType": "RegExp"
842 },
843 {
844 "description": "An exact matched dependency becomes external. The same string is used as external dependency.",
845 "type": "string"
846 },
847 {
848 "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.",
849 "type": "object",
850 "additionalProperties": {
851 "$ref": "#/definitions/ExternalItemValue"
852 },
853 "properties": {
854 "byLayer": {
855 "description": "Specify externals depending on the layer.",
856 "anyOf": [
857 {
858 "type": "object",
859 "additionalProperties": {
860 "$ref": "#/definitions/ExternalItem"
861 }
862 },
863 {
864 "instanceof": "Function",
865 "tsType": "((layer: string | null) => ExternalItem)"
866 }
867 ]
868 }
869 }
870 },
871 {
872 "description": "The function is called on each dependency (`function(context, request, callback(err, result))`).",
873 "instanceof": "Function",
874 "tsType": "(((data: ExternalItemFunctionData, callback: (err?: Error, result?: ExternalItemValue) => void) => void) | ((data: ExternalItemFunctionData) => Promise<ExternalItemValue>))"
875 }
876 ]
877 },
878 "ExternalItemFunctionData": {
879 "description": "Data object passed as argument when a function is set for 'externals'.",
880 "type": "object",
881 "additionalProperties": false,
882 "properties": {
883 "context": {
884 "description": "The directory in which the request is placed.",
885 "type": "string"
886 },
887 "contextInfo": {
888 "description": "Contextual information.",
889 "type": "object",
890 "tsType": "import('../lib/ModuleFactory').ModuleFactoryCreateDataContextInfo"
891 },
892 "dependencyType": {
893 "description": "The category of the referencing dependencies.",
894 "type": "string"
895 },
896 "getResolve": {
897 "description": "Get a resolve function with the current resolver options.",
898 "instanceof": "Function",
899 "tsType": "((options?: ResolveOptions) => ((context: string, request: string, callback: (err?: Error, result?: string) => void) => void) | ((context: string, request: string) => Promise<string>))"
900 },
901 "request": {
902 "description": "The request as written by the user in the require/import expression/statement.",
903 "type": "string"
904 }
905 }
906 },
907 "ExternalItemValue": {
908 "description": "The dependency used for the external.",
909 "anyOf": [
910 {
911 "type": "array",
912 "items": {
913 "description": "A part of the target of the external.",
914 "type": "string",
915 "minLength": 1
916 }
917 },
918 {
919 "description": "`true`: The dependency name is used as target of the external.",
920 "type": "boolean"
921 },
922 {
923 "description": "The target of the external.",
924 "type": "string"
925 },
926 {
927 "type": "object"
928 }
929 ]
930 },
931 "Externals": {
932 "description": "Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.",
933 "anyOf": [
934 {
935 "type": "array",
936 "items": {
937 "$ref": "#/definitions/ExternalItem"
938 }
939 },
940 {
941 "$ref": "#/definitions/ExternalItem"
942 }
943 ]
944 },
945 "ExternalsPresets": {
946 "description": "Enable presets of externals for specific targets.",
947 "type": "object",
948 "additionalProperties": false,
949 "properties": {
950 "electron": {
951 "description": "Treat common electron built-in modules in main and preload context like 'electron', 'ipc' or 'shell' as external and load them via require() when used.",
952 "type": "boolean"
953 },
954 "electronMain": {
955 "description": "Treat electron built-in modules in the main context like 'app', 'ipc-main' or 'shell' as external and load them via require() when used.",
956 "type": "boolean"
957 },
958 "electronPreload": {
959 "description": "Treat electron built-in modules in the preload context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used.",
960 "type": "boolean"
961 },
962 "electronRenderer": {
963 "description": "Treat electron built-in modules in the renderer context like 'web-frame', 'ipc-renderer' or 'shell' as external and load them via require() when used.",
964 "type": "boolean"
965 },
966 "node": {
967 "description": "Treat node.js built-in modules like fs, path or vm as external and load them via require() when used.",
968 "type": "boolean"
969 },
970 "nwjs": {
971 "description": "Treat NW.js legacy nw.gui module as external and load it via require() when used.",
972 "type": "boolean"
973 },
974 "web": {
975 "description": "Treat references to 'http(s)://...' and 'std:...' as external and load them via import when used (Note that this changes execution order as externals are executed before any other code in the chunk).",
976 "type": "boolean"
977 },
978 "webAsync": {
979 "description": "Treat references to 'http(s)://...' and 'std:...' as external and load them via async import() when used (Note that this external type is an async module, which has various effects on the execution).",
980 "type": "boolean"
981 }
982 }
983 },
984 "ExternalsType": {
985 "description": "Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).",
986 "enum": [
987 "var",
988 "module",
989 "assign",
990 "this",
991 "window",
992 "self",
993 "global",
994 "commonjs",
995 "commonjs2",
996 "commonjs-module",
997 "amd",
998 "amd-require",
999 "umd",
1000 "umd2",
1001 "jsonp",
1002 "system",
1003 "promise",
1004 "import",
1005 "script",
1006 "node-commonjs"
1007 ]
1008 },
1009 "FileCacheOptions": {
1010 "description": "Options object for persistent file-based caching.",
1011 "type": "object",
1012 "additionalProperties": false,
1013 "properties": {
1014 "allowCollectingMemory": {
1015 "description": "Allows to collect unused memory allocated during deserialization. This requires copying data into smaller buffers and has a performance cost.",
1016 "type": "boolean"
1017 },
1018 "buildDependencies": {
1019 "description": "Dependencies the build depends on (in multiple categories, default categories: 'defaultWebpack').",
1020 "type": "object",
1021 "additionalProperties": {
1022 "description": "List of dependencies the build depends on.",
1023 "type": "array",
1024 "items": {
1025 "description": "Request to a dependency (resolved as directory relative to the context directory).",
1026 "type": "string",
1027 "minLength": 1
1028 }
1029 }
1030 },
1031 "cacheDirectory": {
1032 "description": "Base directory for the cache (defaults to node_modules/.cache/webpack).",
1033 "type": "string",
1034 "absolutePath": true
1035 },
1036 "cacheLocation": {
1037 "description": "Locations for the cache (defaults to cacheDirectory / name).",
1038 "type": "string",
1039 "absolutePath": true
1040 },
1041 "compression": {
1042 "description": "Compression type used for the cache files.",
1043 "enum": [false, "gzip", "brotli"]
1044 },
1045 "hashAlgorithm": {
1046 "description": "Algorithm used for generation the hash (see node.js crypto package).",
1047 "type": "string"
1048 },
1049 "idleTimeout": {
1050 "description": "Time in ms after which idle period the cache storing should happen.",
1051 "type": "number",
1052 "minimum": 0
1053 },
1054 "idleTimeoutAfterLargeChanges": {
1055 "description": "Time in ms after which idle period the cache storing should happen when larger changes has been detected (cumulative build time > 2 x avg cache store time).",
1056 "type": "number",
1057 "minimum": 0
1058 },
1059 "idleTimeoutForInitialStore": {
1060 "description": "Time in ms after which idle period the initial cache storing should happen.",
1061 "type": "number",
1062 "minimum": 0
1063 },
1064 "immutablePaths": {
1065 "description": "List of paths that are managed by a package manager and contain a version or hash in its path so all files are immutable.",
1066 "type": "array",
1067 "items": {
1068 "description": "List of paths that are managed by a package manager and contain a version or hash in its path so all files are immutable.",
1069 "anyOf": [
1070 {
1071 "description": "A RegExp matching an immutable directory (usually a package manager cache directory, including the tailing slash)",
1072 "instanceof": "RegExp",
1073 "tsType": "RegExp"
1074 },
1075 {
1076 "description": "A path to an immutable directory (usually a package manager cache directory).",
1077 "type": "string",
1078 "absolutePath": true,
1079 "minLength": 1
1080 }
1081 ]
1082 }
1083 },
1084 "managedPaths": {
1085 "description": "List of paths that are managed by a package manager and can be trusted to not be modified otherwise.",
1086 "type": "array",
1087 "items": {
1088 "description": "List of paths that are managed by a package manager and can be trusted to not be modified otherwise.",
1089 "anyOf": [
1090 {
1091 "description": "A RegExp matching a managed directory (usually a node_modules directory, including the tailing slash)",
1092 "instanceof": "RegExp",
1093 "tsType": "RegExp"
1094 },
1095 {
1096 "description": "A path to a managed directory (usually a node_modules directory).",
1097 "type": "string",
1098 "absolutePath": true,
1099 "minLength": 1
1100 }
1101 ]
1102 }
1103 },
1104 "maxAge": {
1105 "description": "Time for which unused cache entries stay in the filesystem cache at minimum (in milliseconds).",
1106 "type": "number",
1107 "minimum": 0
1108 },
1109 "maxMemoryGenerations": {
1110 "description": "Number of generations unused cache entries stay in memory cache at minimum (0 = no memory cache used, 1 = may be removed after unused for a single compilation, ..., Infinity: kept forever). Cache entries will be deserialized from disk when removed from memory cache.",
1111 "type": "number",
1112 "minimum": 0
1113 },
1114 "memoryCacheUnaffected": {
1115 "description": "Additionally cache computation of modules that are unchanged and reference only unchanged modules in memory.",
1116 "type": "boolean"
1117 },
1118 "name": {
1119 "description": "Name for the cache. Different names will lead to different coexisting caches.",
1120 "type": "string"
1121 },
1122 "profile": {
1123 "description": "Track and log detailed timing information for individual cache items.",
1124 "type": "boolean"
1125 },
1126 "store": {
1127 "description": "When to store data to the filesystem. (pack: Store data when compiler is idle in a single file).",
1128 "enum": ["pack"]
1129 },
1130 "type": {
1131 "description": "Filesystem caching.",
1132 "enum": ["filesystem"]
1133 },
1134 "version": {
1135 "description": "Version of the cache data. Different versions won't allow to reuse the cache and override existing content. Update the version when config changed in a way which doesn't allow to reuse cache. This will invalidate the cache.",
1136 "type": "string"
1137 }
1138 },
1139 "required": ["type"]
1140 },
1141 "Filename": {
1142 "description": "Specifies the filename of output 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.",
1143 "oneOf": [
1144 {
1145 "$ref": "#/definitions/FilenameTemplate"
1146 }
1147 ]
1148 },
1149 "FilenameTemplate": {
1150 "description": "Specifies the filename template of output 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.",
1151 "anyOf": [
1152 {
1153 "type": "string",
1154 "absolutePath": false,
1155 "minLength": 1
1156 },
1157 {
1158 "instanceof": "Function",
1159 "tsType": "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
1160 }
1161 ]
1162 },
1163 "FilterItemTypes": {
1164 "description": "Filtering value, regexp or function.",
1165 "cli": {
1166 "helper": true
1167 },
1168 "anyOf": [
1169 {
1170 "instanceof": "RegExp",
1171 "tsType": "RegExp"
1172 },
1173 {
1174 "type": "string",
1175 "absolutePath": false
1176 },
1177 {
1178 "instanceof": "Function",
1179 "tsType": "((value: string) => boolean)"
1180 }
1181 ]
1182 },
1183 "FilterTypes": {
1184 "description": "Filtering values.",
1185 "cli": {
1186 "helper": true
1187 },
1188 "anyOf": [
1189 {
1190 "type": "array",
1191 "items": {
1192 "description": "Rule to filter.",
1193 "cli": {
1194 "helper": true
1195 },
1196 "oneOf": [
1197 {
1198 "$ref": "#/definitions/FilterItemTypes"
1199 }
1200 ]
1201 }
1202 },
1203 {
1204 "$ref": "#/definitions/FilterItemTypes"
1205 }
1206 ]
1207 },
1208 "GeneratorOptionsByModuleType": {
1209 "description": "Specify options for each generator.",
1210 "type": "object",
1211 "additionalProperties": {
1212 "description": "Options for generating.",
1213 "type": "object",
1214 "additionalProperties": true
1215 },
1216 "properties": {
1217 "asset": {
1218 "$ref": "#/definitions/AssetGeneratorOptions"
1219 },
1220 "asset/inline": {
1221 "$ref": "#/definitions/AssetInlineGeneratorOptions"
1222 },
1223 "asset/resource": {
1224 "$ref": "#/definitions/AssetResourceGeneratorOptions"
1225 },
1226 "javascript": {
1227 "$ref": "#/definitions/EmptyGeneratorOptions"
1228 },
1229 "javascript/auto": {
1230 "$ref": "#/definitions/EmptyGeneratorOptions"
1231 },
1232 "javascript/dynamic": {
1233 "$ref": "#/definitions/EmptyGeneratorOptions"
1234 },
1235 "javascript/esm": {
1236 "$ref": "#/definitions/EmptyGeneratorOptions"
1237 }
1238 }
1239 },
1240 "GlobalObject": {
1241 "description": "An expression which is used to address the global object/scope in runtime code.",
1242 "type": "string",
1243 "minLength": 1
1244 },
1245 "HashDigest": {
1246 "description": "Digest type used for the hash.",
1247 "type": "string"
1248 },
1249 "HashDigestLength": {
1250 "description": "Number of chars which are used for the hash.",
1251 "type": "number",
1252 "minimum": 1
1253 },
1254 "HashFunction": {
1255 "description": "Algorithm used for generation the hash (see node.js crypto package).",
1256 "anyOf": [
1257 {
1258 "type": "string",
1259 "minLength": 1
1260 },
1261 {
1262 "instanceof": "Function",
1263 "tsType": "typeof import('../lib/util/Hash')"
1264 }
1265 ]
1266 },
1267 "HashSalt": {
1268 "description": "Any string which is added to the hash to salt it.",
1269 "type": "string",
1270 "minLength": 1
1271 },
1272 "HotUpdateChunkFilename": {
1273 "description": "The filename of the Hot Update Chunks. They are inside the output.path directory.",
1274 "type": "string",
1275 "absolutePath": false
1276 },
1277 "HotUpdateGlobal": {
1278 "description": "The global variable used by webpack for loading of hot update chunks.",
1279 "type": "string"
1280 },
1281 "HotUpdateMainFilename": {
1282 "description": "The filename of the Hot Update Main File. It is inside the 'output.path' directory.",
1283 "type": "string",
1284 "absolutePath": false
1285 },
1286 "HttpUriAllowedUris": {
1287 "description": "List of allowed URIs for building http resources.",
1288 "cli": {
1289 "exclude": true
1290 },
1291 "oneOf": [
1292 {
1293 "$ref": "#/definitions/HttpUriOptionsAllowedUris"
1294 }
1295 ]
1296 },
1297 "HttpUriOptions": {
1298 "description": "Options for building http resources.",
1299 "type": "object",
1300 "additionalProperties": false,
1301 "properties": {
1302 "allowedUris": {
1303 "$ref": "#/definitions/HttpUriOptionsAllowedUris"
1304 },
1305 "cacheLocation": {
1306 "description": "Location where resource content is stored for lockfile entries. It's also possible to disable storing by passing false.",
1307 "anyOf": [
1308 {
1309 "enum": [false]
1310 },
1311 {
1312 "type": "string",
1313 "absolutePath": true
1314 }
1315 ]
1316 },
1317 "frozen": {
1318 "description": "When set, anything that would lead to a modification of the lockfile or any resource content, will result in an error.",
1319 "type": "boolean"
1320 },
1321 "lockfileLocation": {
1322 "description": "Location of the lockfile.",
1323 "type": "string",
1324 "absolutePath": true
1325 },
1326 "upgrade": {
1327 "description": "When set, resources of existing lockfile entries will be fetched and entries will be upgraded when resource content has changed.",
1328 "type": "boolean"
1329 }
1330 },
1331 "required": ["allowedUris"]
1332 },
1333 "HttpUriOptionsAllowedUris": {
1334 "description": "List of allowed URIs (resp. the beginning of them).",
1335 "type": "array",
1336 "items": {
1337 "description": "List of allowed URIs (resp. the beginning of them).",
1338 "anyOf": [
1339 {
1340 "description": "Allowed URI pattern.",
1341 "instanceof": "RegExp",
1342 "tsType": "RegExp"
1343 },
1344 {
1345 "description": "Allowed URI (resp. the beginning of it).",
1346 "type": "string",
1347 "pattern": "^https?://"
1348 },
1349 {
1350 "description": "Allowed URI filter function.",
1351 "instanceof": "Function",
1352 "tsType": "((uri: string) => boolean)"
1353 }
1354 ]
1355 }
1356 },
1357 "IgnoreWarnings": {
1358 "description": "Ignore specific warnings.",
1359 "type": "array",
1360 "items": {
1361 "description": "Ignore specific warnings.",
1362 "anyOf": [
1363 {
1364 "description": "A RegExp to select the warning message.",
1365 "instanceof": "RegExp",
1366 "tsType": "RegExp"
1367 },
1368 {
1369 "type": "object",
1370 "additionalProperties": false,
1371 "properties": {
1372 "file": {
1373 "description": "A RegExp to select the origin file for the warning.",
1374 "instanceof": "RegExp",
1375 "tsType": "RegExp"
1376 },
1377 "message": {
1378 "description": "A RegExp to select the warning message.",
1379 "instanceof": "RegExp",
1380 "tsType": "RegExp"
1381 },
1382 "module": {
1383 "description": "A RegExp to select the origin module for the warning.",
1384 "instanceof": "RegExp",
1385 "tsType": "RegExp"
1386 }
1387 }
1388 },
1389 {
1390 "description": "A custom function to select warnings based on the raw warning instance.",
1391 "instanceof": "Function",
1392 "tsType": "((warning: import('../lib/WebpackError'), compilation: import('../lib/Compilation')) => boolean)"
1393 }
1394 ]
1395 }
1396 },
1397 "IgnoreWarningsNormalized": {
1398 "description": "Ignore specific warnings.",
1399 "type": "array",
1400 "items": {
1401 "description": "A function to select warnings based on the raw warning instance.",
1402 "instanceof": "Function",
1403 "tsType": "((warning: import('../lib/WebpackError'), compilation: import('../lib/Compilation')) => boolean)"
1404 }
1405 },
1406 "Iife": {
1407 "description": "Wrap javascript code into IIFE's to avoid leaking into global scope.",
1408 "type": "boolean"
1409 },
1410 "ImportFunctionName": {
1411 "description": "The name of the native import() function (can be exchanged for a polyfill).",
1412 "type": "string"
1413 },
1414 "ImportMetaName": {
1415 "description": "The name of the native import.meta object (can be exchanged for a polyfill).",
1416 "type": "string"
1417 },
1418 "InfrastructureLogging": {
1419 "description": "Options for infrastructure level logging.",
1420 "type": "object",
1421 "additionalProperties": false,
1422 "properties": {
1423 "appendOnly": {
1424 "description": "Only appends lines to the output. Avoids updating existing output e. g. for status messages. This option is only used when no custom console is provided.",
1425 "type": "boolean"
1426 },
1427 "colors": {
1428 "description": "Enables/Disables colorful output. This option is only used when no custom console is provided.",
1429 "type": "boolean"
1430 },
1431 "console": {
1432 "description": "Custom console used for logging.",
1433 "tsType": "Console"
1434 },
1435 "debug": {
1436 "description": "Enable debug logging for specific loggers.",
1437 "anyOf": [
1438 {
1439 "description": "Enable/Disable debug logging for all loggers.",
1440 "type": "boolean"
1441 },
1442 {
1443 "$ref": "#/definitions/FilterTypes"
1444 }
1445 ]
1446 },
1447 "level": {
1448 "description": "Log level.",
1449 "enum": ["none", "error", "warn", "info", "log", "verbose"]
1450 },
1451 "stream": {
1452 "description": "Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided.",
1453 "tsType": "NodeJS.WritableStream"
1454 }
1455 }
1456 },
1457 "JavascriptParserOptions": {
1458 "description": "Parser options for javascript modules.",
1459 "type": "object",
1460 "additionalProperties": true,
1461 "properties": {
1462 "amd": {
1463 "$ref": "#/definitions/Amd"
1464 },
1465 "browserify": {
1466 "description": "Enable/disable special handling for browserify bundles.",
1467 "type": "boolean"
1468 },
1469 "commonjs": {
1470 "description": "Enable/disable parsing of CommonJs syntax.",
1471 "type": "boolean"
1472 },
1473 "commonjsMagicComments": {
1474 "description": "Enable/disable parsing of magic comments in CommonJs syntax.",
1475 "type": "boolean"
1476 },
1477 "exportsPresence": {
1478 "description": "Specifies the behavior of invalid export names in \"import ... from ...\" and \"export ... from ...\".",
1479 "enum": ["error", "warn", "auto", false]
1480 },
1481 "exprContextCritical": {
1482 "description": "Enable warnings for full dynamic dependencies.",
1483 "type": "boolean"
1484 },
1485 "exprContextRecursive": {
1486 "description": "Enable recursive directory lookup for full dynamic dependencies.",
1487 "type": "boolean"
1488 },
1489 "exprContextRegExp": {
1490 "description": "Sets the default regular expression for full dynamic dependencies.",
1491 "anyOf": [
1492 {
1493 "instanceof": "RegExp",
1494 "tsType": "RegExp"
1495 },
1496 {
1497 "type": "boolean"
1498 }
1499 ]
1500 },
1501 "exprContextRequest": {
1502 "description": "Set the default request for full dynamic dependencies.",
1503 "type": "string"
1504 },
1505 "harmony": {
1506 "description": "Enable/disable parsing of EcmaScript Modules syntax.",
1507 "type": "boolean"
1508 },
1509 "import": {
1510 "description": "Enable/disable parsing of import() syntax.",
1511 "type": "boolean"
1512 },
1513 "importExportsPresence": {
1514 "description": "Specifies the behavior of invalid export names in \"import ... from ...\".",
1515 "enum": ["error", "warn", "auto", false]
1516 },
1517 "node": {
1518 "$ref": "#/definitions/Node"
1519 },
1520 "reexportExportsPresence": {
1521 "description": "Specifies the behavior of invalid export names in \"export ... from ...\". This might be useful to disable during the migration from \"export ... from ...\" to \"export type ... from ...\" when reexporting types in TypeScript.",
1522 "enum": ["error", "warn", "auto", false]
1523 },
1524 "requireContext": {
1525 "description": "Enable/disable parsing of require.context syntax.",
1526 "type": "boolean"
1527 },
1528 "requireEnsure": {
1529 "description": "Enable/disable parsing of require.ensure syntax.",
1530 "type": "boolean"
1531 },
1532 "requireInclude": {
1533 "description": "Enable/disable parsing of require.include syntax.",
1534 "type": "boolean"
1535 },
1536 "requireJs": {
1537 "description": "Enable/disable parsing of require.js special syntax like require.config, requirejs.config, require.version and requirejs.onError.",
1538 "type": "boolean"
1539 },
1540 "strictExportPresence": {
1541 "description": "Deprecated in favor of \"exportsPresence\". Emit errors instead of warnings when imported names don't exist in imported module.",
1542 "type": "boolean"
1543 },
1544 "strictThisContextOnImports": {
1545 "description": "Handle the this context correctly according to the spec for namespace objects.",
1546 "type": "boolean"
1547 },
1548 "system": {
1549 "description": "Enable/disable parsing of System.js special syntax like System.import, System.get, System.set and System.register.",
1550 "type": "boolean"
1551 },
1552 "unknownContextCritical": {
1553 "description": "Enable warnings when using the require function in a not statically analyse-able way.",
1554 "type": "boolean"
1555 },
1556 "unknownContextRecursive": {
1557 "description": "Enable recursive directory lookup when using the require function in a not statically analyse-able way.",
1558 "type": "boolean"
1559 },
1560 "unknownContextRegExp": {
1561 "description": "Sets the regular expression when using the require function in a not statically analyse-able way.",
1562 "anyOf": [
1563 {
1564 "instanceof": "RegExp",
1565 "tsType": "RegExp"
1566 },
1567 {
1568 "type": "boolean"
1569 }
1570 ]
1571 },
1572 "unknownContextRequest": {
1573 "description": "Sets the request when using the require function in a not statically analyse-able way.",
1574 "type": "string"
1575 },
1576 "url": {
1577 "description": "Enable/disable parsing of new URL() syntax.",
1578 "anyOf": [
1579 {
1580 "enum": ["relative"]
1581 },
1582 {
1583 "type": "boolean"
1584 }
1585 ]
1586 },
1587 "worker": {
1588 "description": "Disable or configure parsing of WebWorker syntax like new Worker() or navigator.serviceWorker.register().",
1589 "anyOf": [
1590 {
1591 "type": "array",
1592 "items": {
1593 "description": "Specify a syntax that should be parsed as WebWorker reference. 'Abc' handles 'new Abc()', 'Abc from xyz' handles 'import { Abc } from \"xyz\"; new Abc()', 'abc()' handles 'abc()', and combinations are also possible.",
1594 "type": "string",
1595 "minLength": 1
1596 }
1597 },
1598 {
1599 "type": "boolean"
1600 }
1601 ]
1602 },
1603 "wrappedContextCritical": {
1604 "description": "Enable warnings for partial dynamic dependencies.",
1605 "type": "boolean"
1606 },
1607 "wrappedContextRecursive": {
1608 "description": "Enable recursive directory lookup for partial dynamic dependencies.",
1609 "type": "boolean"
1610 },
1611 "wrappedContextRegExp": {
1612 "description": "Set the inner regular expression for partial dynamic dependencies.",
1613 "instanceof": "RegExp",
1614 "tsType": "RegExp"
1615 }
1616 }
1617 },
1618 "Layer": {
1619 "description": "Specifies the layer in which modules of this entrypoint are placed.",
1620 "anyOf": [
1621 {
1622 "enum": [null]
1623 },
1624 {
1625 "type": "string",
1626 "minLength": 1
1627 }
1628 ]
1629 },
1630 "LazyCompilationDefaultBackendOptions": {
1631 "description": "Options for the default backend.",
1632 "type": "object",
1633 "additionalProperties": false,
1634 "properties": {
1635 "client": {
1636 "description": "A custom client.",
1637 "type": "string"
1638 },
1639 "listen": {
1640 "description": "Specifies where to listen to from the server.",
1641 "anyOf": [
1642 {
1643 "description": "A port.",
1644 "type": "number"
1645 },
1646 {
1647 "description": "Listen options.",
1648 "type": "object",
1649 "additionalProperties": true,
1650 "properties": {
1651 "host": {
1652 "description": "A host.",
1653 "type": "string"
1654 },
1655 "port": {
1656 "description": "A port.",
1657 "type": "number"
1658 }
1659 },
1660 "tsType": "import(\"net\").ListenOptions"
1661 },
1662 {
1663 "description": "A custom listen function.",
1664 "instanceof": "Function",
1665 "tsType": "((server: import(\"net\").Server) => void)"
1666 }
1667 ]
1668 },
1669 "protocol": {
1670 "description": "Specifies the protocol the client should use to connect to the server.",
1671 "enum": ["http", "https"]
1672 },
1673 "server": {
1674 "description": "Specifies how to create the server handling the EventSource requests.",
1675 "anyOf": [
1676 {
1677 "description": "ServerOptions for the http or https createServer call.",
1678 "type": "object",
1679 "additionalProperties": true,
1680 "properties": {},
1681 "tsType": "(import(\"https\").ServerOptions | import(\"http\").ServerOptions)"
1682 },
1683 {
1684 "description": "A custom create server function.",
1685 "instanceof": "Function",
1686 "tsType": "(() => import(\"net\").Server)"
1687 }
1688 ]
1689 }
1690 }
1691 },
1692 "LazyCompilationOptions": {
1693 "description": "Options for compiling entrypoints and import()s only when they are accessed.",
1694 "type": "object",
1695 "additionalProperties": false,
1696 "properties": {
1697 "backend": {
1698 "description": "Specifies the backend that should be used for handling client keep alive.",
1699 "anyOf": [
1700 {
1701 "description": "A custom backend.",
1702 "instanceof": "Function",
1703 "tsType": "(((compiler: import('../lib/Compiler'), callback: (err?: Error, api?: import(\"../lib/hmr/LazyCompilationPlugin\").BackendApi) => void) => void) | ((compiler: import('../lib/Compiler')) => Promise<import(\"../lib/hmr/LazyCompilationPlugin\").BackendApi>))"
1704 },
1705 {
1706 "$ref": "#/definitions/LazyCompilationDefaultBackendOptions"
1707 }
1708 ]
1709 },
1710 "entries": {
1711 "description": "Enable/disable lazy compilation for entries.",
1712 "type": "boolean"
1713 },
1714 "imports": {
1715 "description": "Enable/disable lazy compilation for import() modules.",
1716 "type": "boolean"
1717 },
1718 "test": {
1719 "description": "Specify which entrypoints or import()ed modules should be lazily compiled. This is matched with the imported module and not the entrypoint name.",
1720 "anyOf": [
1721 {
1722 "instanceof": "RegExp",
1723 "tsType": "RegExp"
1724 },
1725 {
1726 "type": "string"
1727 },
1728 {
1729 "instanceof": "Function",
1730 "tsType": "((module: import('../lib/Module')) => boolean)"
1731 }
1732 ]
1733 }
1734 }
1735 },
1736 "Library": {
1737 "description": "Make the output files a library, exporting the exports of the entry point.",
1738 "anyOf": [
1739 {
1740 "$ref": "#/definitions/LibraryName"
1741 },
1742 {
1743 "$ref": "#/definitions/LibraryOptions"
1744 }
1745 ]
1746 },
1747 "LibraryCustomUmdCommentObject": {
1748 "description": "Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.",
1749 "type": "object",
1750 "additionalProperties": false,
1751 "properties": {
1752 "amd": {
1753 "description": "Set comment for `amd` section in UMD.",
1754 "type": "string"
1755 },
1756 "commonjs": {
1757 "description": "Set comment for `commonjs` (exports) section in UMD.",
1758 "type": "string"
1759 },
1760 "commonjs2": {
1761 "description": "Set comment for `commonjs2` (module.exports) section in UMD.",
1762 "type": "string"
1763 },
1764 "root": {
1765 "description": "Set comment for `root` (global variable) section in UMD.",
1766 "type": "string"
1767 }
1768 }
1769 },
1770 "LibraryCustomUmdObject": {
1771 "description": "Description object for all UMD variants of the library name.",
1772 "type": "object",
1773 "additionalProperties": false,
1774 "properties": {
1775 "amd": {
1776 "description": "Name of the exposed AMD library in the UMD.",
1777 "type": "string",
1778 "minLength": 1
1779 },
1780 "commonjs": {
1781 "description": "Name of the exposed commonjs export in the UMD.",
1782 "type": "string",
1783 "minLength": 1
1784 },
1785 "root": {
1786 "description": "Name of the property exposed globally by a UMD library.",
1787 "anyOf": [
1788 {
1789 "type": "array",
1790 "items": {
1791 "description": "Part of the name of the property exposed globally by a UMD library.",
1792 "type": "string",
1793 "minLength": 1
1794 }
1795 },
1796 {
1797 "type": "string",
1798 "minLength": 1
1799 }
1800 ]
1801 }
1802 }
1803 },
1804 "LibraryExport": {
1805 "description": "Specify which export should be exposed as library.",
1806 "anyOf": [
1807 {
1808 "type": "array",
1809 "items": {
1810 "description": "Part of the export that should be exposed as library.",
1811 "type": "string",
1812 "minLength": 1
1813 }
1814 },
1815 {
1816 "type": "string",
1817 "minLength": 1
1818 }
1819 ]
1820 },
1821 "LibraryName": {
1822 "description": "The name of the library (some types allow unnamed libraries too).",
1823 "anyOf": [
1824 {
1825 "type": "array",
1826 "items": {
1827 "description": "A part of the library name.",
1828 "type": "string",
1829 "minLength": 1
1830 },
1831 "minItems": 1
1832 },
1833 {
1834 "type": "string",
1835 "minLength": 1
1836 },
1837 {
1838 "$ref": "#/definitions/LibraryCustomUmdObject"
1839 }
1840 ]
1841 },
1842 "LibraryOptions": {
1843 "description": "Options for library.",
1844 "type": "object",
1845 "additionalProperties": false,
1846 "properties": {
1847 "auxiliaryComment": {
1848 "$ref": "#/definitions/AuxiliaryComment"
1849 },
1850 "export": {
1851 "$ref": "#/definitions/LibraryExport"
1852 },
1853 "name": {
1854 "$ref": "#/definitions/LibraryName"
1855 },
1856 "type": {
1857 "$ref": "#/definitions/LibraryType"
1858 },
1859 "umdNamedDefine": {
1860 "$ref": "#/definitions/UmdNamedDefine"
1861 }
1862 },
1863 "required": ["type"]
1864 },
1865 "LibraryType": {
1866 "description": "Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).",
1867 "anyOf": [
1868 {
1869 "enum": [
1870 "var",
1871 "module",
1872 "assign",
1873 "assign-properties",
1874 "this",
1875 "window",
1876 "self",
1877 "global",
1878 "commonjs",
1879 "commonjs2",
1880 "commonjs-module",
1881 "amd",
1882 "amd-require",
1883 "umd",
1884 "umd2",
1885 "jsonp",
1886 "system"
1887 ]
1888 },
1889 {
1890 "type": "string"
1891 }
1892 ]
1893 },
1894 "Loader": {
1895 "description": "Custom values available in the loader context.",
1896 "type": "object"
1897 },
1898 "MemoryCacheOptions": {
1899 "description": "Options object for in-memory caching.",
1900 "type": "object",
1901 "additionalProperties": false,
1902 "properties": {
1903 "cacheUnaffected": {
1904 "description": "Additionally cache computation of modules that are unchanged and reference only unchanged modules.",
1905 "type": "boolean"
1906 },
1907 "maxGenerations": {
1908 "description": "Number of generations unused cache entries stay in memory cache at minimum (1 = may be removed after unused for a single compilation, ..., Infinity: kept forever).",
1909 "type": "number",
1910 "minimum": 1
1911 },
1912 "type": {
1913 "description": "In memory caching.",
1914 "enum": ["memory"]
1915 }
1916 },
1917 "required": ["type"]
1918 },
1919 "Mode": {
1920 "description": "Enable production optimizations or development hints.",
1921 "enum": ["development", "production", "none"]
1922 },
1923 "ModuleFilterItemTypes": {
1924 "description": "Filtering value, regexp or function.",
1925 "cli": {
1926 "helper": true
1927 },
1928 "anyOf": [
1929 {
1930 "instanceof": "RegExp",
1931 "tsType": "RegExp"
1932 },
1933 {
1934 "type": "string",
1935 "absolutePath": false
1936 },
1937 {
1938 "instanceof": "Function",
1939 "tsType": "((name: string, module: import('../lib/stats/DefaultStatsFactoryPlugin').StatsModule, type: 'module' | 'chunk' | 'root-of-chunk' | 'nested') => boolean)"
1940 }
1941 ]
1942 },
1943 "ModuleFilterTypes": {
1944 "description": "Filtering modules.",
1945 "cli": {
1946 "helper": true
1947 },
1948 "anyOf": [
1949 {
1950 "type": "array",
1951 "items": {
1952 "description": "Rule to filter.",
1953 "cli": {
1954 "helper": true
1955 },
1956 "oneOf": [
1957 {
1958 "$ref": "#/definitions/ModuleFilterItemTypes"
1959 }
1960 ]
1961 }
1962 },
1963 {
1964 "$ref": "#/definitions/ModuleFilterItemTypes"
1965 }
1966 ]
1967 },
1968 "ModuleOptions": {
1969 "description": "Options affecting the normal modules (`NormalModuleFactory`).",
1970 "type": "object",
1971 "additionalProperties": false,
1972 "properties": {
1973 "defaultRules": {
1974 "description": "An array of rules applied by default for modules.",
1975 "cli": {
1976 "exclude": true
1977 },
1978 "oneOf": [
1979 {
1980 "$ref": "#/definitions/RuleSetRules"
1981 }
1982 ]
1983 },
1984 "exprContextCritical": {
1985 "description": "Enable warnings for full dynamic dependencies.",
1986 "type": "boolean"
1987 },
1988 "exprContextRecursive": {
1989 "description": "Enable recursive directory lookup for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRecursive'.",
1990 "type": "boolean"
1991 },
1992 "exprContextRegExp": {
1993 "description": "Sets the default regular expression for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRegExp'.",
1994 "anyOf": [
1995 {
1996 "instanceof": "RegExp",
1997 "tsType": "RegExp"
1998 },
1999 {
2000 "type": "boolean"
2001 }
2002 ]
2003 },
2004 "exprContextRequest": {
2005 "description": "Set the default request for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRequest'.",
2006 "type": "string"
2007 },
2008 "generator": {
2009 "$ref": "#/definitions/GeneratorOptionsByModuleType"
2010 },
2011 "noParse": {
2012 "$ref": "#/definitions/NoParse"
2013 },
2014 "parser": {
2015 "$ref": "#/definitions/ParserOptionsByModuleType"
2016 },
2017 "rules": {
2018 "description": "An array of rules applied for modules.",
2019 "oneOf": [
2020 {
2021 "$ref": "#/definitions/RuleSetRules"
2022 }
2023 ]
2024 },
2025 "strictExportPresence": {
2026 "description": "Emit errors instead of warnings when imported names don't exist in imported module. Deprecated: This option has moved to 'module.parser.javascript.strictExportPresence'.",
2027 "type": "boolean"
2028 },
2029 "strictThisContextOnImports": {
2030 "description": "Handle the this context correctly according to the spec for namespace objects. Deprecated: This option has moved to 'module.parser.javascript.strictThisContextOnImports'.",
2031 "type": "boolean"
2032 },
2033 "unknownContextCritical": {
2034 "description": "Enable warnings when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextCritical'.",
2035 "type": "boolean"
2036 },
2037 "unknownContextRecursive": {
2038 "description": "Enable recursive directory lookup when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRecursive'.",
2039 "type": "boolean"
2040 },
2041 "unknownContextRegExp": {
2042 "description": "Sets the regular expression when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRegExp'.",
2043 "anyOf": [
2044 {
2045 "instanceof": "RegExp",
2046 "tsType": "RegExp"
2047 },
2048 {
2049 "type": "boolean"
2050 }
2051 ]
2052 },
2053 "unknownContextRequest": {
2054 "description": "Sets the request when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRequest'.",
2055 "type": "string"
2056 },
2057 "unsafeCache": {
2058 "description": "Cache the resolving of module requests.",
2059 "anyOf": [
2060 {
2061 "type": "boolean"
2062 },
2063 {
2064 "instanceof": "Function",
2065 "tsType": "Function"
2066 }
2067 ]
2068 },
2069 "wrappedContextCritical": {
2070 "description": "Enable warnings for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextCritical'.",
2071 "type": "boolean"
2072 },
2073 "wrappedContextRecursive": {
2074 "description": "Enable recursive directory lookup for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextRecursive'.",
2075 "type": "boolean"
2076 },
2077 "wrappedContextRegExp": {
2078 "description": "Set the inner regular expression for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextRegExp'.",
2079 "instanceof": "RegExp",
2080 "tsType": "RegExp"
2081 }
2082 }
2083 },
2084 "ModuleOptionsNormalized": {
2085 "description": "Options affecting the normal modules (`NormalModuleFactory`).",
2086 "type": "object",
2087 "additionalProperties": false,
2088 "properties": {
2089 "defaultRules": {
2090 "description": "An array of rules applied by default for modules.",
2091 "cli": {
2092 "exclude": true
2093 },
2094 "oneOf": [
2095 {
2096 "$ref": "#/definitions/RuleSetRules"
2097 }
2098 ]
2099 },
2100 "generator": {
2101 "$ref": "#/definitions/GeneratorOptionsByModuleType"
2102 },
2103 "noParse": {
2104 "$ref": "#/definitions/NoParse"
2105 },
2106 "parser": {
2107 "$ref": "#/definitions/ParserOptionsByModuleType"
2108 },
2109 "rules": {
2110 "description": "An array of rules applied for modules.",
2111 "oneOf": [
2112 {
2113 "$ref": "#/definitions/RuleSetRules"
2114 }
2115 ]
2116 },
2117 "unsafeCache": {
2118 "description": "Cache the resolving of module requests.",
2119 "anyOf": [
2120 {
2121 "type": "boolean"
2122 },
2123 {
2124 "instanceof": "Function",
2125 "tsType": "Function"
2126 }
2127 ]
2128 }
2129 },
2130 "required": ["defaultRules", "generator", "parser", "rules"]
2131 },
2132 "Name": {
2133 "description": "Name of the configuration. Used when loading multiple configurations.",
2134 "type": "string"
2135 },
2136 "NoParse": {
2137 "description": "Don't parse files matching. It's matched against the full resolved request.",
2138 "anyOf": [
2139 {
2140 "type": "array",
2141 "items": {
2142 "description": "Don't parse files matching. It's matched against the full resolved request.",
2143 "anyOf": [
2144 {
2145 "description": "A regular expression, when matched the module is not parsed.",
2146 "instanceof": "RegExp",
2147 "tsType": "RegExp"
2148 },
2149 {
2150 "description": "An absolute path, when the module starts with this path it is not parsed.",
2151 "type": "string",
2152 "absolutePath": true
2153 },
2154 {
2155 "instanceof": "Function",
2156 "tsType": "Function"
2157 }
2158 ]
2159 },
2160 "minItems": 1
2161 },
2162 {
2163 "description": "A regular expression, when matched the module is not parsed.",
2164 "instanceof": "RegExp",
2165 "tsType": "RegExp"
2166 },
2167 {
2168 "description": "An absolute path, when the module starts with this path it is not parsed.",
2169 "type": "string",
2170 "absolutePath": true
2171 },
2172 {
2173 "instanceof": "Function",
2174 "tsType": "Function"
2175 }
2176 ]
2177 },
2178 "Node": {
2179 "description": "Include polyfills or mocks for various node stuff.",
2180 "anyOf": [
2181 {
2182 "enum": [false]
2183 },
2184 {
2185 "$ref": "#/definitions/NodeOptions"
2186 }
2187 ]
2188 },
2189 "NodeOptions": {
2190 "description": "Options object for node compatibility features.",
2191 "type": "object",
2192 "additionalProperties": false,
2193 "properties": {
2194 "__dirname": {
2195 "description": "Include a polyfill for the '__dirname' variable.",
2196 "enum": [false, true, "warn-mock", "mock", "eval-only"]
2197 },
2198 "__filename": {
2199 "description": "Include a polyfill for the '__filename' variable.",
2200 "enum": [false, true, "warn-mock", "mock", "eval-only"]
2201 },
2202 "global": {
2203 "description": "Include a polyfill for the 'global' variable.",
2204 "enum": [false, true, "warn"]
2205 }
2206 }
2207 },
2208 "Optimization": {
2209 "description": "Enables/Disables integrated optimizations.",
2210 "type": "object",
2211 "additionalProperties": false,
2212 "properties": {
2213 "checkWasmTypes": {
2214 "description": "Check for incompatible wasm types when importing/exporting from/to ESM.",
2215 "type": "boolean"
2216 },
2217 "chunkIds": {
2218 "description": "Define the algorithm to choose chunk ids (named: readable ids for better debugging, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, total-size: numeric ids focused on minimal total download size, false: no algorithm used, as custom one can be provided via plugin).",
2219 "enum": [
2220 "natural",
2221 "named",
2222 "deterministic",
2223 "size",
2224 "total-size",
2225 false
2226 ]
2227 },
2228 "concatenateModules": {
2229 "description": "Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer.",
2230 "type": "boolean"
2231 },
2232 "emitOnErrors": {
2233 "description": "Emit assets even when errors occur. Critical errors are emitted into the generated code and will cause errors at runtime.",
2234 "type": "boolean"
2235 },
2236 "flagIncludedChunks": {
2237 "description": "Also flag chunks as loaded which contain a subset of the modules.",
2238 "type": "boolean"
2239 },
2240 "innerGraph": {
2241 "description": "Creates a module-internal dependency graph for top level symbols, exports and imports, to improve unused exports detection.",
2242 "type": "boolean"
2243 },
2244 "mangleExports": {
2245 "description": "Rename exports when possible to generate shorter code (depends on optimization.usedExports and optimization.providedExports, true/\"deterministic\": generate short deterministic names optimized for caching, \"size\": generate the shortest possible names).",
2246 "anyOf": [
2247 {
2248 "enum": ["size", "deterministic"]
2249 },
2250 {
2251 "type": "boolean"
2252 }
2253 ]
2254 },
2255 "mangleWasmImports": {
2256 "description": "Reduce size of WASM by changing imports to shorter strings.",
2257 "type": "boolean"
2258 },
2259 "mergeDuplicateChunks": {
2260 "description": "Merge chunks which contain the same modules.",
2261 "type": "boolean"
2262 },
2263 "minimize": {
2264 "description": "Enable minimizing the output. Uses optimization.minimizer.",
2265 "type": "boolean"
2266 },
2267 "minimizer": {
2268 "description": "Minimizer(s) to use for minimizing the output.",
2269 "type": "array",
2270 "cli": {
2271 "exclude": true
2272 },
2273 "items": {
2274 "description": "Plugin of type object or instanceof Function.",
2275 "anyOf": [
2276 {
2277 "enum": ["..."]
2278 },
2279 {
2280 "$ref": "#/definitions/WebpackPluginInstance"
2281 },
2282 {
2283 "$ref": "#/definitions/WebpackPluginFunction"
2284 }
2285 ]
2286 }
2287 },
2288 "moduleIds": {
2289 "description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).",
2290 "enum": ["natural", "named", "hashed", "deterministic", "size", false]
2291 },
2292 "noEmitOnErrors": {
2293 "description": "Avoid emitting assets when errors occur (deprecated: use 'emitOnErrors' instead).",
2294 "type": "boolean",
2295 "cli": {
2296 "exclude": true
2297 }
2298 },
2299 "nodeEnv": {
2300 "description": "Set process.env.NODE_ENV to a specific value.",
2301 "anyOf": [
2302 {
2303 "enum": [false]
2304 },
2305 {
2306 "type": "string"
2307 }
2308 ]
2309 },
2310 "portableRecords": {
2311 "description": "Generate records with relative paths to be able to move the context folder.",
2312 "type": "boolean"
2313 },
2314 "providedExports": {
2315 "description": "Figure out which exports are provided by modules to generate more efficient code.",
2316 "type": "boolean"
2317 },
2318 "realContentHash": {
2319 "description": "Use real [contenthash] based on final content of the assets.",
2320 "type": "boolean"
2321 },
2322 "removeAvailableModules": {
2323 "description": "Removes modules from chunks when these modules are already included in all parents.",
2324 "type": "boolean"
2325 },
2326 "removeEmptyChunks": {
2327 "description": "Remove chunks which are empty.",
2328 "type": "boolean"
2329 },
2330 "runtimeChunk": {
2331 "$ref": "#/definitions/OptimizationRuntimeChunk"
2332 },
2333 "sideEffects": {
2334 "description": "Skip over modules which contain no side effects when exports are not used (false: disabled, 'flag': only use manually placed side effects flag, true: also analyse source code for side effects).",
2335 "anyOf": [
2336 {
2337 "enum": ["flag"]
2338 },
2339 {
2340 "type": "boolean"
2341 }
2342 ]
2343 },
2344 "splitChunks": {
2345 "description": "Optimize duplication and caching by splitting chunks by shared modules and cache group.",
2346 "anyOf": [
2347 {
2348 "enum": [false]
2349 },
2350 {
2351 "$ref": "#/definitions/OptimizationSplitChunksOptions"
2352 }
2353 ]
2354 },
2355 "usedExports": {
2356 "description": "Figure out which exports are used by modules to mangle export names, omit unused exports and generate more efficient code (true: analyse used exports for each runtime, \"global\": analyse exports globally for all runtimes combined).",
2357 "anyOf": [
2358 {
2359 "enum": ["global"]
2360 },
2361 {
2362 "type": "boolean"
2363 }
2364 ]
2365 }
2366 }
2367 },
2368 "OptimizationRuntimeChunk": {
2369 "description": "Create an additional chunk which contains only the webpack runtime and chunk hash maps.",
2370 "anyOf": [
2371 {
2372 "enum": ["single", "multiple"]
2373 },
2374 {
2375 "type": "boolean"
2376 },
2377 {
2378 "type": "object",
2379 "additionalProperties": false,
2380 "properties": {
2381 "name": {
2382 "description": "The name or name factory for the runtime chunks.",
2383 "anyOf": [
2384 {
2385 "type": "string"
2386 },
2387 {
2388 "instanceof": "Function",
2389 "tsType": "Function"
2390 }
2391 ]
2392 }
2393 }
2394 }
2395 ]
2396 },
2397 "OptimizationRuntimeChunkNormalized": {
2398 "description": "Create an additional chunk which contains only the webpack runtime and chunk hash maps.",
2399 "anyOf": [
2400 {
2401 "enum": [false]
2402 },
2403 {
2404 "type": "object",
2405 "additionalProperties": false,
2406 "properties": {
2407 "name": {
2408 "description": "The name factory for the runtime chunks.",
2409 "instanceof": "Function",
2410 "tsType": "Function"
2411 }
2412 }
2413 }
2414 ]
2415 },
2416 "OptimizationSplitChunksCacheGroup": {
2417 "description": "Options object for describing behavior of a cache group selecting modules that should be cached together.",
2418 "type": "object",
2419 "additionalProperties": false,
2420 "properties": {
2421 "automaticNameDelimiter": {
2422 "description": "Sets the name delimiter for created chunks.",
2423 "type": "string",
2424 "minLength": 1
2425 },
2426 "chunks": {
2427 "description": "Select chunks for determining cache group content (defaults to \"initial\", \"initial\" and \"all\" requires adding these chunks to the HTML).",
2428 "anyOf": [
2429 {
2430 "enum": ["initial", "async", "all"]
2431 },
2432 {
2433 "instanceof": "Function",
2434 "tsType": "((chunk: import('../lib/Chunk')) => boolean)"
2435 }
2436 ]
2437 },
2438 "enforce": {
2439 "description": "Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group.",
2440 "type": "boolean"
2441 },
2442 "enforceSizeThreshold": {
2443 "description": "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.",
2444 "oneOf": [
2445 {
2446 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2447 }
2448 ]
2449 },
2450 "filename": {
2451 "description": "Sets the template for the filename for created chunks.",
2452 "anyOf": [
2453 {
2454 "type": "string",
2455 "absolutePath": false,
2456 "minLength": 1
2457 },
2458 {
2459 "instanceof": "Function",
2460 "tsType": "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
2461 }
2462 ]
2463 },
2464 "idHint": {
2465 "description": "Sets the hint for chunk id.",
2466 "type": "string"
2467 },
2468 "layer": {
2469 "description": "Assign modules to a cache group by module layer.",
2470 "anyOf": [
2471 {
2472 "instanceof": "RegExp",
2473 "tsType": "RegExp"
2474 },
2475 {
2476 "type": "string"
2477 },
2478 {
2479 "instanceof": "Function",
2480 "tsType": "Function"
2481 }
2482 ]
2483 },
2484 "maxAsyncRequests": {
2485 "description": "Maximum number of requests which are accepted for on-demand loading.",
2486 "type": "number",
2487 "minimum": 1
2488 },
2489 "maxAsyncSize": {
2490 "description": "Maximal size hint for the on-demand chunks.",
2491 "oneOf": [
2492 {
2493 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2494 }
2495 ]
2496 },
2497 "maxInitialRequests": {
2498 "description": "Maximum number of initial chunks which are accepted for an entry point.",
2499 "type": "number",
2500 "minimum": 1
2501 },
2502 "maxInitialSize": {
2503 "description": "Maximal size hint for the initial chunks.",
2504 "oneOf": [
2505 {
2506 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2507 }
2508 ]
2509 },
2510 "maxSize": {
2511 "description": "Maximal size hint for the created chunks.",
2512 "oneOf": [
2513 {
2514 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2515 }
2516 ]
2517 },
2518 "minChunks": {
2519 "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.",
2520 "type": "number",
2521 "minimum": 1
2522 },
2523 "minRemainingSize": {
2524 "description": "Minimal size for the chunks the stay after moving the modules to a new chunk.",
2525 "oneOf": [
2526 {
2527 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2528 }
2529 ]
2530 },
2531 "minSize": {
2532 "description": "Minimal size for the created chunk.",
2533 "oneOf": [
2534 {
2535 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2536 }
2537 ]
2538 },
2539 "minSizeReduction": {
2540 "description": "Minimum size reduction due to the created chunk.",
2541 "oneOf": [
2542 {
2543 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2544 }
2545 ]
2546 },
2547 "name": {
2548 "description": "Give chunks for this cache group a name (chunks with equal name are merged).",
2549 "anyOf": [
2550 {
2551 "enum": [false]
2552 },
2553 {
2554 "type": "string"
2555 },
2556 {
2557 "instanceof": "Function",
2558 "tsType": "Function"
2559 }
2560 ]
2561 },
2562 "priority": {
2563 "description": "Priority of this cache group.",
2564 "type": "number"
2565 },
2566 "reuseExistingChunk": {
2567 "description": "Try to reuse existing chunk (with name) when it has matching modules.",
2568 "type": "boolean"
2569 },
2570 "test": {
2571 "description": "Assign modules to a cache group by module name.",
2572 "anyOf": [
2573 {
2574 "instanceof": "RegExp",
2575 "tsType": "RegExp"
2576 },
2577 {
2578 "type": "string"
2579 },
2580 {
2581 "instanceof": "Function",
2582 "tsType": "Function"
2583 }
2584 ]
2585 },
2586 "type": {
2587 "description": "Assign modules to a cache group by module type.",
2588 "anyOf": [
2589 {
2590 "instanceof": "RegExp",
2591 "tsType": "RegExp"
2592 },
2593 {
2594 "type": "string"
2595 },
2596 {
2597 "instanceof": "Function",
2598 "tsType": "Function"
2599 }
2600 ]
2601 },
2602 "usedExports": {
2603 "description": "Compare used exports when checking common modules. Modules will only be put in the same chunk when exports are equal.",
2604 "type": "boolean"
2605 }
2606 }
2607 },
2608 "OptimizationSplitChunksGetCacheGroups": {
2609 "description": "A function returning cache groups.",
2610 "instanceof": "Function",
2611 "tsType": "((module: import('../lib/Module')) => OptimizationSplitChunksCacheGroup | OptimizationSplitChunksCacheGroup[] | void)"
2612 },
2613 "OptimizationSplitChunksOptions": {
2614 "description": "Options object for splitting chunks into smaller chunks.",
2615 "type": "object",
2616 "additionalProperties": false,
2617 "properties": {
2618 "automaticNameDelimiter": {
2619 "description": "Sets the name delimiter for created chunks.",
2620 "type": "string",
2621 "minLength": 1
2622 },
2623 "cacheGroups": {
2624 "description": "Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks, default categories: 'default', 'defaultVendors').",
2625 "type": "object",
2626 "additionalProperties": {
2627 "description": "Configuration for a cache group.",
2628 "anyOf": [
2629 {
2630 "enum": [false]
2631 },
2632 {
2633 "instanceof": "RegExp",
2634 "tsType": "RegExp"
2635 },
2636 {
2637 "type": "string"
2638 },
2639 {
2640 "instanceof": "Function",
2641 "tsType": "Function"
2642 },
2643 {
2644 "$ref": "#/definitions/OptimizationSplitChunksCacheGroup"
2645 }
2646 ]
2647 },
2648 "not": {
2649 "description": "Using the cacheGroup shorthand syntax with a cache group named 'test' is a potential config error\nDid you intent to define a cache group with a test instead?\ncacheGroups: {\n <name>: {\n test: ...\n }\n}.",
2650 "type": "object",
2651 "additionalProperties": true,
2652 "properties": {
2653 "test": {
2654 "description": "The test property is a cache group name, but using the test option of the cache group could be intended instead.",
2655 "anyOf": [
2656 {
2657 "instanceof": "RegExp",
2658 "tsType": "RegExp"
2659 },
2660 {
2661 "type": "string"
2662 },
2663 {
2664 "instanceof": "Function",
2665 "tsType": "Function"
2666 }
2667 ]
2668 }
2669 },
2670 "required": ["test"]
2671 }
2672 },
2673 "chunks": {
2674 "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML).",
2675 "anyOf": [
2676 {
2677 "enum": ["initial", "async", "all"]
2678 },
2679 {
2680 "instanceof": "Function",
2681 "tsType": "((chunk: import('../lib/Chunk')) => boolean)"
2682 }
2683 ]
2684 },
2685 "defaultSizeTypes": {
2686 "description": "Sets the size types which are used when a number is used for sizes.",
2687 "type": "array",
2688 "items": {
2689 "description": "Size type, like 'javascript', 'webassembly'.",
2690 "type": "string"
2691 },
2692 "minItems": 1
2693 },
2694 "enforceSizeThreshold": {
2695 "description": "Size threshold at which splitting is enforced and other restrictions (minRemainingSize, maxAsyncRequests, maxInitialRequests) are ignored.",
2696 "oneOf": [
2697 {
2698 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2699 }
2700 ]
2701 },
2702 "fallbackCacheGroup": {
2703 "description": "Options for modules not selected by any other cache group.",
2704 "type": "object",
2705 "additionalProperties": false,
2706 "properties": {
2707 "automaticNameDelimiter": {
2708 "description": "Sets the name delimiter for created chunks.",
2709 "type": "string",
2710 "minLength": 1
2711 },
2712 "chunks": {
2713 "description": "Select chunks for determining shared modules (defaults to \"async\", \"initial\" and \"all\" requires adding these chunks to the HTML).",
2714 "anyOf": [
2715 {
2716 "enum": ["initial", "async", "all"]
2717 },
2718 {
2719 "instanceof": "Function",
2720 "tsType": "((chunk: import('../lib/Chunk')) => boolean)"
2721 }
2722 ]
2723 },
2724 "maxAsyncSize": {
2725 "description": "Maximal size hint for the on-demand chunks.",
2726 "oneOf": [
2727 {
2728 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2729 }
2730 ]
2731 },
2732 "maxInitialSize": {
2733 "description": "Maximal size hint for the initial chunks.",
2734 "oneOf": [
2735 {
2736 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2737 }
2738 ]
2739 },
2740 "maxSize": {
2741 "description": "Maximal size hint for the created chunks.",
2742 "oneOf": [
2743 {
2744 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2745 }
2746 ]
2747 },
2748 "minSize": {
2749 "description": "Minimal size for the created chunk.",
2750 "oneOf": [
2751 {
2752 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2753 }
2754 ]
2755 },
2756 "minSizeReduction": {
2757 "description": "Minimum size reduction due to the created chunk.",
2758 "oneOf": [
2759 {
2760 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2761 }
2762 ]
2763 }
2764 }
2765 },
2766 "filename": {
2767 "description": "Sets the template for the filename for created chunks.",
2768 "anyOf": [
2769 {
2770 "type": "string",
2771 "absolutePath": false,
2772 "minLength": 1
2773 },
2774 {
2775 "instanceof": "Function",
2776 "tsType": "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
2777 }
2778 ]
2779 },
2780 "hidePathInfo": {
2781 "description": "Prevents exposing path info when creating names for parts splitted by maxSize.",
2782 "type": "boolean"
2783 },
2784 "maxAsyncRequests": {
2785 "description": "Maximum number of requests which are accepted for on-demand loading.",
2786 "type": "number",
2787 "minimum": 1
2788 },
2789 "maxAsyncSize": {
2790 "description": "Maximal size hint for the on-demand chunks.",
2791 "oneOf": [
2792 {
2793 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2794 }
2795 ]
2796 },
2797 "maxInitialRequests": {
2798 "description": "Maximum number of initial chunks which are accepted for an entry point.",
2799 "type": "number",
2800 "minimum": 1
2801 },
2802 "maxInitialSize": {
2803 "description": "Maximal size hint for the initial chunks.",
2804 "oneOf": [
2805 {
2806 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2807 }
2808 ]
2809 },
2810 "maxSize": {
2811 "description": "Maximal size hint for the created chunks.",
2812 "oneOf": [
2813 {
2814 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2815 }
2816 ]
2817 },
2818 "minChunks": {
2819 "description": "Minimum number of times a module has to be duplicated until it's considered for splitting.",
2820 "type": "number",
2821 "minimum": 1
2822 },
2823 "minRemainingSize": {
2824 "description": "Minimal size for the chunks the stay after moving the modules to a new chunk.",
2825 "oneOf": [
2826 {
2827 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2828 }
2829 ]
2830 },
2831 "minSize": {
2832 "description": "Minimal size for the created chunks.",
2833 "oneOf": [
2834 {
2835 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2836 }
2837 ]
2838 },
2839 "minSizeReduction": {
2840 "description": "Minimum size reduction due to the created chunk.",
2841 "oneOf": [
2842 {
2843 "$ref": "#/definitions/OptimizationSplitChunksSizes"
2844 }
2845 ]
2846 },
2847 "name": {
2848 "description": "Give chunks created a name (chunks with equal name are merged).",
2849 "anyOf": [
2850 {
2851 "enum": [false]
2852 },
2853 {
2854 "type": "string"
2855 },
2856 {
2857 "instanceof": "Function",
2858 "tsType": "Function"
2859 }
2860 ]
2861 },
2862 "usedExports": {
2863 "description": "Compare used exports when checking common modules. Modules will only be put in the same chunk when exports are equal.",
2864 "type": "boolean"
2865 }
2866 }
2867 },
2868 "OptimizationSplitChunksSizes": {
2869 "description": "Size description for limits.",
2870 "anyOf": [
2871 {
2872 "description": "Size of the javascript part of the chunk.",
2873 "type": "number",
2874 "minimum": 0
2875 },
2876 {
2877 "description": "Specify size limits per size type.",
2878 "type": "object",
2879 "additionalProperties": {
2880 "description": "Size of the part of the chunk with the type of the key.",
2881 "type": "number"
2882 }
2883 }
2884 ]
2885 },
2886 "Output": {
2887 "description": "Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.",
2888 "type": "object",
2889 "additionalProperties": false,
2890 "properties": {
2891 "assetModuleFilename": {
2892 "$ref": "#/definitions/AssetModuleFilename"
2893 },
2894 "auxiliaryComment": {
2895 "cli": {
2896 "exclude": true
2897 },
2898 "oneOf": [
2899 {
2900 "$ref": "#/definitions/AuxiliaryComment"
2901 }
2902 ]
2903 },
2904 "charset": {
2905 "$ref": "#/definitions/Charset"
2906 },
2907 "chunkFilename": {
2908 "$ref": "#/definitions/ChunkFilename"
2909 },
2910 "chunkFormat": {
2911 "$ref": "#/definitions/ChunkFormat"
2912 },
2913 "chunkLoadTimeout": {
2914 "$ref": "#/definitions/ChunkLoadTimeout"
2915 },
2916 "chunkLoading": {
2917 "$ref": "#/definitions/ChunkLoading"
2918 },
2919 "chunkLoadingGlobal": {
2920 "$ref": "#/definitions/ChunkLoadingGlobal"
2921 },
2922 "clean": {
2923 "$ref": "#/definitions/Clean"
2924 },
2925 "compareBeforeEmit": {
2926 "$ref": "#/definitions/CompareBeforeEmit"
2927 },
2928 "crossOriginLoading": {
2929 "$ref": "#/definitions/CrossOriginLoading"
2930 },
2931 "devtoolFallbackModuleFilenameTemplate": {
2932 "$ref": "#/definitions/DevtoolFallbackModuleFilenameTemplate"
2933 },
2934 "devtoolModuleFilenameTemplate": {
2935 "$ref": "#/definitions/DevtoolModuleFilenameTemplate"
2936 },
2937 "devtoolNamespace": {
2938 "$ref": "#/definitions/DevtoolNamespace"
2939 },
2940 "enabledChunkLoadingTypes": {
2941 "$ref": "#/definitions/EnabledChunkLoadingTypes"
2942 },
2943 "enabledLibraryTypes": {
2944 "$ref": "#/definitions/EnabledLibraryTypes"
2945 },
2946 "enabledWasmLoadingTypes": {
2947 "$ref": "#/definitions/EnabledWasmLoadingTypes"
2948 },
2949 "environment": {
2950 "$ref": "#/definitions/Environment"
2951 },
2952 "filename": {
2953 "$ref": "#/definitions/Filename"
2954 },
2955 "globalObject": {
2956 "$ref": "#/definitions/GlobalObject"
2957 },
2958 "hashDigest": {
2959 "$ref": "#/definitions/HashDigest"
2960 },
2961 "hashDigestLength": {
2962 "$ref": "#/definitions/HashDigestLength"
2963 },
2964 "hashFunction": {
2965 "$ref": "#/definitions/HashFunction"
2966 },
2967 "hashSalt": {
2968 "$ref": "#/definitions/HashSalt"
2969 },
2970 "hotUpdateChunkFilename": {
2971 "$ref": "#/definitions/HotUpdateChunkFilename"
2972 },
2973 "hotUpdateGlobal": {
2974 "$ref": "#/definitions/HotUpdateGlobal"
2975 },
2976 "hotUpdateMainFilename": {
2977 "$ref": "#/definitions/HotUpdateMainFilename"
2978 },
2979 "iife": {
2980 "$ref": "#/definitions/Iife"
2981 },
2982 "importFunctionName": {
2983 "$ref": "#/definitions/ImportFunctionName"
2984 },
2985 "importMetaName": {
2986 "$ref": "#/definitions/ImportMetaName"
2987 },
2988 "library": {
2989 "$ref": "#/definitions/Library"
2990 },
2991 "libraryExport": {
2992 "cli": {
2993 "exclude": true
2994 },
2995 "oneOf": [
2996 {
2997 "$ref": "#/definitions/LibraryExport"
2998 }
2999 ]
3000 },
3001 "libraryTarget": {
3002 "cli": {
3003 "exclude": true
3004 },
3005 "oneOf": [
3006 {
3007 "$ref": "#/definitions/LibraryType"
3008 }
3009 ]
3010 },
3011 "module": {
3012 "$ref": "#/definitions/OutputModule"
3013 },
3014 "path": {
3015 "$ref": "#/definitions/Path"
3016 },
3017 "pathinfo": {
3018 "$ref": "#/definitions/Pathinfo"
3019 },
3020 "publicPath": {
3021 "$ref": "#/definitions/PublicPath"
3022 },
3023 "scriptType": {
3024 "$ref": "#/definitions/ScriptType"
3025 },
3026 "sourceMapFilename": {
3027 "$ref": "#/definitions/SourceMapFilename"
3028 },
3029 "sourcePrefix": {
3030 "$ref": "#/definitions/SourcePrefix"
3031 },
3032 "strictModuleErrorHandling": {
3033 "$ref": "#/definitions/StrictModuleErrorHandling"
3034 },
3035 "strictModuleExceptionHandling": {
3036 "$ref": "#/definitions/StrictModuleExceptionHandling"
3037 },
3038 "trustedTypes": {
3039 "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.",
3040 "anyOf": [
3041 {
3042 "enum": [true]
3043 },
3044 {
3045 "description": "The name of the Trusted Types policy created by webpack to serve bundle chunks.",
3046 "type": "string",
3047 "minLength": 1
3048 },
3049 {
3050 "$ref": "#/definitions/TrustedTypes"
3051 }
3052 ]
3053 },
3054 "umdNamedDefine": {
3055 "cli": {
3056 "exclude": true
3057 },
3058 "oneOf": [
3059 {
3060 "$ref": "#/definitions/UmdNamedDefine"
3061 }
3062 ]
3063 },
3064 "uniqueName": {
3065 "$ref": "#/definitions/UniqueName"
3066 },
3067 "wasmLoading": {
3068 "$ref": "#/definitions/WasmLoading"
3069 },
3070 "webassemblyModuleFilename": {
3071 "$ref": "#/definitions/WebassemblyModuleFilename"
3072 },
3073 "workerChunkLoading": {
3074 "$ref": "#/definitions/ChunkLoading"
3075 },
3076 "workerWasmLoading": {
3077 "$ref": "#/definitions/WasmLoading"
3078 }
3079 }
3080 },
3081 "OutputModule": {
3082 "description": "Output javascript files as module source type.",
3083 "type": "boolean"
3084 },
3085 "OutputNormalized": {
3086 "description": "Normalized options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.",
3087 "type": "object",
3088 "additionalProperties": false,
3089 "properties": {
3090 "assetModuleFilename": {
3091 "$ref": "#/definitions/AssetModuleFilename"
3092 },
3093 "charset": {
3094 "$ref": "#/definitions/Charset"
3095 },
3096 "chunkFilename": {
3097 "$ref": "#/definitions/ChunkFilename"
3098 },
3099 "chunkFormat": {
3100 "$ref": "#/definitions/ChunkFormat"
3101 },
3102 "chunkLoadTimeout": {
3103 "$ref": "#/definitions/ChunkLoadTimeout"
3104 },
3105 "chunkLoading": {
3106 "$ref": "#/definitions/ChunkLoading"
3107 },
3108 "chunkLoadingGlobal": {
3109 "$ref": "#/definitions/ChunkLoadingGlobal"
3110 },
3111 "clean": {
3112 "$ref": "#/definitions/Clean"
3113 },
3114 "compareBeforeEmit": {
3115 "$ref": "#/definitions/CompareBeforeEmit"
3116 },
3117 "crossOriginLoading": {
3118 "$ref": "#/definitions/CrossOriginLoading"
3119 },
3120 "devtoolFallbackModuleFilenameTemplate": {
3121 "$ref": "#/definitions/DevtoolFallbackModuleFilenameTemplate"
3122 },
3123 "devtoolModuleFilenameTemplate": {
3124 "$ref": "#/definitions/DevtoolModuleFilenameTemplate"
3125 },
3126 "devtoolNamespace": {
3127 "$ref": "#/definitions/DevtoolNamespace"
3128 },
3129 "enabledChunkLoadingTypes": {
3130 "$ref": "#/definitions/EnabledChunkLoadingTypes"
3131 },
3132 "enabledLibraryTypes": {
3133 "$ref": "#/definitions/EnabledLibraryTypes"
3134 },
3135 "enabledWasmLoadingTypes": {
3136 "$ref": "#/definitions/EnabledWasmLoadingTypes"
3137 },
3138 "environment": {
3139 "$ref": "#/definitions/Environment"
3140 },
3141 "filename": {
3142 "$ref": "#/definitions/Filename"
3143 },
3144 "globalObject": {
3145 "$ref": "#/definitions/GlobalObject"
3146 },
3147 "hashDigest": {
3148 "$ref": "#/definitions/HashDigest"
3149 },
3150 "hashDigestLength": {
3151 "$ref": "#/definitions/HashDigestLength"
3152 },
3153 "hashFunction": {
3154 "$ref": "#/definitions/HashFunction"
3155 },
3156 "hashSalt": {
3157 "$ref": "#/definitions/HashSalt"
3158 },
3159 "hotUpdateChunkFilename": {
3160 "$ref": "#/definitions/HotUpdateChunkFilename"
3161 },
3162 "hotUpdateGlobal": {
3163 "$ref": "#/definitions/HotUpdateGlobal"
3164 },
3165 "hotUpdateMainFilename": {
3166 "$ref": "#/definitions/HotUpdateMainFilename"
3167 },
3168 "iife": {
3169 "$ref": "#/definitions/Iife"
3170 },
3171 "importFunctionName": {
3172 "$ref": "#/definitions/ImportFunctionName"
3173 },
3174 "importMetaName": {
3175 "$ref": "#/definitions/ImportMetaName"
3176 },
3177 "library": {
3178 "$ref": "#/definitions/LibraryOptions"
3179 },
3180 "module": {
3181 "$ref": "#/definitions/OutputModule"
3182 },
3183 "path": {
3184 "$ref": "#/definitions/Path"
3185 },
3186 "pathinfo": {
3187 "$ref": "#/definitions/Pathinfo"
3188 },
3189 "publicPath": {
3190 "$ref": "#/definitions/PublicPath"
3191 },
3192 "scriptType": {
3193 "$ref": "#/definitions/ScriptType"
3194 },
3195 "sourceMapFilename": {
3196 "$ref": "#/definitions/SourceMapFilename"
3197 },
3198 "sourcePrefix": {
3199 "$ref": "#/definitions/SourcePrefix"
3200 },
3201 "strictModuleErrorHandling": {
3202 "$ref": "#/definitions/StrictModuleErrorHandling"
3203 },
3204 "strictModuleExceptionHandling": {
3205 "$ref": "#/definitions/StrictModuleExceptionHandling"
3206 },
3207 "trustedTypes": {
3208 "$ref": "#/definitions/TrustedTypes"
3209 },
3210 "uniqueName": {
3211 "$ref": "#/definitions/UniqueName"
3212 },
3213 "wasmLoading": {
3214 "$ref": "#/definitions/WasmLoading"
3215 },
3216 "webassemblyModuleFilename": {
3217 "$ref": "#/definitions/WebassemblyModuleFilename"
3218 },
3219 "workerChunkLoading": {
3220 "$ref": "#/definitions/ChunkLoading"
3221 },
3222 "workerWasmLoading": {
3223 "$ref": "#/definitions/WasmLoading"
3224 }
3225 }
3226 },
3227 "Parallelism": {
3228 "description": "The number of parallel processed modules in the compilation.",
3229 "type": "number",
3230 "minimum": 1
3231 },
3232 "ParserOptionsByModuleType": {
3233 "description": "Specify options for each parser.",
3234 "type": "object",
3235 "additionalProperties": {
3236 "description": "Options for parsing.",
3237 "type": "object",
3238 "additionalProperties": true
3239 },
3240 "properties": {
3241 "asset": {
3242 "$ref": "#/definitions/AssetParserOptions"
3243 },
3244 "asset/inline": {
3245 "$ref": "#/definitions/EmptyParserOptions"
3246 },
3247 "asset/resource": {
3248 "$ref": "#/definitions/EmptyParserOptions"
3249 },
3250 "asset/source": {
3251 "$ref": "#/definitions/EmptyParserOptions"
3252 },
3253 "javascript": {
3254 "$ref": "#/definitions/JavascriptParserOptions"
3255 },
3256 "javascript/auto": {
3257 "$ref": "#/definitions/JavascriptParserOptions"
3258 },
3259 "javascript/dynamic": {
3260 "$ref": "#/definitions/JavascriptParserOptions"
3261 },
3262 "javascript/esm": {
3263 "$ref": "#/definitions/JavascriptParserOptions"
3264 }
3265 }
3266 },
3267 "Path": {
3268 "description": "The output directory as **absolute path** (required).",
3269 "type": "string",
3270 "absolutePath": true
3271 },
3272 "Pathinfo": {
3273 "description": "Include comments with information about the modules.",
3274 "anyOf": [
3275 {
3276 "enum": ["verbose"]
3277 },
3278 {
3279 "type": "boolean"
3280 }
3281 ]
3282 },
3283 "Performance": {
3284 "description": "Configuration for web performance recommendations.",
3285 "anyOf": [
3286 {
3287 "enum": [false]
3288 },
3289 {
3290 "$ref": "#/definitions/PerformanceOptions"
3291 }
3292 ]
3293 },
3294 "PerformanceOptions": {
3295 "description": "Configuration object for web performance recommendations.",
3296 "type": "object",
3297 "additionalProperties": false,
3298 "properties": {
3299 "assetFilter": {
3300 "description": "Filter function to select assets that are checked.",
3301 "instanceof": "Function",
3302