{"name":"corejs-upgrade-webpack-plugin","version":"1.0.0","description":"a webpack plugin that transforms core-js v2 paths to core-js v3 paths","keywords":["core-js","webpack","transform","path","resolve"],"license":"MIT","author":{"name":"Norbert de Langen","email":"ndelangen@me.com"},"main":"dist/index.js","scripts":{"prepublish":"npm run build","build":"babel src -d dist --extensions '.ts'","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"},"_id":"corejs-upgrade-webpack-plugin@1.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-6DJ8Mb/Qls/lcFpZc2x+t8/AWoThXwhI+lXfcDdFeZPXEao3ExmgESggK/zixlQ3kIfIAxVJSVdFrAI/fcjOOg==","shasum":"7821c5ca8f85cf49e91db9d6300c825cbbf081bb","tarball":"http://registry-npm.ywwl.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-1.0.0.tgz","fileCount":5,"unpackedSize":10628,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/5fKCRA9TVsSAnZWagAAbW4P/2PDsSXpZwbPdOP+Ejuo\nEIJS7VOlpnrNPu9id0DnySHkvDPwttfJq84qUgOa3AdutHopxGlh5exR/jT0\nYdHgPFSXUrMPcTQbmH/xiH6qq5XIyEfttf5/gUuqrDpONU3XlSOx4IlK2ugN\nDDO8Kj3b/TZpflbA9fxMQfzRnZu5Ounevv/AEFrDISUGNdJhYj5HhEzabYG5\n1XORydOUIqVC/zebYIB+AZAplSgMbwZ8WWehGk3jI/wTMKM10rkXe0CTgJ/q\nDxvPGBQbjMBylokbE5GA/Pf1lMYvF6b8IfFelfNI/ipkvckIX4ncjxkeHHZs\n03RUH/p21f6vUVt/5riMyj11a5NligC9uflRV5pr6n/wuIh3b2GePYSdjf0m\nFwXXKHMPyc+lrvhYP4xDB0VdTmjsFFYjP0qTQB+90by8YqHMsJJJJo4ZQSki\ntCb/3VGe+1WIISVtFBnFu5G5XbBn/DB15oNO5ToID4p+8O7ksAgxM8A6GblA\ncC2WPxAkWHIlqzZFQLJrkepIjPwtF0Gw3UFU+clc4fTVgPzfAoiWDiRE9b2O\n3tpz5IT7Zko7kCHLOI5pKeBNOUyYqG7ZVSeldw0rVDGuvk9LfFEOqVL2f+XK\nTHPjdKvxOl13gY03kTbnSKmWxf9kA7UZoyJpqOv080UELMQD2Qgldhs3e1c5\n1fmv\r\n=NRoS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEwmrWMQDReBttjL4V1Bz6dDuIV2I9eg5U+ZXOH1jX9tAiEA9pAQXxZtujJk8EcR65obcT75dBzB9s5+UbIRpMn721g="}],"size":2608,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-1.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_1.0.0_1560254408830_0.728853776248789"},"_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":1560254409488,"_cnpm_publish_time":1560254409488,"dist-tags":{"latest":"4.0.1"}}