{ "presets": ["react", 'es2015', 'stage-0'], "env": { // only enable it when process.env.NODE_ENV is 'development' or undefined "development": { "plugins": [["react-transform", { "transforms": [{ "transform": "react-transform-catch-errors", // now go the imports! "imports": [ // the first import is your React distribution // (if you use React Native, pass "react-native" instead) "react", // the second import is the React component to render error // (it can be a local path too, like "./src/ErrorReporter") "redbox-react" // the third import is OPTIONAL! // when specified, its export is used as options to the reporter. // see specific reporter's docs for the options it needs. // it will be imported from different files so it either has to be a Node module // or a file that you configure with Webpack/Browserify/SystemJS to resolve correctly. // for example, see https://github.com/gaearon/babel-plugin-react-transform/pull/28#issuecomment-144536185 // , "my-reporter-options" ] }] // note: you can put more transforms into array // this is just one of them! }]] } }, "plugins": ["transform-runtime","transform-object-assign", "add-module-exports", "transform-react-display-name", "syntax-object-rest-spread"] }