/webpack-why-package

Answer to "Why that package is in the bundle"

Primary LanguageJavaScriptMIT LicenseMIT

webpack-why-package

npm Node.js CI status npm npm

Answer to "Why that package is in the bundle"

screenshot

Show the whole issuer chain and tell you why that package is in your bundle

Installation

npm i webpack-why-package

Webpack Plugin

const WebpackWhyPackagePlugin = require( 'webpack-why-package' ).Plugin

// in your webpack config
{
  plugins: [
    new WebpackWhyPackagePlugin()
  ]
}

API

const { analyze, format } = require( 'webpack-why-package' )

console.log( format( analyze( webpackStats ) ) )

License

MIT