Skip to content

Babel preset: Add unstable_preserveBlockScoping to experiment with disabling block-scoping transform for SH#56825

Closed
robhogan wants to merge 1 commit into
mainfrom
export-D93013927
Closed

Babel preset: Add unstable_preserveBlockScoping to experiment with disabling block-scoping transform for SH#56825
robhogan wants to merge 1 commit into
mainfrom
export-D93013927

Conversation

@robhogan
Copy link
Copy Markdown
Contributor

Summary:
Disable babel/plugin-transform-block-scoping when customTransformOptions.unstable_preserveBlockScoping is truthy. This allows us to experiment with native let/const block scoping support in Static Hermes.

Changelog: [Internal]

Reviewed By: vzaidman

Differential Revision: D93013927

…sabling block-scoping transform for SH

Summary:
Disable `babel/plugin-transform-block-scoping` when `customTransformOptions.unstable_preserveBlockScoping` is truthy. This allows us to experiment with native let/const block scoping support in Static Hermes.

Changelog: [Internal]

Reviewed By: vzaidman

Differential Revision: D93013927
@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 May 14, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 14, 2026

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

@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 14, 2026

This pull request has been merged in e4cb767.

@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label May 14, 2026
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @robhogan in e4cb767

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