Skip to content

Commit

Permalink
Transform based on env
Browse files Browse the repository at this point in the history
Couldn't get this to merge properly so leaving it in both places
  • Loading branch information
Andrew Fuller authored and diasbruno committed Jun 16, 2017
1 parent 4704fa7 commit d024d3a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
{
"presets": ["es2015", "stage-2", "react"]
"presets": ["react"],
"env": {
"commonjs": {
"plugins": [
"transform-class-properties",
"transform-object-rest-spread"
],
"presets": ["env"]
},
"es": {
"plugins": [
"transform-class-properties",
"transform-object-rest-spread"
],
"presets": [
["env", { "modules": false }]
]
}
},
}

0 comments on commit d024d3a

Please sign in to comment.