webpack-bundle-analyzer
Advanced tools
Comparing version 4.8.0 to 4.9.0
@@ -15,2 +15,7 @@ # Changelog | ||
## 4.9.0 | ||
* **Improvement** | ||
* Display modules included in concatenated entry modules on Webpack 5 when "Show content of concatenated modules" is checked ([#602](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/602) by [@pgoldberg](https://github.com/pgoldberg)) | ||
## 4.8.0 | ||
@@ -17,0 +22,0 @@ |
@@ -28,2 +28,22 @@ "use strict"; | ||
get parsedSize() { | ||
var _this$getParsedSize; | ||
return (_this$getParsedSize = this.getParsedSize()) !== null && _this$getParsedSize !== void 0 ? _this$getParsedSize : this.getEstimatedSize('parsedSize'); | ||
} | ||
get gzipSize() { | ||
var _this$getGzipSize; | ||
return (_this$getGzipSize = this.getGzipSize()) !== null && _this$getGzipSize !== void 0 ? _this$getGzipSize : this.getEstimatedSize('gzipSize'); | ||
} | ||
getEstimatedSize(sizeType) { | ||
const parentModuleSize = this.parent[sizeType]; | ||
if (parentModuleSize !== undefined) { | ||
return Math.floor(this.size / this.parent.size * parentModuleSize); | ||
} | ||
} | ||
fillContentModules() { | ||
@@ -51,3 +71,4 @@ this.data.modules.forEach(moduleData => this.addContentModule(moduleData)); | ||
}); | ||
const module = new _ContentModule.default(fileName, moduleData, this); | ||
const ModuleConstructor = moduleData.modules ? ConcatenatedModule : _ContentModule.default; | ||
const module = new ModuleConstructor(fileName, moduleData, this); | ||
currentFolder.addChildModule(module); | ||
@@ -54,0 +75,0 @@ } |
@@ -40,6 +40,14 @@ "use strict"; | ||
get parsedSize() { | ||
return this.getParsedSize(); | ||
} | ||
get gzipSize() { | ||
return this.getGzipSize(); | ||
} | ||
getParsedSize() { | ||
return this.src ? this.src.length : undefined; | ||
} | ||
get gzipSize() { | ||
getGzipSize() { | ||
if (!_lodash.default.has(this, '_gzipSize')) { | ||
@@ -46,0 +54,0 @@ this._gzipSize = this.src ? _gzipSize.default.sync(this.src) : undefined; |
{ | ||
"name": "webpack-bundle-analyzer", | ||
"version": "4.8.0", | ||
"version": "4.9.0", | ||
"description": "Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap", | ||
@@ -86,3 +86,3 @@ "author": "Yury Grunin <grunin.ya@ya.ru>", | ||
"url-loader": "4.1.1", | ||
"webpack": "5.37.1", | ||
"webpack": "5.76.0", | ||
"webpack-cli": "3.3.12", | ||
@@ -89,0 +89,0 @@ "webpack-dev-server": "3.11.3" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1285629
2551