{"name":"babel-plugin-polyfill-corejs3","version":"0.11.0","description":"A Babel plugin to inject imports to core-js@3 polyfills","repository":{"type":"git","url":"git+https://github.com/babel/babel-polyfills.git","directory":"packages/babel-plugin-polyfill-corejs3"},"license":"MIT","publishConfig":{"access":"public"},"main":"lib/index.js","exports":{".":[{"import":"./esm/index.mjs","default":"./lib/index.js"},"./lib/index.js"],"./package.json":"./package.json"},"keywords":["babel-plugin"],"dependencies":{"@babel/helper-define-polyfill-provider":"^0.6.3","core-js-compat":"^3.39.0"},"devDependencies":{"@babel/core":"^7.22.6","@babel/helper-plugin-test-runner":"^7.22.5","@babel/plugin-proposal-decorators":"^7.22.15","@babel/plugin-transform-class-properties":"^7.22.5","@babel/plugin-transform-classes":"^7.22.6","@babel/plugin-transform-for-of":"^7.22.5","@babel/plugin-transform-modules-commonjs":"^7.22.5","@babel/plugin-transform-runtime":"^7.22.15","@babel/plugin-transform-spread":"^7.22.5","core-js":"^3.39.0","core-js-pure":"^3.39.0"},"peerDependencies":{"@babel/core":"^7.4.0 || ^8.0.0-0 <8.0.0"},"gitHead":"66340fb145086a826c496f008f67488367846c09","bugs":{"url":"https://github.com/babel/babel-polyfills/issues"},"homepage":"https://github.com/babel/babel-polyfills#readme","_id":"babel-plugin-polyfill-corejs3@0.11.0","_nodeVersion":"22.9.0","_npmVersion":"lerna/3.22.0/node@v22.9.0+x64 (linux)","dist":{"integrity":"sha512-5Kp2G1M3qTECkShvOgvDwBNm+5eh8XaDswzkncgrWPmbhFmsS1FO7LKhnAXSBMDc3Zw3iBHsF5xeHV3rNM3SuQ==","shasum":"0affeda895210425925d90a79613f48720308854","tarball":"http://registry-npm.ywwl.com/babel-plugin-polyfill-corejs3/download/babel-plugin-polyfill-corejs3-0.11.0.tgz","fileCount":15,"unpackedSize":219687,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEZhJFeXrdkSz0yKcsKYf3eEdkT9dvVWH6vQNnoe58cSAiEAzDeh7yu2K/RSh7YeoWj0kTwLRBRrcMvaG+z6WIpQTwI="}],"size":49477,"noattachment":false,"key":"/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.11.0.tgz"},"_npmUser":{"name":"nicolo-ribaudo","email":"nicolo.ribaudo@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-polyfill-corejs3_0.11.0_1731351014308_0.461181273270282"},"_hasShrinkwrap":false,"readme":"# babel-plugin-polyfill-corejs3\n\n## Install\n\nUsing npm:\n\n```sh\nnpm install --save-dev babel-plugin-polyfill-corejs3\n```\n\nor using yarn:\n\n```sh\nyarn add babel-plugin-polyfill-corejs3 --dev\n```\n\n## Usage\n\nAdd this plugin to your Babel configuration:\n\n```json\n{\n  \"plugins\": [[\"polyfill-corejs3\", { \"method\": \"usage-global\", \"version\": \"3.20\" }]]\n}\n```\n\nThis package supports the `usage-pure`, `usage-global`, and `entry-global` methods.\nWhen `entry-global` is used, it replaces imports to `core-js`.\n\n## Options\n\nSee [here](../../docs/usage.md#options) for a list of options supported by every polyfill provider.\n\n### `version`\n\n`string`, defaults to `\"3.0\"`.\n\nThis option only has an effect when used alongside `\"method\": \"usage-global\"` or `\"method\": \"usage-pure\"`. It is recommended to specify the minor version you are using as `core-js@3.0` may not include polyfills for the latest features. If you are bundling an app, you can provide the version directly from your node modules:\n\n```js\n{\n  plugins: [\n    [\"polyfill-corejs3\", {\n      \"method\": \"usage-pure\",\n      // use `core-js/package.json` if you are using `usage-global`\n      \"version\": require(\"core-js-pure/package.json\").version\n    }]\n  ]\n}\n```\n\nIf you are a library author, specify a reasonably modern `core-js` version in your\n`package.json` and provide the plugin the minimal supported version.\n\n```json\n{\n  \"dependencies\": {\n    \"core-js\": \"^3.20.0\"\n  }\n}\n```\n```js\n{\n  plugins: [\n    [\"polyfill-corejs3\", {\n      \"method\": \"usage-global\",\n      // improvise if you have more complicated version spec, e.g. > 3.1.4\n      \"version\": require(\"./package.json\").dependencies[\"core-js\"]\n    }]\n  ]\n}\n```\n\n### `proposals`\n\n`boolean`, defaults to `false`.\n\nThis option only has an effect when used alongside `\"method\": \"usage-global\"` or `\"method\": \"usage-pure\"`. When `proposals` are `true`, any ES proposal supported by core-js will be polyfilled as well.","publish_time":1731351014483,"maintainers":[{"name":"nicolo-ribaudo","email":"nicolo.ribaudo@gmail.com"}],"_cnpm_publish_time":1731351014483,"dist-tags":{"latest":"1.0.0","next":"1.0.0-rc.2"}}