{"name":"corejs-upgrade-webpack-plugin","version":"4.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":{"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":"bcb275803b592673dc2888543d100ee88e4f1bde","_id":"corejs-upgrade-webpack-plugin@4.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-tLHqDCn6Lb2hlipSOkEgMI8/mG4ZOtad4PpcmglIe/2n9udni2g4ZbdDgLsfX8VScGyzADGMTxD1g8+2SGz9qA==","shasum":"d8968c2ff70c0689e4990fea1b17f4ff06f24beb","tarball":"http://registry-npm.ywwl.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-4.0.0.tgz","fileCount":8,"unpackedSize":16282,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefb5yCRA9TVsSAnZWagAAlAkP/10Fx2J2vcU51805An+Q\nR7X4jqNbaQXXRKPwHik2tT7QBF10zpgxuoGsnLeCheHk0JnY0Jb3q1S1ye/Q\nHqtZfhRd1N/QkAUuvhxeBsBjPfjdEqbyvmpQJPGrVQHEC7TQbICcK/ED9+PM\nirfhHkQ3Lri8nFRDjZs7KXtuPm38HyPB1NWrtrumUt67HRag13kOmEF+qlGv\nJPkHYF5vf/d+/RSVmkBrYXd0CQfTxP6Um06RnC8DkRrzDcNgocqkkT/TyViM\nzOGS3IGyadFUyRBTTfhBzl96SVoTChvriWU5XxmKaoY4o1f/dQCxwici2yQ7\nIbZq/aB0FXbouYvyoYpk76M0wtbfv9QLCVQjOB5rUKfnpl0UBxErl0xWf/EP\nK+cQj2kQ0Lxt1/vzY0gnzV/D9kNYbPvQXn+eI1fWggJSjsG0Ho+vqC6wAOeZ\nmmbdmuOsC0/HiJW4QZdW4PlHOUqJ5Z16t57jlDH7vN1Q0ilUW85UH0iEPETK\n+9Jy6RCz/9Mn3OtojQRPBpQcJKNsPwdcJSZ+6UDvJ2N5C+E916KBPjZqM108\nkWb/uMSxEDeIJtaQk+1kYd/J2TGntyQqQUrCrhzYff7kI+sOQBzJLtSe19s8\nYUPrN5EaUL79M/WIoc6+LspXjT/tt7iij8DLr7UseHja9kTSw/D7gmrZenGv\nhapv\r\n=abLD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgm25xDt9lIpiflwT7QdHnAKyRlg2PokbIG0QpMaMBPAIgLdtvNgJS/nIqPUhVHevLBbtHQBg3SEoByvan8LVxkag="}],"size":3614,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-4.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_4.0.0_1585299057754_0.5947485008522597"},"_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":1585299057898,"_cnpm_publish_time":1585299057898,"dist-tags":{"latest":"4.0.1"}}