Skip to content

Commit

Permalink
babel-preset-env
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Jan 21, 2018
1 parent 21dc6ae commit a70a0f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ module.exports = function(karma) {
debug: true,
transform: [
['babelify', {
'presets': ['es2017'],
'plugins': ['transform-object-assign']
'presets': ['env']
}]
]
}
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"test": "make lint test",
"browserify": "browserify -s fetchMock es5/client.js > es5/client-bundle.js",
"prepublish": "babel src --out-dir es5 --plugins transform-object-assign --presets es2017 && npm run browserify"
"prepublish": "babel src --out-dir es5 --presets env && npm run browserify"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -35,8 +35,7 @@
"devDependencies": {
"babel": "^6.0.15",
"babel-cli": "^6.1.2",
"babel-plugin-transform-object-assign": "^6.8.0",
"babel-preset-es2017": "^6.1.2",
"babel-preset-env": "^1.6.1",
"babelify": "^7.3.0",
"bluebird": "^3.4.6",
"browserify": "^13.1.0",
Expand Down

0 comments on commit a70a0f9

Please sign in to comment.