webpack 4.20.2 → 4.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/LICENSE +20 -20
  2. package/SECURITY.md +9 -9
  3. package/buildin/amd-define.js +3 -3
  4. package/buildin/amd-options.js +2 -2
  5. package/buildin/global.js +20 -20
  6. package/buildin/module.js +22 -22
  7. package/buildin/system.js +7 -7
  8. package/declarations/WebpackOptions.d.ts +1388 -0
  9. package/declarations/plugins/BannerPlugin.d.ts +51 -0
  10. package/declarations/plugins/DllPlugin.d.ts +28 -0
  11. package/declarations/plugins/DllReferencePlugin.d.ts +126 -0
  12. package/declarations/plugins/HashedModuleIdsPlugin.d.ts +24 -0
  13. package/declarations/plugins/IgnorePlugin.d.ts +27 -0
  14. package/declarations/plugins/LoaderOptionsPlugin.d.ts +27 -0
  15. package/declarations/plugins/SourceMapDevToolPlugin.d.ts +94 -0
  16. package/declarations/plugins/WatchIgnorePlugin.d.ts +10 -0
  17. package/declarations/plugins/debug/ProfilingPlugin.d.ts +12 -0
  18. package/declarations/plugins/optimize/AggressiveSplittingPlugin.d.ts +24 -0
  19. package/declarations/plugins/optimize/LimitChunkCountPlugin.d.ts +16 -0
  20. package/declarations/plugins/optimize/MinChunkSizePlugin.d.ts +12 -0
  21. package/declarations/plugins/optimize/OccurrenceOrderChunkIdsPlugin.d.ts +12 -0
  22. package/declarations/plugins/optimize/OccurrenceOrderModuleIdsPlugin.d.ts +12 -0
  23. package/hot/emitter.js +2 -2
  24. package/lib/AmdMainTemplatePlugin.js +22 -5
  25. package/lib/BasicEvaluatedExpression.js +211 -211
  26. package/lib/Chunk.js +33 -14
  27. package/lib/Compilation.js +99 -52
  28. package/lib/Compiler.js +6 -1
  29. package/lib/ConstPlugin.js +85 -0
  30. package/lib/Entrypoint.js +10 -0
  31. package/lib/ExternalModule.js +3 -2
  32. package/lib/LibraryTemplatePlugin.js +11 -8
  33. package/lib/MainTemplate.js +13 -0
  34. package/lib/Parser.js +9 -1
  35. package/lib/Stats.js +44 -45
  36. package/lib/WatchIgnorePlugin.js +4 -3
  37. package/lib/Watching.js +4 -3
  38. package/lib/dependencies/WebAssemblyExportImportedDependency.js +3 -1
  39. package/lib/node/NodeWatchFileSystem.js +16 -6
  40. package/lib/optimize/LimitChunkCountPlugin.js +11 -5
  41. package/lib/optimize/OccurrenceModuleOrderPlugin.js +5 -1
  42. package/lib/wasm/WasmFinalizeExportsPlugin.js +2 -0
  43. package/lib/wasm/WebAssemblyJavascriptGenerator.js +9 -4
  44. package/lib/wasm/WebAssemblyParser.js +2 -1
  45. package/lib/web/JsonpMainTemplate.runtime.js +1 -1
  46. package/lib/web/JsonpMainTemplatePlugin.js +1 -3
  47. package/package.json +14 -12
  48. package/schemas/WebpackOptions.json +1 -0
  49. package/schemas/ajv.absolutePath.js +55 -55
  50. package/schemas/plugins/DllReferencePlugin.json +1 -0
