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

webpack-bundle-stats-plugin

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-bundle-stats-plugin - npm Package Compare versions

Comparing version 0.3.0 to 1.0.0

14

lib/getStatsFromCompilation.js

@@ -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;
}

2

package.json
{
"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",

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