{"action":"created","issue":{"url":"https://api.github.com/repos/rollup/rollup/issues/1675","repository_url":"https://api.github.com/repos/rollup/rollup","labels_url":"https://api.github.com/repos/rollup/rollup/issues/1675/labels{/name}","comments_url":"https://api.github.com/repos/rollup/rollup/issues/1675/comments","events_url":"https://api.github.com/repos/rollup/rollup/issues/1675/events","html_url":"https://github.com/rollup/rollup/issues/1675","id":265478571,"number":1675,"title":"Transformed export statement from global exports are wrong, when re exported from module.","user":{"login":"cebor","id":1576120,"avatar_url":"https://avatars2.githubusercontent.com/u/1576120?v=4","gravatar_id":"","url":"https://api.github.com/users/cebor","html_url":"https://github.com/cebor","followers_url":"https://api.github.com/users/cebor/followers","following_url":"https://api.github.com/users/cebor/following{/other_user}","gists_url":"https://api.github.com/users/cebor/gists{/gist_id}","starred_url":"https://api.github.com/users/cebor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebor/subscriptions","organizations_url":"https://api.github.com/users/cebor/orgs","repos_url":"https://api.github.com/users/cebor/repos","events_url":"https://api.github.com/users/cebor/events{/privacy}","received_events_url":"https://api.github.com/users/cebor/received_events","type":"User","site_admin":false},"labels":[{"id":211689302,"url":"https://api.github.com/repos/rollup/rollup/labels/bug","name":"bug","color":"fc2929","default":true},{"id":742855075,"url":"https://api.github.com/repos/rollup/rollup/labels/scope-hoisting","name":"scope-hoisting","color":"59f7dc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-10-14T09:35:20Z","updated_at":"2018-02-05T10:37:28Z","closed_at":null,"author_association":"NONE","body":"The following example shows, when i re export a global export from a module the export statement in the result is wrong. \r\n\r\n\r\n```ts\r\n// I would expect something like this\r\nimport * as highcharts from 'highcharts';\r\nexport { highcharts as Highcharts };\r\n\r\n// But get this\r\nexport { Highcharts } from 'highcharts';\r\n```\r\n\r\nHighcharts is declared as external module and has no explicit named exports, so only the global export with the `*` works.\r\n\r\n\r\nExample:\r\nhttps://rollupjs.org/repl?version=0.51.1&shareable=JTdCJTIybW9kdWxlcyUyMiUzQSU1QiU3QiUyMm5hbWUlMjIlM0ElMjJtYWluLmpzJTIyJTJDJTIyY29kZSUyMiUzQSUyMmV4cG9ydCUyMCU3QiUyMEhpZ2hjaGFydHMlMjAlN0QlMjBmcm9tJTIwJy4lMkZpbmRleCclMjIlN0QlMkMlN0IlMjJuYW1lJTIyJTNBJTIyaW5kZXguanMlMjIlMkMlMjJjb2RlJTIyJTNBJTIyaW1wb3J0JTIwKiUyMGFzJTIwSGlnaGNoYXJ0cyUyMGZyb20lMjAnaGlnaGNoYXJ0cyclNUNuZXhwb3J0JTIwJTdCJTIwSGlnaGNoYXJ0cyUyMCU3RCUyMiU3RCU1RCUyQyUyMm9wdGlvbnMlMjIlM0ElN0IlMjJmb3JtYXQlMjIlM0ElMjJlcyUyMiUyQyUyMmdsb2JhbHMlMjIlM0ElN0IlN0QlMkMlMjJuYW1lJTIyJTNBJTIybXlCdW5kbGUlMjIlMkMlMjJhbWQlMjIlM0ElN0IlMjJpZCUyMiUzQSUyMiUyMiU3RCU3RCUyQyUyMmV4YW1wbGUlMjIlM0FudWxsJTdE"},"comment":{"url":"https://api.github.com/repos/rollup/rollup/issues/comments/363045706","html_url":"https://github.com/rollup/rollup/issues/1675#issuecomment-363045706","issue_url":"https://api.github.com/repos/rollup/rollup/issues/1675","id":363045706,"user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars1.githubusercontent.com/u/598730?v=4","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T10:37:28Z","updated_at":"2018-02-05T10:37:28Z","author_association":"CONTRIBUTOR","body":"(Although this would be much easier to support with the `export * as x from 'y'` proposal! - https://github.com/tc39/proposal-export-ns-from)"}}
{"actor":{"display_login":"guybedford"}}