{"_id":"corejs-upgrade-webpack-plugin","_rev":"471575","name":"corejs-upgrade-webpack-plugin","description":"a webpack plugin that transforms core-js v2 paths to core-js v3 paths","dist-tags":{"latest":"4.0.1"},"maintainers":[{"name":"ndelangen","email":""}],"time":{"modified":"2021-08-05T08:20:33.000Z","created":"2019-06-11T12:00:09.488Z","4.0.1":"2020-03-27T08:53:58.747Z","4.0.0":"2020-03-27T08:50:57.898Z","3.0.1":"2019-12-20T21:03:18.479Z","3.0.0":"2019-12-16T20:37:18.499Z","2.2.0":"2019-07-29T14:24:02.044Z","2.1.0":"2019-06-20T13:47:08.604Z","2.0.0":"2019-06-13T14:03:13.329Z","1.0.1":"2019-06-11T13:16:00.670Z","1.0.0":"2019-06-11T12:00:09.488Z"},"users":{},"author":{"name":"Norbert de Langen","email":"ndelangen@me.com"},"repository":{"type":"git","url":"git+https://github.com/ndelangen/corejs-upgrade-webpack-plugin.git"},"versions":{"4.0.1":{"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":{"shasum":"c29d61099418b77f17a8b57066d8f71abcbb64c1","size":3621,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-4.0.1.tgz"},"maintainers":[{"name":"ndelangen","email":""}],"_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,"publish_time":1585299238747,"_cnpm_publish_time":1585299238747},"4.0.0":{"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":{"shasum":"d8968c2ff70c0689e4990fea1b17f4ff06f24beb","size":3614,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-4.0.0.tgz"},"maintainers":[{"name":"ndelangen","email":""}],"_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,"publish_time":1585299057898,"_cnpm_publish_time":1585299057898},"3.0.1":{"name":"corejs-upgrade-webpack-plugin","version":"3.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":{"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":"fc37932c215279f16ae8fa4468744cbd2c66a168","_id":"corejs-upgrade-webpack-plugin@3.0.1","_nodeVersion":"10.18.0","_npmVersion":"6.13.4","dist":{"shasum":"40b2ec86ebc7fc92cde78bb64080d2c08e7ef340","size":3589,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-3.0.1.tgz"},"maintainers":[{"name":"ndelangen","email":""}],"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/corejs-upgrade-webpack-plugin_3.0.1_1576875798387_0.21373519923538087"},"_hasShrinkwrap":false,"publish_time":1576875798479,"_cnpm_publish_time":1576875798479},"3.0.0":{"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":{"shasum":"d357c6143548c0cb4b55d07ceda737a10f0758dd","size":99688,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-3.0.0.tgz"},"maintainers":[{"name":"ndelangen","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/corejs-upgrade-webpack-plugin_3.0.0_1576528638236_0.2931756696415322"},"_hasShrinkwrap":false,"publish_time":1576528638499,"_cnpm_publish_time":1576528638499},"2.2.0":{"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":{"shasum":"503293bf1fdcb104918eb40d0294e4776ad6923a","size":3429,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-2.2.0.tgz"},"maintainers":[{"name":"ndelangen","email":""}],"_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,"publish_time":1564410242044,"_cnpm_publish_time":1564410242044},"2.1.0":{"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":{"shasum":"6afa44672486353ae639c297548c0686b64fb325","size":3326,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-2.1.0.tgz"},"maintainers":[{"name":"ndelangen","email":""}],"_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,"publish_time":1561038428604,"_cnpm_publish_time":1561038428604},"2.0.0":{"name":"corejs-upgrade-webpack-plugin","version":"2.0.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":"1f0ebdae72f06fa4a0be86491af798fd63524faf","_id":"corejs-upgrade-webpack-plugin@2.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"shasum":"adc05c9db427d87062c981373d28d4d174ddffcd","size":3168,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-2.0.0.tgz"},"maintainers":[{"name":"ndelangen","email":""}],"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/corejs-upgrade-webpack-plugin_2.0.0_1560434593228_0.7196419918272099"},"_hasShrinkwrap":false,"publish_time":1560434593329,"_cnpm_publish_time":1560434593329},"1.0.1":{"name":"corejs-upgrade-webpack-plugin","version":"1.0.1","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":"4ff325ee1798c24cf37937b304dc17c3dff817c0","_id":"corejs-upgrade-webpack-plugin@1.0.1","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"shasum":"6f54085a60da28e60c62d551dbd899812d16ad57","size":2859,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-1.0.1.tgz"},"maintainers":[{"name":"ndelangen","email":""}],"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/corejs-upgrade-webpack-plugin_1.0.1_1560258960556_0.8148560744726321"},"_hasShrinkwrap":false,"publish_time":1560258960670,"_cnpm_publish_time":1560258960670},"1.0.0":{"name":"corejs-upgrade-webpack-plugin","version":"1.0.0","description":"a webpack plugin that transforms core-js v2 paths to core-js v3 paths","keywords":["core-js","webpack","transform","path","resolve"],"license":"MIT","author":{"name":"Norbert de Langen","email":"ndelangen@me.com"},"main":"dist/index.js","scripts":{"prepublish":"npm run build","build":"babel src -d dist --extensions '.ts'","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"},"_id":"corejs-upgrade-webpack-plugin@1.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"shasum":"7821c5ca8f85cf49e91db9d6300c825cbbf081bb","size":2608,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-1.0.0.tgz"},"maintainers":[{"name":"ndelangen","email":""}],"_npmUser":{"name":"ndelangen","email":"ndelangen@me.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/corejs-upgrade-webpack-plugin_1.0.0_1560254408830_0.728853776248789"},"_hasShrinkwrap":false,"publish_time":1560254409488,"_cnpm_publish_time":1560254409488}},"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","_attachments":{},"homepage":"https://github.com/ndelangen/corejs-upgrade-webpack-plugin","bugs":{"url":"https://github.com/ndelangen/corejs-upgrade-webpack-plugin/issues"},"license":"MIT"}