Skip to content

Commit

Permalink
change dev/production babel configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
catarak committed Jul 22, 2016
1 parent 4c5fafe commit 99106e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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$/,
Expand Down

0 comments on commit 99106e2

Please sign in to comment.