Urara-Blog/node_modules/.pnpm-store/v3/files/e5/85cc709c88a1770620b474e5360c386d1405a661a04769251f402316bcdfd92133b8ec704c70da8b3026a7fe2899051613131e617ad235bd993dc04cef73d2
2022-08-14 01:14:53 +08:00

28 lines
507 B
Text

# babel-plugin-polyfill-regenerator
## Install
Using npm:
```sh
npm install --save-dev babel-plugin-polyfill-regenerator
```
or using yarn:
```sh
yarn add babel-plugin-polyfill-regenerator --dev
```
## Usage
Add this plugin to your Babel configuration:
```json
{
"plugins": [["polyfill-regenerator", { "method": "usage-global" }]]
}
```
This package supports the `usage-pure`, `usage-global`, and `entry-global` methods.
When `entry-global` is used, it replaces imports to `regenerator-runtime`.