use-sync-external-store: Add `exports` field to `package.json` (#25231)
Sebastian "Sebbie" Silbermann committed
Feb 24, 2025 at 13:01 UTC
ad03c48a71cb7d5f7927b527cb9a8da1a3286875
2 files changed
+16
packages/use-sync-external-store/package.json
+16
@@ -2,6 +2,22 @@
2
"name": "use-sync-external-store",
3
"description": "Backwards compatible shim for React's useSyncExternalStore. Works with any React that supports hooks.",
4
"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
+ },
21
"repository": {
22
"type": "git",
23
"url": "https://github.com/facebook/react.git",