forked from webpack/webpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWebpackOptions.json
5738 lines (5738 loc) · 185 KB
/
WebpackOptions.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"definitions": {
"Amd": {
"description": "Set the value of `require.amd` and `define.amd`. Or disable AMD support.",
"anyOf": [
{
"description": "You can pass `false` to disable AMD support.",
"enum": [false]
},
{
"description": "You can pass an object to set the value of `require.amd` and `define.amd`.",
"type": "object"
}
]
},
"AmdContainer": {
"description": "Add a container for define/require functions in the AMD module.",
"type": "string",
"minLength": 1
},
"AssetFilterItemTypes": {
"description": "Filtering value, regexp or function.",
"cli": {
"helper": true
},
"anyOf": [
{
"instanceof": "RegExp",
"tsType": "RegExp"
},
{
"type": "string",
"absolutePath": false
},
{
"instanceof": "Function",
"tsType": "((name: string, asset: import('../lib/stats/DefaultStatsFactoryPlugin').StatsAsset) => boolean)"
}
]
},
"AssetFilterTypes": {
"description": "Filtering modules.",
"cli": {
"helper": true
},
"anyOf": [
{
"type": "array",
"items": {
"description": "Rule to filter.",
"cli": {
"helper": true
},
"oneOf": [
{
"$ref": "#/definitions/AssetFilterItemTypes"
}
]
}
},
{
"$ref": "#/definitions/AssetFilterItemTypes"
}
]
},
"AssetGeneratorDataUrl": {
"description": "The options for data url generator.",
"anyOf": [
{
"$ref": "#/definitions/AssetGeneratorDataUrlOptions"
},
{
"$ref": "#/definitions/AssetGeneratorDataUrlFunction"
}
]
},
"AssetGeneratorDataUrlFunction": {
"description": "Function that executes for module and should return an DataUrl string. It can have a string as 'ident' property which contributes to the module hash.",
"instanceof": "Function",
"tsType": "((source: string | Buffer, context: { filename: string, module: import('../lib/Module') }) => string)"
},
"AssetGeneratorDataUrlOptions": {
"description": "Options object for data url generation.",
"type": "object",
"additionalProperties": false,
"properties": {
"encoding": {
"description": "Asset encoding (defaults to base64).",
"enum": [false, "base64"]
},
"mimetype": {
"description": "Asset mimetype (getting from file extension by default).",
"type": "string"
}
}
},
"AssetGeneratorOptions": {
"description": "Generator options for asset modules.",
"type": "object",
"implements": [
"#/definitions/AssetInlineGeneratorOptions",
"#/definitions/AssetResourceGeneratorOptions"
],
"additionalProperties": false,
"properties": {
"binary": {
"description": "Whether or not this asset module should be considered binary. This can be set to 'false' to treat this asset module as text.",
"type": "boolean"
},
"dataUrl": {
"$ref": "#/definitions/AssetGeneratorDataUrl"
},
"emit": {
"description": "Emit an output asset from this asset module. This can be set to 'false' to omit emitting e. g. for SSR.",
"type": "boolean"
},
"filename": {
"$ref": "#/definitions/FilenameTemplate"
},
"outputPath": {
"$ref": "#/definitions/AssetModuleOutputPath"
},
"publicPath": {
"$ref": "#/definitions/RawPublicPath"
}
}
},
"AssetInlineGeneratorOptions": {
"description": "Generator options for asset/inline modules.",
"type": "object",
"additionalProperties": false,
"properties": {
"binary": {
"description": "Whether or not this asset module should be considered binary. This can be set to 'false' to treat this asset module as text.",
"type": "boolean"
},
"dataUrl": {
"$ref": "#/definitions/AssetGeneratorDataUrl"
}
}
},
"AssetModuleFilename": {
"description": "The filename of asset modules as relative path inside the 'output.path' directory.",
"anyOf": [
{
"type": "string",
"absolutePath": false
},
{
"instanceof": "Function",
"tsType": "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
}
]
},
"AssetModuleOutputPath": {
"description": "Emit the asset in the specified folder relative to 'output.path'. This should only be needed when custom 'publicPath' is specified to match the folder structure there.",
"anyOf": [
{
"type": "string",
"absolutePath": false
},
{
"instanceof": "Function",
"tsType": "((pathData: import(\"../lib/Compilation\").PathData, assetInfo?: import(\"../lib/Compilation\").AssetInfo) => string)"
}
]
},
"AssetParserDataUrlFunction": {
"description": "Function that executes for module and should return whenever asset should be inlined as DataUrl.",
"instanceof": "Function",
"tsType": "((source: string | Buffer, context: { filename: string, module: import('../lib/Module') }) => boolean)"
},
"AssetParserDataUrlOptions": {
"description": "Options object for DataUrl condition.",
"type": "object",
"additionalProperties": false,
"properties": {
"maxSize": {
"description": "Maximum size of asset that should be inline as modules. Default: 8kb.",
"type": "number"
}
}
},
"AssetParserOptions": {
"description": "Parser options for asset modules.",
"type": "object",
"additionalProperties": false,
"properties": {
"dataUrlCondition": {
"description": "The condition for inlining the asset as DataUrl.",
"anyOf": [
{
"$ref": "#/definitions/AssetParserDataUrlOptions"
},
{
"$ref": "#/definitions/AssetParserDataUrlFunction"
}
]
}
}
},
"AssetResourceGeneratorOptions": {
"description": "Generator options for asset/resource modules.",
"type": "object",
"additionalProperties": false,
"properties": {
"binary": {
"description": "Whether or not this asset module should be considered binary. This can be set to 'false' to treat this asset module as text.",
"type": "boolean"
},
"emit": {
"description": "Emit an output asset from this asset module. This can be set to 'false' to omit emitting e. g. for SSR.",
"type": "boolean"
},
"filename": {
"$ref": "#/definitions/FilenameTemplate"
},
"outputPath": {
"$ref": "#/definitions/AssetModuleOutputPath"
},
"publicPath": {
"$ref": "#/definitions/RawPublicPath"
}
}
},
"AuxiliaryComment": {
"description": "Add a comment in the UMD wrapper.",
"anyOf": [
{
"description": "Append the same comment above each import style.",
"type": "string"
},
{
"$ref": "#/definitions/LibraryCustomUmdCommentObject"
}
]
},
"Bail": {
"description": "Report the first error as a hard error instead of tolerating it.",
"type": "boolean"
},
"CacheOptions": {
"description": "Cache generated modules and chunks to improve performance for multiple incremental builds.",
"anyOf": [
{
"description": "Enable in memory caching.",
"enum": [true]
},
{
"$ref": "#/definitions/CacheOptionsNormalized"
}
]
},
"CacheOptionsNormalized": {
"description": "Cache generated modules and chunks to improve performance for multiple incremental builds.",
"anyOf": [
{
"description": "Disable caching.",
"enum": [false]
},
{
"$ref": "#/definitions/MemoryCacheOptions"
},
{
"$ref": "#/definitions/FileCacheOptions"
}
]
},
"Charset": {
"description": "Add charset attribute for script tag.",
"type": "boolean"
},
"ChunkFilename": {
"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.",
"oneOf": [
{
"$ref": "#/definitions/FilenameTemplate"
}
]
},
"ChunkFormat": {
"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).",
"anyOf": [
{
"enum": ["array-push", "commonjs", "module", false]
},
{
"type": "string"
}
]
},
"ChunkLoadTimeout": {
"description": "Number of milliseconds before chunk request expires.",
"type": "number"
},
"ChunkLoading": {
"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).",
"anyOf": [
{
"enum": [false]
},
{
"$ref": "#/definitions/ChunkLoadingType"
}
]
},
"ChunkLoadingGlobal": {
"description": "The global variable used by webpack for loading of chunks.",
"type": "string"
},
"ChunkLoadingType": {
"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).",
"anyOf": [
{
"enum": ["jsonp", "import-scripts", "require", "async-node", "import"]
},
{
"type": "string"
}
]
},
"Clean": {
"description": "Clean the output directory before emit.",
"anyOf": [
{
"type": "boolean"
},
{
"$ref": "#/definitions/CleanOptions"
}
]
},
"CleanOptions": {
"description": "Advanced options for cleaning assets.",
"type": "object",
"additionalProperties": false,
"properties": {
"dry": {
"description": "Log the assets that should be removed instead of deleting them.",
"type": "boolean"
},
"keep": {
"description": "Keep these assets.",
"anyOf": [
{
"instanceof": "RegExp",
"tsType": "RegExp"
},
{
"type": "string",
"absolutePath": false
},
{
"instanceof": "Function",
"tsType": "((filename: string) => boolean)"
}
]
}
}
},
"CompareBeforeEmit": {
"description": "Check if to be emitted file already exists and have the same content before writing to output filesystem.",
"type": "boolean"
},
"Context": {
"description": "The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.",
"type": "string",
"absolutePath": true
},
"CrossOriginLoading": {
"description": "This option enables cross-origin loading of chunks.",
"enum": [false, "anonymous", "use-credentials"]
},
"CssAutoGeneratorOptions": {
"description": "Generator options for css/auto modules.",
"type": "object",
"additionalProperties": false,
"properties": {
"esModule": {
"$ref": "#/definitions/CssGeneratorEsModule"
},
"exportsConvention": {
"$ref": "#/definitions/CssGeneratorExportsConvention"
},
"exportsOnly": {
"$ref": "#/definitions/CssGeneratorExportsOnly"
},
"localIdentName": {
"$ref": "#/definitions/CssGeneratorLocalIdentName"
}
}
},
"CssAutoParserOptions": {
"description": "Parser options for css/auto modules.",
"type": "object",
"additionalProperties": false,
"properties": {
"namedExports": {
"$ref": "#/definitions/CssParserNamedExports"
}
}
},
"CssChunkFilename": {
"description": "Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
"oneOf": [
{
"$ref": "#/definitions/FilenameTemplate"
}
]
},
"CssFilename": {
"description": "Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.",
"oneOf": [
{
"$ref": "#/definitions/FilenameTemplate"
}
]
},
"CssGeneratorEsModule": {
"description": "Configure the generated JS modules that use the ES modules syntax.",
"type": "boolean"
},
"CssGeneratorExportsConvention": {
"description": "Specifies the convention of exported names.",
"anyOf": [
{
"enum": [
"as-is",
"camel-case",
"camel-case-only",
"dashes",
"dashes-only"
]
},
{
"instanceof": "Function",
"tsType": "((name: string) => string)"
}
]
},
"CssGeneratorExportsOnly": {
"description": "Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.",
"type": "boolean"
},
"CssGeneratorLocalIdentName": {
"description": "Configure the generated local ident name.",
"type": "string"
},
"CssGeneratorOptions": {
"description": "Generator options for css modules.",
"type": "object",
"additionalProperties": false,
"properties": {
"esModule": {
"$ref": "#/definitions/CssGeneratorEsModule"
},
"exportsOnly": {
"$ref": "#/definitions/CssGeneratorExportsOnly"
}
}
},
"CssGlobalGeneratorOptions": {
"description": "Generator options for css/global modules.",
"type": "object",
"additionalProperties": false,
"properties": {
"esModule": {
"$ref": "#/definitions/CssGeneratorEsModule"
},
"exportsConvention": {
"$ref": "#/definitions/CssGeneratorExportsConvention"
},
"exportsOnly": {
"$ref": "#/definitions/CssGeneratorExportsOnly"
},
"localIdentName": {
"$ref": "#/definitions/CssGeneratorLocalIdentName"
}
}
},
"CssGlobalParserOptions": {
"description": "Parser options for css/global modules.",
"type": "object",
"additionalProperties": false,
"properties": {
"namedExports": {
"$ref": "#/definitions/CssParserNamedExports"
}
}
},
"CssHeadDataCompression": {
"description": "Compress the data in the head tag of CSS files.",
"type": "boolean"
},
"CssModuleGeneratorOptions": {
"description": "Generator options for css/module modules.",
"type": "object",
"additionalProperties": false,
"properties": {
"esModule": {
"$ref": "#/definitions/CssGeneratorEsModule"
},
"exportsConvention": {
"$ref": "#/definitions/CssGeneratorExportsConvention"
},
"exportsOnly": {
"$ref": "#/definitions/CssGeneratorExportsOnly"
},
"localIdentName": {
"$ref": "#/definitions/CssGeneratorLocalIdentName"
}
}
},
"CssModuleParserOptions": {
"description": "Parser options for css/module modules.",
"type": "object",
"additionalProperties": false,
"properties": {
"namedExports": {
"$ref": "#/definitions/CssParserNamedExports"
}
}
},
"CssParserNamedExports": {
"description": "Use ES modules named export for css exports.",
"type": "boolean"
},
"CssParserOptions": {
"description": "Parser options for css modules.",
"type": "object",
"additionalProperties": false,
"properties": {
"namedExports": {
"$ref": "#/definitions/CssParserNamedExports"
}
}
},
"Dependencies": {
"description": "References to other configurations to depend on.",
"type": "array",
"items": {
"description": "References to another configuration to depend on.",
"type": "string"
}
},
"DevServer": {
"description": "Options for the webpack-dev-server.",
"anyOf": [
{
"description": "Disable dev server.",
"enum": [false]
},
{
"description": "Options for the webpack-dev-server.",
"type": "object"
}
]
},
"DevTool": {
"description": "A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).",
"anyOf": [
{
"enum": [false, "eval"]
},
{
"type": "string",
"pattern": "^(inline-|hidden-|eval-)?(nosources-)?(cheap-(module-)?)?source-map$"
}
]
},
"DevtoolFallbackModuleFilenameTemplate": {
"description": "Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.",
"anyOf": [
{
"type": "string"
},
{
"instanceof": "Function",
"tsType": "Function"
}
]
},
"DevtoolModuleFilenameTemplate": {
"description": "Filename template string of function for the sources array in a generated SourceMap.",
"anyOf": [
{
"type": "string"
},
{
"instanceof": "Function",
"tsType": "Function"
}
]
},
"DevtoolNamespace": {
"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.",
"type": "string"
},
"EmptyGeneratorOptions": {
"description": "No generator options are supported for this module type.",
"type": "object",
"additionalProperties": false
},
"EmptyParserOptions": {
"description": "No parser options are supported for this module type.",
"type": "object",
"additionalProperties": false
},
"EnabledChunkLoadingTypes": {
"description": "List of chunk loading types enabled for use by entry points.",
"type": "array",
"items": {
"$ref": "#/definitions/ChunkLoadingType"
}
},
"EnabledLibraryTypes": {
"description": "List of library types enabled for use by entry points.",
"type": "array",
"items": {
"$ref": "#/definitions/LibraryType"
}
},
"EnabledWasmLoadingTypes": {
"description": "List of wasm loading types enabled for use by entry points.",
"type": "array",
"items": {
"$ref": "#/definitions/WasmLoadingType"
}
},
"Entry": {
"description": "The entry point(s) of the compilation.",
"anyOf": [
{
"$ref": "#/definitions/EntryDynamic"
},
{
"$ref": "#/definitions/EntryStatic"
}
]
},
"EntryDescription": {
"description": "An object with entry point description.",
"type": "object",
"additionalProperties": false,
"properties": {
"asyncChunks": {
"description": "Enable/disable creating async chunks that are loaded on demand.",
"type": "boolean"
},
"baseUri": {
"description": "Base uri for this entry.",
"type": "string"
},
"chunkLoading": {
"$ref": "#/definitions/ChunkLoading"
},
"dependOn": {
"description": "The entrypoints that the current entrypoint depend on. They must be loaded when this entrypoint is loaded.",
"anyOf": [
{
"description": "The entrypoints that the current entrypoint depend on. They must be loaded when this entrypoint is loaded.",
"type": "array",
"items": {
"description": "An entrypoint that the current entrypoint depend on. It must be loaded when this entrypoint is loaded.",
"type": "string",
"minLength": 1
},
"minItems": 1,
"uniqueItems": true
},
{
"description": "An entrypoint that the current entrypoint depend on. It must be loaded when this entrypoint is loaded.",
"type": "string",
"minLength": 1
}
]
},
"filename": {
"$ref": "#/definitions/EntryFilename"
},
"import": {
"$ref": "#/definitions/EntryItem"
},
"layer": {
"$ref": "#/definitions/Layer"
},
"library": {
"$ref": "#/definitions/LibraryOptions"
},
"publicPath": {
"$ref": "#/definitions/PublicPath"
},
"runtime": {
"$ref": "#/definitions/EntryRuntime"
},
"wasmLoading": {
"$ref": "#/definitions/WasmLoading"
}
},
"required": ["import"]
},
"EntryDescriptionNormalized": {
"description": "An object with entry point description.",
"type": "object",
"additionalProperties": false,
"properties": {
"asyncChunks": {
"description": "Enable/disable creating async chunks that are loaded on demand.",
"type": "boolean"
},
"baseUri": {
"description": "Base uri for this entry.",
"type": "string"
},
"chunkLoading": {
"$ref": "#/definitions/ChunkLoading"
},
"dependOn": {
"description": "The entrypoints that the current entrypoint depend on. They must be loaded when this entrypoint is loaded.",
"type": "array",
"items": {
"description": "An entrypoint that the current entrypoint depend on. It must be loaded when this entrypoint is loaded.",
"type": "string",
"minLength": 1
},
"minItems": 1,
"uniqueItems": true
},
"filename": {
"$ref": "#/definitions/Filename"
},
"import": {
"description": "Module(s) that are loaded upon startup. The last one is exported.",
"type": "array",
"items": {
"description": "Module that is loaded upon startup. Only the last one is exported.",
"type": "string",
"minLength": 1
},
"minItems": 1,
"uniqueItems": true
},
"layer": {
"$ref": "#/definitions/Layer"
},
"library": {
"$ref": "#/definitions/LibraryOptions"
},
"publicPath": {
"$ref": "#/definitions/PublicPath"
},
"runtime": {
"$ref": "#/definitions/EntryRuntime"
},
"wasmLoading": {
"$ref": "#/definitions/WasmLoading"
}
}
},
"EntryDynamic": {
"description": "A Function returning an entry object, an entry string, an entry array or a promise to these things.",
"instanceof": "Function",
"tsType": "(() => EntryStatic | Promise<EntryStatic>)"
},
"EntryDynamicNormalized": {
"description": "A Function returning a Promise resolving to a normalized entry.",
"instanceof": "Function",
"tsType": "(() => Promise<EntryStaticNormalized>)"
},
"EntryFilename": {
"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.",
"oneOf": [
{
"$ref": "#/definitions/FilenameTemplate"
}
]
},
"EntryItem": {
"description": "Module(s) that are loaded upon startup.",
"anyOf": [
{
"description": "All modules are loaded upon startup. The last one is exported.",
"type": "array",
"items": {
"description": "A module that is loaded upon startup. Only the last one is exported.",
"type": "string",
"minLength": 1
},
"minItems": 1,
"uniqueItems": true
},
{
"description": "The string is resolved to a module which is loaded upon startup.",
"type": "string",
"minLength": 1
}
]
},
"EntryNormalized": {
"description": "The entry point(s) of the compilation.",
"anyOf": [
{
"$ref": "#/definitions/EntryDynamicNormalized"
},
{
"$ref": "#/definitions/EntryStaticNormalized"
}
]
},
"EntryObject": {
"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.",
"type": "object",
"additionalProperties": {
"description": "An entry point with name.",
"anyOf": [
{
"$ref": "#/definitions/EntryItem"
},
{
"$ref": "#/definitions/EntryDescription"
}
]
}
},
"EntryRuntime": {
"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.",
"anyOf": [
{
"enum": [false]
},
{
"type": "string",
"minLength": 1
}
]
},
"EntryStatic": {
"description": "A static entry description.",
"anyOf": [
{
"$ref": "#/definitions/EntryObject"
},
{
"$ref": "#/definitions/EntryUnnamed"
}
]
},
"EntryStaticNormalized": {
"description": "Multiple entry bundles are created. The key is the entry name. The value is an entry description object.",
"type": "object",
"additionalProperties": {
"description": "An object with entry point description.",
"oneOf": [
{
"$ref": "#/definitions/EntryDescriptionNormalized"
}
]
}
},
"EntryUnnamed": {
"description": "An entry point without name.",
"oneOf": [
{
"$ref": "#/definitions/EntryItem"
}
]
},
"Environment": {
"description": "The abilities of the environment where the webpack generated code should run.",
"type": "object",
"additionalProperties": false,
"properties": {
"arrowFunction": {
"description": "The environment supports arrow functions ('() => { ... }').",
"type": "boolean"
},
"asyncFunction": {
"description": "The environment supports async function and await ('async function () { await ... }').",
"type": "boolean"
},
"bigIntLiteral": {
"description": "The environment supports BigInt as literal (123n).",
"type": "boolean"
},
"const": {
"description": "The environment supports const and let for variable declarations.",
"type": "boolean"
},
"destructuring": {
"description": "The environment supports destructuring ('{ a, b } = obj').",
"type": "boolean"
},
"document": {
"description": "The environment supports 'document'.",
"type": "boolean"
},
"dynamicImport": {
"description": "The environment supports an async import() function to import EcmaScript modules.",
"type": "boolean"
},
"dynamicImportInWorker": {
"description": "The environment supports an async import() is available when creating a worker.",
"type": "boolean"
},
"forOf": {
"description": "The environment supports 'for of' iteration ('for (const x of array) { ... }').",
"type": "boolean"
},
"globalThis": {
"description": "The environment supports 'globalThis'.",
"type": "boolean"
},
"module": {
"description": "The environment supports EcmaScript Module syntax to import EcmaScript modules (import ... from '...').",
"type": "boolean"
},
"nodePrefixForCoreModules": {
"description": "The environment supports `node:` prefix for Node.js core modules.",
"type": "boolean"
},
"optionalChaining": {
"description": "The environment supports optional chaining ('obj?.a' or 'obj?.()').",
"type": "boolean"
},
"templateLiteral": {
"description": "The environment supports template literals.",
"type": "boolean"
}
}
},
"Experiments": {
"description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).",
"type": "object",
"implements": ["#/definitions/ExperimentsCommon"],
"additionalProperties": false,
"properties": {
"asyncWebAssembly": {
"description": "Support WebAssembly as asynchronous EcmaScript Module.",
"type": "boolean"
},
"backCompat": {
"description": "Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.",
"type": "boolean"
},
"buildHttp": {
"description": "Build http(s): urls using a lockfile and resource content cache.",
"anyOf": [
{
"$ref": "#/definitions/HttpUriAllowedUris"
},
{
"$ref": "#/definitions/HttpUriOptions"
}
]
},
"cacheUnaffected": {
"description": "Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.",
"type": "boolean"
},
"css": {
"description": "Enable css support.",
"type": "boolean"
},
"futureDefaults": {
"description": "Apply defaults of next major version.",
"type": "boolean"
},
"layers": {
"description": "Enable module layers.",
"type": "boolean"
},
"lazyCompilation": {
"description": "Compile entrypoints and import()s only when they are accessed.",
"anyOf": [
{
"type": "boolean"
},
{
"$ref": "#/definitions/LazyCompilationOptions"
}
]
},
"outputModule": {
"description": "Allow output javascript files as module source type.",
"type": "boolean"
},
"syncWebAssembly": {
"description": "Support WebAssembly as synchronous EcmaScript Module (outdated).",
"type": "boolean"
},
"topLevelAwait": {
"description": "Allow using top-level-await in EcmaScript Modules.",
"type": "boolean"
}
}
},
"ExperimentsCommon": {
"description": "Enables/Disables experiments (experimental features with relax SemVer compatibility).",
"type": "object",
"additionalProperties": false,