Skip to content

Commit

Permalink
Merge pull request #9 from umijs/feat/report-level-min-to-2
Browse files Browse the repository at this point in the history
reportDepth min to 2
  • Loading branch information
RaoHai authored Jul 14, 2020
2 parents 0e86bbc + 8bc3e51 commit 6564dac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "umi-webpack-bundle-analyzer",
"version": "0.0.0-development",
"description": "Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap",
"author": "Yury Grunin <[email protected]>",
"author": "RaoHai <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/umijs/umi-webpack-bundle-analyzer",
"changelog": "https://github.com/umijs/umi-webpack-bundle-analyzer/blob/master/CHANGELOG.md",
Expand Down
4 changes: 2 additions & 2 deletions src/BundleAnalyzerPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BundleAnalyzerPlugin {
defaultSizes: 'parsed',
openAnalyzer: true,
generateStatsFile: false,
reportDepth: 1,
reportDepth: 2,
statsFilename: 'stats.json',
statsOptions: null,
excludeAssets: null,
Expand Down Expand Up @@ -91,7 +91,7 @@ class BundleAnalyzerPlugin {
logger: this.logger,
defaultSizes: this.opts.defaultSizes,
excludeAssets: this.opts.excludeAssets,
reportDepth: this.opts.reportDepth
reportDepth: Math.max(this.opts.reportDepth, 2)
});

await bfj.write(statsFilepath, chartData, {
Expand Down

0 comments on commit 6564dac

Please sign in to comment.