Is there already support for top-level await?
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.6k
- Forks
- 696
- Avg merge
- 8m
- Merged PRs (30d)
- 7
Description
I'm looking to use the new top-level await in a react-native app. Babel has a plugin to support the syntax but no transformation. Is there any plan to support it in metro?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the linked TC39 top-level-await proposal and Babel syntax plugin, then investigate how Metro currently handles this syntax for React Native apps. Done would require a clear support plan or implementation, with documented behavior and validation for a React Native app.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript, react-native
- Domain
- build-system, mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100