webpack-bundle-diff
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -5,2 +5,3 @@ import { Compilation, Module } from 'webpack'; | ||
readableIdentifier(requestShortener: Compilation['requestShortener']): string; | ||
modules?: Module[]; | ||
}); |
@@ -5,8 +5,8 @@ "use strict"; | ||
function getModuleName(module, stats) { | ||
return 'readableIdentifier' in module | ||
? module.readableIdentifier(stats.requestShortener) | ||
: module.modules | ||
? module.modules[0].name | ||
: module.name; | ||
var _a, _b; | ||
const rootModule = (_b = (_a = module.modules) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : module; | ||
return 'readableIdentifier' in rootModule | ||
? rootModule.readableIdentifier(stats.requestShortener) | ||
: rootModule.name; | ||
} | ||
exports.getModuleName = getModuleName; |
{ | ||
"name": "webpack-bundle-diff", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"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
55118
1050