aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-05-13 02:31:40 +0800
committerDan Finlay <dan@danfinlay.com>2017-05-13 02:31:40 +0800
commitdaec667c16c9a55e6357871a82ff2b863501a393 (patch)
tree17e8cbebbab75ec7e983ee15415fd1579e15c5cc
parentf0eeb1e1620b9c607390505c2e443979c9b44b1a (diff)
downloadtangerine-wallet-browser-daec667c16c9a55e6357871a82ff2b863501a393.tar
tangerine-wallet-browser-daec667c16c9a55e6357871a82ff2b863501a393.tar.gz
tangerine-wallet-browser-daec667c16c9a55e6357871a82ff2b863501a393.tar.bz2
tangerine-wallet-browser-daec667c16c9a55e6357871a82ff2b863501a393.tar.lz
tangerine-wallet-browser-daec667c16c9a55e6357871a82ff2b863501a393.tar.xz
tangerine-wallet-browser-daec667c16c9a55e6357871a82ff2b863501a393.tar.zst
tangerine-wallet-browser-daec667c16c9a55e6357871a82ff2b863501a393.zip
Add support for async/await
-rw-r--r--.babelrc5
-rw-r--r--.eslintrc2
-rw-r--r--package.json6
3 files changed, 10 insertions, 3 deletions
diff --git a/.babelrc b/.babelrc
index 9d8d51656..3ca197980 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1 +1,4 @@
-{ "presets": ["es2015"] }
+{
+ "presets": ["es2015"],
+ "plugins": ["transform-runtime"]
+}
diff --git a/.eslintrc b/.eslintrc
index 91c95874e..a57a93cdc 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,7 +1,7 @@
{
"parserOptions": {
"sourceType": "module",
- "ecmaVersion": 6,
+ "ecmaVersion": 2017,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"impliedStrict": true,
diff --git a/package.json b/package.json
index 11931b32f..2f5f8434b 100644
--- a/package.json
+++ b/package.json
@@ -34,7 +34,8 @@
"babelify",
{
"presets": [
- "es2015"
+ "es2015",
+ "stage-3"
]
}
],
@@ -45,6 +46,7 @@
"dependencies": {
"async": "^1.5.2",
"async-q": "^0.3.1",
+ "babel-runtime": "^6.23.0",
"bip39": "^2.2.0",
"bluebird": "^3.5.0",
"browser-passworder": "^2.0.3",
@@ -125,6 +127,8 @@
},
"devDependencies": {
"babel-eslint": "^6.0.5",
+ "babel-plugin-transform-runtime": "^6.23.0",
+ "babel-preset-stage-3": "^6.24.1",
"babel-register": "^6.7.2",
"babelify": "^7.2.0",
"beefy": "^2.1.5",