Skip to content

Remove isHermesV1 from Babel preset (#56754)#56754

Closed
cipolleschi wants to merge 6 commits into
react:mainfrom
cipolleschi:export-D104649639
Closed

Remove isHermesV1 from Babel preset (#56754)#56754
cipolleschi wants to merge 6 commits into
react:mainfrom
cipolleschi:export-D104649639

Conversation

@cipolleschi

@cipolleschi cipolleschi commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary:

Hermes V1 (Static Hermes) is now always enabled. Remove the isHermesV1 variable and inline its effects:

  • enableRegenerator is always based on dev mode (was isHermesV1 && dev)
  • preserveClasses is always true (was isHermesV1)

Also update the comments to drop the 'V1' framing.

Changelog:

[Internal] -

Reviewed By: cortinico

Differential Revision: D104649639

@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 11, 2026
@meta-codesync

meta-codesync Bot commented May 11, 2026

Copy link
Copy Markdown

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

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync Bot changed the title Remove isHermesV1 from Babel preset Remove isHermesV1 from Babel preset (#56754) May 11, 2026
@cipolleschi cipolleschi force-pushed the export-D104649639 branch 5 times, most recently from dde7574 to ccaabf1 Compare May 11, 2026 14:27
Riccardo Cipolleschi and others added 5 commits May 11, 2026 07:30
…oad the correct commit data.

Differential Revision: D104228879
…oad the correct commit data.

Differential Revision: D104244582
Summary:
Pull Request resolved: #56735

  - Remove `RCT_HERMES_V1_ENABLED` environment variable from `react_native_pods.rb`
  - Simplify `jsengine.rb` to always use `.hermesversion` tag file
  - Remove conditional `HERMES_V1_ENABLED=1` preprocessor definition from `utils.rb`
  - Simplify `hermes-engine.podspec`: always read `HERMES_VERSION_NAME`, use V1 source files, remove legacy inspector subspecs
  - Simplify `hermes-utils.rb`: remove `hermes_v1_enabled()` function, always use `250829098.0.0-stable` branch, always use `.hermesversion` tag file

## Changelog:
[iOS][Removed] - Remove the RCT_HERMES_V1_ENABLED from Cocoapods

  ## Test plan
  - [x] iOS: `bundle exec pod install` — success
  - [x] iOS: `xcodebuild` rn-tester on iPhone 16 Pro simulator — BUILD SUCCEEDED

Differential Revision: D104247277

Reviewed By: cortinico
Differential Revision: D104380961
Differential Revision: D104381269
Summary:
Pull Request resolved: #56754

Hermes V1 (Static Hermes) is now always enabled. Remove the isHermesV1 variable and inline its effects:
- enableRegenerator is always based on dev mode (was isHermesV1 && dev)
- preserveClasses is always true (was isHermesV1)

Also update the comments to drop the 'V1' framing.

## Changelog:
[Internal] -

Reviewed By: cortinico

Differential Revision: D104649639
@meta-codesync meta-codesync Bot closed this in 26040d8 May 11, 2026
@meta-codesync

meta-codesync Bot commented May 11, 2026

Copy link
Copy Markdown

This pull request has been merged in 26040d8.

@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label May 11, 2026
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