{"name":"corejs-upgrade-webpack-plugin","version":"2.2.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":"5f06156e97a2aaf23aa59b1c46337e8619cec02b","_id":"corejs-upgrade-webpack-plugin@2.2.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-J0QMp9GNoiw91Kj/dkIQFZeiCXgXoja/Wlht1SPybxerBWh4NCmb0pOgCv61lrlQZETwvVVfAFAA3IqoEO9aqQ==","shasum":"503293bf1fdcb104918eb40d0294e4776ad6923a","tarball":"http://registry-npm.ywwl.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-2.2.0.tgz","fileCount":7,"unpackedSize":15303,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdPwGCCRA9TVsSAnZWagAATRsQAIdv4vh/KLF1H2YB/pbh\n6DO6R7pQUG4tN7Qte0BWm4c+tP6P96v1+3OogfQDYm7fRIhHbvff3HUibOeg\nUFasOSZpNkblH6uKI1o632OnTWVN4RToa615nCl+HjbFD37Ebou5IyRkOs9h\nWVPOJxafEw0hznATS4R9RWmFPcjvkXUidaAlCjbaFqtyoo9CR7XEckBiXrGj\nygekKJz3/AUhTUiZ+s8UffhnhNfNIyjbctgXS4T5M8bBDvd1icOgfcZPTvEz\nTNZ7UtWs9vWgVZfuK2I3Vu2urwV16lOsTJmoMsNdQ/QLfOGx9dvk7s9bXbha\nx/s0uPK9oTnr/qm0mK3BWxuvZd53dVwkWhtzxSk3E399hIrF4pVYNLUkEaFg\n3LbFZkZrci+MmufJ3QHKIv3SR8hNii5tPwfmPIeclgD104QOqig7DAQSykoj\naJyStyi4oPVzdVluWneAdSLjuUXgXtbx4vxGJFlrWePLVqwcnNngLbJG70Kk\nekpFNxj1XuTlIKd5JMosfZ5oskRHoUxnxCT39Z6pASMAaxYXCZsWxFPDxRoj\nTcX4NmZSSLsEZb1c5oExGWIdAU2bGSlJVpIi+srKP1lxAnUOzkv7MRAPap69\nxAFtpx289f5tkfw675hXGmr9K4M8EfUzt3IbqOwxQYjUEny19N2A6zmJjeUL\nEk80\r\n=1pR4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM75bSrpfwdN6mK6EyiYr+6xMGN/sMgxYdqUbMMytexQIhAMYTmFIMVdyrGf2CcqOo3T4re2oo7RPpVEHGox7jMEIt"}],"size":3429,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-2.2.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.2.0_1564410241877_0.8976968494197943"},"_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":1564410242044,"_cnpm_publish_time":1564410242044,"dist-tags":{"latest":"4.0.1"}}