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
3
3
The code needs a ES2015+ polyfill to work, for example
4
- [ @ babel/polyfill ] ( https://babeljs.io/docs/usage/polyfill ) .
4
+ [ regenerator-runtime/runtime ] ( https://babeljs.io/docs/usage/polyfill ) .
5
5
``` js
6
- require ( ' @babel/polyfill ' ) ;
6
+ require ( ' regenerator-runtime/runtime ' ) ;
7
7
// or
8
- import ' @babel/polyfill ' ;
8
+ import ' regenerator-runtime/runtime ' ;
9
9
```
10
10
11
11
Then
Original file line number Diff line number Diff line change 5
5
"author" : " Aurélien Ooms <aurelien.ooms@gmail.com>" ,
6
6
"ava" : {
7
7
"require" : [
8
- " @babel/polyfill " ,
8
+ " regenerator-runtime/runtime " ,
9
9
" @babel/register"
10
10
],
11
11
"files" : [
89
89
"@aureooms/js-string" : " 1.0.0" ,
90
90
"@babel/cli" : " 7.12.8" ,
91
91
"@babel/core" : " 7.12.9" ,
92
- "@babel/polyfill" : " 7.12.1" ,
93
92
"@babel/preset-env" : " 7.12.7" ,
94
93
"@babel/register" : " 7.12.1" ,
95
94
"ava" : " 3.13.0" ,
103
102
"babel-plugin-transform-remove-console" : " 6.9.4" ,
104
103
"babel-plugin-unassert" : " 3.0.1" ,
105
104
"babel-preset-power-assert" : " 3.0.0" ,
106
- "power-assert" : " 1.6.1"
105
+ "power-assert" : " 1.6.1" ,
106
+ "regenerator-runtime" : " 0.13.7"
107
107
},
108
108
"files" : [
109
109
" lib"
You can’t perform that action at this time.
0 commit comments