We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6473457 + 1ae44e7 commit 1cbea2fCopy full SHA for 1cbea2f
.changeset/wet-mails-do.md
@@ -0,0 +1,11 @@
1
+---
2
+"@logto/js": patch
3
4
+
5
+fix: add react-native export delclarations to js package.json
6
7
+Add react-native export entries to js package.json to fix the issue with react-native:
8
9
+```
10
+Can not resolve module '@logto/js'`from file`@logto/client/lib/shim.js`.
11
packages/js/package.json
@@ -4,9 +4,11 @@
"type": "module",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
+ "react-native": "./lib/index.js",
"exports": {
- "import": "./lib/index.js"
+ "import": "./lib/index.js",
+ "react-native": "./lib/index.js"
12
},
13
"files": [
14
"lib"
0 commit comments