Something went wrong while fetching comments. Please try again.
packages/babel-preset-react-app
index.js +3 -0
package.json +1 -0
@@ -93,6 +93,9 @@ module.exports = function(api, opts) {
@@ -13,6 +13,7 @@
Created by: n3tr
Aim to resolve #4206 (closed)
Add @babel/plugin-proposal-async-generator-functions
in babel config to support async generator functions and for-await statements
async function* agf() {
await 1;
yield 2;
}
Test steps
yarn create-react-app my-agf-app
cd my-agf-app
async function* agf() { }
to index.js
yarn start
Preferences