// NOTE: These options are overriden by the babel-loader configuration // for webpack, which can be found in ~/build/webpack.config. // // Why? The react-transform-hmr plugin depends on HMR (and throws if // module.hot is disabled), so keeping it and related plugins contained // within webpack helps prevent unexpected errors. { "presets": [ "es2015", "react", "stage-0" ], "plugins": [ "transform-decorators-legacy", "transform-runtime", "syntax-async-functions", "transform-react-constant-elements", "transform-react-inline-elements" ], "env": { "production": { "presets": [ "react-optimize" ] } } }