From ba564e3076270689529ae5ce5df59a9d216a2547 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:21:05 +0200 Subject: [PATCH] fix(metro-resolver-symlinks): widen supported Metro version range --- .changeset/honest-trainers-sparkle.md | 5 +++++ packages/metro-resolver-symlinks/src/utils/patchMetro.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/honest-trainers-sparkle.md diff --git a/.changeset/honest-trainers-sparkle.md b/.changeset/honest-trainers-sparkle.md new file mode 100644 index 000000000..d50652b4d --- /dev/null +++ b/.changeset/honest-trainers-sparkle.md @@ -0,0 +1,5 @@ +--- +"@rnx-kit/metro-resolver-symlinks": patch +--- + +Verified that `experimental_retryResolvingFromDisk` works with Metro 0.81 diff --git a/packages/metro-resolver-symlinks/src/utils/patchMetro.ts b/packages/metro-resolver-symlinks/src/utils/patchMetro.ts index cf7791820..c96227d04 100644 --- a/packages/metro-resolver-symlinks/src/utils/patchMetro.ts +++ b/packages/metro-resolver-symlinks/src/utils/patchMetro.ts @@ -30,7 +30,7 @@ function supportsRetryResolvingFromDisk(): boolean { const { version } = importMetroModule("/package.json"); const [major, minor] = version.split("."); const v = major * 1000 + minor; - return v >= 64 && v <= 80; + return v >= 64 && v <= 81; } export function shouldEnableRetryResolvingFromDisk({