{"action":"created","issue":{"url":"https://api.github.com/repos/Justineo/vue-awesome/issues/12","repository_url":"https://api.github.com/repos/Justineo/vue-awesome","labels_url":"https://api.github.com/repos/Justineo/vue-awesome/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/Justineo/vue-awesome/issues/12/comments","events_url":"https://api.github.com/repos/Justineo/vue-awesome/issues/12/events","html_url":"https://github.com/Justineo/vue-awesome/issues/12","id":189354142,"number":12,"title":"README out of date?","user":{"login":"radicaled","id":40635,"avatar_url":"https://avatars.githubusercontent.com/u/40635?v=3","gravatar_id":"","url":"https://api.github.com/users/radicaled","html_url":"https://github.com/radicaled","followers_url":"https://api.github.com/users/radicaled/followers","following_url":"https://api.github.com/users/radicaled/following{/other_user}","gists_url":"https://api.github.com/users/radicaled/gists{/gist_id}","starred_url":"https://api.github.com/users/radicaled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radicaled/subscriptions","organizations_url":"https://api.github.com/users/radicaled/orgs","repos_url":"https://api.github.com/users/radicaled/repos","events_url":"https://api.github.com/users/radicaled/events{/privacy}","received_events_url":"https://api.github.com/users/radicaled/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-15T10:28:37Z","updated_at":"2016-12-19T07:53:52Z","closed_at":null,"body":"The README.md says to use this format when using webpack / vue-loader:\r\n\r\n```javascript\r\nimport Icon from 'vue-awesome/components/Icon.vue'\r\n```\r\n\r\nHowever, there's a parsing error when this happens: `Uncaught SyntaxError: Unexpected token export`. It's caused by this line: https://github.com/Justineo/vue-awesome/blob/757a521af3c609ad17658ccada361e28cf1b799b/src/util.js#L34\r\n\r\nThis seems to be the correct way of importing the `Icon` component:\r\n\r\n```javascript\r\nimport Icon from 'vue-awesome'\r\n```\r\n\r\nNot sure if the README.md is out of sync."},"comment":{"url":"https://api.github.com/repos/Justineo/vue-awesome/issues/comments/267902495","html_url":"https://github.com/Justineo/vue-awesome/issues/12#issuecomment-267902495","issue_url":"https://api.github.com/repos/Justineo/vue-awesome/issues/12","id":267902495,"user":{"login":"radicaled","id":40635,"avatar_url":"https://avatars.githubusercontent.com/u/40635?v=3","gravatar_id":"","url":"https://api.github.com/users/radicaled","html_url":"https://github.com/radicaled","followers_url":"https://api.github.com/users/radicaled/followers","following_url":"https://api.github.com/users/radicaled/following{/other_user}","gists_url":"https://api.github.com/users/radicaled/gists{/gist_id}","starred_url":"https://api.github.com/users/radicaled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radicaled/subscriptions","organizations_url":"https://api.github.com/users/radicaled/orgs","repos_url":"https://api.github.com/users/radicaled/repos","events_url":"https://api.github.com/users/radicaled/events{/privacy}","received_events_url":"https://api.github.com/users/radicaled/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T07:53:52Z","updated_at":"2016-12-19T07:53:52Z","body":"Hm, thanks. I'll fix this problem.\n\nOn Mon, Dec 19, 2016, 2:51 AM GU Yiling <notifications@github.com> wrote:\n\nIt seems that your code in node_modules is excluded from those are passed\ninto babel. Importing from vue-awesome means the whole transpiled ES5\npackage (which includes all icons and doesn't need further transpiling) is\nincluded in your project.\n\n—\nYou are receiving this because you were mentioned.\nReply to this email directly, view it on GitHub\n<https://github.com/Justineo/vue-awesome/issues/12#issuecomment-267902110>,\nor mute the thread\n<https://github.com/notifications/unsubscribe-auth/AACeu8h2wxbKLGvMN6-1DJ2uEiO2yYfPks5rJjdrgaJpZM4KyXL->\n.\n"}}
{"actor":{"display_login":"radicaled"}}