change dev/production babel configuration

This commit is contained in:
catarak 2016-07-22 13:14:26 -04:00
parent 4c5fafe251
commit 99106e2bb8
3 changed files with 5 additions and 2 deletions

View file

@ -6,7 +6,8 @@
"transform-react-remove-prop-types", "transform-react-remove-prop-types",
"transform-react-constant-elements", "transform-react-constant-elements",
"transform-react-inline-elements" "transform-react-inline-elements"
] ],
"presets": ["es2015", "react", "react-optimize", "es2015-native-modules", "stage-0"]
} }
} }
} }

View file

@ -24,8 +24,10 @@
"babel-plugin-transform-react-remove-prop-types": "^0.2.6", "babel-plugin-transform-react-remove-prop-types": "^0.2.6",
"babel-polyfill": "^6.8.0", "babel-polyfill": "^6.8.0",
"babel-preset-es2015": "^6.6.0", "babel-preset-es2015": "^6.6.0",
"babel-preset-es2015-native-modules": "^6.9.2",
"babel-preset-react": "^6.5.0", "babel-preset-react": "^6.5.0",
"babel-preset-react-hmre": "^1.1.1", "babel-preset-react-hmre": "^1.1.1",
"babel-preset-react-optimize": "^1.0.1",
"babel-preset-stage-0": "^6.5.0", "babel-preset-stage-0": "^6.5.0",
"babel-register": "^6.8.0", "babel-register": "^6.8.0",
"css-loader": "^0.23.1", "css-loader": "^0.23.1",

View file

@ -29,7 +29,7 @@ module.exports = {
{ {
test: /\.jsx?$/, test: /\.jsx?$/,
exclude: [/node_modules/, /.+\.config.js/], exclude: [/node_modules/, /.+\.config.js/],
loaders: ['babel?presets[]=react-hmre', 'eslint-loader'] loaders: ['babel', 'eslint-loader']
}, },
{ {
test: /\.scss$/, test: /\.scss$/,