React "Production" code doesn't get sent to RavenJS

I tried searching for this, but couldn’t find any resources. In our development builds of React (process.env.NODE_ENV !== “production”), RavenJS seems to catch all of the unhandled exceptions. When it’s done with a production build of React, it doesn’t work as expected.

Does anybody have a workaround for this or know a way to leverage window.onerror (which catches exceptions in both environments)?

I need more to go on. We use React in production mode just fine.

If you can reproduce a minimal example on GitHub, I’d be glad to investigate further.