react-native condition for CJS (#3087)

This commit is contained in:
Daishi Kato 2025-05-02 08:20:58 +09:00 committed by GitHub
parent c72ac92764
commit 850777bbfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"