Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via pnpm

webpack-bundle-analyzer 4.10.1

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
Package summary
Share
0
issues
3
licenses
16
MIT
1
(WTFPL OR MIT)
1
ISC
Package created
21 Oct 2016
Version published
16 Nov 2023
Maintainers
4
Total deps
18
Direct deps
13
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
16 Packages, Including:
@discoveryjs/json-ext@0.5.7
@polka/url@1.0.0-next.25
acorn-walk@8.3.2
acorn@8.11.3
commander@7.2.0
debounce@1.2.1
duplexer@0.1.2
escape-string-regexp@4.0.0
gzip-size@6.0.0
html-escaper@2.0.2
is-plain-object@5.0.0
mrmime@2.0.0
sirv@2.0.4
totalist@3.0.1
webpack-bundle-analyzer@4.10.1
ws@7.5.9

(WTFPL OR MIT)

Permissive
1 Packages, Including:
opener@1.5.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
picocolors@1.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

13
All Dependencies CSV
β“˜ This is a list of webpack-bundle-analyzer 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@discoveryjs/json-ext0.5.717.96 kBMIT
prod
acorn-walk8.3.29.29 kBMIT
prod
acorn8.11.3122.89 kBMIT
prod
commander7.2.037.27 kBMIT
prod
debounce1.2.14.11 kBMIT
prod
escape-string-regexp4.0.01.97 kBMIT
prod
gzip-size6.0.02.96 kBMIT
prod
html-escaper2.0.24.18 kBMIT
prod
is-plain-object5.0.03.33 kBMIT
prod
opener1.5.23 kB(WTFPL OR MIT)
prod
picocolors1.0.15.03 kBISC
prod
sirv2.0.46.06 kBMIT
prod
ws7.5.928.37 kBMIT
prod

Visualizations

Frequently Asked Questions

What does webpack-bundle-analyzer do?

The Webpack Bundle Analyzer is a plugin and Command Line Interface (CLI) utility for Webpack. It provides a visual, interactive, zoomable treemap that represents the content of your bundled web packs. This gives users the chance to better understand and optimize their code by offering insights into what modules make up most of the bundle, which ones might be included by mistake, and, of course, the real size of bundled modules even in minified versions.

How do you use webpack-bundle-analyzer?

To use the Webpack Bundle Analyzer, you first need to install the package in your project. If you are using npm, you can install it by running npm install --save-dev webpack-bundle-analyzer. Yarn users can install by running yarn add -D webpack-bundle-analyzer. Once you've installed the package, you incorpoarte it as a plugin by adding the code snippet below in your webpack config file.

const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

module.exports = {
  plugins: [
    new BundleAnalyzerPlugin()
  ]
}

This tells Webpack to activate the analyzer during the bundle generation. Once the process is completed, an interactive treemap visualization of your bundle content will be generated.

Where are the webpack-bundle-analyzer docs?

The official documentation for the Webpack Bundle Analyzer can be found directly in the README file on the plugin's GitHub repository at https://github.com/webpack-contrib/webpack-bundle-analyzer. You'll find there detailed instructions on how to install and use this tool both as a plugin and a CLI utility, as well as a comprehensive description of the available options and size definitions. The repository not only provides insightful examples but also troubleshooting tips and other useful resources for further learning.