{"action":"opened","issue":{"url":"https://api.github.com/repos/ant-design/babel-plugin-import/issues/81","repository_url":"https://api.github.com/repos/ant-design/babel-plugin-import","labels_url":"https://api.github.com/repos/ant-design/babel-plugin-import/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/babel-plugin-import/issues/81/comments","events_url":"https://api.github.com/repos/ant-design/babel-plugin-import/issues/81/events","html_url":"https://github.com/ant-design/babel-plugin-import/issues/81","id":182721397,"number":81,"title":"配置 .babelrc 不起作用","user":{"login":"littlee","id":7534668,"avatar_url":"https://avatars.githubusercontent.com/u/7534668?v=3","gravatar_id":"","url":"https://api.github.com/users/littlee","html_url":"https://github.com/littlee","followers_url":"https://api.github.com/users/littlee/followers","following_url":"https://api.github.com/users/littlee/following{/other_user}","gists_url":"https://api.github.com/users/littlee/gists{/gist_id}","starred_url":"https://api.github.com/users/littlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littlee/subscriptions","organizations_url":"https://api.github.com/users/littlee/orgs","repos_url":"https://api.github.com/users/littlee/repos","events_url":"https://api.github.com/users/littlee/events{/privacy}","received_events_url":"https://api.github.com/users/littlee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-13T08:04:23Z","updated_at":"2016-10-13T08:04:23Z","closed_at":null,"body":"尝试了 1.x 和 2.x 两个不同版本的配置，console 还是有提示 `You are using prebuilt antd,...`\r\n\r\nantd 1.11.2 + babel-plugin-antd 0.5.1\r\n\r\n```json\r\n{\r\n  \"presets\": [\"es2015\", \"react\", \"stage-0\"],\r\n  \"env\": {\r\n    \"development\": {\r\n      \"plugins\": [\r\n        [\"antd\", {\r\n          \"style\": \"css\"\r\n        }]\r\n      ]\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nantd 2.0.1 + babel-plugin-import 1.0.1\r\n\r\n```json\r\n{\r\n  \"presets\": [\"es2015\", \"react\", \"stage-0\"],\r\n  \"env\": {\r\n    \"development\": {\r\n      \"plugins\": [\r\n        [\"import\", {\r\n          \"libraryName\": \"antd\",\r\n          \"libraryDirectory\": \"lib\",\r\n          \"style\": \"css\"\r\n        }]\r\n      ]\r\n    }\r\n  }\r\n}\r\n\r\n```"}}
{"actor":{"display_login":"littlee"}}