diff --git a/.babelrc b/.babelrc index d42d161e..6c4613dc 100644 --- a/.babelrc +++ b/.babelrc @@ -6,7 +6,8 @@ "transform-react-remove-prop-types", "transform-react-constant-elements", "transform-react-inline-elements" - ] + ], + "presets": ["es2015", "react", "react-optimize", "es2015-native-modules", "stage-0"] } } } \ No newline at end of file diff --git a/package.json b/package.json index 69180060..b89b8c6d 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,10 @@ "babel-plugin-transform-react-remove-prop-types": "^0.2.6", "babel-polyfill": "^6.8.0", "babel-preset-es2015": "^6.6.0", + "babel-preset-es2015-native-modules": "^6.9.2", "babel-preset-react": "^6.5.0", "babel-preset-react-hmre": "^1.1.1", + "babel-preset-react-optimize": "^1.0.1", "babel-preset-stage-0": "^6.5.0", "babel-register": "^6.8.0", "css-loader": "^0.23.1", diff --git a/webpack.config.dev.js b/webpack.config.dev.js index b12a2492..b0b66edd 100644 --- a/webpack.config.dev.js +++ b/webpack.config.dev.js @@ -29,7 +29,7 @@ module.exports = { { test: /\.jsx?$/, exclude: [/node_modules/, /.+\.config.js/], - loaders: ['babel?presets[]=react-hmre', 'eslint-loader'] + loaders: ['babel', 'eslint-loader'] }, { test: /\.scss$/,