{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/2945","repository_url":"https://api.github.com/repos/webpack/webpack","labels_url":"https://api.github.com/repos/webpack/webpack/issues/2945/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/2945/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/2945/events","html_url":"https://github.com/webpack/webpack/issues/2945","id":174676406,"number":2945,"title":"ES6 modules compatibility with commonjs","user":{"login":"f0rr0","id":8574219,"avatar_url":"https://avatars.githubusercontent.com/u/8574219?v=3","gravatar_id":"","url":"https://api.github.com/users/f0rr0","html_url":"https://github.com/f0rr0","followers_url":"https://api.github.com/users/f0rr0/followers","following_url":"https://api.github.com/users/f0rr0/following{/other_user}","gists_url":"https://api.github.com/users/f0rr0/gists{/gist_id}","starred_url":"https://api.github.com/users/f0rr0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f0rr0/subscriptions","organizations_url":"https://api.github.com/users/f0rr0/orgs","repos_url":"https://api.github.com/users/f0rr0/repos","events_url":"https://api.github.com/users/f0rr0/events{/privacy}","received_events_url":"https://api.github.com/users/f0rr0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webpack/webpack/labels/bug","name":"bug","color":"fbca04"},{"url":"https://api.github.com/repos/webpack/webpack/labels/P0:%20Critical","name":"P0: Critical","color":"b60205"},{"url":"https://api.github.com/repos/webpack/webpack/labels/S4:%20Broken","name":"S4: Broken","color":"0052cc"},{"url":"https://api.github.com/repos/webpack/webpack/labels/webpack-2","name":"webpack-2","color":"c5def5"},{"url":"https://api.github.com/repos/webpack/webpack/labels/X4:%20work%20required","name":"X4: work required","color":"c2e0c6"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-09-02T04:06:29Z","updated_at":"2016-09-08T20:28:35Z","closed_at":"2016-09-08T20:26:49Z","body":"**I'm submitting a bug report**\r\n\r\n**Webpack version:**\r\n2.1.0beta-21.0\r\n\r\n**Please tell us about your environment:**\r\nOSX 10.x\r\n\r\nCan someone explain this to me. I am writing a library with `target: \"node\"` , `libraryTarget: \"commonjs2\"`  and `library: \"jwt\"`. \r\n\r\nFrom within my `src/index.js` file, I have multiple exports:\r\n\r\n```javascript\r\n\r\nexport { a, b, c};\r\n\r\nexport default (d) => \"e\";\r\n\r\nexport const f = \"g\";\r\n```\r\n\r\nI consume this library in my project like:\r\n\r\n```javascript\r\n\r\nimport jwt, { a, b, c, f } from \"jwt\";\r\n\r\n```\r\n\r\nHowever, `jwt` is set to the entire `module.exports` object rather than `module.exports[\"default\"]`. Is this expected behavior or am I doing something wrong?\r\n\r\nNote: I am not using Babel for any transpiling. This code is meant for `node >= 6.4.0`, so it can't be a Babel issue. "},"comment":{"url":"https://api.github.com/repos/webpack/webpack/issues/comments/245729625","html_url":"https://github.com/webpack/webpack/issues/2945#issuecomment-245729625","issue_url":"https://api.github.com/repos/webpack/webpack/issues/2945","id":245729625,"user":{"login":"sokra","id":1365881,"avatar_url":"https://avatars.githubusercontent.com/u/1365881?v=3","gravatar_id":"","url":"https://api.github.com/users/sokra","html_url":"https://github.com/sokra","followers_url":"https://api.github.com/users/sokra/followers","following_url":"https://api.github.com/users/sokra/following{/other_user}","gists_url":"https://api.github.com/users/sokra/gists{/gist_id}","starred_url":"https://api.github.com/users/sokra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sokra/subscriptions","organizations_url":"https://api.github.com/users/sokra/orgs","repos_url":"https://api.github.com/users/sokra/repos","events_url":"https://api.github.com/users/sokra/events{/privacy}","received_events_url":"https://api.github.com/users/sokra/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T20:28:35Z","updated_at":"2016-09-08T20:28:35Z","body":"I added a new `libararyTarget` `\"commonjs-module` which represents a harmony/ES6 module which is wrapped via CommonJs (`__esModule`)."}}
{"actor":{"display_login":"sokra"}}