{"_id":"@barbuza/duplicate-package-checker-webpack-plugin","_rev":"2-400e443416da4c7e1d643e774ef059c4","name":"@barbuza/duplicate-package-checker-webpack-plugin","description":"Webpack plugin that warns you when multiple versions of the same package exist in a build.","dist-tags":{"latest":"1.2.4"},"versions":{"1.2.4":{"name":"@barbuza/duplicate-package-checker-webpack-plugin","version":"1.2.4","description":"Webpack plugin that warns you when multiple versions of the same package exist in a build.","main":"./lib/index.js","scripts":{"test":"mocha","build":"babel src --out-dir lib","prepublish":"npm run build"},"dependencies":{"chalk":"^1.1.3","find-root":"^1.0.0","lodash":"^4.17.4"},"repository":{"type":"git","url":"git+https://github.com/darrenscerri/duplicate-package-checker-webpack-plugin.git"},"keywords":["webpack","plugin"],"author":{"name":"Darren Scerri","email":"darrenscerri@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/darrenscerri/duplicate-package-checker-webpack-plugin/issues"},"homepage":"https://github.com/darrenscerri/duplicate-package-checker-webpack-plugin#readme","devDependencies":{"babel-cli":"^6.24.0","babel-core":"^6.24.0","babel-polyfill":"^6.23.0","babel-preset-es2015":"^6.24.0","mocha":"^3.2.0","strip-ansi":"^3.0.1","webpack":"^2.2.1"},"gitHead":"29835a997713b42f75b762b4fd7ea09b739e441e","_id":"@barbuza/duplicate-package-checker-webpack-plugin@1.2.4","_shasum":"d1f115ca4c3a242ece46b623b38416dc214dc18a","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"barbuza","email":"barbuzaster@gmail.com"},"dist":{"shasum":"d1f115ca4c3a242ece46b623b38416dc214dc18a","tarball":"https://registry.npmjs.org/@barbuza/duplicate-package-checker-webpack-plugin/-/duplicate-package-checker-webpack-plugin-1.2.4.tgz","integrity":"sha512-9VxRbMJhHogTJmhURl1xbGQDvdf5itUXW8KyJSNVjq97P7D/Q3hzWn+4uGm58NyZQZNlfvQYM4aLOWKPLo8SaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH2D6G5vrlAnkC0QmsWqZyS/b2ePW/ZfoJ+AYix1LXj/AiB12mNn8sBOpLAJMn8VV6Ug+NOOgNNmjopid69NuGH8iQ=="}]},"maintainers":[{"name":"barbuza","email":"barbuzaster@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/duplicate-package-checker-webpack-plugin-1.2.4.tgz_1493338925493_0.03545389510691166"}}},"readme":"# duplicate-package-checker-webpack-plugin\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status](https://travis-ci.org/darrenscerri/duplicate-package-checker-webpack-plugin.svg?branch=master)](https://travis-ci.org/darrenscerri/duplicate-package-checker-webpack-plugin)\n\nWebpack plugin that warns you when multiple versions of the same package exist in a build.\n\n![duplicate-package-checker-webpack-plugin](https://cloud.githubusercontent.com/assets/729230/24270619/357ebc62-1016-11e7-9b04-f79fd5a72db7.png)\n\n## Why?\n\nIt might be possible that a single package gets included multiple times in a Webpack build due to different package versions. This situation may happen without any warning,  resulting in extra bloat in your build and may lead to hard-to-find bugs.\n\nThis plugin will warn you of such cases to minimize build size and avoid bugs caused by unintended duplicate packages.\n\nMotivation: https://github.com/webpack/webpack/issues/385 and https://github.com/webpack/webpack/issues/646.\n\n## Install\n\n```sh\nnpm install duplicate-package-checker-webpack-plugin --save-dev\n```\n\n## Configuration\n\nAdd the plugin to your webpack config:\n\n```js\nvar DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin');\n\nmodule.exports = {\n    plugins: [\n      new DuplicatePackageCheckerPlugin()\n    ]\n};\n```\n\nYou can also pass an object with configurable options:\n```js\nnew DuplicatePackageCheckerPlugin({\n  // Also show module that is requiring each duplicate package\n   verbose: true,\n   // Ignore these modules\n   ignore: [\"warning\", \"query-string\"]\n})\n```\n\n[downloads-image]: https://img.shields.io/npm/dt/duplicate-package-checker-webpack-plugin.svg\n[npm-url]: https://www.npmjs.com/package/duplicate-package-checker-webpack-plugin\n[npm-image]: https://img.shields.io/npm/v/duplicate-package-checker-webpack-plugin.svg\n","maintainers":[{"name":"barbuza","email":"barbuzaster@gmail.com"}],"time":{"modified":"2022-06-12T15:02:27.524Z","created":"2017-04-28T00:22:07.397Z","1.2.4":"2017-04-28T00:22:07.397Z"},"homepage":"https://github.com/darrenscerri/duplicate-package-checker-webpack-plugin#readme","keywords":["webpack","plugin"],"repository":{"type":"git","url":"git+https://github.com/darrenscerri/duplicate-package-checker-webpack-plugin.git"},"author":{"name":"Darren Scerri","email":"darrenscerri@gmail.com"},"bugs":{"url":"https://github.com/darrenscerri/duplicate-package-checker-webpack-plugin/issues"},"license":"MIT","readmeFilename":"README.md"}