webpack-bundle-diff
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -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 |
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", |
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
54996
1049