webpack-bundle-stats-plugin
Advanced tools
Comparing version 0.3.0 to 1.0.0
@@ -28,2 +28,6 @@ "use strict"; | ||
chunks: cg.chunks.map(c => c.id), | ||
origins: cg.origins.map(origin => ({ | ||
request: origin.request, | ||
module: getOriginModule(origin.module, compilation), | ||
})), | ||
})); | ||
@@ -48,1 +52,11 @@ } | ||
} | ||
function getOriginModule(m, compilation) { | ||
if (m) { | ||
return { | ||
readableIdentifier: m.readableIdentifier(compilation.requestShortener), | ||
}; | ||
} | ||
else { | ||
return undefined; | ||
} | ||
} |
@@ -16,2 +16,3 @@ export interface BundleStats { | ||
chunks: ChunkId[]; | ||
origins: Origin[]; | ||
} | ||
@@ -31,1 +32,8 @@ export interface Chunk { | ||
} | ||
export interface Origin { | ||
request: string; | ||
module?: OriginModule; | ||
} | ||
export interface OriginModule { | ||
readableIdentifier: string; | ||
} |
{ | ||
"name": "webpack-bundle-stats-plugin", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"description": "Export internal bundling details from Webpack", | ||
@@ -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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8298
161
1