From b8876b56b95eba486e40db39b92a5ecea2be455f Mon Sep 17 00:00:00 2001 From: Marco Wang Date: Tue, 10 Mar 2026 13:53:04 -0700 Subject: [PATCH] switch to hermes for react-native-codegen (#56024) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56024 Switch js/react-native-github/packages/react-native-codegen/package.json to use hermes instead of babel Changelog: [internal] Reviewed By: SamChou19815 Differential Revision: D95878474 fbshipit-source-id: 566e054abedc7062c34e1ea68f592071c2a83c6b --- packages/react-native-codegen/.babelrc | 1 + packages/react-native-codegen/package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/react-native-codegen/.babelrc b/packages/react-native-codegen/.babelrc index 92e8086a151..48f52627f8b 100644 --- a/packages/react-native-codegen/.babelrc +++ b/packages/react-native-codegen/.babelrc @@ -1,5 +1,6 @@ { "plugins": [ + "babel-plugin-syntax-hermes-parser", "@babel/plugin-transform-flow-strip-types", "@babel/plugin-syntax-dynamic-import", "@babel/plugin-transform-class-properties", diff --git a/packages/react-native-codegen/package.json b/packages/react-native-codegen/package.json index 10457667a2d..f31337c81cb 100644 --- a/packages/react-native-codegen/package.json +++ b/packages/react-native-codegen/package.json @@ -45,6 +45,7 @@ "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7", "@babel/plugin-transform-optional-chaining": "^7.24.8", "@babel/preset-env": "^7.25.3", + "babel-plugin-syntax-hermes-parser": "0.33.3", "hermes-estree": "0.33.3", "micromatch": "^4.0.4", "prettier": "3.6.2",