@bundle-stats/utils
TypeScript icon, indicating that this package has built-in type declarations

4.13.2 • Public • Published

@bundle-stats/utils

Common utilities for bundle-stats packages.

How to generate a weback report

import { createJobs, createReport } from '@bundle-stats/utils';
import * as webpack from '@bundle-stats/utils/lib/webpack';

// Get webpack stats data
const WEBPACK_STATS_CURRENT = {/* ... */};
const WEBPACK_STATS_BASELINE = {/* ... */};

// Create jobs
const jobs = createJobs([
  { webpack: WEBPACK_STATS_CURRENT },
  { webpack: WEBPACK_STATS_BASELINE }
]);

// Create report
const report = createReport(jobs);

console.log(report.insights.webpack.assetsSizeTotal.data.text);
>> Bundle size increased to 9.77KB (+100%).

Packages

Packages

npm npm

CLI to generate bundle stats report.

npm npm

Webpack plugin to generate bundle stats report.

npm npm

Gatsby plugin for bundle-stats.

npm npm

Next.js plugin for bundle-stats.

npm npm

Rollup plugin to generate bundle stats report.

Related projects

Optimize your web app's performance with automated bundle stats analysis and monitoring.

  • 🔮 In-depth bundle stats analysis for every build
  • 📈 Monitor bundle stats changes and identify opportunities for optimizations
  • 🔔 Rule based automated review flow, or get notified via GitHub Pull Request comments, GitHub check reports and Slack messages
  • 🔧 Support for webpack and beta support for Vite/Rollup
  • 🔨 Support for all major CI services(CircleCI, GitHub Actions, Gitlab CI, Jenkins, Travis CI)
  • 🔩 Support for npm, yarn and pnpm; support for monorepos
  • 💕 Always free for Open Source

🚀 Get started

Standalone web application to compare Webpack/Lighthouse/Browsertime stats.

Compare bundle stats

Github Action that generates bundle-stats reports.

Readme

Keywords

none

Package Sidebar

Install

npm i @bundle-stats/utils

Weekly Downloads

73,843

Version

4.13.2

License

MIT

Unpacked Size

523 kB

Total Files

387

Last publish

Collaborators

  • relativeci-bot
  • vio
  • bundle-stats-bot