{"name":"corejs-upgrade-webpack-plugin","version":"2.1.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":"5dc8f3167bdaa5e962b7078b5b54110bc0bb98c7","_id":"corejs-upgrade-webpack-plugin@2.1.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-gc+S4t8VT9YFSgOPrhZlD6kDoGZtUq71QwXxS2neGNPhli0veKhbzzilODIpy73TjXGUrCHCpevK8vBnzUPuhw==","shasum":"6afa44672486353ae639c297548c0686b64fb325","tarball":"http://registry-npm.ywwl.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-2.1.0.tgz","fileCount":7,"unpackedSize":14801,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdC45dCRA9TVsSAnZWagAAsgwP/0M7bdhqhfeVeDw3sqsX\nIL3/USxy33R3BjlIhEhwTT129xQ6ilXuy+qf8jQMfYrJF0pFUjXnqbs+dyKg\n+OACGWkXWUAN6VKFF1q+zRQlQJkWVawkSTAV6o4jQ5Ibl4/1GnvD3+7CgDJ4\nAN0/NmZVu7N1BCMBY15JbZ0w1CwlK1GbOXS1Xntk9xXI7wYRw4fGGJV6nJC/\nRUeO7q34XhZ5f9ZA4sJfXSSm9qiBLpEnpwERlGCwFHg0ve2glq9dJkObP+rs\nTNzNznhJZqKuh7SLN8hsHtHuWDsVdFQmbm2swTVML44Sx4Imk+EMwehwVX+V\n0UVhINsjXOIEUK/B5ppgpMvqtEzG+RJCREc+XzAR+eaRYaPHP9KPGTPT8j1y\n4yulUmzJuaF6JdZMZsn9imAxUjEp9/XGR29yuwC3wxZ3CCUxLjDDkZntooOW\nF32TjCl/0wYwoL33OiMWUN2hH3ONQjulfmNruOTemo326PS72pS+0DdsAHmO\nxiD0GIIgiorwiouGjo7G1nsAgZydhZvh4DhqAqdJQSOPWaDl5BLX7+L5BNxt\nF3XaD4RbUl3cGh2Qxcpkdc56k3O1OwI2nxbxjF2zEHrS3xpByD2EIKm56cHY\nwg/pRzpDtglwWHc4MiBoLZiTppGqvLI+sDfCg9AG+oDwwRwDFHp0msk5BKL6\ndjP6\r\n=1J36\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBbaCjnIi4DS2sZsHF1v1diIBzF3UtQxqN2zO9pgtMl3AiBvbJnUmp8fcV08q7bhGki+P/obgU9hyOtdWP1C3WPcBw=="}],"size":3326,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-2.1.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.1.0_1561038428415_0.1571011514728331"},"_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":1561038428604,"_cnpm_publish_time":1561038428604,"dist-tags":{"latest":"4.0.1"}}