WebpackOptions.d.ts 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466
  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. * Enable to ignore fatal errors happening during resolving of 'resolve.roots'. Usually such errors should not happen, but this option is provided for backward-compatibility.
  686. */
  687. ignoreRootsErrors?: boolean;
  688. /**
  689. * Field names from the description file (package.json) which are used to find the default entry point
  690. */
  691. mainFields?: ArrayOfStringOrStringArrayValues;
  692. /**
  693. * Filenames used to find the default entry point if there is no description file or main field
  694. */
  695. mainFiles?: ArrayOfStringValues;
  696. /**
  697. * Extensions added to the module request when trying to find the module
  698. */
  699. moduleExtensions?: ArrayOfStringValues;
  700. /**
  701. * Folder names or directory paths where to find modules
  702. */
  703. modules?: ArrayOfStringValues;
  704. /**
  705. * Plugins for the resolver
  706. */
  707. plugins?: (WebpackPluginInstance | WebpackPluginFunction)[];
  708. /**
  709. * Prefer to resolve server-relative URLs (starting with '/') as absolute paths before falling back to resolve in 'resolve.roots'.
  710. */
  711. preferAbsolute?: boolean;
  712. /**
  713. * Custom resolver
  714. */
  715. resolver?: {
  716. [k: string]: any;
  717. };
  718. /**
  719. * A list of directories in which requests that are server-relative URLs (starting with '/') are resolved.
  720. */
  721. roots?: string[];
  722. /**
  723. * Enable resolving symlinks to the original location
  724. */
  725. symlinks?: boolean;
  726. /**
  727. * Enable caching of successfully resolved requests
  728. */
  729. unsafeCache?:
  730. | boolean
  731. | {
  732. [k: string]: any;
  733. };
  734. /**
  735. * Use synchronous filesystem calls for the resolver
  736. */
  737. useSyncFileSystemCalls?: boolean;
  738. }
  739. /**
  740. * Plugin instance
  741. *
  742. * This interface was referenced by `WebpackOptions`'s JSON-Schema
  743. * via the `definition` "WebpackPluginInstance".
  744. */
  745. export interface WebpackPluginInstance {
  746. /**
  747. * The run point of the plugin, required method.
  748. */
  749. apply: (compiler: import("../lib/Compiler")) => void;
  750. [k: string]: any;
  751. }
  752. /**
  753. * This interface was referenced by `WebpackOptions`'s JSON-Schema
  754. * via the `definition` "NodeOptions".
  755. */
  756. export interface NodeOptions {
  757. /**
  758. * Include a polyfill for the 'Buffer' variable
  759. */
  760. Buffer?: false | true | "mock";
  761. /**
  762. * Include a polyfill for the '__dirname' variable
  763. */
  764. __dirname?: false | true | "mock";
  765. /**
  766. * Include a polyfill for the '__filename' variable
  767. */
  768. __filename?: false | true | "mock";
  769. /**
  770. * Include a polyfill for the 'console' variable
  771. */
  772. console?: false | true | "mock";
  773. /**
  774. * Include a polyfill for the 'global' variable
  775. */
  776. global?: boolean;
  777. /**
  778. * Include a polyfill for the 'process' variable
  779. */
  780. process?: false | true | "mock";
  781. /**
  782. * Include a polyfill for the node.js module
  783. */
  784. [k: string]: false | true | "mock" | "empty";
  785. }
  786. /**
  787. * Enables/Disables integrated optimizations
  788. *
  789. * This interface was referenced by `WebpackOptions`'s JSON-Schema
  790. * via the `definition` "OptimizationOptions".
  791. */
  792. export interface OptimizationOptions {
  793. /**
  794. * Check for incompatible wasm types when importing/exporting from/to ESM
  795. */
  796. checkWasmTypes?: boolean;
  797. /**
  798. * 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)
  799. */
  800. chunkIds?: "natural" | "named" | "size" | "total-size" | false;
  801. /**
  802. * Concatenate modules when possible to generate less modules, more efficient code and enable more optimizations by the minimizer
  803. */
  804. concatenateModules?: boolean;
  805. /**
  806. * Also flag chunks as loaded which contain a subset of the modules
  807. */
  808. flagIncludedChunks?: boolean;
  809. /**
  810. * Use hashed module id instead module identifiers for better long term caching (deprecated, used moduleIds: hashed instead)
  811. */
  812. hashedModuleIds?: boolean;
  813. /**
  814. * Reduce size of WASM by changing imports to shorter strings.
  815. */
  816. mangleWasmImports?: boolean;
  817. /**
  818. * Merge chunks which contain the same modules
  819. */
  820. mergeDuplicateChunks?: boolean;
  821. /**
  822. * Enable minimizing the output. Uses optimization.minimizer.
  823. */
  824. minimize?: boolean;
  825. /**
  826. * Minimizer(s) to use for minimizing the output
  827. */
  828. minimizer?: (WebpackPluginInstance | WebpackPluginFunction)[];
  829. /**
  830. * 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)
  831. */
  832. moduleIds?: "natural" | "named" | "hashed" | "size" | "total-size" | false;
  833. /**
  834. * Use readable chunk identifiers for better debugging (deprecated, used chunkIds: named instead)
  835. */
  836. namedChunks?: boolean;
  837. /**
  838. * Use readable module identifiers for better debugging (deprecated, used moduleIds: named instead)
  839. */
  840. namedModules?: boolean;
  841. /**
  842. * Avoid emitting assets when errors occur
  843. */
  844. noEmitOnErrors?: boolean;
  845. /**
  846. * Set process.env.NODE_ENV to a specific value
  847. */
  848. nodeEnv?: false | string;
  849. /**
  850. * Figure out a order of modules which results in the smallest initial bundle
  851. */
  852. occurrenceOrder?: boolean;
  853. /**
  854. * Generate records with relative paths to be able to move the context folder
  855. */
  856. portableRecords?: boolean;
  857. /**
  858. * Figure out which exports are provided by modules to generate more efficient code
  859. */
  860. providedExports?: boolean;
  861. /**
  862. * Removes modules from chunks when these modules are already included in all parents
  863. */
  864. removeAvailableModules?: boolean;
  865. /**
  866. * Remove chunks which are empty
  867. */
  868. removeEmptyChunks?: boolean;
  869. /**
  870. * Create an additional chunk which contains only the webpack runtime and chunk hash maps
  871. */
  872. runtimeChunk?:
  873. | boolean
  874. | ("single" | "multiple")
  875. | {
  876. /**
  877. * The name or name factory for the runtime chunks
  878. */
  879. name?: string | Function;
  880. };
  881. /**
  882. * Skip over modules which are flagged to contain no side effects when exports are not used
  883. */
  884. sideEffects?: boolean;
  885. /**
  886. * Optimize duplication and caching by splitting chunks by shared modules and cache group
  887. */
  888. splitChunks?: false | OptimizationSplitChunksOptions;
  889. /**
  890. * Figure out which exports are used by modules to mangle export names, omit unused exports and generate more efficient code
  891. */
  892. usedExports?: boolean;
  893. }
  894. /**
  895. * This interface was referenced by `WebpackOptions`'s JSON-Schema
  896. * via the `definition` "OptimizationSplitChunksOptions".
  897. */
  898. export interface OptimizationSplitChunksOptions {
  899. /**
  900. * Sets the name delimiter for created chunks
  901. */
  902. automaticNameDelimiter?: string;
  903. /**
  904. * Sets the max length for the name of a created chunk
  905. */
  906. automaticNameMaxLength?: number;
  907. /**
  908. * Assign modules to a cache group (modules from different cache groups are tried to keep in separate chunks)
  909. */
  910. cacheGroups?: {
  911. /**
  912. * Configuration for a cache group
  913. */
  914. [k: string]:
  915. | false
  916. | Function
  917. | string
  918. | RegExp
  919. | {
  920. /**
  921. * Sets the name delimiter for created chunks
  922. */
  923. automaticNameDelimiter?: string;
  924. /**
  925. * Sets the max length for the name of a created chunk
  926. */
  927. automaticNameMaxLength?: number;
  928. /**
  929. * Sets the name prefix for created chunks
  930. */
  931. automaticNamePrefix?: string;
  932. /**
  933. * Select chunks for determining cache group content (defaults to "initial", "initial" and "all" requires adding these chunks to the HTML)
  934. */
  935. chunks?: ("initial" | "async" | "all") | Function;
  936. /**
  937. * Ignore minimum size, minimum chunks and maximum requests and always create chunks for this cache group
  938. */
  939. enforce?: boolean;
  940. /**
  941. * Size threshold at which splitting is enforced and other restrictions (maxAsyncRequests, maxInitialRequests) are ignored.
  942. */
  943. enforceSizeThreshold?: number;
  944. /**
  945. * Sets the template for the filename for created chunks (Only works for initial chunks)
  946. */
  947. filename?: string;
  948. /**
  949. * Maximum number of requests which are accepted for on-demand loading
  950. */
  951. maxAsyncRequests?: number;
  952. /**
  953. * Maximum number of initial chunks which are accepted for an entry point
  954. */
  955. maxInitialRequests?: number;
  956. /**
  957. * Maximal size hint for the created chunks
  958. */
  959. maxSize?: number;
  960. /**
  961. * Minimum number of times a module has to be duplicated until it's considered for splitting
  962. */
  963. minChunks?: number;
  964. /**
  965. * Minimal size for the created chunk
  966. */
  967. minSize?: number;
  968. /**
  969. * Give chunks for this cache group a name (chunks with equal name are merged)
  970. */
  971. name?: boolean | Function | string;
  972. /**
  973. * Priority of this cache group
  974. */
  975. priority?: number;
  976. /**
  977. * Try to reuse existing chunk (with name) when it has matching modules
  978. */
  979. reuseExistingChunk?: boolean;
  980. /**
  981. * Assign modules to a cache group
  982. */
  983. test?: Function | string | RegExp;
  984. };
  985. };
  986. /**
  987. * Select chunks for determining shared modules (defaults to "async", "initial" and "all" requires adding these chunks to the HTML)
  988. */
  989. chunks?: ("initial" | "async" | "all") | Function;
  990. /**
  991. * Size threshold at which splitting is enforced and other restrictions (maxAsyncRequests, maxInitialRequests) are ignored.
  992. */
  993. enforceSizeThreshold?: number;
  994. /**
  995. * Options for modules not selected by any other cache group
  996. */
  997. fallbackCacheGroup?: {
  998. /**
  999. * Sets the name delimiter for created chunks
  1000. */
  1001. automaticNameDelimiter?: string;
  1002. /**
  1003. * Maximal size hint for the created chunks
  1004. */
  1005. maxSize?: number;
  1006. /**
  1007. * Minimal size for the created chunk
  1008. */
  1009. minSize?: number;
  1010. };
  1011. /**
  1012. * Sets the template for the filename for created chunks (Only works for initial chunks)
  1013. */
  1014. filename?: string;
  1015. /**
  1016. * Prevents exposing path info when creating names for parts splitted by maxSize
  1017. */
  1018. hidePathInfo?: boolean;
  1019. /**
  1020. * Maximum number of requests which are accepted for on-demand loading
  1021. */
  1022. maxAsyncRequests?: number;
  1023. /**
  1024. * Maximum number of initial chunks which are accepted for an entry point
  1025. */
  1026. maxInitialRequests?: number;
  1027. /**
  1028. * Maximal size hint for the created chunks
  1029. */
  1030. maxSize?: number;
  1031. /**
  1032. * Minimum number of times a module has to be duplicated until it's considered for splitting
  1033. */
  1034. minChunks?: number;
  1035. /**
  1036. * Minimal size for the created chunks
  1037. */
  1038. minSize?: number;
  1039. /**
  1040. * Give chunks created a name (chunks with equal name are merged)
  1041. */
  1042. name?: boolean | Function | string;
  1043. }
  1044. /**
  1045. * This interface was referenced by `WebpackOptions`'s JSON-Schema
  1046. * via the `definition` "OutputOptions".
  1047. */
  1048. export interface OutputOptions {
  1049. /**
  1050. * Add a comment in the UMD wrapper.
  1051. */
  1052. auxiliaryComment?:
  1053. | string
  1054. | {
  1055. /**
  1056. * Set comment for `amd` section in UMD
  1057. */
  1058. amd?: string;
  1059. /**
  1060. * Set comment for `commonjs` (exports) section in UMD
  1061. */
  1062. commonjs?: string;
  1063. /**
  1064. * Set comment for `commonjs2` (module.exports) section in UMD
  1065. */
  1066. commonjs2?: string;
  1067. /**
  1068. * Set comment for `root` (global variable) section in UMD
  1069. */
  1070. root?: string;
  1071. };
  1072. /**
  1073. * The callback function name used by webpack for loading of chunks in WebWorkers.
  1074. */
  1075. chunkCallbackName?: string;
  1076. /**
  1077. * The filename of non-entry chunks as relative path inside the `output.path` directory.
  1078. */
  1079. chunkFilename?: string;
  1080. /**
  1081. * Number of milliseconds before chunk request expires
  1082. */
  1083. chunkLoadTimeout?: number;
  1084. /**
  1085. * This option enables cross-origin loading of chunks.
  1086. */
  1087. crossOriginLoading?: false | "anonymous" | "use-credentials";
  1088. /**
  1089. * Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
  1090. */
  1091. devtoolFallbackModuleFilenameTemplate?: string | Function;
  1092. /**
  1093. * 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.
  1094. */
  1095. devtoolLineToLine?:
  1096. | boolean
  1097. | {
  1098. [k: string]: any;
  1099. };
  1100. /**
  1101. * Filename template string of function for the sources array in a generated SourceMap.
  1102. */
  1103. devtoolModuleFilenameTemplate?: string | Function;
  1104. /**
  1105. * 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.
  1106. */
  1107. devtoolNamespace?: string;
  1108. /**
  1109. * 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.
  1110. */
  1111. filename?: string | Function;
  1112. /**
  1113. * 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.
  1114. */
  1115. futureEmitAssets?: boolean;
  1116. /**
  1117. * An expression which is used to address the global object/scope in runtime code
  1118. */
  1119. globalObject?: string;
  1120. /**
  1121. * Digest type used for the hash
  1122. */
  1123. hashDigest?: string;
  1124. /**
  1125. * Number of chars which are used for the hash
  1126. */
  1127. hashDigestLength?: number;
  1128. /**
  1129. * Algorithm used for generation the hash (see node.js crypto package)
  1130. */
  1131. hashFunction?: string | import("../lib/util/createHash").HashConstructor;
  1132. /**
  1133. * Any string which is added to the hash to salt it
  1134. */
  1135. hashSalt?: string;
  1136. /**
  1137. * The filename of the Hot Update Chunks. They are inside the output.path directory.
  1138. */
  1139. hotUpdateChunkFilename?: string;
  1140. /**
  1141. * The JSONP function used by webpack for async loading of hot update chunks.
  1142. */
  1143. hotUpdateFunction?: string;
  1144. /**
  1145. * The filename of the Hot Update Main File. It is inside the `output.path` directory.
  1146. */
  1147. hotUpdateMainFilename?: string | Function;
  1148. /**
  1149. * The JSONP function used by webpack for async loading of chunks.
  1150. */
  1151. jsonpFunction?: string;
  1152. /**
  1153. * This option enables loading async chunks via a custom script type, such as script type="module"
  1154. */
  1155. jsonpScriptType?: false | "text/javascript" | "module";
  1156. /**
  1157. * If set, export the bundle as library. `output.library` is the name.
  1158. */
  1159. library?: string | string[] | LibraryCustomUmdObject;
  1160. /**
  1161. * Specify which export should be exposed as library
  1162. */
  1163. libraryExport?: string | ArrayOfStringValues;
  1164. /**
  1165. * Type of library
  1166. */
  1167. libraryTarget?:
  1168. | "var"
  1169. | "assign"
  1170. | "this"
  1171. | "window"
  1172. | "self"
  1173. | "global"
  1174. | "commonjs"
  1175. | "commonjs2"
  1176. | "commonjs-module"
  1177. | "amd"
  1178. | "amd-require"
  1179. | "umd"
  1180. | "umd2"
  1181. | "jsonp"
  1182. | "system";
  1183. /**
  1184. * The output directory as **absolute path** (required).
  1185. */
  1186. path?: string;
  1187. /**
  1188. * Include comments with information about the modules.
  1189. */
  1190. pathinfo?: boolean;
  1191. /**
  1192. * The `publicPath` specifies the public URL address of the output files when referenced in a browser.
  1193. */
  1194. publicPath?: string | Function;
  1195. /**
  1196. * The filename of the SourceMaps for the JavaScript files. They are inside the `output.path` directory.
  1197. */
  1198. sourceMapFilename?: string;
  1199. /**
  1200. * Prefixes every line of the source in the bundle with this string.
  1201. */
  1202. sourcePrefix?: string;
  1203. /**
  1204. * Handles exceptions in module loading correctly at a performance cost.
  1205. */
  1206. strictModuleExceptionHandling?: boolean;
  1207. /**
  1208. * If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.
  1209. */
  1210. umdNamedDefine?: boolean;
  1211. /**
  1212. * The filename of WebAssembly modules as relative path inside the `output.path` directory.
  1213. */
  1214. webassemblyModuleFilename?: string;
  1215. }
  1216. /**
  1217. * This interface was referenced by `WebpackOptions`'s JSON-Schema
  1218. * via the `definition` "LibraryCustomUmdObject".
  1219. */
  1220. export interface LibraryCustomUmdObject {
  1221. /**
  1222. * Name of the exposed AMD library in the UMD
  1223. */
  1224. amd?: string;
  1225. /**
  1226. * Name of the exposed commonjs export in the UMD
  1227. */
  1228. commonjs?: string;
  1229. /**
  1230. * Name of the property exposed globally by a UMD library
  1231. */
  1232. root?: string | ArrayOfStringValues;
  1233. }
  1234. /**
  1235. * This interface was referenced by `WebpackOptions`'s JSON-Schema
  1236. * via the `definition` "PerformanceOptions".
  1237. */
  1238. export interface PerformanceOptions {
  1239. /**
  1240. * Filter function to select assets that are checked
  1241. */
  1242. assetFilter?: Function;
  1243. /**
  1244. * Sets the format of the hints: warnings, errors or nothing at all
  1245. */
  1246. hints?: false | "warning" | "error";
  1247. /**
  1248. * Filesize limit (in bytes) when exceeded, that webpack will provide performance hints
  1249. */
  1250. maxAssetSize?: number;
  1251. /**
  1252. * Total size of an entry point (in bytes)
  1253. */
  1254. maxEntrypointSize?: number;
  1255. }
  1256. /**
  1257. * This interface was referenced by `WebpackOptions`'s JSON-Schema
  1258. * via the `definition` "StatsOptions".
  1259. */
  1260. export interface StatsOptions {
  1261. /**
  1262. * fallback value for stats options when an option is not defined (has precedence over local webpack defaults)
  1263. */
  1264. all?: boolean;
  1265. /**
  1266. * add assets information
  1267. */
  1268. assets?: boolean;
  1269. /**
  1270. * sort the assets by that field
  1271. */
  1272. assetsSort?: string;
  1273. /**
  1274. * add built at time information
  1275. */
  1276. builtAt?: boolean;
  1277. /**
  1278. * add also information about cached (not built) modules
  1279. */
  1280. cached?: boolean;
  1281. /**
  1282. * Show cached assets (setting this to `false` only shows emitted files)
  1283. */
  1284. cachedAssets?: boolean;
  1285. /**
  1286. * add children information
  1287. */
  1288. children?: boolean;
  1289. /**
  1290. * Display all chunk groups with the corresponding bundles
  1291. */
  1292. chunkGroups?: boolean;
  1293. /**
  1294. * add built modules information to chunk information
  1295. */
  1296. chunkModules?: boolean;
  1297. /**
  1298. * add the origins of chunks and chunk merging info
  1299. */
  1300. chunkOrigins?: boolean;
  1301. /**
  1302. * add chunk information
  1303. */
  1304. chunks?: boolean;
  1305. /**
  1306. * sort the chunks by that field
  1307. */
  1308. chunksSort?: string;
  1309. /**
  1310. * Enables/Disables colorful output
  1311. */
  1312. colors?:
  1313. | boolean
  1314. | {
  1315. /**
  1316. * Custom color for bold text
  1317. */
  1318. bold?: string;
  1319. /**
  1320. * Custom color for cyan text
  1321. */
  1322. cyan?: string;
  1323. /**
  1324. * Custom color for green text
  1325. */
  1326. green?: string;
  1327. /**
  1328. * Custom color for magenta text
  1329. */
  1330. magenta?: string;
  1331. /**
  1332. * Custom color for red text
  1333. */
  1334. red?: string;
  1335. /**
  1336. * Custom color for yellow text
  1337. */
  1338. yellow?: string;
  1339. };
  1340. /**
  1341. * context directory for request shortening
  1342. */
  1343. context?: string;
  1344. /**
  1345. * add module depth in module graph
  1346. */
  1347. depth?: boolean;
  1348. /**
  1349. * Display the entry points with the corresponding bundles
  1350. */
  1351. entrypoints?: boolean;
  1352. /**
  1353. * add --env information
  1354. */
  1355. env?: boolean;
  1356. /**
  1357. * add details to errors (like resolving log)
  1358. */
  1359. errorDetails?: boolean;
  1360. /**
  1361. * add errors
  1362. */
  1363. errors?: boolean;
  1364. /**
  1365. * Please use excludeModules instead.
  1366. */
  1367. exclude?: FilterTypes | boolean;
  1368. /**
  1369. * Suppress assets that match the specified filters. Filters can be Strings, RegExps or Functions
  1370. */
  1371. excludeAssets?: FilterTypes;
  1372. /**
  1373. * Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions
  1374. */
  1375. excludeModules?: FilterTypes | boolean;
  1376. /**
  1377. * add the hash of the compilation
  1378. */
  1379. hash?: boolean;
  1380. /**
  1381. * add logging output
  1382. */
  1383. logging?: boolean | ("none" | "error" | "warn" | "info" | "log" | "verbose");
  1384. /**
  1385. * Include debug logging of specified loggers (i. e. for plugins or loaders). Filters can be Strings, RegExps or Functions
  1386. */
  1387. loggingDebug?: FilterTypes | boolean;
  1388. /**
  1389. * add stack traces to logging output
  1390. */
  1391. loggingTrace?: boolean;
  1392. /**
  1393. * Set the maximum number of modules to be shown
  1394. */
  1395. maxModules?: number;
  1396. /**
  1397. * add information about assets inside modules
  1398. */
  1399. moduleAssets?: boolean;
  1400. /**
  1401. * add dependencies and origin of warnings/errors
  1402. */
  1403. moduleTrace?: boolean;
  1404. /**
  1405. * add built modules information
  1406. */
  1407. modules?: boolean;
  1408. /**
  1409. * sort the modules by that field
  1410. */
  1411. modulesSort?: string;
  1412. /**
  1413. * add information about modules nested in other modules (like with module concatenation)
  1414. */
  1415. nestedModules?: boolean;
  1416. /**
  1417. * show reasons why optimization bailed out for modules
  1418. */
  1419. optimizationBailout?: boolean;
  1420. /**
  1421. * Add output path information
  1422. */
  1423. outputPath?: boolean;
  1424. /**
  1425. * add performance hint flags
  1426. */
  1427. performance?: boolean;
  1428. /**
  1429. * show exports provided by modules
  1430. */
  1431. providedExports?: boolean;
  1432. /**
  1433. * Add public path information
  1434. */
  1435. publicPath?: boolean;
  1436. /**
  1437. * add information about the reasons why modules are included
  1438. */
  1439. reasons?: boolean;
  1440. /**
  1441. * add the source code of modules
  1442. */
  1443. source?: boolean;
  1444. /**
  1445. * add timing information
  1446. */
  1447. timings?: boolean;
  1448. /**
  1449. * show exports used by modules
  1450. */
  1451. usedExports?: boolean;
  1452. /**
  1453. * add webpack version information
  1454. */
  1455. version?: boolean;
  1456. /**
  1457. * add warnings
  1458. */
  1459. warnings?: boolean;
  1460. /**
  1461. * Suppress warnings that match the specified filters. Filters can be Strings, RegExps or Functions
  1462. */
  1463. warningsFilter?: FilterTypes;
  1464. }