-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid syntax when transpiling async methods on classes #146
Comments
Just found #125. Guess it's not allowed in Bublé... how do I switch Svelte's transpiler? |
I tested #125 and it does not fix this problem. |
+1, I am running into the same issue :( |
There are two issues here:
Both need to be fixed. Let's make this issue about invalid syntax when transpiling a class with async methods (without transpiling async functions). Head to #90 if you want to talk about implementing transpilation of async functions. |
There seems to be no support for
async
methods on classes:Bublé transpiles this to
which is not valid JS.
Demo here: https://buble.surge.sh/#class%20Foo%20%7B%0A%20%20%20%20async%20bar()%20%7B%0A%20%20%20%20%20%20%20%20return%20await%20something()%3B%0A%20%20%20%20%7D%0A%0A%20%20%20%20static%20async%20bar()%20%7B%0A%20%20%20%20%20%20%20%20return%20await%20something()%3B%0A%20%20%20%20%7D%0A%7D
The text was updated successfully, but these errors were encountered: