{"name":"corejs-upgrade-webpack-plugin","version":"4.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":{"babel-runtime":"^6.26.0","core-js":"^3.6.4","resolve-from":"^5.0.0","webpack":"^4.42.1"},"devDependencies":{"@babel/cli":"^7.8.4","@babel/core":"^7.9.0","@babel/preset-env":"^7.9.0","@babel/preset-typescript":"^7.9.0","@types/webpack":"^4.41.8","eslint":"^6.8.0","jest":"^25.2.3","typescript":"^3.8.3"},"gitHead":"772b590f9c9c2b1860e9f0fad231ce1a245113ee","_id":"corejs-upgrade-webpack-plugin@4.0.1","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-hQl/FyyCuo9pQloW2zNaRpb2GZBb4JaULICUArLDR3O4bPqDZHAXbVov1O+UEfKPb9lqXrRL1miDIXZVO3AN9Q==","shasum":"c29d61099418b77f17a8b57066d8f71abcbb64c1","tarball":"http://registry-npm.ywwl.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-4.0.1.tgz","fileCount":8,"unpackedSize":16281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefb8mCRA9TVsSAnZWagAAQNcP/izCxZA2KZNG7dDsxzr6\nlpLrMsO3polrcHSR8GfAhzMON6ECQWg7WpfZv8egZxHcUBsfWyiHHTgCx0Xr\nP5WcInInHxvWDpRNE6pI4ANOxLM/K1s5805SumhcUnC0wWb3Txanks47mJfH\nhvE3Kj6vSs5rrHE0XkcjjfmYBnt2R1rU4WWWLFLspt5YbWujzMmA3D/yRyJ9\nimb9I/3ES/GGZFrntwSDvG73xJEp26pwAZ+BuVbJRKtljoqv4OSOHFDrMcmu\nB/f4VFTYY1I4AnRwtlhSXoC/RktQeGVBdar+JrjFDloA8Ke7F4M5SwXa94pa\nqLla6DKIDrAQ22XhPhmkobsXh1pIVTukJ3i9xkOcnCmaAcdWbGlgC7bbmRJq\njG6vH0zI2FG+KFeeW6b4Ual0ymkp9Hd2YaWMfgJg2ALzMCAvIcvVMBgx8W/e\nPJNU0Cljkd2KCUBBdrSJG1PsRF+n1+62YZekFCMKqOIuTFvRJFNt4chi4Yv2\n/0Erzstw8NqB6x7JJ2P44ITTX9dTY4vDQlPf1c88l8FErUdA81exEvEhDd4+\n4s+18el9YfMIiAOLff9rIufEyqFuLF2nx6r7BcTM0MLln18Se+z8pQLlHLpo\nL7Vcxtz5FGrYfoGSOuKoWZdaMLpeCrqGgmqqUUswtmTSAeJHxpEuuhngZXbH\nPDSm\r\n=1bqH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGjFTGF3Et6nNjaGWuxy5pJ516KVNwpABz4Ai6LccACDAiBtnQtegVscsFgExUPVkrQiFtJf/zkH5vE1VXNxde9b7A=="}],"size":3621,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-4.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_4.0.1_1585299238598_0.11631388473586557"},"_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":1585299238747,"_cnpm_publish_time":1585299238747,"dist-tags":{"latest":"4.0.1"}}