Skip to content

Commit

Permalink
Merge pull request reduxjs#690 from davezuko/feature/transform-webpac…
Browse files Browse the repository at this point in the history
…k-hmr

Updates examples to use react-transform-webpack-hmr
  • Loading branch information
timdorr committed Sep 15, 2015
2 parents 74ec8fe + daf0292 commit 39072e3
Show file tree
Hide file tree
Showing 15 changed files with 70 additions and 15 deletions.
12 changes: 11 additions & 1 deletion examples/async/.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/async/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@
"devDependencies": {
"babel-core": "^5.6.18",
"babel-loader": "^5.1.4",
"babel-plugin-react-transform": "^1.0.3",
"expect": "^1.6.0",
"jsdom": "^5.6.1",
"mocha": "^2.2.5",
"mocha-jsdom": "^1.0.0",
"node-libs-browser": "^0.5.2",
"react-hot-loader": "^1.3.0",
"react-transform-webpack-hmr": "^0.1.4",
"webpack": "^1.9.11",
"webpack-dev-server": "^1.9.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/async/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
module: {
loaders: [{
test: /\.js$/,
loaders: ['react-hot', 'babel'],
loaders: ['babel'],
exclude: /node_modules/,
include: __dirname
}]
Expand Down
12 changes: 11 additions & 1 deletion examples/counter/.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/counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@
"devDependencies": {
"babel-core": "^5.6.18",
"babel-loader": "^5.1.4",
"babel-plugin-react-transform": "^1.0.3",
"expect": "^1.6.0",
"jsdom": "^5.6.1",
"mocha": "^2.2.5",
"mocha-jsdom": "^1.0.0",
"node-libs-browser": "^0.5.2",
"react-hot-loader": "^1.3.0",
"react-transform-webpack-hmr": "^0.1.4",
"webpack": "^1.9.11",
"webpack-dev-server": "^1.9.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/counter/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
module: {
loaders: [{
test: /\.js$/,
loaders: ['react-hot', 'babel'],
loaders: ['babel'],
exclude: /node_modules/,
include: __dirname
}]
Expand Down
12 changes: 11 additions & 1 deletion examples/real-world/.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/real-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"devDependencies": {
"babel-core": "^5.6.18",
"babel-loader": "^5.1.4",
"react-hot-loader": "^1.3.0",
"babel-plugin-react-transform": "^1.0.3",
"react-transform-webpack-hmr": "^0.1.4",
"webpack": "^1.9.11",
"webpack-dev-server": "^1.9.0"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/real-world/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
module: {
loaders: [{
test: /\.js$/,
loaders: ['react-hot', 'babel'],
loaders: ['babel'],
exclude: /node_modules/,
include: __dirname
}]
Expand Down
12 changes: 11 additions & 1 deletion examples/todomvc/.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/todomvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@
"devDependencies": {
"babel-core": "^5.6.18",
"babel-loader": "^5.1.4",
"babel-plugin-react-transform": "^1.0.3",
"expect": "^1.8.0",
"jsdom": "^5.6.1",
"mocha": "^2.2.5",
"mocha-jsdom": "^1.0.0",
"node-libs-browser": "^0.5.2",
"raw-loader": "^0.5.1",
"react-hot-loader": "^1.3.0",
"react-transform-webpack-hmr": "^0.1.4",
"style-loader": "^0.12.3",
"todomvc-app-css": "^2.0.1",
"webpack": "^1.9.11",
Expand Down
2 changes: 1 addition & 1 deletion examples/todomvc/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
module: {
loaders: [{
test: /\.js$/,
loaders: ['react-hot', 'babel'],
loaders: ['babel'],
exclude: /node_modules/,
include: __dirname
}, {
Expand Down
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 39072e3

Please sign in to comment.