{"action":"closed","issue":{"url":"https://api.github.com/repos/babel/babel/issues/1419","labels_url":"https://api.github.com/repos/babel/babel/issues/1419/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/1419/comments","events_url":"https://api.github.com/repos/babel/babel/issues/1419/events","html_url":"https://github.com/babel/babel/issues/1419","id":72642019,"number":1419,"title":"Cannot export function","user":{"login":"asdf404","id":3031816,"avatar_url":"https://avatars.githubusercontent.com/u/3031816?v=3","gravatar_id":"","url":"https://api.github.com/users/asdf404","html_url":"https://github.com/asdf404","followers_url":"https://api.github.com/users/asdf404/followers","following_url":"https://api.github.com/users/asdf404/following{/other_user}","gists_url":"https://api.github.com/users/asdf404/gists{/gist_id}","starred_url":"https://api.github.com/users/asdf404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asdf404/subscriptions","organizations_url":"https://api.github.com/users/asdf404/orgs","repos_url":"https://api.github.com/users/asdf404/repos","events_url":"https://api.github.com/users/asdf404/events{/privacy}","received_events_url":"https://api.github.com/users/asdf404/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-02T12:52:54Z","updated_at":"2015-05-02T13:00:48Z","closed_at":"2015-05-02T13:00:48Z","body":"Hi. In some reason `export function myfunc() {...}` doesn't work in part of my app.\r\nSo I've tried to rewrite it to:\r\n\r\n```js\r\nfunction myfunc() {...}\r\n\r\nexport default {myfunc}\r\n```\r\n\r\nAnd it works when I'm import it in tests, but not in another file. It very strange.\r\n\r\nYou can look at my app [here](https://github.com/asdf404/rouchdb/tree/fd7195034b406abc19d77a1dd08492881197b07d) (link to broken commit).\r\n\r\nProblem in file `src/routes.js`. It exports as `undefined` even if I set `export default {...}`.\r\n\r\nI'm using mocha for tests and I get an error `TypeError: Cannot read property 'generate' of undefined`.\r\n\r\n[Here](https://travis-ci.org/asdf404/rouchdb/jobs/60945858) you can see a test log. \r\n\r\nI'm using babel v5.2.6.\r\n\r\nThanks."}}