{"action":"created","issue":{"url":"https://api.github.com/repos/hew/react-static-boilerplate-ES6/issues/1","repository_url":"https://api.github.com/repos/hew/react-static-boilerplate-ES6","labels_url":"https://api.github.com/repos/hew/react-static-boilerplate-ES6/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/hew/react-static-boilerplate-ES6/issues/1/comments","events_url":"https://api.github.com/repos/hew/react-static-boilerplate-ES6/issues/1/events","html_url":"https://github.com/hew/react-static-boilerplate-ES6/issues/1","id":92211472,"number":1,"title":"data.js refuses to compile with Babel ","user":{"login":"hew","id":3103241,"avatar_url":"https://avatars.githubusercontent.com/u/3103241?v=3","gravatar_id":"","url":"https://api.github.com/users/hew","html_url":"https://github.com/hew","followers_url":"https://api.github.com/users/hew/followers","following_url":"https://api.github.com/users/hew/following{/other_user}","gists_url":"https://api.github.com/users/hew/gists{/gist_id}","starred_url":"https://api.github.com/users/hew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hew/subscriptions","organizations_url":"https://api.github.com/users/hew/orgs","repos_url":"https://api.github.com/users/hew/repos","events_url":"https://api.github.com/users/hew/events{/privacy}","received_events_url":"https://api.github.com/users/hew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-30T22:02:43Z","updated_at":"2016-03-11T04:27:04Z","closed_at":null,"body":"If you try to convert **data.js** into ES6, the compiler chokes at the first import statement used. No idea why this would happen. I searched around for a while and came across a few similar issues, all with Webpack/React, but I didn't find anything particular to my case. \r\n\r\nThis works\r\n`` var cssnext = require('cssnext')  `` \r\n\r\nThis does not\r\n`` import cssnext from 'cssnext' `` \r\n\r\n\r\nSo weird. \r\n\r\n\r\n\r\n```\r\nimport cssnext from 'cssnext'\r\n^^^^^^\r\nSyntaxError: Unexpected reserved word\r\n    at exports.runInThisContext (vm.js:73:16)\r\n    at Module._compile (module.js:443:25)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at Object.<anonymous> (/Users/DeadFamous_AD2/Sites/yet-another/webpack.config.js:2:12)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at module.exports (/usr/local/lib/node_modules/webpack/bin/convert-argv.js:56:13)\r\n    at Object.<anonymous> (/usr/local/lib/node_modules/webpack/bin/webpack.js:54:40)\r\n```"},"comment":{"url":"https://api.github.com/repos/hew/react-static-boilerplate-ES6/issues/comments/195173396","html_url":"https://github.com/hew/react-static-boilerplate-ES6/issues/1#issuecomment-195173396","issue_url":"https://api.github.com/repos/hew/react-static-boilerplate-ES6/issues/1","id":195173396,"user":{"login":"oliverbenns","id":1992355,"avatar_url":"https://avatars.githubusercontent.com/u/1992355?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverbenns","html_url":"https://github.com/oliverbenns","followers_url":"https://api.github.com/users/oliverbenns/followers","following_url":"https://api.github.com/users/oliverbenns/following{/other_user}","gists_url":"https://api.github.com/users/oliverbenns/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverbenns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverbenns/subscriptions","organizations_url":"https://api.github.com/users/oliverbenns/orgs","repos_url":"https://api.github.com/users/oliverbenns/repos","events_url":"https://api.github.com/users/oliverbenns/events{/privacy}","received_events_url":"https://api.github.com/users/oliverbenns/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T04:27:04Z","updated_at":"2016-03-11T04:27:04Z","body":"Because you're only compiling the app Javascript. You're not actually using compiling the Webpack Js itself. So you're using node's ES6, which way behind the spec unlike Babel."}}