{"name":"corejs-upgrade-webpack-plugin","version":"2.0.0","description":"a webpack plugin that transforms core-js v2 paths to core-js v3 paths","keywords":["core-js","path","resolve","transform","webpack"],"license":"MIT","author":{"name":"Norbert de Langen","email":"ndelangen@me.com"},"main":"dist/index.js","scripts":{"build":"babel src -d dist --extensions '.ts'","generate-types":"tsc --emitDeclarationOnly --declaration src/index.ts --esModuleInterop --outDir dist","prepublish":"npm run build && npm run generate-types","test":"jest"},"dependencies":{"resolve-from":"^5.0.0","webpack":"^4.33.0"},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.5","@babel/preset-env":"^7.4.5","@babel/preset-typescript":"^7.3.3","@types/webpack":"^4.4.32","eslint":"^5.16.0","jest":"^24.8.0","typescript":"^3.5.1"},"gitHead":"1f0ebdae72f06fa4a0be86491af798fd63524faf","_id":"corejs-upgrade-webpack-plugin@2.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-EiVJMYjo8uVkaj0JdQnfCW+ZuGPdloCDCSNTDdxr7R/9T+WHCx/4u2Q9kCNNMDRoB02jpyZPzrX5GBWNXM+Smg==","shasum":"adc05c9db427d87062c981373d28d4d174ddffcd","tarball":"http://registry-npm.ywwl.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-2.0.0.tgz","fileCount":6,"unpackedSize":14298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAlehCRA9TVsSAnZWagAA2roP/1YiM/1H8E4m88jS23mr\nCQSEQaD/LVSyarKAVuTrYhjizl/Emez1DXMchkF33epQL8NLJbBd6Eh65KSd\nZXb6JpH1kxeopNCXwDlHgSmrN7wTb0HakUClmctPVAeOP4ZBJqcnYsiA9b69\n1RZywOnyZ0fOR/kjP5YlJmgKalgmq5JXpx6L9Yrl66fyMYLy0bdY0u1XcKFM\n7ocHpvlx7j1HzTONPoRGEzc0fPtKx9SNjGrUhxkuN7A50llGIc5/e+jdQFeu\n0YS4Ra0v4NxjlIh5V8tWwm/1fzn4iVWZhC5cbxQPfDhX1kLcbc6YnzXRfWka\nX5yyFUW3LOsFcxBu21UxSaB29QG9+3tDKbIsVA1p820WtblPBaoRSK3hTzEJ\nxznNsPfcAH5WusTBFYDHb1rdwjpW3NDx0t3ud4kMOTgmAlTt39IMwyvWgZ66\naJNPgi5pHg5fmIo/vfTHcnRQK7abpDLQUqYewOJzc2z2fs5BQ4kNl/Mv+JI3\npRRG/6c7BVAKb6oG8zWLIFBS4w/VPnXv1qhdbGjQNB0qtgi7X0d5B6I30374\n2o9FWhhniL0IVFyVasTYrP+mRxZaAfSKKdZNC+ahXcdlyzlZaLuBesm0nqpQ\nBkI97iwFmbFfaMG+C5+E85QX4sEu7noiWiaER1pDbXn6Ix8d9zzpJUh+LyaE\nRVU4\r\n=b6CY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHbCw5UeGocvKpBmfynD/PqVG0YZjdNLAlwR2zb4gjk9AiAlWuQyaDJdQxxSS8E45vbSFNLeqGOzBFsqKyJbAtQUEQ=="}],"size":3168,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-2.0.0.tgz"},"maintainers":[{"name":"ndelangen","email":"ndelangen@me.com"}],"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/corejs-upgrade-webpack-plugin_2.0.0_1560434593228_0.7196419918272099"},"_hasShrinkwrap":false,"readme":"# CoreJS Upgrade Webpack Plugin\n\nI wrote this to ensure the latest version of core-js is used everywhere in an application.\n\nSometimes you're depending on components or libraries that haven't updated yet, and this can increase bundle-size, or even break your app if these dependencies didn't have core-js as a dependency themselves.\n\nThis Webpack Plugin will essentially do a search and replace on all requires and if the require path matches `/core-js/` it will try and resolve the require.\nIf it can, nothing happens. If the resolve fails (this would normally break your app) this plugin tries to map the old core-js path to the new path structure, and resolve that instead.\n\nThis plugin will allow you to specify a `resolveFrom` option, so you can resolve core-js from any path you'd like.\nThis is useful if you know there are going to be multiple core-js version installed, and you want to pick a specific one installed somewhere.\n\n## Install\n\n```sh\nyarn add corejs-upgrade-webpack-plugin\n```\n\n## Usage\n\nsimple example:\n\n```js\nimport CoreJSUpgradeWebpackPlugin from 'corejs-upgrade-webpack-plugin';\n\n// add this to your webpack.plugins config\nnew CoreJSUpgradeWebpackPlugin();\n```\n\nexample with options:\n\n```js\nimport CoreJSUpgradeWebpackPlugin from 'corejs-upgrade-webpack-plugin';\n\n// add this to your webpack.plugins config\nnew CoreJSUpgradeWebpackPlugin({\n  resolveFrom: [process.cwd()],\n});\n```\n","publish_time":1560434593329,"_cnpm_publish_time":1560434593329,"dist-tags":{"latest":"4.0.1"}}