# babel-plugin-polyfill-corejs3

> A Babel plugin to inject imports to core-js@3 polyfills

Latest version **1.0.0** (published 2026-06-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-polyfill-corejs3
pnpm add babel-plugin-polyfill-corejs3
yarn add babel-plugin-polyfill-corejs3
bun add babel-plugin-polyfill-corejs3
```

## Health

**Score 50/100 (C)** — status: active.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2026-06-17 |
| First published | 2020-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^20.19.0 \|\| >=22.12.0 |
| Dependencies | 2 |
| Unpacked size | 313.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 356 |
| Maintainers | nicolo-ribaudo |
| Keywords | babel-plugin |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-polyfill-corejs3
- Repository: https://github.com/babel/babel-polyfills
- Homepage: https://github.com/babel/babel-polyfills#readme
- Issues: https://github.com/babel/babel-polyfills/issues
- npm.io page: https://npm.io/package/babel-plugin-polyfill-corejs3

## Dependencies (2)

- [core-js-compat](https://npm.io/package/core-js-compat.md) ^3.48.0
- [@babel/helper-define-polyfill-provider](https://npm.io/package/@babel/helper-define-polyfill-provider.md) ^1.0.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2026-06-17
- 1.0.0-rc.2 (next) — 2026-04-10
- 1.0.0-rc.1 — 2026-04-10
- 0.14.2 — 2026-03-16
- 0.14.1 — 2026-03-06
- 0.14.0 — 2026-01-23
- 0.13.0 — 2025-06-27
- 0.12.0 — 2025-03-19
- 0.11.1 — 2025-01-24
- 0.11.0 — 2024-11-11
- 0.10.6 — 2024-08-04
- 0.10.4 — 2024-03-20
- 0.10.3 — 2024-03-20
- 0.10.2 — 2024-03-20
- 0.10.1 — 2024-03-12
- … 43 more at https://npm.io/package/babel-plugin-polyfill-corejs3/versions

## README

# babel-plugin-polyfill-corejs3

## Install

Using npm:

```sh
npm install --save-dev babel-plugin-polyfill-corejs3
```

or using yarn:

```sh
yarn add babel-plugin-polyfill-corejs3 --dev
```

## Usage

Add this plugin to your Babel configuration:

```json
{
  "plugins": [["polyfill-corejs3", { "method": "usage-global", "version": "3.48" }]]
}
```

This package supports the `usage-pure`, `usage-global`, and `entry-global` methods.
When `entry-global` is used, it replaces imports to `core-js`.

## Options

See [here](../../docs/usage.md#options) for a list of options supported by every polyfill provider.

### `version`

`string`, defaults to `"3.0"`.

This 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:

```js
{
  plugins: [
    ["polyfill-corejs3", {
      "method": "usage-pure",
      // use `core-js/package.json` if you are using `usage-global`
      "version": require("core-js-pure/package.json").version
    }]
  ]
}
```

If you are a library author, specify a reasonably modern `core-js` version in your
`package.json` and provide the plugin the minimal supported version.

```json
{
  "dependencies": {
    "core-js": "^3.48.0"
  }
}
```
```js
{
  plugins: [
    ["polyfill-corejs3", {
      "method": "usage-global",
      // improvise if you have more complicated version spec, e.g. > 3.1.4
      "version": require("./package.json").dependencies["core-js"]
    }]
  ]
}
```

### `proposals`

`boolean`, defaults to `false`.

This 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.

---
_Source: https://npm.io/package/babel-plugin-polyfill-corejs3 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
