File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Usage
2
2
3
3
> :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 ) .
5
5
6
6
First, require the polyfill at the entry point of your application
7
7
``` js
8
- require ( ' @babel/polyfill ' ) ;
8
+ require ( ' regenerator-runtime/runtime ' ) ;
9
9
// or
10
- import ' @babel/polyfill ' ;
10
+ import ' regenerator-runtime/runtime ' ;
11
11
```
12
12
13
13
Then, import the library where needed
Original file line number Diff line number Diff line change 8
8
" test/src/**/*"
9
9
],
10
10
"require" : [
11
- " @babel/polyfill " ,
11
+ " regenerator-runtime/runtime " ,
12
12
" @babel/register"
13
13
],
14
14
"timeout" : " 1m"
You can’t perform that action at this time.
0 commit comments