{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack/webpack/issues/1600","labels_url":"https://api.github.com/repos/webpack/webpack/issues/1600/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack/issues/1600/comments","events_url":"https://api.github.com/repos/webpack/webpack/issues/1600/events","html_url":"https://github.com/webpack/webpack/issues/1600","id":115691916,"number":1600,"title":"2.0.0-beta generates syntactically incorrect output","user":{"login":"rgrochowicz","id":73488,"avatar_url":"https://avatars.githubusercontent.com/u/73488?v=3","gravatar_id":"","url":"https://api.github.com/users/rgrochowicz","html_url":"https://github.com/rgrochowicz","followers_url":"https://api.github.com/users/rgrochowicz/followers","following_url":"https://api.github.com/users/rgrochowicz/following{/other_user}","gists_url":"https://api.github.com/users/rgrochowicz/gists{/gist_id}","starred_url":"https://api.github.com/users/rgrochowicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgrochowicz/subscriptions","organizations_url":"https://api.github.com/users/rgrochowicz/orgs","repos_url":"https://api.github.com/users/rgrochowicz/repos","events_url":"https://api.github.com/users/rgrochowicz/events{/privacy}","received_events_url":"https://api.github.com/users/rgrochowicz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-07T20:51:54Z","updated_at":"2015-11-07T20:51:54Z","closed_at":null,"body":"Given these files:\r\n\r\n```js\r\n// module.js\r\nexport default (function () {\r\n  return 1;\r\n});\r\n```\r\n\r\n```js\r\n// index.js\r\nimport fn from './module';\r\n\r\nconsole.log(fn());\r\n```\r\n\r\nUsing `webpack --entry index.js test.js`, the resulting output for `module.js` becomes:\r\n```js\r\n\t/* harmony default export */ exports[\"default\"] = function () {\r\n\t  return 1;\r\n\t});\r\n```\r\nNotice the extraneous `)` after the function declaration.\r\n"}}