Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vigneshshanmugam/bundle-duplicates-plugin

Identify duplicate functions across webpack JS bundles
https://github.com/vigneshshanmugam/bundle-duplicates-plugin

bundle-duplicates webpack-plugin

Last synced: 30 days ago
JSON representation

Identify duplicate functions across webpack JS bundles

Awesome Lists containing this project

README

        

# bundle-duplicates-plugin
Identify duplicate functions across all webpack JS bundles.

### Features
+ Works across Common chunks & Code Splitted bundles

It uses [js-cpa](https://github.com/vigneshshanmugam/js-cpa/) for analysing the duplicates.

### Install

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

### Usage

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

### Options

All options as mentioned [here](https://github.com/vigneshshanmugam/js-cpa/#options)

### Ideas
+ Custom Repoters to visualize the duplicates across bundle