Skip to content

Commit

Permalink
updates universal example to use react-transform-webpack-hmr in place…
Browse files Browse the repository at this point in the history
… of react-hot-loader
  • Loading branch information
David Zukowski committed Sep 5, 2015
1 parent e903f3e commit 1007807
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
12 changes: 11 additions & 1 deletion examples/universal/.babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"stage": 2
"stage": 2,
"plugins" : [
"react-transform"
],
"extra" : {
"react-transform": [{
"target" : "react-transform-webpack-hmr",
"imports" : ["react"],
"locals" : ["module"]
}]
}
}
3 changes: 2 additions & 1 deletion examples/universal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
"devDependencies": {
"babel-core": "^5.8.22",
"babel-loader": "^5.3.2",
"babel-plugin-react-transform": "^1.0.3",
"babel-runtime": "^5.8.20",
"react-hot-loader": "^1.3.0",
"react-transform-webpack-hmr": "^0.1.4",
"webpack": "^1.11.0",
"webpack-dev-server": "^1.10.1"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/universal/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
module: {
loaders: [{
test: /\.js$/,
loaders: ['react-hot', 'babel?optional=runtime'],
loaders: ['babel?optional=runtime'],
exclude: /node_modules/,
include: __dirname
}]
Expand Down

0 comments on commit 1007807

Please sign in to comment.