Skip to content

Commit

Permalink
use babel-preset-env
Browse files Browse the repository at this point in the history
  • Loading branch information
人間失格 committed Jan 27, 2018
1 parent c074876 commit 1c39b9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"presets": ["es2017", "es2015"],
"presets": ["env"],
"plugins": ["syntax-async-functions", "transform-regenerator"]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"clean": "rimraf ./lib && mkdir lib",
"clean:test": "rimraf ./test/o && mkdir test/o",
"clean:compile": "rimraf ./lib/compiled",
"compile:babel": "babel-compile -p es2017 -p es2015 src:lib/compiled",
"compile:babel": "babel-compile -p env src:lib/compiled",
"compile:minify": "minify lib/compiled -d lib",
"compile": "npm run clean && npm run compile:babel && npm run compile:minify && npm run clean:compile",
"test": "npm run clean:test && _mocha test"
Expand Down

0 comments on commit 1c39b9b

Please sign in to comment.