Webpack plugin for deduplicating transitive dependencies
Last updated a month ago by nmakarevich .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install webpack-deduplication-plugin 
SYNC missed versions from official npm registry.

Webpack Deduplication Plugin

Plugin for webpack that de-duplicates transitive dependencies in yarn and webpack-based projects.


Import it from the package

const { WebpackDeduplicationPlugin } = require('webpack-deduplication-plugin');

And add it to your webpack config:

plugins: [
    new WebpackDeduplicationPlugin({
        cacheDir: cacheDirPath,
        rootPath: rootPath,


  • cacheDirPath - absolute path to the directory where the cache of the duplicates will be stored. Cache is based on the content of yarn.lock file and will be updated with every change. If not provided then the duplicates will be re-generated with every run.
  • rootPath - absolute path to the root of the project. If not provided it will be auto-detected by app-root-path plugin




Contributions to Webpack Deduplication Plugin are welcome! Please see CONTRIBUTING.md for details.


Copyright (c) 2020 Atlassian and others. Apache 2.0 licensed, see LICENSE file.

With ❤️ from Atlassian

Current Tags

  • 0.0.3                                ...           latest (a month ago)

3 Versions

  • 0.0.3                                ...           a month ago
  • 0.0.2                                ...           a month ago
  • 0.0.1                                ...           2 months ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (7)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |