Skip to content
Identify duplicate functions across webpack JS bundles
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.editorconfig
.gitignore
LICENSE
README.md
package-lock.json
package.json

README.md

bundle-duplicates-plugin

Identify duplicate functions across all webpack JS bundles.

Features

  • Works across Common chunks & Code Splitted bundles

It uses js-cpa for analysing the duplicates.

Install

npm i --save-dev bundle-duplicates-plugin

Usage

// webpack.config.js
const BundleDuplicatesPlugin = require("bundle-duplicates-plugin");
module.exports = {
  entry: //...,
  output: //...,
  plugins: [
    new BundleDuplicatesPlugin({
      // options
    })
  ]
}

Options

All options as mentioned here

Ideas

  • Custom Repoters to visualize the duplicates across bundle
You can’t perform that action at this time.