{"action":"created","issue":{"url":"https://api.github.com/repos/gaearon/react-transform-catch-errors/issues/2","labels_url":"https://api.github.com/repos/gaearon/react-transform-catch-errors/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/react-transform-catch-errors/issues/2/comments","events_url":"https://api.github.com/repos/gaearon/react-transform-catch-errors/issues/2/events","html_url":"https://github.com/gaearon/react-transform-catch-errors/issues/2","id":104830422,"number":2,"title":"Server-side code transpiling issues with redbox-react","user":{"login":"joseph887","id":14120763,"avatar_url":"https://avatars.githubusercontent.com/u/14120763?v=3","gravatar_id":"","url":"https://api.github.com/users/joseph887","html_url":"https://github.com/joseph887","followers_url":"https://api.github.com/users/joseph887/followers","following_url":"https://api.github.com/users/joseph887/following{/other_user}","gists_url":"https://api.github.com/users/joseph887/gists{/gist_id}","starred_url":"https://api.github.com/users/joseph887/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joseph887/subscriptions","organizations_url":"https://api.github.com/users/joseph887/orgs","repos_url":"https://api.github.com/users/joseph887/repos","events_url":"https://api.github.com/users/joseph887/events{/privacy}","received_events_url":"https://api.github.com/users/joseph887/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-04T04:57:43Z","updated_at":"2015-09-06T04:40:42Z","closed_at":null,"body":"I use babel to transpile my server-side code, but as window is not defined on the server, adding the react-transform-catch-errors transformation to .babelrc throws an error. The server.js example given [here](https://github.com/gaearon/flux-react-router-example/commit/53e5ad5ec10974d195b002a3a07a3239d1478b7b#diff-78c12f5adc1848d13b1c6f07055d996eL1) just uses ES5 syntax, but I would rather have babel transpile my ES6 code. \r\n\r\nIs there a good way around this issue? I've been fiddling around with the rc file and require hooks but didn't find a way to make this work."},"comment":{"url":"https://api.github.com/repos/gaearon/react-transform-catch-errors/issues/comments/138040449","html_url":"https://github.com/gaearon/react-transform-catch-errors/issues/2#issuecomment-138040449","issue_url":"https://api.github.com/repos/gaearon/react-transform-catch-errors/issues/2","id":138040449,"user":{"login":"netfishx","id":462328,"avatar_url":"https://avatars.githubusercontent.com/u/462328?v=3","gravatar_id":"","url":"https://api.github.com/users/netfishx","html_url":"https://github.com/netfishx","followers_url":"https://api.github.com/users/netfishx/followers","following_url":"https://api.github.com/users/netfishx/following{/other_user}","gists_url":"https://api.github.com/users/netfishx/gists{/gist_id}","starred_url":"https://api.github.com/users/netfishx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netfishx/subscriptions","organizations_url":"https://api.github.com/users/netfishx/orgs","repos_url":"https://api.github.com/users/netfishx/repos","events_url":"https://api.github.com/users/netfishx/events{/privacy}","received_events_url":"https://api.github.com/users/netfishx/received_events","type":"User","site_admin":false},"created_at":"2015-09-06T04:40:42Z","updated_at":"2015-09-06T04:40:42Z","body":"me too"}}