{"action":"created","issue":{"url":"https://api.github.com/repos/6to5/6to5/issues/613","labels_url":"https://api.github.com/repos/6to5/6to5/issues/613/labels{/name}","comments_url":"https://api.github.com/repos/6to5/6to5/issues/613/comments","events_url":"https://api.github.com/repos/6to5/6to5/issues/613/events","html_url":"https://github.com/6to5/6to5/issues/613","id":55738772,"number":613,"title":"regression with modules in v3.0.8","user":{"login":"oriSomething","id":2685242,"avatar_url":"https://avatars.githubusercontent.com/u/2685242?v=3","gravatar_id":"","url":"https://api.github.com/users/oriSomething","html_url":"https://github.com/oriSomething","followers_url":"https://api.github.com/users/oriSomething/followers","following_url":"https://api.github.com/users/oriSomething/following{/other_user}","gists_url":"https://api.github.com/users/oriSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/oriSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oriSomething/subscriptions","organizations_url":"https://api.github.com/users/oriSomething/orgs","repos_url":"https://api.github.com/users/oriSomething/repos","events_url":"https://api.github.com/users/oriSomething/events{/privacy}","received_events_url":"https://api.github.com/users/oriSomething/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-28T10:30:01Z","updated_at":"2015-01-28T10:42:52Z","closed_at":null,"body":"this would work in 2.13.3 version and stop with the upgrade to 3.x:\r\n`index.js:`\r\n```javascript\r\nimport hi from './hi';\r\n\r\nhi();\r\nhi.hola();\r\n```\r\n`hi.js:`\r\n```javascript\r\nexport default function hi() {\r\n  console.log('hi');\r\n}\r\n\r\nexport function hola() {\r\n  console.log('hola');\r\n}\r\n```\r\nnow node throws:\r\n```\r\nhi.hola();\r\n   ^\r\nTypeError: Object function hi() {\r\n  console.log(\"hi\");\r\n} has no method 'hola'\r\n    at Object.<anonymous> (.../index.js:13:4)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Function.Module.runMain (module.js:497:10)\r\n    at startup (node.js:119:16)\r\n    at node.js:929:3\r\n```\r\n\r\nthe work around for now is:\r\n1. using another import command. example: `import { hola } from './hi'`\r\n2. or adding manually in the lib the hola function to the default function, example:\r\n```javascript\r\nexport function hola() {\r\n  console.log('hola');\r\n}\r\n\r\nfunction hi() {\r\n  console.log('hi');\r\n}\r\n\r\nhi.hola = hola;\r\n\r\nexport default hi;\r\n```\r\n\r\nboth aren't fun solution. can't say if it's align or not with ES2015\r\n"},"comment":{"url":"https://api.github.com/repos/6to5/6to5/issues/comments/71813830","html_url":"https://github.com/6to5/6to5/issues/613#issuecomment-71813830","issue_url":"https://api.github.com/repos/6to5/6to5/issues/613","id":71813830,"user":{"login":"oriSomething","id":2685242,"avatar_url":"https://avatars.githubusercontent.com/u/2685242?v=3","gravatar_id":"","url":"https://api.github.com/users/oriSomething","html_url":"https://github.com/oriSomething","followers_url":"https://api.github.com/users/oriSomething/followers","following_url":"https://api.github.com/users/oriSomething/following{/other_user}","gists_url":"https://api.github.com/users/oriSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/oriSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oriSomething/subscriptions","organizations_url":"https://api.github.com/users/oriSomething/orgs","repos_url":"https://api.github.com/users/oriSomething/repos","events_url":"https://api.github.com/users/oriSomething/events{/privacy}","received_events_url":"https://api.github.com/users/oriSomething/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T10:42:52Z","updated_at":"2015-01-28T10:42:52Z","body":"so what you're saying is that now i need to use two different `import`s?"}}