Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webpack-bundle-diff

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-bundle-diff - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

5

lib/api/deriveBundleData/graph/deriveGraph.js

@@ -32,3 +32,2 @@ "use strict";

}
const moduleName = (0, getModuleName_1.getModuleName)(module, compilation);
const moduleReasons = (0, typeGuards_1.isModule)(module)

@@ -47,2 +46,3 @@ ? [...compilation.moduleGraph.getIncomingConnections(module)]

if (!module.modules) {
const moduleName = (0, getModuleName_1.getModuleName)(module, compilation);
const moduleSize = !(0, typeGuards_1.isModule)(module) ? module.size : module.size();

@@ -58,4 +58,5 @@ // This is just an individual module, so we can add it to the graph as-is

: module.modules[0].size();
const moduleName = (0, getModuleName_1.getModuleName)(module.modules[0], compilation);
// Assume the first hoisted module acts as the primary module
addModuleToGraph(graph, Object.assign({ name: (0, getModuleName_1.getModuleName)(module.modules[0], compilation), containsHoistedModules: true, namedChunkGroups, size: moduleSize }, (0, processReasons_1.processReasons)(moduleReasons, moduleIdToNameMap)));
addModuleToGraph(graph, Object.assign({ name: moduleName, containsHoistedModules: true, namedChunkGroups, size: moduleSize }, (0, processReasons_1.processReasons)(moduleReasons, moduleIdToNameMap)));
// Other hoisted modules are parented to the primary module

@@ -62,0 +63,0 @@ for (let i = 1; i < module.modules.length; i++) {

2

package.json
{
"name": "webpack-bundle-diff",
"version": "1.2.0",
"version": "1.2.1",
"description": "Understand changes in webpack bundle size",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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