Added nestedModulesSpace to schema and updated the types
This commit is contained in:
parent
a94e1a3b04
commit
ee1fcf1255
|
@ -2235,6 +2235,10 @@ export interface StatsOptions {
|
|||
* Add information about modules nested in other modules (like with module concatenation).
|
||||
*/
|
||||
nestedModules?: boolean;
|
||||
/**
|
||||
* Tells stats how many items of nested modules should be displayed (groups will be collapsed to fit this space).
|
||||
*/
|
||||
nestedModulesSpace?: number;
|
||||
/**
|
||||
* Show reasons why optimization bailed out for modules.
|
||||
*/
|
||||
|
|
|
@ -137,10 +137,10 @@ console.log(__webpack_require__(/*! ./index */ 1));
|
|||
## Unoptimized
|
||||
|
||||
```
|
||||
asset output.js 2.18 KiB [emitted] (name: main)
|
||||
chunk (runtime: main) output.js (main) 652 bytes [entry] [rendered]
|
||||
asset output.js 2.17 KiB [emitted] (name: main)
|
||||
chunk (runtime: main) output.js (main) 634 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 619 bytes [dependent] 1 module
|
||||
dependent modules 601 bytes [dependent] 1 module
|
||||
./example.js 33 bytes [built] [code generated]
|
||||
[used exports unknown]
|
||||
entry ./example.js main
|
||||
|
@ -151,9 +151,9 @@ webpack 5.11.1 compiled successfully
|
|||
|
||||
```
|
||||
asset output.js 524 bytes [emitted] [minimized] (name: main)
|
||||
chunk (runtime: main) output.js (main) 652 bytes [entry] [rendered]
|
||||
chunk (runtime: main) output.js (main) 634 bytes [entry] [rendered]
|
||||
> ./example.js main
|
||||
dependent modules 619 bytes [dependent] 1 module
|
||||
dependent modules 601 bytes [dependent] 1 module
|
||||
./example.js 33 bytes [built] [code generated]
|
||||
[no exports used]
|
||||
entry ./example.js main
|
||||
|
|
|
@ -3443,6 +3443,10 @@
|
|||
"description": "Add information about modules nested in other modules (like with module concatenation).",
|
||||
"type": "boolean"
|
||||
},
|
||||
"nestedModulesSpace": {
|
||||
"description": "Tells stats how many items of nested modules should be displayed (groups will be collapsed to fit this space).",
|
||||
"type": "number"
|
||||
},
|
||||
"optimizationBailout": {
|
||||
"description": "Show reasons why optimization bailed out for modules.",
|
||||
"type": "boolean"
|
||||
|
|
|
@ -5301,6 +5301,19 @@ Object {
|
|||
"multiple": false,
|
||||
"simpleType": "boolean",
|
||||
},
|
||||
"stats-nested-modules-space": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
"description": "Tells stats how many items of nested modules should be displayed (groups will be collapsed to fit this space).",
|
||||
"multiple": false,
|
||||
"path": "stats.nestedModulesSpace",
|
||||
"type": "number",
|
||||
},
|
||||
],
|
||||
"description": "Tells stats how many items of nested modules should be displayed (groups will be collapsed to fit this space).",
|
||||
"multiple": false,
|
||||
"simpleType": "number",
|
||||
},
|
||||
"stats-optimization-bailout": Object {
|
||||
"configs": Array [
|
||||
Object {
|
||||
|
|
|
@ -9515,6 +9515,11 @@ declare interface StatsOptions {
|
|||
*/
|
||||
nestedModules?: boolean;
|
||||
|
||||
/**
|
||||
* Tells stats how many items of nested modules should be displayed (groups will be collapsed to fit this space).
|
||||
*/
|
||||
nestedModulesSpace?: number;
|
||||
|
||||
/**
|
||||
* Show reasons why optimization bailed out for modules.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue