Use hermes-parser when building Node packages (#45041)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/45041

Changelog: [Internal]

TSIA

Reviewed By: huntie

Differential Revision: D58734657

fbshipit-source-id: d5b17bc0ee8f36bae7c594d99ce70ecea9bf4a40
This commit is contained in:
Moti Zilberman
2024-06-18 09:43:20 -07:00
committed by Facebook GitHub Bot
parent e55ea2daf1
commit e0fcf2983a
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -55,6 +55,7 @@
"@typescript-eslint/parser": "^7.1.1",
"ansi-styles": "^4.2.1",
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
"babel-plugin-syntax-hermes-parser": "0.22.0",
"babel-plugin-transform-define": "^2.1.2",
"babel-plugin-transform-flow-enums": "^0.0.2",
"babel-preset-fbjs": "^3.4.0",
+1
View File
@@ -28,6 +28,7 @@ const config /*: BabelCoreOptions */ = {
],
],
plugins: [
require.resolve('babel-plugin-syntax-hermes-parser'),
[
require.resolve('babel-plugin-transform-define'),
{
+7
View File
@@ -3709,6 +3709,13 @@ babel-plugin-syntax-hermes-parser@0.17.0:
dependencies:
hermes-parser "0.17.0"
babel-plugin-syntax-hermes-parser@0.22.0:
version "0.22.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-hermes-parser/-/babel-plugin-syntax-hermes-parser-0.22.0.tgz#708aa61189aa8ef882d3638e40da2d685a742298"
integrity sha512-DSZphimfuycQgouuhqUq9gCV1dNKFaA1phquNFjj3nO2Rx+zAcCMc8qrUK9koxJyEN+y+CihP3Kya6ukCl13OQ==
dependencies:
hermes-parser "0.22.0"
babel-plugin-syntax-trailing-function-commas@^7.0.0-beta.0:
version "7.0.0-beta.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-7.0.0-beta.0.tgz#aa213c1435e2bffeb6fca842287ef534ad05d5cf"