{"action":"created","issue":{"url":"https://api.github.com/repos/jedwards1211/meteor-webpack-react/issues/134","labels_url":"https://api.github.com/repos/jedwards1211/meteor-webpack-react/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/jedwards1211/meteor-webpack-react/issues/134/comments","events_url":"https://api.github.com/repos/jedwards1211/meteor-webpack-react/issues/134/events","html_url":"https://github.com/jedwards1211/meteor-webpack-react/issues/134","id":128536946,"number":134,"title":"mailgun-js ","user":{"login":"elliott-vorel","id":13947137,"avatar_url":"https://avatars.githubusercontent.com/u/13947137?v=3","gravatar_id":"","url":"https://api.github.com/users/elliott-vorel","html_url":"https://github.com/elliott-vorel","followers_url":"https://api.github.com/users/elliott-vorel/followers","following_url":"https://api.github.com/users/elliott-vorel/following{/other_user}","gists_url":"https://api.github.com/users/elliott-vorel/gists{/gist_id}","starred_url":"https://api.github.com/users/elliott-vorel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliott-vorel/subscriptions","organizations_url":"https://api.github.com/users/elliott-vorel/orgs","repos_url":"https://api.github.com/users/elliott-vorel/repos","events_url":"https://api.github.com/users/elliott-vorel/events{/privacy}","received_events_url":"https://api.github.com/users/elliott-vorel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-25T13:28:37Z","updated_at":"2016-01-26T15:52:31Z","closed_at":null,"body":"Has anyone had luck using mailgun-js? (https://github.com/mailgun/mailgun-js)\r\n\r\nIt is build with webpack using es6. I get the error SyntaxError: Unexpected reserved word \r\nat 'class Client {' but I cannot seem to figure out why. \r\nWhat changes are needed to the current webpack configuration?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jedwards1211/meteor-webpack-react/issues/comments/175087860","html_url":"https://github.com/jedwards1211/meteor-webpack-react/issues/134#issuecomment-175087860","issue_url":"https://api.github.com/repos/jedwards1211/meteor-webpack-react/issues/134","id":175087860,"user":{"login":"jedwards1211","id":1448194,"avatar_url":"https://avatars.githubusercontent.com/u/1448194?v=3","gravatar_id":"","url":"https://api.github.com/users/jedwards1211","html_url":"https://github.com/jedwards1211","followers_url":"https://api.github.com/users/jedwards1211/followers","following_url":"https://api.github.com/users/jedwards1211/following{/other_user}","gists_url":"https://api.github.com/users/jedwards1211/gists{/gist_id}","starred_url":"https://api.github.com/users/jedwards1211/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedwards1211/subscriptions","organizations_url":"https://api.github.com/users/jedwards1211/orgs","repos_url":"https://api.github.com/users/jedwards1211/repos","events_url":"https://api.github.com/users/jedwards1211/events{/privacy}","received_events_url":"https://api.github.com/users/jedwards1211/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T15:52:31Z","updated_at":"2016-01-26T15:52:31Z","body":"@elliott-vorel the webpack config excludes anything in `node_modules` from being transpiled by Babel, that's why you're seeing the problem.  You have to add a rule to specifically use Babel on it:\r\n```js\r\n        ...\r\n        {\r\n          test: /\\.js$/,\r\n          loader: 'babel',\r\n          include: /node_modules\\/mailgun/,\r\n        },\r\n        ...\r\n```"}}