{"action":"opened","issue":{"url":"https://api.github.com/repos/ternjs/acorn/issues/456","repository_url":"https://api.github.com/repos/ternjs/acorn","labels_url":"https://api.github.com/repos/ternjs/acorn/issues/456/labels{/name}","comments_url":"https://api.github.com/repos/ternjs/acorn/issues/456/comments","events_url":"https://api.github.com/repos/ternjs/acorn/issues/456/events","html_url":"https://github.com/ternjs/acorn/issues/456","id":173594348,"number":456,"title":"Failed to build on Webpack [fix provied]","user":{"login":"anIddan","id":12671072,"avatar_url":"https://avatars.githubusercontent.com/u/12671072?v=3","gravatar_id":"","url":"https://api.github.com/users/anIddan","html_url":"https://github.com/anIddan","followers_url":"https://api.github.com/users/anIddan/followers","following_url":"https://api.github.com/users/anIddan/following{/other_user}","gists_url":"https://api.github.com/users/anIddan/gists{/gist_id}","starred_url":"https://api.github.com/users/anIddan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anIddan/subscriptions","organizations_url":"https://api.github.com/users/anIddan/orgs","repos_url":"https://api.github.com/users/anIddan/repos","events_url":"https://api.github.com/users/anIddan/events{/privacy}","received_events_url":"https://api.github.com/users/anIddan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-27T12:42:19Z","updated_at":"2016-08-27T12:42:19Z","closed_at":null,"body":"Because of the way webpack with babel-loader understands ES6 modules it should be:\r\n```javascript\r\nimport * as acorn from 'acorn';\r\n```\r\ninstead of:\r\n```javascript\r\nimport acorn from 'acorn';\r\n```\r\n\r\nexplanation:\r\n_http://www.2ality.com/2014/09/es6-modules-final.html at 4.2. :_\r\n> In current JavaScript module systems, you have to execute the code in order to find out what the imports and exports are. That is the main reason why ECMAScript 6 breaks with those systems: by building the module system into the language, you can syntactically enforce a static module structure. Let’s first examine what that means and then what benefits it brings.\r\n\r\n"}}
{"actor":{"display_login":"anIddan"}}