Skip to content

Commit 1cbea2f

Browse files
authored
Merge pull request #946 from logto-io/simeng-react-native-export
fix(js): add react-native export declarations
2 parents 6473457 + 1ae44e7 commit 1cbea2f

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.changeset/wet-mails-do.md

+11
Original file line numberDiff line numberDiff line change
@@ -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

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
"type": "module",
55
"module": "./lib/index.js",
66
"types": "./lib/index.d.ts",
7+
"react-native": "./lib/index.js",
78
"exports": {
89
"types": "./lib/index.d.ts",
9-
"import": "./lib/index.js"
10+
"import": "./lib/index.js",
11+
"react-native": "./lib/index.js"
1012
},
1113
"files": [
1214
"lib"

0 commit comments

Comments
 (0)