From 850777bbfcae3e398b185121ac76f92573794527 Mon Sep 17 00:00:00 2001 From: Daishi Kato Date: Fri, 2 May 2025 08:20:58 +0900 Subject: [PATCH] react-native condition for CJS (#3087) --- package.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package.json b/package.json index e298ac37..4b3ad391 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,10 @@ "exports": { "./package.json": "./package.json", ".": { + "react-native": { + "types": "./index.d.ts", + "default": "./index.js" + }, "import": { "types": "./esm/index.d.mts", "default": "./esm/index.mjs" @@ -37,6 +41,10 @@ } }, "./*": { + "react-native": { + "types": "./*.d.ts", + "default": "./*.js" + }, "import": { "types": "./esm/*.d.mts", "default": "./esm/*.mjs"