{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/48","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/48/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/48/comments","events_url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/48/events","html_url":"https://github.com/ant-design/babel-plugin-antd/issues/48","id":168518139,"number":48,"title":"希望文档更详细","user":{"login":"warmhug","id":2011119,"avatar_url":"https://avatars.githubusercontent.com/u/2011119?v=3","gravatar_id":"","url":"https://api.github.com/users/warmhug","html_url":"https://github.com/warmhug","followers_url":"https://api.github.com/users/warmhug/followers","following_url":"https://api.github.com/users/warmhug/following{/other_user}","gists_url":"https://api.github.com/users/warmhug/gists{/gist_id}","starred_url":"https://api.github.com/users/warmhug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warmhug/subscriptions","organizations_url":"https://api.github.com/users/warmhug/orgs","repos_url":"https://api.github.com/users/warmhug/repos","events_url":"https://api.github.com/users/warmhug/events{/privacy}","received_events_url":"https://api.github.com/users/warmhug/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-31T13:37:33Z","updated_at":"2016-07-31T16:40:15Z","closed_at":"2016-07-31T16:40:15Z","body":"希望文档明确写出：支持的最低 babel 版本，需要哪些 babel-xxx 的依赖等，最好做个 webpack + babel 的 example 出来。\r\n\r\n就像下边这样跑不起来：\r\n```json\r\n  ...\r\n  \"babel\": {\r\n    \"plugins\": [[\"babel-plugin-antd\", { \"style\": \"css\", \"libraryName\": \"antd-mobile\" }]]\r\n  },\r\n  \"dependencies\": {\r\n    \"babel\": \"^5.4.7\",\r\n    \"babel-core\": \"^5.4.7\",\r\n    \"babel-eslint\": \"^3.1.23\",\r\n    \"babel-loader\": \"^5.0.0\",\r\n    \"babel-plugin-antd\": \"~0.4.1\",\r\n    \"bundle-loader\": \"^0.5.2\",\r\n  ...\r\n```\r\n报错：\r\n```\r\nERROR in ./src/form/index.js\r\nModule build failed: TypeError: The plugin [\"babel-plugin-antd\",{\"style\":\"css\",\"libraryName\":\"antd-mobile\"}] didn't export a Plugin instance\r\n```"},"comment":{"url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/comments/236440433","html_url":"https://github.com/ant-design/babel-plugin-antd/issues/48#issuecomment-236440433","issue_url":"https://api.github.com/repos/ant-design/babel-plugin-antd/issues/48","id":236440433,"user":{"login":"sorrycc","id":35128,"avatar_url":"https://avatars.githubusercontent.com/u/35128?v=3","gravatar_id":"","url":"https://api.github.com/users/sorrycc","html_url":"https://github.com/sorrycc","followers_url":"https://api.github.com/users/sorrycc/followers","following_url":"https://api.github.com/users/sorrycc/following{/other_user}","gists_url":"https://api.github.com/users/sorrycc/gists{/gist_id}","starred_url":"https://api.github.com/users/sorrycc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorrycc/subscriptions","organizations_url":"https://api.github.com/users/sorrycc/orgs","repos_url":"https://api.github.com/users/sorrycc/repos","events_url":"https://api.github.com/users/sorrycc/events{/privacy}","received_events_url":"https://api.github.com/users/sorrycc/received_events","type":"User","site_admin":false},"created_at":"2016-07-31T16:40:15Z","updated_at":"2016-07-31T16:40:15Z","body":"不支持 babel5，我文档里注明下。"}}
{"actor":{"display_login":"sorrycc"}}