{"action":"closed","issue":{"url":"https://api.github.com/repos/launchdarkly/js-client/issues/103","repository_url":"https://api.github.com/repos/launchdarkly/js-client","labels_url":"https://api.github.com/repos/launchdarkly/js-client/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/launchdarkly/js-client/issues/103/comments","events_url":"https://api.github.com/repos/launchdarkly/js-client/issues/103/events","html_url":"https://github.com/launchdarkly/js-client/issues/103","id":340487861,"node_id":"MDU6SXNzdWUzNDA0ODc4NjE=","number":103,"title":"Proposal: replace export default with named exports","user":{"login":"1999","id":73191,"node_id":"MDQ6VXNlcjczMTkx","avatar_url":"https://avatars0.githubusercontent.com/u/73191?v=4","gravatar_id":"","url":"https://api.github.com/users/1999","html_url":"https://github.com/1999","followers_url":"https://api.github.com/users/1999/followers","following_url":"https://api.github.com/users/1999/following{/other_user}","gists_url":"https://api.github.com/users/1999/gists{/gist_id}","starred_url":"https://api.github.com/users/1999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1999/subscriptions","organizations_url":"https://api.github.com/users/1999/orgs","repos_url":"https://api.github.com/users/1999/repos","events_url":"https://api.github.com/users/1999/events{/privacy}","received_events_url":"https://api.github.com/users/1999/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-12T04:46:36Z","updated_at":"2018-08-15T16:05:10Z","closed_at":"2018-08-15T16:05:10Z","author_association":"CONTRIBUTOR","body":"Right now the main file has `export default { initialize, version };` export which looks a bit weird to me:\r\n\r\n1) if the main object exported is an object where we know all keys, why not export it with two separate named exports? This will also improve the intellisense support in the editors\r\n2) unfortunately for legacy builders default exports are a pain in the ass: it's often just hard to import stuff. For instance, we have a typescript+webpack+karma for one of our packages, and while it's easy to fix the file imports for TS compiler, it becomes tricky to debug issues in the browser:\r\n\r\n![image](https://user-images.githubusercontent.com/73191/42613088-53dc66ee-85e2-11e8-99a1-6dfc5881be92.png)\r\n"}}
{"actor":{"display_login":"apucacao"}}