Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
build(babel-preset-env): configured babel to use the env preset
Browse files Browse the repository at this point in the history
chose a target of node-8 since much lower would require transpilation of async/await

BREAKING CHANGE: the bundles now transpile with a target of node8, so lower versions of node are no longer supported
  • Loading branch information
travi committed Feb 2, 2018
1 parent 946ec83 commit 55c8205
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 76 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"presets": ["es2015-node", "stage-3"]
"presets": [["env", {"targets": {"node": "current"}}]],
"plugins": [["transform-object-rest-spread", {"useBuiltIns": true}]]
}
103 changes: 32 additions & 71 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@
"@travi/any": "1.7.1",
"@travi/eslint-config-travi": "1.6.6",
"babel-core": "6.26.0",
"babel-preset-es2015-node": "6.1.1",
"babel-preset-es2015-rollup": "3.0.0",
"babel-preset-stage-3": "6.24.1",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-preset-env": "1.6.1",
"chai": "4.1.2",
"chai-as-promised": "7.1.1",
"codecov": "3.0.0",
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export default {
babel({
babelrc: false,
exclude: ['./node_modules/**'],
presets: ['es2015-rollup', 'stage-3']
presets: [['env', {modules: false, targets: {node: 8}}]],
plugins: [['transform-object-rest-spread', {useBuiltIns: true}]]
})
],
output: [
Expand Down

0 comments on commit 55c8205

Please sign in to comment.