change dev/production babel configuration
This commit is contained in:
parent
4c5fafe251
commit
99106e2bb8
3 changed files with 5 additions and 2 deletions
3
.babelrc
3
.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"]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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",
|
||||
|
|
|
@ -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$/,
|
||||
|
|
Loading…
Reference in a new issue