Skip to content

Commit

Permalink
Use babel-preset-env (#738)
Browse files Browse the repository at this point in the history
Transpiles node v4-compatible in prepublish, current node when running tests
  • Loading branch information
evocateur committed Apr 6, 2017
1 parent c2fbcb2 commit 25e9b9c
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 74 deletions.
25 changes: 23 additions & 2 deletions .babelrc
@@ -1,7 +1,28 @@
{
"presets": ["es2015"],
"presets": [
["env", {
"targets": {
"node": 4
}
}]
],
"plugins": [
"transform-decorators-legacy",
"add-module-exports"
]
],
"env": {
"lerna-test": {
"presets": [
["env", {
"targets": {
"node": "current"
}
}]
],
"plugins": [
"transform-decorators-legacy",
"add-module-exports"
]
}
}
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -68,7 +68,7 @@
"babel-jest": "^19.0.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-es2015": "^6.24.0",
"babel-preset-env": "^1.3.2",
"eslint": "^3.19.0",
"eslint-config-babel": "^6.0.0",
"eslint-plugin-babel": "^4.1.1",
Expand Down

0 comments on commit 25e9b9c

Please sign in to comment.