{"action":"created","issue":{"url":"https://api.github.com/repos/wallabyjs/quokka/issues/82","repository_url":"https://api.github.com/repos/wallabyjs/quokka","labels_url":"https://api.github.com/repos/wallabyjs/quokka/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/wallabyjs/quokka/issues/82/comments","events_url":"https://api.github.com/repos/wallabyjs/quokka/issues/82/events","html_url":"https://github.com/wallabyjs/quokka/issues/82","id":252393265,"number":82,"title":"Unexpected token import","user":{"login":"DmacMcgreg","id":3266023,"avatar_url":"https://avatars1.githubusercontent.com/u/3266023?v=4","gravatar_id":"","url":"https://api.github.com/users/DmacMcgreg","html_url":"https://github.com/DmacMcgreg","followers_url":"https://api.github.com/users/DmacMcgreg/followers","following_url":"https://api.github.com/users/DmacMcgreg/following{/other_user}","gists_url":"https://api.github.com/users/DmacMcgreg/gists{/gist_id}","starred_url":"https://api.github.com/users/DmacMcgreg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmacMcgreg/subscriptions","organizations_url":"https://api.github.com/users/DmacMcgreg/orgs","repos_url":"https://api.github.com/users/DmacMcgreg/repos","events_url":"https://api.github.com/users/DmacMcgreg/events{/privacy}","received_events_url":"https://api.github.com/users/DmacMcgreg/received_events","type":"User","site_admin":false},"labels":[{"id":594335382,"url":"https://api.github.com/repos/wallabyjs/quokka/labels/more%20info%20is%20required","name":"more info is required","color":"fbca04","default":false},{"id":562007558,"url":"https://api.github.com/repos/wallabyjs/quokka/labels/reproducible%20example%20is%20required","name":"reproducible example is required","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-23T19:38:38Z","updated_at":"2017-08-24T14:01:45Z","closed_at":"2017-08-24T14:01:45Z","body":"### Issue description or question\r\nWhen importing a module written with es6 imports, I get the error message Unexpected token import\r\n\r\n### Quokka.js file\r\n\"quokka\": {\r\n    \"pro\": true,\r\n    \"babel\": true\r\n  },\r\n\r\n```javascript\r\nimport _uniq from 'lodash-es/uniq'\r\n....\r\n\r\n```\r\n\r\n### Quokka.js Console Output\r\n\r\n```\r\nQuokka  (node: v8.4.0, babel: v6.25.0)\r\nUnexpected token import\r\n```\r\n\r\n### Code editor version\r\n\r\nWebstorm v? 2017.2.1\r\n\r\n### OS name and version\r\n\r\nWindows 10\r\n"},"comment":{"url":"https://api.github.com/repos/wallabyjs/quokka/issues/comments/324644073","html_url":"https://github.com/wallabyjs/quokka/issues/82#issuecomment-324644073","issue_url":"https://api.github.com/repos/wallabyjs/quokka/issues/82","id":324644073,"user":{"login":"ArtemGovorov","id":979966,"avatar_url":"https://avatars1.githubusercontent.com/u/979966?v=4","gravatar_id":"","url":"https://api.github.com/users/ArtemGovorov","html_url":"https://github.com/ArtemGovorov","followers_url":"https://api.github.com/users/ArtemGovorov/followers","following_url":"https://api.github.com/users/ArtemGovorov/following{/other_user}","gists_url":"https://api.github.com/users/ArtemGovorov/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtemGovorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtemGovorov/subscriptions","organizations_url":"https://api.github.com/users/ArtemGovorov/orgs","repos_url":"https://api.github.com/users/ArtemGovorov/repos","events_url":"https://api.github.com/users/ArtemGovorov/events{/privacy}","received_events_url":"https://api.github.com/users/ArtemGovorov/received_events","type":"User","site_admin":false},"created_at":"2017-08-24T14:01:45Z","updated_at":"2017-08-24T14:01:45Z","body":"Thanks for the repo. \r\n\r\nBy default, babel-register ignores node modules, that's why it wasn't working for you. \r\nWe have just published the new plugin version 1.0.31, where the support for babel `ignore` flag is added, so you may for example say: ignore all node modules but `lodash...`:\r\n\r\n```javascript\r\n({\r\n  babel: {\r\n    ignore: 'node_modules\\/(?!lodash)'\r\n  }\r\n})\r\n...\r\n```\r\n\r\nI have also sent you the [PR with the change](https://github.com/DmacMcgreg/quokka-babel-import-sample/pull/1)."}}
{"actor":{"display_login":"ArtemGovorov"}}