WebpackOptions.d.ts 37 KB

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