Skip to content

Commit

Permalink
Merge pull request gaearon#83 from danmartinez101/use-preset
Browse files Browse the repository at this point in the history
use babel-preset-react-hmre
  • Loading branch information
gaearon committed Dec 24, 2015
2 parents 76ac95e + bc38fb3 commit 972f9d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
15 changes: 2 additions & 13 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@
"presets": ["react", "es2015"],
"env": {
"development": {
"plugins": [
["react-transform", {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}, {
"transform": "react-transform-catch-errors",
"imports": ["react", "redbox-react"]
}]
}]
]
"presets": ["react-hmre"]
}
}
}
}
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,13 @@
"babel-core": "^6.3.15",
"babel-eslint": "^5.0.0-beta4",
"babel-loader": "^6.2.0",
"babel-plugin-react-transform": "^2.0.0-beta1",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-react-hmre": "^1.0.0",
"eslint": "^1.10.3",
"eslint-plugin-babel": "^3.0.0",
"eslint-plugin-react": "^3.11.3",
"express": "^4.13.3",
"react-transform-catch-errors": "^1.0.0",
"react-transform-hmr": "^1.0.1",
"redbox-react": "^1.0.1",
"rimraf": "^2.4.3",
"webpack": "^1.12.9",
"webpack-dev-middleware": "^1.4.0",
Expand Down

0 comments on commit 972f9d1

Please sign in to comment.