Skip to content

Commit

Permalink
Move react-hmre plugin from .babelrc to webpack.config.base.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Apr 20, 2016
1 parent 369a7de commit 4a73dc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"presets": ["es2015", "stage-0", "react"],
"env": {
"development": {
"presets": ["react-hmre"]
}
}
"presets": ["es2015", "stage-0", "react"]
}
5 changes: 5 additions & 0 deletions webpack.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ module.exports = {
loader: 'babel',
exclude: /(node_modules|bower_components)/,
query: {
env: {
development: {
presets: ['react-hmre']
}
},
presets: ['es2015', 'stage-0', 'react'],
plugins: [
'transform-decorators-legacy'
Expand Down

0 comments on commit 4a73dc1

Please sign in to comment.