{"action":"created","issue":{"url":"https://api.github.com/repos/airyland/vux/issues/46","repository_url":"https://api.github.com/repos/airyland/vux","labels_url":"https://api.github.com/repos/airyland/vux/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/airyland/vux/issues/46/comments","events_url":"https://api.github.com/repos/airyland/vux/issues/46/events","html_url":"https://github.com/airyland/vux/issues/46","id":142551397,"number":46,"title":"按需加载时，babel-loader如何配置","user":{"login":"agileago","id":11799110,"avatar_url":"https://avatars.githubusercontent.com/u/11799110?v=3","gravatar_id":"","url":"https://api.github.com/users/agileago","html_url":"https://github.com/agileago","followers_url":"https://api.github.com/users/agileago/followers","following_url":"https://api.github.com/users/agileago/following{/other_user}","gists_url":"https://api.github.com/users/agileago/gists{/gist_id}","starred_url":"https://api.github.com/users/agileago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agileago/subscriptions","organizations_url":"https://api.github.com/users/agileago/orgs","repos_url":"https://api.github.com/users/agileago/repos","events_url":"https://api.github.com/users/agileago/events{/privacy}","received_events_url":"https://api.github.com/users/agileago/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-22T05:22:38Z","updated_at":"2016-03-22T05:55:05Z","closed_at":null,"body":"当我按需加载`vue`组件时，比如\r\n```javascript\r\nimport Sticky from 'vux/src/components/sticky/index.vue'\r\n```\r\n这个组件时，因为index.vue里面包含`sticky.js`，但是`sticky.js`是用es6语法写的，而我们已经配置了`babel-loader`的`exclude`选项把`node_modules`排除掉了，该怎么写`exclude`才能把vux加入`babel`的编译中，文档中是否应该加入提醒？"},"comment":{"url":"https://api.github.com/repos/airyland/vux/issues/comments/199649228","html_url":"https://github.com/airyland/vux/issues/46#issuecomment-199649228","issue_url":"https://api.github.com/repos/airyland/vux/issues/46","id":199649228,"user":{"login":"airyland","id":559179,"avatar_url":"https://avatars.githubusercontent.com/u/559179?v=3","gravatar_id":"","url":"https://api.github.com/users/airyland","html_url":"https://github.com/airyland","followers_url":"https://api.github.com/users/airyland/followers","following_url":"https://api.github.com/users/airyland/following{/other_user}","gists_url":"https://api.github.com/users/airyland/gists{/gist_id}","starred_url":"https://api.github.com/users/airyland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airyland/subscriptions","organizations_url":"https://api.github.com/users/airyland/orgs","repos_url":"https://api.github.com/users/airyland/repos","events_url":"https://api.github.com/users/airyland/events{/privacy}","received_events_url":"https://api.github.com/users/airyland/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T05:55:05Z","updated_at":"2016-03-22T05:55:05Z","body":"我也考虑过，是会有这样的情况。umd是为了方便使用`script`标签引入。如果保留src目录又会导致整个包特别大。"}}