Skip to content

Commit 887bf2d

Browse files
🤖 docs: Reference regenerator-runtime instead of @babel/polyfill.
Replace all references to @babel/polyfill by references to regenerator-runtime/runtime. These changes were automatically generated by a transform whose code can be found at: - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/9b50c2a1d7e9ab7b4bc9c9ff88892e98c5f62244/src/transforms/docs:replace-scoped-babel-polyfill-with-regenerator-runtime.js Please contact the author of the transform if you believe there was an error.
1 parent 6bb9ddc commit 887bf2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/manual/usage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Usage
22

33
> :warning: The code needs a ES2015+ polyfill to run (`regeneratorRuntime`),
4-
> for instance [@babel/polyfill](https://babeljs.io/docs/usage/polyfill).
4+
> for instance [regenerator-runtime/runtime](https://babeljs.io/docs/usage/polyfill).
55
66
First, require the polyfill at the entry point of your application
77
```js
8-
require( '@babel/polyfill' ) ;
8+
require( 'regenerator-runtime/runtime' ) ;
99
// or
10-
import '@babel/polyfill' ;
10+
import 'regenerator-runtime/runtime' ;
1111
```
1212

1313
Then, import the library where needed

0 commit comments

Comments
 (0)