bundlemate

0.2.1 • Public • Published

BundleMate

What is that?

BundleMate is a CLI tool for bundle size optimization.

Have a look at this demo: bundlemate_demo

This module is going to help you:

  1. Find out what are the biggest dependencies in your package in terms of size
  2. Identify duplicated dependencies
  3. Compare dependencies and duplicates of different versions of the same package
  4. Figure our what dependencies were added and removed in the later version of the package
  5. Optimize the bundle size!

Installation

npm i bundlemate -g

Usage

To identify dependencies and duplicates in your package, simply use the following command:

bundlemate -p packageName@version

where -p flag is used to specify the name of the package.

To compare two or more versions of a package, list packages one after another:

bundlemate -p packageName@version1 -p packageName@version2

For example, let's compare two versions of @atlaskit/editor-core package.

bundlemate -p @atlaskit/editor-core@37.1.0 -p @atlaskit/editor-core@39.5.0

BundleMate will install dependencies, create bundles for each version of the package and generate you the report.

Inspired by webpack-bundle-analyzer

License

MIT

Package Sidebar

Install

npm i bundlemate

Weekly Downloads

1

Version

0.2.1

License

MIT

Last publish

Collaborators

  • eshvedai