Skip to content

Commit

Permalink
Use babel-preset-env when transpiling to lib/ targeting Node.js v4
Browse files Browse the repository at this point in the history
  • Loading branch information
insin committed Jan 15, 2017
1 parent 93bc11c commit 603edf3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

**Internal:**

- Use [`babel-preset-env`](https://github.com/babel/babel-preset-env/) when transpiling to `lib/`, targeting Node.js v4.
- Use ES2015 `String` methods available in Node.js v4 instead of `String.prototype.indexOf` comparisons.

# 0.14.1 / 2017-01-13
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
"webpack-md5-hash": "0.0.5"
},
"devDependencies": {
"babel-preset-env": "1.1.8",
"cross-env": "3.1.4",
"eslint-config-jonnybuchanan": "4.8.0",
"eventsource": "0.2.1",
Expand All @@ -141,8 +142,13 @@
],
"babel": {
"presets": [
["es2015", {"loose": true}],
"stage-2"
["env", {
"loose": true,
"targets": {
"node": 4
}
}],
"stage-3"
],
"plugins": [
"add-module-exports"
Expand Down

0 comments on commit 603edf3

Please sign in to comment.