Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix babel-preset-env. #765

Merged
merged 3 commits into from
Jan 25, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}]
]
}
}
}