{"action":"created","issue":{"url":"https://api.github.com/repos/weexteam/weex-toolkit/issues/35","repository_url":"https://api.github.com/repos/weexteam/weex-toolkit","labels_url":"https://api.github.com/repos/weexteam/weex-toolkit/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/weexteam/weex-toolkit/issues/35/comments","events_url":"https://api.github.com/repos/weexteam/weex-toolkit/issues/35/events","html_url":"https://github.com/weexteam/weex-toolkit/issues/35","id":191562140,"number":35,"title":"外部引入js文件是否能使用es6","user":{"login":"WangXiZhu","id":8960318,"avatar_url":"https://avatars.githubusercontent.com/u/8960318?v=3","gravatar_id":"","url":"https://api.github.com/users/WangXiZhu","html_url":"https://github.com/WangXiZhu","followers_url":"https://api.github.com/users/WangXiZhu/followers","following_url":"https://api.github.com/users/WangXiZhu/following{/other_user}","gists_url":"https://api.github.com/users/WangXiZhu/gists{/gist_id}","starred_url":"https://api.github.com/users/WangXiZhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WangXiZhu/subscriptions","organizations_url":"https://api.github.com/users/WangXiZhu/orgs","repos_url":"https://api.github.com/users/WangXiZhu/repos","events_url":"https://api.github.com/users/WangXiZhu/events{/privacy}","received_events_url":"https://api.github.com/users/WangXiZhu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-24T16:45:09Z","updated_at":"2016-12-04T17:04:52Z","closed_at":null,"body":"外部  index.js\r\n\r\n```\r\n  export function log(){\r\n     console.log('log info')\r\n  }\r\n```\r\n\r\n.we文件中引入\r\n\r\n```\r\nrequire(\"./index.js\");\r\nmodule.exports = {\r\n  init: function(){\r\n    log();\r\n  }\r\n}\r\n\r\n```\r\n\r\n浏览器显示error : Unexpected token export\r\n\r\n看到 weex-toolkit中 gulp的task中有 babel，不知道哪里有问题。  谢谢"},"comment":{"url":"https://api.github.com/repos/weexteam/weex-toolkit/issues/comments/264716038","html_url":"https://github.com/weexteam/weex-toolkit/issues/35#issuecomment-264716038","issue_url":"https://api.github.com/repos/weexteam/weex-toolkit/issues/35","id":264716038,"user":{"login":"yulinho","id":8208362,"avatar_url":"https://avatars.githubusercontent.com/u/8208362?v=3","gravatar_id":"","url":"https://api.github.com/users/yulinho","html_url":"https://github.com/yulinho","followers_url":"https://api.github.com/users/yulinho/followers","following_url":"https://api.github.com/users/yulinho/following{/other_user}","gists_url":"https://api.github.com/users/yulinho/gists{/gist_id}","starred_url":"https://api.github.com/users/yulinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yulinho/subscriptions","organizations_url":"https://api.github.com/users/yulinho/orgs","repos_url":"https://api.github.com/users/yulinho/repos","events_url":"https://api.github.com/users/yulinho/events{/privacy}","received_events_url":"https://api.github.com/users/yulinho/received_events","type":"User","site_admin":false},"created_at":"2016-12-04T17:04:52Z","updated_at":"2016-12-04T17:04:52Z","body":"loaders 那里要配置一下"}}
{"actor":{"display_login":"yulinho"}}