diff --git a/package.json b/package.json index 52631a07..92839acb 100644 --- a/package.json +++ b/package.json @@ -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 ", + "author": "RaoHai ", "license": "MIT", "homepage": "https://github.com/umijs/umi-webpack-bundle-analyzer", "changelog": "https://github.com/umijs/umi-webpack-bundle-analyzer/blob/master/CHANGELOG.md", diff --git a/src/BundleAnalyzerPlugin.js b/src/BundleAnalyzerPlugin.js index c11fbbcd..6f0977ae 100644 --- a/src/BundleAnalyzerPlugin.js +++ b/src/BundleAnalyzerPlugin.js @@ -16,7 +16,7 @@ class BundleAnalyzerPlugin { defaultSizes: 'parsed', openAnalyzer: true, generateStatsFile: false, - reportDepth: 1, + reportDepth: 2, statsFilename: 'stats.json', statsOptions: null, excludeAssets: null, @@ -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, {