{"action":"closed","issue":{"url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/53","repository_url":"https://api.github.com/repos/ant-design/babel-plugin-antd","labels_url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/53/comments","events_url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/53/events","html_url":"https://github.com/ant-design/babel-plugin-antd/issues/53","id":171364893,"number":53,"title":"[bug]存在未转换的变量","user":{"login":"snadn","id":1269858,"avatar_url":"https://avatars.githubusercontent.com/u/1269858?v=3","gravatar_id":"","url":"https://api.github.com/users/snadn","html_url":"https://github.com/snadn","followers_url":"https://api.github.com/users/snadn/followers","following_url":"https://api.github.com/users/snadn/following{/other_user}","gists_url":"https://api.github.com/users/snadn/gists{/gist_id}","starred_url":"https://api.github.com/users/snadn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snadn/subscriptions","organizations_url":"https://api.github.com/users/snadn/orgs","repos_url":"https://api.github.com/users/snadn/repos","events_url":"https://api.github.com/users/snadn/events{/privacy}","received_events_url":"https://api.github.com/users/snadn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ant-design/babel-plugin-antd/labels/PR%20welcome","name":"PR welcome","color":"159818"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-16T09:30:59Z","updated_at":"2016-09-18T07:19:02Z","closed_at":"2016-09-18T07:19:02Z","body":"```\r\nimport {Toast} from 'antd-mobile';\r\ncomponentDidMount() {\r\n\twindow.Toast = Toast;\r\n\tToast.success('test')\r\n}\r\n```\r\n\r\n转换成了\r\n\r\n```\r\nvar _toast = require('antd-mobile/lib/toast');\r\nvar _toast2 = _interopRequireDefault(_toast);\r\n\r\nCommunityPage.prototype.componentDidMount = function componentDidMount() {\r\n\twindow.Toast = Toast;\r\n\t_toast2.default.success('test');\r\n};\r\n```"}}
{"actor":{"display_login":"sorrycc"}}