HaNdTriX / generator-chrome-extension-kickstart

Scaffold out a Web Extension http://yeoman.io
MIT License
239 stars 33 forks source link

Add docs on using async #30

Open OmgImAlexis opened 7 years ago

OmgImAlexis commented 7 years ago
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 commented 7 years ago

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

OmgImAlexis commented 7 years ago

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 commented 7 years ago

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