Skip to content

Commit

Permalink
Update babel config for new transform format
Browse files Browse the repository at this point in the history
Update the babel-plugin-react-transform config format to the new,
non-deprecated format from upstream. (v1.1.0+)
  • Loading branch information
Bonnie DiPasquale committed Oct 5, 2015
1 parent a5d985f commit 5087762
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 30 deletions.
12 changes: 7 additions & 5 deletions examples/async/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
"react-transform"
],
"extra": {
"react-transform": [{
"target": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
"react-transform": {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
}
}
}
}
Expand Down
12 changes: 7 additions & 5 deletions examples/counter/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
"react-transform"
],
"extra": {
"react-transform": [{
"target": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
"react-transform": {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
}
}
}
}
Expand Down
12 changes: 7 additions & 5 deletions examples/real-world/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
"react-transform"
],
"extra": {
"react-transform": [{
"target": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
"react-transform": {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
}
}
}
}
Expand Down
12 changes: 7 additions & 5 deletions examples/todomvc/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
"react-transform"
],
"extra": {
"react-transform": [{
"target": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
"react-transform": {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
}
}
}
}
Expand Down
12 changes: 7 additions & 5 deletions examples/todos-with-undo/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
"react-transform"
],
"extra": {
"react-transform": [{
"target": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
"react-transform": {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
}
}
}
}
Expand Down
12 changes: 7 additions & 5 deletions examples/universal/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ module.exports = {
'react-transform'
],
extra: {
'react-transform': [{
target: 'react-transform-hmr',
imports: ['react'],
locals: ['module']
}]
'react-transform': {
transforms: [{
transform: 'react-transform-hmr',
imports: ['react'],
locals: ['module']
}]
}
}
}
}
Expand Down

0 comments on commit 5087762

Please sign in to comment.