New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1.1 to 0.1.2

17

lib/BundleStatsPlugin.js

@@ -11,12 +11,9 @@ "use strict";

apply(compiler) {
compiler.hooks.compilation.tap('BundleStatsPlugin', (compilation) => {
// TODO: Is there a better hook to tap than statsFactory?
compilation.hooks.statsFactory.tap('BundleStatsPlugin', () => {
var _a, _b;
const stats = (0, getStatsFromCompilation_1.getStatsFromCompilation)(compilation);
if (this.options.outputFile) {
fs.writeFileSync(this.options.outputFile, JSON.stringify(stats, null, 2));
}
(_b = (_a = this.options).onComplete) === null || _b === void 0 ? void 0 : _b.call(_a, stats);
});
compiler.hooks.done.tap('BundleStatsPlugin', (webpackStats) => {
var _a, _b;
const stats = (0, getStatsFromCompilation_1.getStatsFromCompilation)(webpackStats.compilation);
if (this.options.outputFile) {
fs.writeFileSync(this.options.outputFile, JSON.stringify(stats, null, 2));
}
(_b = (_a = this.options).onComplete) === null || _b === void 0 ? void 0 : _b.call(_a, stats);
});

@@ -23,0 +20,0 @@ }

{
"name": "webpack-bundle-stats-plugin",
"version": "0.1.1",
"version": "0.1.2",
"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