Skip to content

Commit

Permalink
Add supported browsers list to babel-preset-env.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tech4him1 committed Dec 8, 2017
1 parent b370929 commit fbdcb3f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .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"
]
}
}],
"stage-1",
"react"
Expand Down

0 comments on commit fbdcb3f

Please sign in to comment.