{"name":"corejs-upgrade-webpack-plugin","version":"3.0.0","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":{"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":"0f2350ccc11884e866f2e38853048310d81786d1","_id":"corejs-upgrade-webpack-plugin@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.17.0","_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"dist":{"integrity":"sha512-K6TktA3RjP9k/xMJc+/svEeJTWpCj5p3fCny8LxPhgT1fKJgZq4VVoJVHkgiHMX+JpL649QvK6+7y2IwnXYWww==","shasum":"d357c6143548c0cb4b55d07ceda737a10f0758dd","tarball":"http://registry-npm.ywwl.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-3.0.0.tgz","fileCount":9,"unpackedSize":269299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9+r+CRA9TVsSAnZWagAAMRwP/RMLWxHRVehGzeBrVrJd\nDSKVGmf/G6/37lbs1ViatFtXxoRkWslGQ0aAEPUEZ5f7Grd5uRdwU/4zwt5h\n0kMmAZaNdw2a+DzuaJf8Hl9MAPOCPk6vI6Tjj9/lmR81RbjLvTlZWPowmIuC\nrUW/Pg9Mo60Zu+bVJ+8+CPs4siv1x4zDdc7iBmn/wLEuWsj2E16fda4Ab1pN\nn6o/plQSchh83unalr452zYzV2yCoSMgN/qPSaI+IiKxfF3fcutbnJYYGnQq\nSxzkbbKrEAtjlmIHbNnEu2vNx03xqSVPdzb7fMLCPgawCZTV7F8IVbi4dPuI\nrnYaWHldCgmELXlmy0uUzl4/jC+whH0WMEyGv6Txfbr/RCgt6cXXELRFj8Ss\ns8FV+QnpQlcKhGUxykRdFVLN77bII+uLOOpRVH2MOMSUsmhC0B9s3mkARXDE\nVPGsCJ9RL9dtIin6LQWD4SEtTLj40BWaqiAPDjgmJMXtmNtQZup1GUK2osR8\npwluONGsrSgpPjhXtrbWPTq4+TBATYOvYZ16BX2abS5f062kUwILJu6JG8dm\nE3UhjbJmw1/GQu0sTXSeu1tCZidAehLUhqCW+UblFcglvA98FRs2kSt++/Fe\nQbr6OjFhjb9J5u2cHjT+Ww81jBT/Z2WFLMun/NfT0dRnXsuXEzry64zOBdYp\neeT3\r\n=7sec\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKWxVpk0RVoEdNzh7gwdJbCQbHTl/mucsBXnubJzH/mAIhANzKaAh8QQtNjxvViBr4Yvv56D+A31UqFvHK4ZexnEpZ"}],"size":99688,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-3.0.0.tgz"},"maintainers":[{"name":"ndelangen","email":"ndelangen@me.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/corejs-upgrade-webpack-plugin_3.0.0_1576528638236_0.2931756696415322"},"_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":1576528638499,"_cnpm_publish_time":1576528638499,"dist-tags":{"latest":"4.0.1"}}