Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d77e5f6

Browse files
committedFeb 4, 2025··
use-sync-external-store: Add exports field to package.json
1 parent 028c8e6 commit d77e5f6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
 

‎packages/use-sync-external-store/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
"name": "use-sync-external-store",
33
"description": "Backwards compatible shim for React's useSyncExternalStore. Works with any React that supports hooks.",
44
"version": "1.5.0",
5+
"exports": {
6+
".": "./index.js",
7+
"./with-selector": "./with-selector.js",
8+
"./shim": {
9+
"react-native": "./shim/index.native.js",
10+
"default": "./shim/index.js"
11+
},
12+
"./shim/index.native": "./shim/index.native.js",
13+
"./shim/with-selector": "./shim/with-selector.js",
14+
"./package.json": "./package.json",
15+
"./src/*": "./src/*.js"
16+
},
517
"repository": {
618
"type": "git",
719
"url": "https://github.com/facebook/react.git",

0 commit comments

Comments
 (0)
Please sign in to comment.