Skip to content

Commit

Permalink
Merge pull request #171 from bookbrainz/maintenance
Browse files Browse the repository at this point in the history
Use the replacement for the yearly presets, babel-preset-env.
  • Loading branch information
LordSputnik committed Dec 26, 2017
2 parents c7f0c0f + c1586d9 commit e613c4c
Show file tree
Hide file tree
Showing 7 changed files with 1,137 additions and 197 deletions.
54 changes: 45 additions & 9 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,52 @@
"transform-class-properties",
"array-includes",
[
"transform-runtime", {
"polyfill": false,
"regenerator": true
}
"transform-runtime", {
"polyfill": false,
"regenerator": true
}
]
],
"presets": [
"flow",
"es2016",
"es2017",
"react"
]
"flow",
"react",
["env", {
"targets": {
"node": "current"
}
}]
],
"env": {
"browser": {
"plugins": [
"lodash",
"transform-es2015-modules-commonjs",
"transform-object-rest-spread",
"transform-class-properties",
"array-includes",
[
"transform-runtime", {
"polyfill": false,
"regenerator": true
}
]
],
"presets": [
"flow",
"react",
["env", {
"targets": {
"browsers": [
"chrome >= 44",
"edge >= 14",
"firefox >= 40",
"ie >= 11",
"opera >= 43",
"safari >= 9"
]
}
}]
]
}
}
}
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
language: node_js
node_js:
- "node"
- "7"
- "6"
- "lts/*"
- "8"

notifications:
email: false
Expand Down

0 comments on commit e613c4c

Please sign in to comment.