@@ -0,0 +1,1388 @@
1
+ /**
2
+ * This file was automatically generated.
3
+ * DO NOT MODIFY BY HAND.
4
+ * Run `yarn special-lint-fix` to update
5
+ */
6
+
7
+ /**
8
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
9
+ * via the `definition` "Entry".
10
+ */
11
+ export type Entry = EntryDynamic | EntryStatic;
12
+ /**
13
+ * A Function returning an entry object, an entry string, an entry array or a promise to these things.
14
+ *
15
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
16
+ * via the `definition` "EntryDynamic".
17
+ */
18
+ export type EntryDynamic = (() => EntryStatic | Promise<EntryStatic>);
19
+ /**
20
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
21
+ * via the `definition` "EntryStatic".
22
+ */
23
+ export type EntryStatic = EntryObject | EntryItem;
24
+ /**
25
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
26
+ * via the `definition` "NonEmptyArrayOfUniqueStringValues".
27
+ */
28
+ export type NonEmptyArrayOfUniqueStringValues = string[];
29
+ /**
30
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
31
+ * via the `definition` "EntryItem".
32
+ */
33
+ export type EntryItem = string | NonEmptyArrayOfUniqueStringValues;
34
+ /**
35
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
36
+ * via the `definition` "Externals".
37
+ */
38
+ export type Externals =
39
+ | ((
40
+ context: string,
41
+ request: string,
42
+ callback: (err?: Error, result?: string) => void
43
+ ) => void)
44
+ | ExternalItem
45
+ | (
46
+ | ((
47
+ context: string,
48
+ request: string,
49
+ callback: (err?: Error, result?: string) => void
50
+ ) => void)
51
+ | ExternalItem)[];
52
+ /**
53
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
54
+ * via the `definition` "ExternalItem".
55
+ */
56
+ export type ExternalItem =
57
+ | string
58
+ | {
59
+ /**
60
+ * The dependency used for the external
61
+ */
62
+ [k: string]:
63
+ | string
64
+ | {
65
+ [k: string]: any;
66
+ }
67
+ | ArrayOfStringValues
68
+ | boolean;
69
+ }
70
+ | RegExp;
71
+ /**
72
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
73
+ * via the `definition` "ArrayOfStringValues".
74
+ */
75
+ export type ArrayOfStringValues = string[];
76
+ /**
77
+ * One or multiple rule conditions
78
+ *
79
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
80
+ * via the `definition` "RuleSetConditionOrConditions".
81
+ */
82
+ export type RuleSetConditionOrConditions = RuleSetCondition | RuleSetConditions;
83
+ /**
84
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
85
+ * via the `definition` "RuleSetCondition".
86
+ */
87
+ export type RuleSetCondition =
88
+ | RegExp
89
+ | string
90
+ | ((value: string) => boolean)
91
+ | RuleSetConditions
92
+ | {
93
+ /**
94
+ * Logical AND
95
+ */
96
+ and?: RuleSetConditions;
97
+ /**
98
+ * Exclude all modules matching any of these conditions
99
+ */
100
+ exclude?: RuleSetConditionOrConditions;
101
+ /**
102
+ * Exclude all modules matching not any of these conditions
103
+ */
104
+ include?: RuleSetConditionOrConditions;
105
+ /**
106
+ * Logical NOT
107
+ */
108
+ not?: RuleSetConditions;
109
+ /**
110
+ * Logical OR
111
+ */
112
+ or?: RuleSetConditions;
113
+ /**
114
+ * Exclude all modules matching any of these conditions
115
+ */
116
+ test?: RuleSetConditionOrConditions;
117
+ };
118
+ /**
119
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
120
+ * via the `definition` "RuleSetConditions".
121
+ */
122
+ export type RuleSetConditions = RuleSetConditionsRecursive;
123
+ /**
124
+ * One or multiple rule conditions
125
+ *
126
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
127
+ * via the `definition` "RuleSetConditionOrConditionsAbsolute".
128
+ */
129
+ export type RuleSetConditionOrConditionsAbsolute =
130
+ | RuleSetConditionAbsolute
131
+ | RuleSetConditionsAbsolute;
132
+ /**
133
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
134
+ * via the `definition` "RuleSetConditionAbsolute".
135
+ */
136
+ export type RuleSetConditionAbsolute =
137
+ | RegExp
138
+ | string
139
+ | ((value: string) => boolean)
140
+ | RuleSetConditionsAbsolute
141
+ | {
142
+ /**
143
+ * Logical AND
144
+ */
145
+ and?: RuleSetConditionsAbsolute;
146
+ /**
147
+ * Exclude all modules matching any of these conditions
148
+ */
149
+ exclude?: RuleSetConditionOrConditionsAbsolute;
150
+ /**
151
+ * Exclude all modules matching not any of these conditions
152
+ */
153
+ include?: RuleSetConditionOrConditionsAbsolute;
154
+ /**
155
+ * Logical NOT
156
+ */
157
+ not?: RuleSetConditionsAbsolute;
158
+ /**
159
+ * Logical OR
160
+ */
161
+ or?: RuleSetConditionsAbsolute;
162
+ /**
163
+ * Exclude all modules matching any of these conditions
164
+ */
165
+ test?: RuleSetConditionOrConditionsAbsolute;
166
+ };
167
+ /**
168
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
169
+ * via the `definition` "RuleSetConditionsAbsolute".
170
+ */
171
+ export type RuleSetConditionsAbsolute = RuleSetConditionsAbsoluteRecursive;
172
+ /**
173
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
174
+ * via the `definition` "RuleSetLoader".
175
+ */
176
+ export type RuleSetLoader = string;
177
+ /**
178
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
179
+ * via the `definition` "RuleSetUse".
180
+ */
181
+ export type RuleSetUse = RuleSetUseItem | Function | RuleSetUseItem[];
182
+ /**
183
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
184
+ * via the `definition` "RuleSetUseItem".
185
+ */
186
+ export type RuleSetUseItem =
187
+ | RuleSetLoader
188
+ | Function
189
+ | {
190
+ /**
191
+ * Unique loader identifier
192
+ */
193
+ ident?: string;
194
+ /**
195
+ * Loader name
196
+ */
197
+ loader?: RuleSetLoader;
198
+ /**
199
+ * Loader options
200
+ */
201
+ options?: RuleSetQuery;
202
+ /**
203
+ * Loader query
204
+ */
205
+ query?: RuleSetQuery;
206
+ };
207
+ /**
208
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
209
+ * via the `definition` "RuleSetQuery".
210
+ */
211
+ export type RuleSetQuery =
212
+ | {
213
+ [k: string]: any;
214
+ }
215
+ | string;
216
+ /**
217
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
218
+ * via the `definition` "ArrayOfStringOrStringArrayValues".
219
+ */
220
+ export type ArrayOfStringOrStringArrayValues = (string | string[])[];
221
+ /**
222
+ * Function acting as plugin
223
+ *
224
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
225
+ * via the `definition` "WebpackPluginFunction".
226
+ */
227
+ export type WebpackPluginFunction = (
228
+ compiler: import("../lib/Compiler")
229
+ ) => void;
230
+ /**
231
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
232
+ * via the `definition` "RuleSetRules".
233
+ */
234
+ export type RuleSetRules = RuleSetRule[];
235
+ /**
236
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
237
+ * via the `definition` "FilterTypes".
238
+ */
239
+ export type FilterTypes = FilterItemTypes | FilterItemTypes[];
240
+ /**
241
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
242
+ * via the `definition` "FilterItemTypes".
243
+ */
244
+ export type FilterItemTypes = RegExp | string | Function;
245
+
246
+ export interface WebpackOptions {
247
+ /**
248
+ * Set the value of `require.amd` and `define.amd`.
249
+ */
250
+ amd?: {
251
+ [k: string]: any;
252
+ };
253
+ /**
254
+ * Report the first error as a hard error instead of tolerating it.
255
+ */
256
+ bail?: boolean;
257
+ /**
258
+ * Cache generated modules and chunks to improve performance for multiple incremental builds.
259
+ */
260
+ cache?:
261
+ | boolean
262
+ | {
263
+ [k: string]: any;
264
+ };
265
+ /**
266
+ * The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.
267
+ */
268
+ context?: string;
269
+ /**
270
+ * References to other configurations to depend on.
271
+ */
272
+ dependencies?: string[];
273
+ /**
274
+ * Options for the webpack-dev-server
275
+ */
276
+ devServer?: {
277
+ [k: string]: any;
278
+ };
279
+ /**
280
+ * A developer tool to enhance debugging.
281
+ */
282
+ devtool?: string | false;
283
+ /**
284
+ * The entry point(s) of the compilation.
285
+ */
286
+ entry?: Entry;
287
+ /**
288
+ * 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`.
289
+ */
290
+ externals?: Externals;
291
+ /**
292
+ * Custom values available in the loader context.
293
+ */
294
+ loader?: {
295
+ [k: string]: any;
296
+ };
297
+ /**
298
+ * Enable production optimizations or development hints.
299
+ */
300
+ mode?: "development" | "production" | "none";
301
+ /**
302
+ * Options affecting the normal modules (`NormalModuleFactory`).
303
+ */
304
+ module?: ModuleOptions;
305
+ /**
306
+ * Name of the configuration. Used when loading multiple configurations.
307
+ */
308
+ name?: string;
309
+ /**
310
+ * Include polyfills or mocks for various node stuff.
311
+ */
312
+ node?: false | NodeOptions;
313
+ /**
314
+ * Enables/Disables integrated optimizations
315
+ */
316
+ optimization?: OptimizationOptions;
317
+ /**
318
+ * Options affecting the output of the compilation. `output` options tell webpack how to write the compiled files to disk.
319
+ */
320
+ output?: OutputOptions;
321
+ /**
322
+ * The number of parallel processed modules in the compilation.
323
+ */
324
+ parallelism?: number;
325
+ /**
326
+ * Configuration for web performance recommendations.
327
+ */
328
+ performance?: false | PerformanceOptions;
329
+ /**
330
+ * Add additional plugins to the compiler.
331
+ */
332
+ plugins?: (WebpackPluginInstance | WebpackPluginFunction)[];
333
+ /**
334
+ * Capture timing information for each module.
335
+ */
336
+ profile?: boolean;
337
+ /**
338
+ * Store compiler state to a json file.
339
+ */
340
+ recordsInputPath?: string;
341
+ /**
342
+ * Load compiler state from a json file.
343
+ */
344
+ recordsOutputPath?: string;
345
+ /**
346
+ * Store/Load compiler state from/to a json file. This will result in persistent ids of modules and chunks. An absolute path is expected. `recordsPath` is used for `recordsInputPath` and `recordsOutputPath` if they left undefined.
347
+ */
348
+ recordsPath?: string;
349
+ /**
350
+ * Options for the resolver
351
+ */
352
+ resolve?: ResolveOptions;
353
+ /**
354
+ * Options for the resolver when resolving loaders
355
+ */
356
+ resolveLoader?: ResolveOptions;
357
+ /**
358
+ * Options for webpack-serve
359
+ */
360
+ serve?: {
361
+ [k: string]: any;
362
+ };
363
+ /**
364
+ * Used by the webpack CLI program to pass stats options.
365
+ */
366
+ stats?:
367
+ | StatsOptions
368
+ | boolean
369
+ | ("none" | "errors-only" | "minimal" | "normal" | "detailed" | "verbose");
370
+ /**
371
+ * Environment to build for
372
+ */
373
+ target?:
374
+ | (
375
+ | "web"
376
+ | "webworker"
377
+ | "node"
378
+ | "async-node"
379
+ | "node-webkit"
380
+ | "electron-main"
381
+ | "electron-renderer")
382
+ | ((compiler: import("../lib/Compiler")) => void);
383
+ /**
384
+ * Enter watch mode, which rebuilds on file change.
385
+ */
386
+ watch?: boolean;
387
+ /**
388
+ * Options for the watcher
389
+ */
390
+ watchOptions?: {
391
+ /**
392
+ * Delay the rebuilt after the first change. Value is a time in ms.
393
+ */
394
+ aggregateTimeout?: number;
395
+ /**
396
+ * Ignore some files from watching
397
+ */
398
+ ignored?: {
399
+ [k: string]: any;
400
+ };
401
+ /**
402
+ * Enable polling mode for watching
403
+ */
404
+ poll?: boolean | number;
405
+ /**
406
+ * Stop watching when stdin stream has ended
407
+ */
408
+ stdin?: boolean;
409
+ };
410
+ }
411
+ /**
412
+ * Multiple entry bundles are created. The key is the chunk name. The value can be a string or an array.
413
+ *
414
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
415
+ * via the `definition` "EntryObject".
416
+ */
417
+ export interface EntryObject {
418
+ /**
419
+ * An entry point with name
420
+ */
421
+ [k: string]: string | NonEmptyArrayOfUniqueStringValues;
422
+ }
423
+ /**
424
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
425
+ * via the `definition` "ModuleOptions".
426
+ */
427
+ export interface ModuleOptions {
428
+ /**
429
+ * An array of rules applied by default for modules.
430
+ */
431
+ defaultRules?: RuleSetRules;
432
+ /**
433
+ * Enable warnings for full dynamic dependencies
434
+ */
435
+ exprContextCritical?: boolean;
436
+ /**
437
+ * Enable recursive directory lookup for full dynamic dependencies
438
+ */
439
+ exprContextRecursive?: boolean;
440
+ /**
441
+ * Sets the default regular expression for full dynamic dependencies
442
+ */
443
+ exprContextRegExp?: boolean | RegExp;
444
+ /**
445
+ * Set the default request for full dynamic dependencies
446
+ */
447
+ exprContextRequest?: string;
448
+ /**
449
+ * Don't parse files matching. It's matched against the full resolved request.
450
+ */
451
+ noParse?: RegExp[] | RegExp | Function | string[] | string;
452
+ /**
453
+ * An array of rules applied for modules.
454
+ */
455
+ rules?: RuleSetRules;
456
+ /**
457
+ * Emit errors instead of warnings when imported names don't exist in imported module
458
+ */
459
+ strictExportPresence?: boolean;
460
+ /**
461
+ * Handle the this context correctly according to the spec for namespace objects
462
+ */
463
+ strictThisContextOnImports?: boolean;
464
+ /**
465
+ * Enable warnings when using the require function in a not statically analyse-able way
466
+ */
467
+ unknownContextCritical?: boolean;
468
+ /**
469
+ * Enable recursive directory lookup when using the require function in a not statically analyse-able way
470
+ */
471
+ unknownContextRecursive?: boolean;
472
+ /**
473
+ * Sets the regular expression when using the require function in a not statically analyse-able way
474
+ */
475
+ unknownContextRegExp?: boolean | RegExp;
476
+ /**
477
+ * Sets the request when using the require function in a not statically analyse-able way
478
+ */
479
+ unknownContextRequest?: string;
480
+ /**
481
+ * Cache the resolving of module requests
482
+ */
483
+ unsafeCache?: boolean | Function;
484
+ /**
485
+ * Enable warnings for partial dynamic dependencies
486
+ */
487
+ wrappedContextCritical?: boolean;
488
+ /**
489
+ * Enable recursive directory lookup for partial dynamic dependencies
490
+ */
491
+ wrappedContextRecursive?: boolean;
492
+ /**
493
+ * Set the inner regular expression for partial dynamic dependencies
494
+ */
495
+ wrappedContextRegExp?: RegExp;
496
+ }
497
+ /**
498
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
499
+ * via the `definition` "RuleSetRule".
500
+ */
501
+ export interface RuleSetRule {
502
+ /**
503
+ * Match the child compiler name
504
+ */
505
+ compiler?: RuleSetConditionOrConditions;
506
+ /**
507
+ * Enforce this rule as pre or post step
508
+ */
509
+ enforce?: "pre" | "post";
510
+ /**
511
+ * Shortcut for resource.exclude
512
+ */
513
+ exclude?: RuleSetConditionOrConditionsAbsolute;
514
+ /**
515
+ * Shortcut for resource.include
516
+ */
517
+ include?: RuleSetConditionOrConditionsAbsolute;
518
+ /**
519
+ * Match the issuer of the module (The module pointing to this module)
520
+ */
521
+ issuer?: RuleSetConditionOrConditionsAbsolute;
522
+ /**
523
+ * Shortcut for use.loader
524
+ */
525
+ loader?: RuleSetLoader | RuleSetUse;
526
+ /**
527
+ * Shortcut for use.loader
528
+ */
529
+ loaders?: RuleSetUse;
530
+ /**
531
+ * Only execute the first matching rule in this array
532
+ */
533
+ oneOf?: RuleSetRules;
534
+ /**
535
+ * Shortcut for use.options
536
+ */
537
+ options?: RuleSetQuery;
538
+ /**
539
+ * Options for parsing
540
+ */
541
+ parser?: {
542
+ [k: string]: any;
543
+ };
544
+ /**
545
+ * Shortcut for use.query
546
+ */
547
+ query?: RuleSetQuery;
548
+ /**
549
+ * Options for the resolver
550
+ */
551
+ resolve?: ResolveOptions;
552
+ /**
553
+ * Match the resource path of the module
554
+ */
555
+ resource?: RuleSetConditionOrConditionsAbsolute;
556
+ /**
557
+ * Match the resource query of the module
558
+ */
559
+ resourceQuery?: RuleSetConditionOrConditions;
560
+ /**
561
+ * Match and execute these rules when this rule is matched
562
+ */
563
+ rules?: RuleSetRules;
564
+ /**
565
+ * Flags a module as with or without side effects
566
+ */
567
+ sideEffects?: boolean;
568
+ /**
569
+ * Shortcut for resource.test
570
+ */
571
+ test?: RuleSetConditionOrConditionsAbsolute;
572
+ /**
573
+ * Module type to use for the module
574
+ */
575
+ type?:
576
+ | "javascript/auto"
577
+ | "javascript/dynamic"
578
+ | "javascript/esm"
579
+ | "json"
580
+ | "webassembly/experimental";
581
+ /**
582
+ * Modifiers applied to the module when rule is matched
583
+ */
584
+ use?: RuleSetUse;
585
+ }
586
+ /**
587
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
588
+ * via the `definition` "ResolveOptions".
589
+ */
590
+ export interface ResolveOptions {
591
+ /**
592
+ * Redirect module requests
593
+ */
594
+ alias?:
595
+ | {
596
+ /**
597
+ * New request
598
+ */
599
+ [k: string]: string;
600
+ }
601
+ | {
602
+ /**
603
+ * New request
604
+ */
605
+ alias?: string;
606
+ /**
607
+ * Request to be redirected
608
+ */
609
+ name?: string;
610
+ /**
611
+ * Redirect only exact matching request
612
+ */
613
+ onlyModule?: boolean;
614
+ }[];
615
+ /**
616
+ * Fields in the description file (package.json) which are used to redirect requests inside the module
617
+ */
618
+ aliasFields?: ArrayOfStringOrStringArrayValues;
619
+ /**
620
+ * Predicate function to decide which requests should be cached
621
+ */
622
+ cachePredicate?: Function;
623
+ /**
624
+ * Include the context information in the cache identifier when caching
625
+ */
626
+ cacheWithContext?: boolean;
627
+ /**
628
+ * Enable concord resolving extras
629
+ */
630
+ concord?: boolean;
631
+ /**
632
+ * Filenames used to find a description file
633
+ */
634
+ descriptionFiles?: ArrayOfStringValues;
635
+ /**
636
+ * Enforce using one of the extensions from the extensions option
637
+ */
638
+ enforceExtension?: boolean;
639
+ /**
640
+ * Enforce using one of the module extensions from the moduleExtensions option
641
+ */
642
+ enforceModuleExtension?: boolean;
643
+ /**
644
+ * Extensions added to the request when trying to find the file
645
+ */
646
+ extensions?: ArrayOfStringValues;
647
+ /**
648
+ * Filesystem for the resolver
649
+ */
650
+ fileSystem?: {
651
+ [k: string]: any;
652
+ };
653
+ /**
654
+ * Field names from the description file (package.json) which are used to find the default entry point
655
+ */
656
+ mainFields?: ArrayOfStringOrStringArrayValues;
657
+ /**
658
+ * Filenames used to find the default entry point if there is no description file or main field
659
+ */
660
+ mainFiles?: ArrayOfStringValues;
661
+ /**
662
+ * Extensions added to the module request when trying to find the module
663
+ */
664
+ moduleExtensions?: ArrayOfStringValues;
665
+ /**
666
+ * Folder names or directory paths where to find modules
667
+ */
668
+ modules?: ArrayOfStringValues;
669
+ /**
670
+ * Plugins for the resolver
671
+ */
672
+ plugins?: (WebpackPluginInstance | WebpackPluginFunction)[];
673
+ /**
674
+ * Custom resolver
675
+ */
676
+ resolver?: {
677
+ [k: string]: any;
678
+ };
679
+ /**
680
+ * Enable resolving symlinks to the original location
681
+ */
682
+ symlinks?: boolean;
683
+ /**
684
+ * Enable caching of successfully resolved requests
685
+ */
686
+ unsafeCache?:
687
+ | boolean
688
+ | {
689
+ [k: string]: any;
690
+ };
691
+ /**
692
+ * Use synchronous filesystem calls for the resolver
693
+ */
694
+ useSyncFileSystemCalls?: boolean;
695
+ }
696
+ /**
697
+ * Plugin instance
698
+ *
699
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
700
+ * via the `definition` "WebpackPluginInstance".
701
+ */
702
+ export interface WebpackPluginInstance {
703
+ /**
704
+ * The run point of the plugin, required method.
705
+ */
706
+ apply: (compiler: import("../lib/Compiler")) => void;
707
+ [k: string]: any;
708
+ }
709
+ /**
710
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
711
+ * via the `definition` "NodeOptions".
712
+ */
713
+ export interface NodeOptions {
714
+ /**
715
+ * Include a polyfill for the 'Buffer' variable
716
+ */
717
+ Buffer?: false | true | "mock";
718
+ /**
719
+ * Include a polyfill for the '__dirname' variable
720
+ */
721
+ __dirname?: false | true | "mock";
722
+ /**
723
+ * Include a polyfill for the '__filename' variable
724
+ */
725
+ __filename?: false | true | "mock";
726
+ /**
727
+ * Include a polyfill for the 'console' variable
728
+ */
729
+ console?: false | true | "mock";
730
+ /**
731
+ * Include a polyfill for the 'global' variable
732
+ */
733
+ global?: boolean;
734
+ /**
735
+ * Include a polyfill for the 'process' variable
736
+ */
737
+ process?: false | true | "mock";
738
+ /**
739
+ * Include a polyfill for the node.js module
740
+ */
741
+ [k: string]: false | true | "mock" | "empty";
742
+ }
743
+ /**
744
+ * Enables/Disables integrated optimizations
745
+ *
746
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
747
+ * via the `definition` "OptimizationOptions".
748
+ */
749
+ export interface OptimizationOptions {
750
+ /**
751
+ * Check for incompatible wasm types when importing/exporting from/to ESM
752
+ */
753
+ checkWasmTypes?: boolean;
754
+ /**
755
+ * Define the algorithm to choose chunk ids (named: readable ids for better debugging, 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)
756
+ */
757
+ chunkIds?: "natural" | "named" | "size" | "total-size" | false;
758
+ /**
759
+ * Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer
760
+ */
761
+ concatenateModules?: boolean;
762
+ /**
763
+ * Also flag chunks as loaded which contain a subset of the modules
764
+ */
765
+ flagIncludedChunks?: boolean;
766
+ /**
767
+ * Use hashed module id instead module identifiers for better long term caching (deprecated, used moduleIds: hashed instead)
768
+ */
769
+ hashedModuleIds?: boolean;
770
+ /**
771
+ * Reduce size of WASM by changing imports to shorter strings.
772
+ */
773
+ mangleWasmImports?: boolean;
774
+ /**
775
+ * Merge chunks which contain the same modules
776
+ */
777
+ mergeDuplicateChunks?: boolean;
778
+ /**
779
+ * Enable minimizing the output. Uses optimization.minimizer.
780
+ */
781
+ minimize?: boolean;
782
+ /**
783
+ * Minimizer(s) to use for minimizing the output
784
+ */
785
+ minimizer?: (WebpackPluginInstance | WebpackPluginFunction)[];
786
+ /**
787
+ * Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: short hashes as 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)
788
+ */
789
+ moduleIds?: "natural" | "named" | "hashed" | "size" | "total-size" | false;
790
+ /**
791
+ * Use readable chunk identifiers for better debugging (deprecated, used chunkIds: named instead)
792
+ */
793
+ namedChunks?: boolean;
794
+ /**
795
+ * Use readable module identifiers for better debugging (deprecated, used moduleIds: named instead)
796
+ */
797
+ namedModules?: boolean;
798
+ /**
799
+ * Avoid emitting assets when errors occur
800
+ */
801
+ noEmitOnErrors?: boolean;
802
+ /**
803
+ * Set process.env.NODE_ENV to a specific value
804
+ */
805
+ nodeEnv?: false | string;
806
+ /**
807
+ * Figure out a order of modules which results in the smallest initial bundle
808
+ */
809
+ occurrenceOrder?: boolean;
810
+ /**
811
+ * Generate records with relative paths to be able to move the context folder
812
+ */
813
+ portableRecords?: boolean;
814
+ /**
815
+ * Figure out which exports are provided by modules to generate more efficient code
816
+ */
817
+ providedExports?: boolean;
818
+ /**
819
+ * Removes modules from chunks when these modules are already included in all parents
820
+ */
821
+ removeAvailableModules?: boolean;
822
+ /**
823
+ * Remove chunks which are empty
824
+ */
825
+ removeEmptyChunks?: boolean;
826
+ /**
827
+ * Create an additional chunk which contains only the webpack runtime and chunk hash maps
828
+ */
829
+ runtimeChunk?:
830
+ | boolean
831
+ | ("single" | "multiple")
832
+ | {
833
+ /**
834
+ * The name or name factory for the runtime chunks
835
+ */
836
+ name?: string | Function;
837
+ };
838
+ /**
839
+ * Skip over modules which are flagged to contain no side effects when exports are not used
840
+ */
841
+ sideEffects?: boolean;
842
+ /**
843
+ * Optimize duplication and caching by splitting chunks by shared modules and cache group
844
+ */
845
+ splitChunks?: false | OptimizationSplitChunksOptions;
846
+ /**
847
+ * Figure out which exports are used by modules to mangle export names, omit unused exports and generate more efficient code
848
+ */
849
+ usedExports?: boolean;
850
+ }
851
+ /**
852
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
853
+ * via the `definition` "OptimizationSplitChunksOptions".
854
+ */
855
+ export interface OptimizationSplitChunksOptions {
856
+ /**
857
+ * Sets the name delimiter for created chunks
858
+ */
859
+ automaticNameDelimiter?: string;
860
+ /**
861
+ * Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks)
862
+ */
863
+ cacheGroups?: {
864
+ /**
865
+ * Configuration for a cache group
866
+ */
867
+ [k: string]:
868
+ | false
869
+ | Function
870
+ | string
871
+ | RegExp
872
+ | {
873
+ /**
874
+ * Sets the name delimiter for created chunks
875
+ */
876
+ automaticNameDelimiter?: string;
877
+ /**
878
+ * Sets the name prefix for created chunks
879
+ */
880
+ automaticNamePrefix?: string;
881
+ /**
882
+ * Select chunks for determining cache group content (defaults to "initial", "initial" and "all" requires adding these chunks to the HTML)
883
+ */
884
+ chunks?: ("initial" | "async" | "all") | Function;
885
+ /**
886
+ * Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group
887
+ */
888
+ enforce?: boolean;
889
+ /**
890
+ * Sets the template for the filename for created chunks (Only works for initial chunks)
891
+ */
892
+ filename?: string;
893
+ /**
894
+ * Maximum number of requests which are accepted for on-demand loading
895
+ */
896
+ maxAsyncRequests?: number;
897
+ /**
898
+ * Maximum number of initial chunks which are accepted for an entry point
899
+ */
900
+ maxInitialRequests?: number;
901
+ /**
902
+ * Maximal size hint for the created chunks
903
+ */
904
+ maxSize?: number;
905
+ /**
906
+ * Minimum number of times a module has to be duplicated until it's considered for splitting
907
+ */
908
+ minChunks?: number;
909
+ /**
910
+ * Minimal size for the created chunk
911
+ */
912
+ minSize?: number;
913
+ /**
914
+ * Give chunks for this cache group a name (chunks with equal name are merged)
915
+ */
916
+ name?: boolean | Function | string;
917
+ /**
918
+ * Priority of this cache group
919
+ */
920
+ priority?: number;
921
+ /**
922
+ * Try to reuse existing chunk (with name) when it has matching modules
923
+ */
924
+ reuseExistingChunk?: boolean;
925
+ /**
926
+ * Assign modules to a cache group
927
+ */
928
+ test?: Function | string | RegExp;
929
+ };
930
+ };
931
+ /**
932
+ * Select chunks for determining shared modules (defaults to "async", "initial" and "all" requires adding these chunks to the HTML)
933
+ */
934
+ chunks?: ("initial" | "async" | "all") | Function;
935
+ /**
936
+ * Options for modules not selected by any other cache group
937
+ */
938
+ fallbackCacheGroup?: {
939
+ /**
940
+ * Sets the name delimiter for created chunks
941
+ */
942
+ automaticNameDelimiter?: string;
943
+ /**
944
+ * Maximal size hint for the created chunks
945
+ */
946
+ maxSize?: number;
947
+ /**
948
+ * Minimal size for the created chunk
949
+ */
950
+ minSize?: number;
951
+ };
952
+ /**
953
+ * Sets the template for the filename for created chunks (Only works for initial chunks)
954
+ */
955
+ filename?: string;
956
+ /**
957
+ * Prevents exposing path info when creating names for parts splitted by maxSize
958
+ */
959
+ hidePathInfo?: boolean;
960
+ /**
961
+ * Maximum number of requests which are accepted for on-demand loading
962
+ */
963
+ maxAsyncRequests?: number;
964
+ /**
965
+ * Maximum number of initial chunks which are accepted for an entry point
966
+ */
967
+ maxInitialRequests?: number;
968
+ /**
969
+ * Maximal size hint for the created chunks
970
+ */
971
+ maxSize?: number;
972
+ /**
973
+ * Minimum number of times a module has to be duplicated until it's considered for splitting
974
+ */
975
+ minChunks?: number;
976
+ /**
977
+ * Minimal size for the created chunks
978
+ */
979
+ minSize?: number;
980
+ /**
981
+ * Give chunks created a name (chunks with equal name are merged)
982
+ */
983
+ name?: boolean | Function | string;
984
+ }
985
+ /**
986
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
987
+ * via the `definition` "OutputOptions".
988
+ */
989
+ export interface OutputOptions {
990
+ /**
991
+ * Add a comment in the UMD wrapper.
992
+ */
993
+ auxiliaryComment?:
994
+ | string
995
+ | {
996
+ /**
997
+ * Set comment for `amd` section in UMD
998
+ */
999
+ amd?: string;
1000
+ /**
1001
+ * Set comment for `commonjs` (exports) section in UMD
1002
+ */
1003
+ commonjs?: string;
1004
+ /**
1005
+ * Set comment for `commonjs2` (module.exports) section in UMD
1006
+ */
1007
+ commonjs2?: string;
1008
+ /**
1009
+ * Set comment for `root` (global variable) section in UMD
1010
+ */
1011
+ root?: string;
1012
+ };
1013
+ /**
1014
+ * The callback function name used by webpack for loading of chunks in WebWorkers.
1015
+ */
1016
+ chunkCallbackName?: string;
1017
+ /**
1018
+ * The filename of non-entry chunks as relative path inside the `output.path` directory.
1019
+ */
1020
+ chunkFilename?: string;
1021
+ /**
1022
+ * Number of milliseconds before chunk request expires
1023
+ */
1024
+ chunkLoadTimeout?: number;
1025
+ /**
1026
+ * This option enables cross-origin loading of chunks.
1027
+ */
1028
+ crossOriginLoading?: false | "anonymous" | "use-credentials";
1029
+ /**
1030
+ * Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
1031
+ */
1032
+ devtoolFallbackModuleFilenameTemplate?: string | Function;
1033
+ /**
1034
+ * Enable line to line mapped mode for all/specified modules. Line to line mapped mode uses a simple SourceMap where each line of the generated source is mapped to the same line of the original source. It’s a performance optimization. Only use it if your performance need to be better and you are sure that input lines match which generated lines.
1035
+ */
1036
+ devtoolLineToLine?:
1037
+ | boolean
1038
+ | {
1039
+ [k: string]: any;
1040
+ };
1041
+ /**
1042
+ * Filename template string of function for the sources array in a generated SourceMap.
1043
+ */
1044
+ devtoolModuleFilenameTemplate?: string | Function;
1045
+ /**
1046
+ * 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.
1047
+ */
1048
+ devtoolNamespace?: string;
1049
+ /**
1050
+ * Specifies the name of each output file on disk. You must **not** specify an absolute path here! The `output.path` option determines the location on disk the files are written to, filename is used solely for naming the individual files.
1051
+ */
1052
+ filename?: string | Function;
1053
+ /**
1054
+ * An expression which is used to address the global object/scope in runtime code
1055
+ */
1056
+ globalObject?: string;
1057
+ /**
1058
+ * Digest type used for the hash
1059
+ */
1060
+ hashDigest?: string;
1061
+ /**
1062
+ * Number of chars which are used for the hash
1063
+ */
1064
+ hashDigestLength?: number;
1065
+ /**
1066
+ * Algorithm used for generation the hash (see node.js crypto package)
1067
+ */
1068
+ hashFunction?: string | (new () => import("../lib/util/createHash").Hash);
1069
+ /**
1070
+ * Any string which is added to the hash to salt it
1071
+ */
1072
+ hashSalt?: string;
1073
+ /**
1074
+ * The filename of the Hot Update Chunks. They are inside the output.path directory.
1075
+ */
1076
+ hotUpdateChunkFilename?: string | Function;
1077
+ /**
1078
+ * The JSONP function used by webpack for async loading of hot update chunks.
1079
+ */
1080
+ hotUpdateFunction?: string;
1081
+ /**
1082
+ * The filename of the Hot Update Main File. It is inside the `output.path` directory.
1083
+ */
1084
+ hotUpdateMainFilename?: string | Function;
1085
+ /**
1086
+ * The JSONP function used by webpack for async loading of chunks.
1087
+ */
1088
+ jsonpFunction?: string;
1089
+ /**
1090
+ * This option enables loading async chunks via a custom script type, such as script type="module"
1091
+ */
1092
+ jsonpScriptType?: false | "text/javascript" | "module";
1093
+ /**
1094
+ * If set, export the bundle as library. `output.library` is the name.
1095
+ */
1096
+ library?: string | string[] | LibraryCustomUmdObject;
1097
+ /**
1098
+ * Specify which export should be exposed as library
1099
+ */
1100
+ libraryExport?: string | ArrayOfStringValues;
1101
+ /**
1102
+ * Type of library
1103
+ */
1104
+ libraryTarget?:
1105
+ | "var"
1106
+ | "assign"
1107
+ | "this"
1108
+ | "window"
1109
+ | "self"
1110
+ | "global"
1111
+ | "commonjs"
1112
+ | "commonjs2"
1113
+ | "commonjs-module"
1114
+ | "amd"
1115
+ | "amd-require"
1116
+ | "umd"
1117
+ | "umd2"
1118
+ | "jsonp";
1119
+ /**
1120
+ * The output directory as **absolute path** (required).
1121
+ */
1122
+ path?: string;
1123
+ /**
1124
+ * Include comments with information about the modules.
1125
+ */
1126
+ pathinfo?: boolean;
1127
+ /**
1128
+ * The `publicPath` specifies the public URL address of the output files when referenced in a browser.
1129
+ */
1130
+ publicPath?: string | Function;
1131
+ /**
1132
+ * The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory.
1133
+ */
1134
+ sourceMapFilename?: string;
1135
+ /**
1136
+ * Prefixes every line of the source in the bundle with this string.
1137
+ */
1138
+ sourcePrefix?: string;
1139
+ /**
1140
+ * Handles exceptions in module loading correctly at a performance cost.
1141
+ */
1142
+ strictModuleExceptionHandling?: boolean;
1143
+ /**
1144
+ * If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.
1145
+ */
1146
+ umdNamedDefine?: boolean;
1147
+ /**
1148
+ * The filename of WebAssembly modules as relative path inside the `output.path` directory.
1149
+ */
1150
+ webassemblyModuleFilename?: string;
1151
+ }
1152
+ /**
1153
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
1154
+ * via the `definition` "LibraryCustomUmdObject".
1155
+ */
1156
+ export interface LibraryCustomUmdObject {
1157
+ /**
1158
+ * Name of the exposed AMD library in the UMD
1159
+ */
1160
+ amd?: string;
1161
+ /**
1162
+ * Name of the exposed commonjs export in the UMD
1163
+ */
1164
+ commonjs?: string;
1165
+ /**
1166
+ * Name of the property exposed globally by a UMD library
1167
+ */
1168
+ root?: string | ArrayOfStringValues;
1169
+ }
1170
+ /**
1171
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
1172
+ * via the `definition` "PerformanceOptions".
1173
+ */
1174
+ export interface PerformanceOptions {
1175
+ /**
1176
+ * Filter function to select assets that are checked
1177
+ */
1178
+ assetFilter?: Function;
1179
+ /**
1180
+ * Sets the format of the hints: warnings, errors or nothing at all
1181
+ */
1182
+ hints?: false | "warning" | "error";
1183
+ /**
1184
+ * Filesize limit (in bytes) when exceeded, that webpack will provide performance hints
1185
+ */
1186
+ maxAssetSize?: number;
1187
+ /**
1188
+ * Total size of an entry point (in bytes)
1189
+ */
1190
+ maxEntrypointSize?: number;
1191
+ }
1192
+ /**
1193
+ * This interface was referenced by `WebpackOptions`'s JSON-Schema
1194
+ * via the `definition` "StatsOptions".
1195
+ */
1196
+ export interface StatsOptions {
1197
+ /**
1198
+ * fallback value for stats options when an option is not defined (has precedence over local webpack defaults)
1199
+ */
1200
+ all?: boolean;
1201
+ /**
1202
+ * add assets information
1203
+ */
1204
+ assets?: boolean;
1205
+ /**
1206
+ * sort the assets by that field
1207
+ */
1208
+ assetsSort?: string;
1209
+ /**
1210
+ * add built at time information
1211
+ */
1212
+ builtAt?: boolean;
1213
+ /**
1214
+ * add also information about cached (not built) modules
1215
+ */
1216
+ cached?: boolean;
1217
+ /**
1218
+ * Show cached assets (setting this to `false` only shows emitted files)
1219
+ */
1220
+ cachedAssets?: boolean;
1221
+ /**
1222
+ * add children information
1223
+ */
1224
+ children?: boolean;
1225
+ /**
1226
+ * Display all chunk groups with the corresponding bundles
1227
+ */
1228
+ chunkGroups?: boolean;
1229
+ /**
1230
+ * add built modules information to chunk information
1231
+ */
1232
+ chunkModules?: boolean;
1233
+ /**
1234
+ * add the origins of chunks and chunk merging info
1235
+ */
1236
+ chunkOrigins?: boolean;
1237
+ /**
1238
+ * add chunk information
1239
+ */
1240
+ chunks?: boolean;
1241
+ /**
1242
+ * sort the chunks by that field
1243
+ */
1244
+ chunksSort?: string;
1245
+ /**
1246
+ * Enables/Disables colorful output
1247
+ */
1248
+ colors?:
1249
+ | boolean
1250
+ | {
1251
+ /**
1252
+ * Custom color for bold text
1253
+ */
1254
+ bold?: string;
1255
+ /**
1256
+ * Custom color for cyan text
1257
+ */
1258
+ cyan?: string;
1259
+ /**
1260
+ * Custom color for green text
1261
+ */
1262
+ green?: string;
1263
+ /**
1264
+ * Custom color for magenta text
1265
+ */
1266
+ magenta?: string;
1267
+ /**
1268
+ * Custom color for red text
1269
+ */
1270
+ red?: string;
1271
+ /**
1272
+ * Custom color for yellow text
1273
+ */
1274
+ yellow?: string;
1275
+ };
1276
+ /**
1277
+ * context directory for request shortening
1278
+ */
1279
+ context?: string;
1280
+ /**
1281
+ * add module depth in module graph
1282
+ */
1283
+ depth?: boolean;
1284
+ /**
1285
+ * Display the entry points with the corresponding bundles
1286
+ */
1287
+ entrypoints?: boolean;
1288
+ /**
1289
+ * add --env information
1290
+ */
1291
+ env?: boolean;
1292
+ /**
1293
+ * add details to errors (like resolving log)
1294
+ */
1295
+ errorDetails?: boolean;
1296
+ /**
1297
+ * add errors
1298
+ */
1299
+ errors?: boolean;
1300
+ /**
1301
+ * Please use excludeModules instead.
1302
+ */
1303
+ exclude?: FilterTypes | boolean;
1304
+ /**
1305
+ * Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions
1306
+ */
1307
+ excludeAssets?: FilterTypes;
1308
+ /**
1309
+ * Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions
1310
+ */
1311
+ excludeModules?: FilterTypes | boolean;
1312
+ /**
1313
+ * add the hash of the compilation
1314
+ */
1315
+ hash?: boolean;
1316
+ /**
1317
+ * Set the maximum number of modules to be shown
1318
+ */
1319
+ maxModules?: number;
1320
+ /**
1321
+ * add information about assets inside modules
1322
+ */
1323
+ moduleAssets?: boolean;
1324
+ /**
1325
+ * add dependencies and origin of warnings/errors
1326
+ */
1327
+ moduleTrace?: boolean;
1328
+ /**
1329
+ * add built modules information
1330
+ */
1331
+ modules?: boolean;
1332
+ /**
1333
+ * sort the modules by that field
1334
+ */
1335
+ modulesSort?: string;
1336
+ /**
1337
+ * add information about modules nested in other modules (like with module concatenation)
1338
+ */
1339
+ nestedModules?: boolean;
1340
+ /**
1341
+ * show reasons why optimization bailed out for modules
1342
+ */
1343
+ optimizationBailout?: boolean;
1344
+ /**
1345
+ * Add output path information
1346
+ */
1347
+ outputPath?: boolean;
1348
+ /**
1349
+ * add performance hint flags
1350
+ */
1351
+ performance?: boolean;
1352
+ /**
1353
+ * show exports provided by modules
1354
+ */
1355
+ providedExports?: boolean;
1356
+ /**
1357
+ * Add public path information
1358
+ */
1359
+ publicPath?: boolean;
1360
+ /**
1361
+ * add information about the reasons why modules are included
1362
+ */
1363
+ reasons?: boolean;
1364
+ /**
1365
+ * add the source code of modules
1366
+ */
1367
+ source?: boolean;
1368
+ /**
1369
+ * add timing information
1370
+ */
1371
+ timings?: boolean;
1372
+ /**
1373
+ * show exports used by modules
1374
+ */
1375
+ usedExports?: boolean;
1376
+ /**
1377
+ * add webpack version information
1378
+ */
1379
+ version?: boolean;
1380
+ /**
1381
+ * add warnings
1382
+ */
1383
+ warnings?: boolean;
1384
+ /**
1385
+ * Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions
1386
+ */
1387
+ warningsFilter?: FilterTypes;
1388
+ }