Skip to content

vigneshshanmugam/bundle-duplicates-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Identify duplicate functions across webpack JS bundles

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published