Skip to content

Babel preset: Add unstable_preserveAsync to experiment with disabling async transforms for SH (#56254)#56254

Closed
robhogan wants to merge 1 commit intomainfrom
export-D93013928
Closed

Babel preset: Add unstable_preserveAsync to experiment with disabling async transforms for SH (#56254)#56254
robhogan wants to merge 1 commit intomainfrom
export-D93013928

Conversation

@robhogan
Copy link
Copy Markdown
Contributor

@robhogan robhogan commented Mar 27, 2026

Summary:

Disable babel/plugin-transform-async-to-generator and babel/plugin-transform-async-generator-functions when customTransformOptions.unstable_preserveAsync is truthy. This allows us to experiment with native async/await support in Static Hermes.

Changelog: [Internal]

Reviewed By: vzaidman

Differential Revision: D93013928

@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 27, 2026

@robhogan has exported this pull request. If you are a Meta employee, you can view the originating Diff in D93013928.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 27, 2026
@meta-codesync meta-codesync bot changed the title Babel preset: Add unstable_preserveAsync to experiment with disabling async transforms for SH Babel preset: Add unstable_preserveAsync to experiment with disabling async transforms for SH (#56254) Mar 27, 2026
meta-codesync bot pushed a commit that referenced this pull request Mar 27, 2026
… async transforms for SH (#56254)

Summary:

Disable `babel/plugin-transform-async-to-generator` and `babel/plugin-transform-async-generator-functions` when `customTransformOptions.unstable_preserveAsync` is truthy. This allows us to experiment with native async/await support in Static Hermes.

Changelog: [Internal]

Reviewed By: vzaidman

Differential Revision: D93013928
meta-codesync bot pushed a commit that referenced this pull request Mar 27, 2026
… async transforms for SH (#56254)

Summary:

Disable `babel/plugin-transform-async-to-generator` and `babel/plugin-transform-async-generator-functions` when `customTransformOptions.unstable_preserveAsync` is truthy. This allows us to experiment with native async/await support in Static Hermes.

Changelog: [Internal]

Reviewed By: vzaidman

Differential Revision: D93013928
robhogan added a commit that referenced this pull request Mar 27, 2026
… async transforms for SH (#56254)

Summary:
Pull Request resolved: #56254

Disable `babel/plugin-transform-async-to-generator` and `babel/plugin-transform-async-generator-functions` when `customTransformOptions.unstable_preserveAsync` is truthy. This allows us to experiment with native async/await support in Static Hermes.

Changelog: [Internal]

Reviewed By: vzaidman

Differential Revision: D93013928
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @robhogan in ebefed4

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Mar 27, 2026
… async transforms for SH (#56254)

Summary:
Pull Request resolved: #56254

Disable `babel/plugin-transform-async-to-generator` and `babel/plugin-transform-async-generator-functions` when `customTransformOptions.unstable_preserveAsync` is truthy. This allows us to experiment with native async/await support in Static Hermes.

Changelog: [Internal]

Reviewed By: vzaidman

Differential Revision: D93013928
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @robhogan in 41949b4

When will my fix make it into a release? | How to file a pick request?

@meta-codesync meta-codesync bot closed this in a92bea8 Mar 27, 2026
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @robhogan in a92bea8

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants