Skip to content

Commit 8ce3176

Browse files
committed
Streamlined hot reloading configuration using babel-preset-react-hmre
1 parent d7d2d22 commit 8ce3176

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

.babelrc

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,8 @@
22
"presets": ["es2015", "react", "stage-1"],
33
"env": {
44
"development": {
5-
"plugins": [
6-
["react-transform", {
7-
"transforms": [{
8-
"transform": "react-transform-hmr",
9-
"imports": ["react"],
10-
"locals": ["module"]
11-
}, {
12-
"transform": "react-transform-catch-errors",
13-
"imports": ["react", "redbox-react"]
14-
}]
15-
}]
5+
"presets": [
6+
"react-hmre"
167
]
178
}
189
}

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"babel-eslint": "5.0.0",
3636
"babel-loader": "6.2.3",
3737
"babel-plugin-react-display-name": "2.0.0",
38-
"babel-plugin-react-transform": "2.0.0",
3938
"babel-preset-es2015": "6.5.0",
4039
"babel-preset-react": "6.5.0",
40+
"babel-preset-react-hmre": "1.1.1",
4141
"babel-preset-stage-1": "6.5.0",
4242
"browser-sync": "2.11.1",
4343
"chai": "3.4.1",
@@ -54,8 +54,6 @@
5454
"mocha": "2.3.4",
5555
"node-sass": "3.4.2",
5656
"npm-run-all": "1.6.0",
57-
"react-transform-catch-errors": "1.0.1",
58-
"react-transform-hmr": "1.0.1",
5957
"redbox-react": "1.2.0",
6058
"rimraf": "2.5.0",
6159
"sass-loader": "3.1.2",

0 commit comments

Comments
 (0)