Skip to content

Commit

Permalink
Use babel-preset-env
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Mar 8, 2017
1 parent 7ddb191 commit 74dd7dc
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 41 deletions.
16 changes: 10 additions & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"presets": ["es2015"],
"env": {
"test": {
"plugins": ["transform-async-to-generator"]
}
}
"presets": [
["env", {
"targets": {
"chrome": 42,
"browsers": ["last 2 versions"],
"node": 4
},
"useBuiltIns": true
}]
]
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@
"devDependencies": {
"babel-core": "6.18.0",
"babel-loader": "6.2.6",
"babel-plugin-transform-async-to-generator": "6.16.0",
"babel-polyfill": "6.16.0",
"babel-preset-es2015": "6.18.0",
"babel-preset-env": "1.2.1",
"btoa": "1.1.2",
"chai": "3.5.0",
"cozy-data-system": "2.5.14",
Expand Down
Loading

0 comments on commit 74dd7dc

Please sign in to comment.