Skip to content

Commit d024d3a

Browse files
Andrew Fullerdiasbruno
Andrew Fuller
authored andcommitted
Transform based on env
Couldn't get this to merge properly so leaving it in both places
1 parent 4704fa7 commit d024d3a

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

Diff for: .babelrc

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
11
{
2-
"presets": ["es2015", "stage-2", "react"]
2+
"presets": ["react"],
3+
"env": {
4+
"commonjs": {
5+
"plugins": [
6+
"transform-class-properties",
7+
"transform-object-rest-spread"
8+
],
9+
"presets": ["env"]
10+
},
11+
"es": {
12+
"plugins": [
13+
"transform-class-properties",
14+
"transform-object-rest-spread"
15+
],
16+
"presets": [
17+
["env", { "modules": false }]
18+
]
19+
}
20+
},
321
}

0 commit comments

Comments
 (0)