Skip to content

Commit

Permalink
Merge pull request #12427 from jaiwanth-v/add-chunkModulesSpace-to-stats
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Jan 15, 2021
2 parents bab0c5a + 8569b15 commit 435b9b8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions declarations/WebpackOptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2117,6 +2117,10 @@ export interface StatsOptions {
* Add built modules information to chunk information.
*/
chunkModules?: boolean;
/**
* Space to display chunk modules (groups will be collapsed to fit this space, value is in number of modules/group).
*/
chunkModulesSpace?: number;
/**
* Add the origins of chunks and chunk merging info.
*/
Expand Down
4 changes: 4 additions & 0 deletions schemas/WebpackOptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3542,6 +3542,10 @@
"description": "Add built modules information to chunk information.",
"type": "boolean"
},
"chunkModulesSpace": {
"description": "Space to display chunk modules (groups will be collapsed to fit this space, value is in number of modules/group).",
"type": "number"
},
"chunkOrigins": {
"description": "Add the origins of chunks and chunk merging info.",
"type": "boolean"
Expand Down
13 changes: 13 additions & 0 deletions test/__snapshots__/Cli.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5813,6 +5813,19 @@ Object {
"multiple": false,
"simpleType": "boolean",
},
"stats-chunk-modules-space": Object {
"configs": Array [
Object {
"description": "Space to display chunk modules (groups will be collapsed to fit this space, value is in number of modules/group).",
"multiple": false,
"path": "stats.chunkModulesSpace",
"type": "number",
},
],
"description": "Space to display chunk modules (groups will be collapsed to fit this space, value is in number of modules/group).",
"multiple": false,
"simpleType": "number",
},
"stats-chunk-origins": Object {
"configs": Array [
Object {
Expand Down
5 changes: 5 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9549,6 +9549,11 @@ declare interface StatsOptions {
*/
chunkModules?: boolean;

/**
* Space to display chunk modules (groups will be collapsed to fit this space, value is in number of modules/group).
*/
chunkModulesSpace?: number;

/**
* Add the origins of chunks and chunk merging info.
*/
Expand Down

0 comments on commit 435b9b8

Please sign in to comment.