Urara-Blog/node_modules/.pnpm-store/v3/files/37/e9283ab2c24da6b6a9791fae1cc569d88c140d1745220b711e7c03ae258b4e30c31fd946b6b6639cb4b6e976ed1b1049644bbe6a893b39ce8ac24dc75203f1
2022-08-14 01:14:53 +08:00

28 lines
479 B
Text

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