Skip to content

Commit

Permalink
Use babel-preset-env.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Nov 3, 2016
1 parent a21f95b commit 9fca1f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .babelrc
@@ -0,0 +1,9 @@
{
"presets": [
["env", {
"targets": {
"node": 4
}
}]
]
}
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -69,7 +69,7 @@ before_install:
node ./bin/lodash modularize exports=$EXPORTS -o $OUTPUT_PATH
if [ $EXPORTS = 'es' ]; then
node ./bin/lodash modularize exports=node minus=main -o ./node_modules/lodash
babel ./$EXPORTS --presets es2015 --out-dir ./$EXPORTS
babel ./$EXPORTS --out-dir ./$EXPORTS
elif [ $EXPORTS = 'npm' ]; then
cd ./npm; cp ../test/npm/index.js ./index.js; cd ../
fi
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -29,7 +29,7 @@
},
"devDependencies": {
"babel-cli": "^6.18.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-env": "0.0.7",
"qunit-extras": "^3.0.0",
"qunitjs": "^2.0.1"
},
Expand Down

0 comments on commit 9fca1f2

Please sign in to comment.