Skip to content

Remove isHermesV1 from Babel preset (#56754)#56754

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

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

Conversation

@cipolleschi
Copy link
Copy Markdown
Contributor

@cipolleschi cipolleschi commented May 11, 2026

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
Copy link
Copy Markdown

meta-codesync Bot commented May 11, 2026

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

Copy link
Copy Markdown
Contributor

@cortinico cortinico left a comment

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.

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request May 11, 2026
Summary:
Pull Request resolved: facebook#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.

Reviewed By: cortinico

Differential Revision: D104649639
@meta-codesync meta-codesync Bot changed the title Remove isHermesV1 from Babel preset Remove isHermesV1 from Babel preset (#56754) May 11, 2026
cipolleschi added a commit to cipolleschi/react-native that referenced this pull request May 11, 2026
Summary:
Pull Request resolved: facebook#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.

Reviewed By: cortinico

Differential Revision: D104649639
cipolleschi added a commit to cipolleschi/react-native that referenced this pull request May 11, 2026
Summary:
Pull Request resolved: facebook#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.

Reviewed By: cortinico

Differential Revision: D104649639
cipolleschi added a commit to cipolleschi/react-native that referenced this pull request May 11, 2026
Summary:
Pull Request resolved: facebook#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.

Reviewed By: cortinico

Differential Revision: D104649639
cipolleschi added a commit to cipolleschi/react-native that referenced this pull request May 11, 2026
Summary:
Pull Request resolved: facebook#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
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
…56735)

Summary:
Pull Request resolved: facebook#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
cipolleschi added a commit to cipolleschi/react-native that referenced this pull request May 11, 2026
Summary:
Pull Request resolved: facebook#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
Summary:
Pull Request resolved: facebook#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
Copy link
Copy Markdown

meta-codesync Bot commented May 11, 2026

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