Skip to content

Commit

Permalink
fix: Fix node v4 support by using babel-preset-env
Browse files Browse the repository at this point in the history
Fixes #873
  • Loading branch information
tmcw committed Aug 11, 2017
1 parent ffdfa21 commit d3f381f
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 265 deletions.
9 changes: 8 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"presets": ["flow"],
"presets": [
["env", {
"targets": {
"node": 4
}
}],
"flow"
],
"plugins": [
["transform-es2015-modules-commonjs", {
"allowTopLevelThis": true
Expand Down
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
machine:
node:
version: 7
version: 4
test:
override:
- npm run test-ci
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"babel-generator": "6.25.0",
"babel-plugin-system-import-transformer": "3.1.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-env": "^1.6.0",
"babel-preset-es2015": "^6.16.0",
"babel-preset-react": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
Expand Down
Loading

0 comments on commit d3f381f

Please sign in to comment.