{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/create-react-app/issues/4222","repository_url":"https://api.github.com/repos/facebook/create-react-app","labels_url":"https://api.github.com/repos/facebook/create-react-app/issues/4222/labels{/name}","comments_url":"https://api.github.com/repos/facebook/create-react-app/issues/4222/comments","events_url":"https://api.github.com/repos/facebook/create-react-app/issues/4222/events","html_url":"https://github.com/facebook/create-react-app/pull/4222","id":309461073,"number":4222,"title":"Support async generator functions and for-await statements","user":{"login":"n3tr","id":155392,"avatar_url":"https://avatars3.githubusercontent.com/u/155392?v=4","gravatar_id":"","url":"https://api.github.com/users/n3tr","html_url":"https://github.com/n3tr","followers_url":"https://api.github.com/users/n3tr/followers","following_url":"https://api.github.com/users/n3tr/following{/other_user}","gists_url":"https://api.github.com/users/n3tr/gists{/gist_id}","starred_url":"https://api.github.com/users/n3tr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n3tr/subscriptions","organizations_url":"https://api.github.com/users/n3tr/orgs","repos_url":"https://api.github.com/users/n3tr/repos","events_url":"https://api.github.com/users/n3tr/events{/privacy}","received_events_url":"https://api.github.com/users/n3tr/received_events","type":"User","site_admin":false},"labels":[{"id":409579052,"url":"https://api.github.com/repos/facebook/create-react-app/labels/CLA%20Signed","name":"CLA Signed","color":"009900","default":false},{"id":492694089,"url":"https://api.github.com/repos/facebook/create-react-app/labels/tag:%20bug%20fix","name":"tag: bug fix","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/facebook/create-react-app/milestones/30","html_url":"https://github.com/facebook/create-react-app/milestone/30","labels_url":"https://api.github.com/repos/facebook/create-react-app/milestones/30/labels","id":2507265,"number":30,"title":"2.0.0","description":"","creator":{"login":"gaearon","id":810438,"avatar_url":"https://avatars0.githubusercontent.com/u/810438?v=4","gravatar_id":"","url":"https://api.github.com/users/gaearon","html_url":"https://github.com/gaearon","followers_url":"https://api.github.com/users/gaearon/followers","following_url":"https://api.github.com/users/gaearon/following{/other_user}","gists_url":"https://api.github.com/users/gaearon/gists{/gist_id}","starred_url":"https://api.github.com/users/gaearon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaearon/subscriptions","organizations_url":"https://api.github.com/users/gaearon/orgs","repos_url":"https://api.github.com/users/gaearon/repos","events_url":"https://api.github.com/users/gaearon/events{/privacy}","received_events_url":"https://api.github.com/users/gaearon/received_events","type":"User","site_admin":false},"open_issues":54,"closed_issues":124,"state":"open","created_at":"2017-05-08T14:28:51Z","updated_at":"2018-03-28T18:05:40Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-03-28T17:31:38Z","updated_at":"2018-03-28T18:07:31Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/facebook/create-react-app/pulls/4222","html_url":"https://github.com/facebook/create-react-app/pull/4222","diff_url":"https://github.com/facebook/create-react-app/pull/4222.diff","patch_url":"https://github.com/facebook/create-react-app/pull/4222.patch"},"body":"Aim to resolve #4206\r\n\r\nAdd [`@babel/plugin-proposal-async-generator-functions`](https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-async-generator-functions) in babel config to support async generator functions and for-await statements\r\n\r\n```js\r\nasync function* agf() {\r\n  await 1;\r\n  yield 2;\r\n}\r\n```\r\n\r\n**Test steps**\r\n\r\n- `yarn create-react-app my-agf-app`\r\n- `cd my-agf-app`\r\n- Add `async function* agf() { }` to `index.js`\r\n- `yarn start`\r\n- App starts and works"},"comment":{"url":"https://api.github.com/repos/facebook/create-react-app/issues/comments/376981743","html_url":"https://github.com/facebook/create-react-app/pull/4222#issuecomment-376981743","issue_url":"https://api.github.com/repos/facebook/create-react-app/issues/4222","id":376981743,"user":{"login":"existentialism","id":56288,"avatar_url":"https://avatars3.githubusercontent.com/u/56288?v=4","gravatar_id":"","url":"https://api.github.com/users/existentialism","html_url":"https://github.com/existentialism","followers_url":"https://api.github.com/users/existentialism/followers","following_url":"https://api.github.com/users/existentialism/following{/other_user}","gists_url":"https://api.github.com/users/existentialism/gists{/gist_id}","starred_url":"https://api.github.com/users/existentialism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/existentialism/subscriptions","organizations_url":"https://api.github.com/users/existentialism/orgs","repos_url":"https://api.github.com/users/existentialism/repos","events_url":"https://api.github.com/users/existentialism/events{/privacy}","received_events_url":"https://api.github.com/users/existentialism/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T18:07:31Z","updated_at":"2018-03-28T18:07:31Z","author_association":"CONTRIBUTOR","body":"This is fine for now, but FWIW, I'm going to be landing support for ES2018 in `preset-env` soon which will eliminate the need to have an explicit dependency on `plugin-proposal-async-generator-functions`. I'll update as soon as that happens (we just need to figure out some versioning specifics with proposal -> transform transition)."}}
{"actor":{"display_login":"existentialism"}}