Releases: gaearon/react-transform-catch-errors
Releases · gaearon/react-transform-catch-errors
v1.0.2
v1.0.1
v1.0.0
Breaking Change
The transform no longer takes precautions to become a no-op in production environment. It is now your responsibility to only enable it in development environment.
Make sure to wrap your React Transform configuration into env.development
inside .babelrc
:
{
"stage": 0,
"env": {
// only enable it when process.env.NODE_ENV is not 'production'
"development": {
"plugins": ["react-transform"],
"extra": {
"react-transform": [{
"target": "react-transform-catch-errors",
"imports": ["react", "redbox-react"]
}]
}
}
}
}
Then make sure you're running Babel with NODE_ENV=production
in the production.