Skip to content

v1.0.0

Compare
Choose a tag to compare
@gaearon gaearon released this 19 Sep 16:55
· 28 commits to master since this release

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.