Skip to content

Commit ad03c48

Browse files
authored
use-sync-external-store: Add exports field to package.json (#25231)
1 parent 9b042f9 commit ad03c48

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
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+
"./with-selector.js": "./with-selector.js",
9+
"./shim": {
10+
"react-native": "./shim/index.native.js",
11+
"default": "./shim/index.js"
12+
},
13+
"./shim/index.js": "./shim/index.js",
14+
"./shim/index.native": "./shim/index.native.js",
15+
"./shim/index.native.js": "./shim/index.native.js",
16+
"./shim/with-selector": "./shim/with-selector.js",
17+
"./shim/with-selector.js": "./shim/with-selector.js",
18+
"./package.json": "./package.json",
19+
"./src/*": "./src/*.js"
20+
},
521
"repository": {
622
"type": "git",
723
"url": "https://github.com/facebook/react.git",

0 commit comments

Comments
 (0)