{"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":{"integrity":"sha512-WWZ7X0ly4TpnyoNypDNqQtq55Dyq2525iz5wD2Zq5mBC3qxIKY9Mm1Tfqf6xJxvQ1At9eC8i8aN5vLr444cunw==","shasum":"6f54085a60da28e60c62d551dbd899812d16ad57","tarball":"http://registry-npm.ywwl.com/corejs-upgrade-webpack-plugin/download/corejs-upgrade-webpack-plugin-1.0.1.tgz","fileCount":7,"unpackedSize":11661,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/6mRCRA9TVsSAnZWagAAU3YQAJaDclzUs3RoPrgMtkdu\natJicZooz2MCVwhC6GXkJWfHXJv6v2SJEsad9DTAI0GSeFDHZ+ip4qStBIlF\nPkuzz+7H0z6okHjMCbUkkXfYUZZfPhqtWm4inTyQ20WhVTMKObAhpPoQT5ZB\nLpHW3WILRa/ewshtLMRKxOp58UsAsL+qV0KQcrQCAKdN83SZZBoCP37b6/tO\nANQVC3catdmTVLhlTLkqaGLjhqb3HlOhO4pG673dYy+edzQYPu0AuuImbRQn\n+Y8jCRumirT/MEQtERHyauiR3vZ/+Al5WVWD0Hu1Zo4JmXQ4zRzaLxqFvfP6\nJlippJADSeSe6lcGQh4YYqhM2ppiCPl1KNW0hKWwjIFe0aCQykUNVGcZBZGy\nirMM+LMtpNTil7MHml/8mOmy3KfE7IZlvWpAmjkFy28pkcGJj/QMMuJLZ9mP\nr5nWQ3L5EuODZgxDCU2F/hrGdj50fN7t16PzYJXDOVVYXmz2+pLQjis0tqFr\n6cpAoMWWps+1qb6Dl5SzaMEm8DfIuwTL6uwrwaZRgmN297PLw20v24FNyy+A\nBVsQh9L/Za3VXfvwR6NWUTh89ctjSus04VwdH9eI5olNJAggIGfyfdhogOcm\nlkuqCQ9ANl4itwV2sZufrxiQrurSiAchyf7R+FZ31FIkrQgQA0p5ekjAQQBm\nCkqo\r\n=WWtk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICRtdv+Q23h+odbGDiTtEKF8I8tfKNn24Wj9d1J+CcNaAiEA24NxJHyVHeH9/tX3n8NSUV7K1UphItbEnIb+2XxBc/s="}],"size":2859,"noattachment":false,"key":"/corejs-upgrade-webpack-plugin/-/corejs-upgrade-webpack-plugin-1.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_1.0.1_1560258960556_0.8148560744726321"},"_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":1560258960670,"_cnpm_publish_time":1560258960670,"dist-tags":{"latest":"4.0.1"}}