Open JounQin opened 4 years ago
Yes! PR to the Babel repo is welcome!
(cc @Jack-Works)
Happy to see this! But the proposal is likely going to change to modify the syntax on the for...of statement instead of await syntax. It also possible to only have the equivalent of await.all in the future.
If it's going to change that much, we could add a mandatory version: "jul-2020"
(the last meeting where it was presented) option, so that we can add a new version in the future.
If you prefer not to have this plugin for know, we can wait implementing it, but we are already using the version
option for other unstable proposals.
@nicolo-ribaudo I suggest we wait for a while if the proposal is likely to be renamed in the future. For example it may be renamed as await-all
if only await.all
is supported. In that case we are in a middle ground to face decision whether we should rename @babel/proposal-await-ops
to @babel/proposal-await-all
.
This is not unprecedented: module-attributes
=> import-attributes
=> import-conditions
=> import-assertions
and still TBD. 😄
👀
This proposal currently lacks motivation strong enough to move forward. Don't hope too much of progression.
await.ops proposal
implementation: https://github.com/JounQin/babel-plugin-proposal-await-ops/commit/4cc44f8ad38bc7bfaaa141733cb532ba561e422e
Shall I post a PR to babel repo or this repo first?