{"name":"corejs-upgrade-webpack-plugin","version":"3.0.1","description":"a webpack plugin that transforms core-js v2 paths to core-js v3 paths","keywords":["core-js","path","resolve","transform","webpack"],"homepage":"https://github.com/ndelangen/corejs-upgrade-webpack-plugin","bugs":{"url":"https://github.com/ndelangen/corejs-upgrade-webpack-plugin/issues"},"repository":{"type":"git","url":"git+https://github.com/ndelangen/corejs-upgrade-webpack-plugin.git"},"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":{"core-js":"^2.6.10","babel-runtime":"^6.26.0","resolve-from":"^5.0.0","webpack":"^4.38.0"},"devDependencies":{"@babel/cli":"^7.5.0","@babel/core":"^7.5.0","@babel/preset-env":"^7.5.0","@babel/preset-typescript":"^7.3.0","@types/webpack":"^4.32.0","eslint":"^6.1.0","jest":"^24.8.0","typescript":"^3.5.3"},"gitHead":"fc37932c215279f16ae8fa4468744cbd2c66a168","_id":"corejs-upgrade-webpack-plugin@3.0.1","_nodeVersion":"10.18.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-JOP0BEwopmYo9GIambvZoWKnioiFttoZ5euHceU1RRvj+Z94xOSSH/wcq17eSwIZzHRtMvoBdBvWvZ/vHq48Rw==","shasum":"40b2ec86ebc7fc92cde78bb64080d2c08e7ef340","tarball":"http://registry-npm.ywwl.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-3.0.1.tgz","fileCount":8,"unpackedSize":16216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/TcWCRA9TVsSAnZWagAAanIQAJBr9489QqwZ9FLEQQGE\nPiDQQSAwmIcqTbmwqEdyBjx4STkcdnXAGf1kJRlDDsY8xDaeUyD8p+O2yHGy\nkm2MG7w7dISy5qS6ATs4CwkQ18oeCcsazfY60Lb3HRm+gr3On6CR8LoQ9F+j\nr/SRfz4ZcMUy4BOoKp93NVms3TajK9CfEWS90fptv/wNpDppeix4N2+IGC/L\n37b3KgKyap6Dcy5YKyICrXH/TqrDvJj80CnId3PTHFO7XyP8wkbFnBxPXYeM\nCet8IQeMz0ZdSpeSnO3Gt7Tbjz9/MdEQWxMPx76cf48r/ROxKLCnnCg1RoE/\nObr4VaWpq+SVlx0P5nY7eMC6Ar+ZB8IN8SVn9VeZRrRi5cOKA2LN06dmDoYR\nLsOd7KlTz0XWVFwgKS0U8XjdnDM1tFEtl1ve/SaaRMWehlyvaMPqrjMRWoTy\nSXhcvLbYhrrjeDwHs5yQ/GK+k3agvqCeQ3IGm4a3c7/9j932/dZog8x+Ssao\nLzFpqhiTAhO2SbEmqefcPT8k93XOUfOL5kZnRPZkx/QxtbQaRyAXhmcor8NE\n5uxblb/WIutMKD6Htq8xYa4egEsejNdxAx60x5pl0t0192iXC2UBvF/GvxZi\nip3UBQgOah55cM9OLDSQKijZf5Ak0NPMA4YbxnXgh6dO+EGCru4GYdW7el/X\nGh0e\r\n=VPw3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCR9jCkJADNjaMR1skFiFe40WmYBKhQ5geurgna8KsS4wIhALzlbkfyxf4N8YTXvn6zHWeKUADay6vfY1/pdFN0RyRk"}],"size":3589,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-3.0.1.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_3.0.1_1576875798387_0.21373519923538087"},"_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":1576875798479,"_cnpm_publish_time":1576875798479,"dist-tags":{"latest":"4.0.1"}}