Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Add docs on using async #30

Open
OmgImAlexis opened this issue Sep 13, 2017 · 3 comments
Open

Add docs on using async #30

OmgImAlexis opened this issue Sep 13, 2017 · 3 comments

Comments

@OmgImAlexis
Copy link

diff --git a/.babelrc b/.babelrc
index cb80719..8402d34 100644
--- a/.babelrc
+++ b/.babelrc
@@ -8,5 +8,8 @@
       "debug": false
     }]
   ],
-  "ignore": ["node_modules"]
+  "ignore": ["node_modules"],
+  "plugins": [
+      ["transform-runtime", {"polyfill": false}]
+  ]
 }
diff --git a/package.json b/package.json
index 33469fd..646f41d 100644
--- a/package.json
+++ b/package.json
@@ -38,6 +38,7 @@
     "babel-cli": "6.x.x",
     "babel-core": "6.x.x",
     "babel-loader": "7.x.x",
+    "babel-plugin-transform-runtime": "^6.23.0",
     "babel-preset-env": "1.x.x",
     "chai": "4.x.x",
     "chromereload": "0.x.x",
@HaNdTriX
Copy link
Owner

HaNdTriX commented Sep 13, 2017

Thanks for your Feedback.
Nevertheless we are using babel-preset-env. This should take care about asnyc/await so far i know.

@OmgImAlexis
Copy link
Author

Currently without that I get an error about transform-runtime missing. If I missed something then great otherwise this seemed to fix it for me.

@HaNdTriX HaNdTriX removed the invalid label Sep 14, 2017
@HaNdTriX
Copy link
Owner

@OmgImAlexis I guess you are right. I am open for PRs 🙈

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants