-
Notifications
You must be signed in to change notification settings - Fork 44
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
Feature Request: Top level await #42
Comments
There's currently no official Babel plugin for top-level await. When they release one I will certainly look into adding it. |
However, you could wrap the input code automatically with an async function, or? |
Unfortunately that would result in the line-by-line output for top level code no longer being possible. |
Can you not calculate the offset? |
I'm not sure what you mean by that, but I'm certain there's no simple solution here. |
Added above link to track when TLA is landing in Chromium |
This shipped now according to the linked docs. Any idea if this will be implemented? |
@hoegertn it's shipped with Chromium 89. RunJS is currently on Chromium 85. |
I would really like this as well. Any news @lukehaas ? |
@wc-matteo it's currently not possible due to upstream limitations. I'm very keen to support top-level await so if anything changes this will be top priority. |
Top level await would make runJS so much more useful, it would become a great playground for exploring and debugging various API |
If you are looking for logging async functions in a convenient way, you could enable pipe operator for your convenience
|
I would love to see this feature! |
That would be great indeed, are there any news? |
Just bought the software and this is the first issue I encounter in 30 seconds of using it... I'm sorry but it's 2023 and this is long overdue. I regret purchasing it without trying it out first. |
I liked runjs but I think there are way better alternatives now and free. |
@melMass any suggestions? |
@wc-matteo @timuric @jimmyn @hoegertn @letoast |
To try out things, top level await would be awesome.
It is very annoying to write:
With top level await:
The text was updated successfully, but these errors were encountered: