react / react/metro

Is there already support for top-level await?

Open
#522 0 comments 31 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.