Socket
Socket
Sign inDemoInstall

webpack-bundle-analyzer

Package Overview
Dependencies
Maintainers
4
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-bundle-analyzer - npm Package Compare versions

Comparing version 4.8.0 to 4.9.0

5

CHANGELOG.md

@@ -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 @@

23

lib/tree/ConcatenatedModule.js

@@ -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;

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc