{"action":"opened","issue":{"url":"https://api.github.com/repos/umijs/umi/issues/1215","repository_url":"https://api.github.com/repos/umijs/umi","labels_url":"https://api.github.com/repos/umijs/umi/issues/1215/labels{/name}","comments_url":"https://api.github.com/repos/umijs/umi/issues/1215/comments","events_url":"https://api.github.com/repos/umijs/umi/issues/1215/events","html_url":"https://github.com/umijs/umi/issues/1215","id":368621533,"node_id":"MDU6SXNzdWUzNjg2MjE1MzM=","number":1215,"title":"Mock file parse failed  regeneratorRuntime is not defined","user":{"login":"kennedy0527","id":5731369,"node_id":"MDQ6VXNlcjU3MzEzNjk=","avatar_url":"https://avatars2.githubusercontent.com/u/5731369?v=4","gravatar_id":"","url":"https://api.github.com/users/kennedy0527","html_url":"https://github.com/kennedy0527","followers_url":"https://api.github.com/users/kennedy0527/followers","following_url":"https://api.github.com/users/kennedy0527/following{/other_user}","gists_url":"https://api.github.com/users/kennedy0527/gists{/gist_id}","starred_url":"https://api.github.com/users/kennedy0527/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennedy0527/subscriptions","organizations_url":"https://api.github.com/users/kennedy0527/orgs","repos_url":"https://api.github.com/users/kennedy0527/repos","events_url":"https://api.github.com/users/kennedy0527/events{/privacy}","received_events_url":"https://api.github.com/users/kennedy0527/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-10T11:32:47Z","updated_at":"2018-10-10T11:32:47Z","closed_at":null,"author_association":"NONE","body":"umi version: 2.1.1\r\n在Mock file內\r\n使用async 便會噴出這個error\r\n\r\nmock/a.js\r\n```javascript\r\nasync function A () {\r\n...\r\n}\r\n\r\nexport default {\r\n  'GET /api/test': A\r\n}\r\n```\r\n\r\n試過在global.js 內 import '@babel/polyfill'; \r\n\r\n一樣無法解決\r\n\r\n想請問該如何解決這個問題？"}}
{"actor":{"display_login":"kennedy0527"}}