Skip to content

Commit

Permalink
Update to Babel 7.
Browse files Browse the repository at this point in the history
  • Loading branch information
georgyberdyshev committed Dec 5, 2018
1 parent e75603c commit 3ac6ab8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

17 changes: 17 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const presets = [
[
"@babel/env",
{
targets: {
edge: "17",
firefox: "60",
chrome: "67",
safari: "11.1",
},
useBuiltIns: "usage",
},
],
];

module.exports = { presets };

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@
"rfc 6578"
],
"dependencies": {
"@babel/polyfill": "^7.0.0",
"co": "^4.6.0",
"xmldom": "^0.1.27",
"xmlhttprequest": "^1.8.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-polyfill": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"@babel/cli": "^7.1.5",
"@babel/core": "^7.1.6",
"@babel/preset-env": "^7.1.6",
"@babel/register": "^7.0.0",
"browserify": "^11.0.1",
"chai": "^4.2.0",
"doctoc": "^0.15.0",
Expand Down
4 changes: 2 additions & 2 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--require babel-core/register
--require babel-polyfill
--require @babel/register
--require @babel/polyfill
--recursive
--reporter spec
--timeout 20s
Expand Down

0 comments on commit 3ac6ab8

Please sign in to comment.