From bf1bc324c7426c570728f26a9ecb896bd0f94192 Mon Sep 17 00:00:00 2001 From: Jacek Pudysz Date: Wed, 22 Oct 2025 15:10:45 +0200 Subject: [PATCH] feat: add support for windows builds --- packages/uniwind/src/metro/resolvers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/uniwind/src/metro/resolvers.ts b/packages/uniwind/src/metro/resolvers.ts index d377720f..730fa2ef 100644 --- a/packages/uniwind/src/metro/resolvers.ts +++ b/packages/uniwind/src/metro/resolvers.ts @@ -93,7 +93,7 @@ export const webResolver = ({ const isIndex = segments.at(-1)?.startsWith('index.') const module = segments.at(-2) - if (!isIndex || module === undefined || !SUPPORTED_COMPONENTS.includes(module) || context.originModulePath.endsWith(`${module}/index.js`)) { + if (!isIndex || module === undefined || !SUPPORTED_COMPONENTS.includes(module) || context.originModulePath.endsWith(`${module}${sep}index.js`)) { return resolution }