Skip to content

Commit

Permalink
Fix babel-preset-env implementation (#765)
Browse files Browse the repository at this point in the history
* Add supported browsers list to babel-preset-env.

This was fixed in v7 of babel-preset-env so that you could use the
browserslist directly from package.json. We'll have to wait until Babel
v7 is release, see #702.

* add node 6 to babel-preset-env targets

* Only build for Node during testing.
  • Loading branch information
tech4him1 authored and erquhart committed Jan 25, 2018
1 parent 19e7647 commit ddbfae6
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
{
"presets": [
["env", {
"modules": false
"modules": false,
"targets": {
"browsers": [
"last 2 Chrome versions",
"last 2 Opera versions",
"last 2 Firefox versions",
"last 2 Edge versions",
"last 2 Safari versions",
"last 2 iOS versions",
"last 2 ChromeAndroid versions"
]
}
}],
"react"
],
Expand Down Expand Up @@ -46,7 +57,13 @@
],
"env": {
"test": {
"plugins": ["transform-es2015-modules-commonjs"]
"presets": [
["env", {
"targets": {
"node": "6"
}
}]
]
}
}
}

0 comments on commit ddbfae6

Please sign in to comment.