File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Usage
2
2
The code needs a ES2015+ polyfill to work, for example
3
- [ @ babel/polyfill ] ( https://babeljs.io/docs/usage/polyfill ) .
3
+ [ regenerator-runtime/runtime ] ( https://babeljs.io/docs/usage/polyfill ) .
4
4
``` js
5
- require ( ' @babel/polyfill ' ) ;
5
+ require ( ' regenerator-runtime/runtime ' ) ;
6
6
// or
7
- import ' @babel/polyfill ' ;
7
+ import ' regenerator-runtime/runtime ' ;
8
8
```
9
9
10
10
Then
Original file line number Diff line number Diff line change 5
5
"author" :
" Aurélien Ooms <[email protected] >" ,
6
6
"ava" : {
7
7
"require" : [
8
- " @babel/polyfill " ,
8
+ " regenerator-runtime/runtime " ,
9
9
" @babel/register"
10
10
],
11
11
"files" : [
81
81
"@aureooms/js-random" : " 2.0.0" ,
82
82
"@babel/cli" : " 7.12.10" ,
83
83
"@babel/core" : " 7.12.10" ,
84
- "@babel/polyfill" : " 7.12.1" ,
85
84
"@babel/preset-env" : " 7.12.11" ,
86
85
"@babel/register" : " 7.12.10" ,
87
86
"ava" : " 3.15.0" ,
96
95
"babel-plugin-transform-remove-console" : " 6.9.4" ,
97
96
"babel-plugin-unassert" : " 3.0.1" ,
98
97
"babel-preset-power-assert" : " 3.0.0" ,
99
- "power-assert" : " 1.6.1"
98
+ "power-assert" : " 1.6.1" ,
99
+ "regenerator-runtime" : " 0.13.7"
100
100
},
101
101
"files" : [
102
102
" lib"
You can’t perform that action at this time.
0 commit comments