{"action":"created","issue":{"url":"https://api.github.com/repos/google/boardgame.io/issues/221","repository_url":"https://api.github.com/repos/google/boardgame.io","labels_url":"https://api.github.com/repos/google/boardgame.io/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/google/boardgame.io/issues/221/comments","events_url":"https://api.github.com/repos/google/boardgame.io/issues/221/events","html_url":"https://github.com/google/boardgame.io/issues/221","id":332912586,"node_id":"MDU6SXNzdWUzMzI5MTI1ODY=","number":221,"title":"create-react-app build fails because of async/await","user":{"login":"darekkay","id":3101914,"node_id":"MDQ6VXNlcjMxMDE5MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3101914?v=4","gravatar_id":"","url":"https://api.github.com/users/darekkay","html_url":"https://github.com/darekkay","followers_url":"https://api.github.com/users/darekkay/followers","following_url":"https://api.github.com/users/darekkay/following{/other_user}","gists_url":"https://api.github.com/users/darekkay/gists{/gist_id}","starred_url":"https://api.github.com/users/darekkay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darekkay/subscriptions","organizations_url":"https://api.github.com/users/darekkay/orgs","repos_url":"https://api.github.com/users/darekkay/repos","events_url":"https://api.github.com/users/darekkay/events{/privacy}","received_events_url":"https://api.github.com/users/darekkay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-15T21:00:16Z","updated_at":"2018-06-19T19:18:08Z","closed_at":"2018-06-19T14:30:18Z","author_association":"NONE","body":"I've created a `create-react-app` project (as suggested in your docs) and added boardgame.io. In dev mode ( `npm run start`), everything works fine. However, a production build (`npm run build`) [fails to minify](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify). The error message points to `boardgame.io/dist/react.js` line 841, so it's probably `async/await` causing the problems. I've removed the `simulate` function (it's not really needed in production, as it is part of the debug module) and the build run successfully. \r\n\r\nMy environment:\r\n- `node`: 8.11.1\r\n- `npm`: 6.1.0\r\n- `create-react-app`: 1.5.2\r\n- `boardgame.io`: 0.23.2"},"comment":{"url":"https://api.github.com/repos/google/boardgame.io/issues/comments/398513912","html_url":"https://github.com/google/boardgame.io/issues/221#issuecomment-398513912","issue_url":"https://api.github.com/repos/google/boardgame.io/issues/221","id":398513912,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODUxMzkxMg==","user":{"login":"darekkay","id":3101914,"node_id":"MDQ6VXNlcjMxMDE5MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3101914?v=4","gravatar_id":"","url":"https://api.github.com/users/darekkay","html_url":"https://github.com/darekkay","followers_url":"https://api.github.com/users/darekkay/followers","following_url":"https://api.github.com/users/darekkay/following{/other_user}","gists_url":"https://api.github.com/users/darekkay/gists{/gist_id}","starred_url":"https://api.github.com/users/darekkay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darekkay/subscriptions","organizations_url":"https://api.github.com/users/darekkay/orgs","repos_url":"https://api.github.com/users/darekkay/repos","events_url":"https://api.github.com/users/darekkay/events{/privacy}","received_events_url":"https://api.github.com/users/darekkay/received_events","type":"User","site_admin":false},"created_at":"2018-06-19T19:18:08Z","updated_at":"2018-06-19T19:18:08Z","author_association":"NONE","body":"Thanks for fixing this so quickly! 😄 "}}
{"actor":{"display_login":"darekkay"}}