// 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": ["babel-polyfill", "transform-decorators-legacy"], "env": { "production": { "presets": ["react-optimize"] }, "development": { "presets": ["react-hmre"] } } }