From 2859918792a7329fc4eaf9e843fbf87dea936dfa Mon Sep 17 00:00:00 2001 From: Sam Zhou Date: Mon, 1 Jun 2026 15:49:10 -0700 Subject: [PATCH] Resolve `babel-plugin-syntax-hermes-parser` from `metro-babel-register` to latest Summary: We have [this revert](https://github.com/facebook/react-native/commit/833144fcecf8be72a372c655933a5496b8775d60) because the metro is stuck on an old version of of hermes-parser. The parser is already bumped in the metro source code. Instead of waiting for a new release that's tied to the react native release cycle, let's just bump it here and now via yarn resolution. It can be removed once a new version is cut. Changelog: [Internal] Differential Revision: D107165685 --- package.json | 1 + yarn.lock | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index cbb87cf7f91..dfb08412500 100644 --- a/package.json +++ b/package.json @@ -124,6 +124,7 @@ "on-headers": "1.1.0", "compression": "1.8.1", "@microsoft/api-extractor/minimatch": "3.1.4", + "metro-babel-register/babel-plugin-syntax-hermes-parser": "0.36.1", "lodash": "4.18.1" } } diff --git a/yarn.lock b/yarn.lock index 51fa903bdcc..52b8e5ff6ad 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3068,14 +3068,7 @@ babel-plugin-replace-ts-export-assignment@^0.0.2: resolved "https://registry.yarnpkg.com/babel-plugin-replace-ts-export-assignment/-/babel-plugin-replace-ts-export-assignment-0.0.2.tgz#927a30ba303fcf271108980a8d4f80a693e1d53f" integrity sha512-BiTEG2Ro+O1spuheL5nB289y37FFmz0ISE6GjpNCG2JuA/WNcuEHSYw01+vN8quGf208sID3FnZFDwVyqX18YQ== -babel-plugin-syntax-hermes-parser@0.35.0: - version "0.35.0" - resolved "https://registry.yarnpkg.com/babel-plugin-syntax-hermes-parser/-/babel-plugin-syntax-hermes-parser-0.35.0.tgz#9daa5340b6a5b329985f4c5cda2c6b1a355daed5" - integrity sha512-9Hbqe8S8JWQ4EiHBFFkqLiFPXJL4bHhYooT536r78jVPfSUtgLtY9lCelY4QJzJORSy/9L3zXDhyN+QsPBMsTw== - dependencies: - hermes-parser "0.35.0" - -babel-plugin-syntax-hermes-parser@0.36.1: +babel-plugin-syntax-hermes-parser@0.35.0, babel-plugin-syntax-hermes-parser@0.36.1: version "0.36.1" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-hermes-parser/-/babel-plugin-syntax-hermes-parser-0.36.1.tgz#970277618fbec67b400bf8b01e4f61ba96ef5a40" integrity sha512-ycduwJbvdvIMmVvlAZqGggS+pm5Eu4Bk9pcV9Sm2Z4PJNRVsKkv0g7vHj+LeuC1gHTeF67sJXFOq61IlqCa2hA==