use-sync-external-store: Add exports field to package.json (#25231)

This commit is contained in:
Sebastian "Sebbie" Silbermann 2025-02-24 13:01:59 +01:00 committed by GitHub
parent 9b042f9d59
commit ad03c48a71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,22 @@
"name": "use-sync-external-store",
"description": "Backwards compatible shim for React's useSyncExternalStore. Works with any React that supports hooks.",
"version": "1.5.0",
"exports": {
".": "./index.js",
"./with-selector": "./with-selector.js",
"./with-selector.js": "./with-selector.js",
"./shim": {
"react-native": "./shim/index.native.js",
"default": "./shim/index.js"
},
"./shim/index.js": "./shim/index.js",
"./shim/index.native": "./shim/index.native.js",
"./shim/index.native.js": "./shim/index.native.js",
"./shim/with-selector": "./shim/with-selector.js",
"./shim/with-selector.js": "./shim/with-selector.js",
"./package.json": "./package.json",
"./src/*": "./src/*.js"
},
"repository": {
"type": "git",
"url": "https://github.com/facebook/react.git",