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.1 to 1.2.2

11

lib/api/deriveBundleData/graph/deriveGraph.js

@@ -34,4 +34,11 @@ "use strict";

? [...compilation.moduleGraph.getIncomingConnections(module)]
.map(({ dependency }) => dependency && compilation.moduleGraph.getModule(dependency).identifier())
.filter(reason => !!reason)
.filter(({ dependency }) => !!dependency)
.map(({ dependency }) => {
const depModule = compilation.moduleGraph.getModule(dependency);
return {
moduleName: (0, getModuleName_1.getModuleName)(depModule, compilation),
moduleId: compilation.chunkGraph.getModuleId(depModule),
type: dependency.type,
};
})
: module.reasons;

@@ -38,0 +45,0 @@ // Precalculate named chunk groups since they are the same for all submodules

2

lib/api/deriveBundleData/graph/processReasons.d.ts
import { Reason } from '../../../types/Stats';
import ModuleIdToNameMap from './ModuleIdToNameMap';
export declare function processReasons(reasons: Reason[], moduleIdToNameMap: ModuleIdToNameMap): {
export declare function processReasons(reasons: Pick<Reason, 'moduleName' | 'moduleId' | 'type'>[], moduleIdToNameMap: ModuleIdToNameMap): {
parents: string[];

@@ -5,0 +5,0 @@ directParents: string[];

{
"name": "webpack-bundle-diff",
"version": "1.2.1",
"version": "1.2.2",
"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