# babel-plugin-polyfill-corejs2

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

Latest version **0.4.17** (published 2026-03-16) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.17 |
| Published | 2026-03-16 |
| First published | 2020-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 80.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 357 |
| Maintainers | nicolo-ribaudo |
| Keywords | babel-plugin |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-polyfill-corejs2
- 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-corejs2

## Dependencies (3)

- [semver](https://npm.io/package/semver.md) ^6.3.1
- [@babel/compat-data](https://npm.io/package/@babel/compat-data.md) ^7.28.6
- [@babel/helper-define-polyfill-provider](https://npm.io/package/@babel/helper-define-polyfill-provider.md) ^0.6.8

## 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

- 0.4.17 (latest) — 2026-03-16
- 0.4.16 — 2026-03-06
- 0.4.15 — 2026-01-23
- 0.4.14 — 2025-06-27
- 0.4.13 — 2025-03-19
- 0.4.12 — 2024-11-11
- 0.4.11 — 2024-04-22
- 0.4.10 — 2024-03-12
- 0.4.9 — 2024-03-08
- 0.4.8 — 2024-01-18
- 0.4.7 — 2023-12-11
- 0.4.6 — 2023-10-11
- 0.4.5 — 2023-07-21
- 0.4.4 — 2023-07-05
- 0.4.3 — 2023-05-26
- … 31 more at https://npm.io/package/babel-plugin-polyfill-corejs2/versions

## README

# babel-plugin-polyfill-corejs2

## Install

Using npm:

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

or using yarn:

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

## Usage

Add this plugin to your Babel configuration:

```json
{
  "plugins": [["polyfill-corejs2", { "method": "usage-global" }]]
}
```

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

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