Skip to content

Commit

Permalink
Switch to babel-preset-react-hmre for hot-reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
mxstbr committed Jan 25, 2016
1 parent 0793af3 commit 2046147
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"babel-plugin-rewire": "^1.0.0-beta-5",
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babel-preset-react-hmre": "1.0.1",
"babel-preset-stage-2": "^6.3.13",
"chalk": "^1.1.1",
"cheerio": "^0.19.0",
Expand Down Expand Up @@ -61,7 +62,6 @@
"psi": "^2.0.2",
"react-addons-test-utils": "^0.14.6",
"react-router-redux": "^2.1.0",
"react-transform-hmr": "^1.0.1",
"style-loader": "^0.13.0",
"url-loader": "^0.5.7",
"webpack": "^1.12.11",
Expand All @@ -79,7 +79,6 @@
"initProject": "NODE_ENV=initialisation ./webpack/init",
"lint": "eslint .",
"test": "NODE_ENV=test karma start webpack/karma.conf.js --single-run",

"prebuild": "npm run test",
"pretest": "npm run lint",
"lint:staged": "eslint-staged",
Expand Down
10 changes: 1 addition & 9 deletions webpack/webpack.dev.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@ module.exports = require('./webpack.base.babel')({
],
// Tell babel that we want to hot-reload
babelQuery: {
plugins: [
['react-transform', {
transforms: [{
transform: 'react-transform-hmr',
imports: ['react'],
locals: ['module']
}]
}]
]
presets: ['react-hmre']
}
});

0 comments on commit 2046147

Please sign in to comment.