diff --git a/packages/use-sync-external-store/package.json b/packages/use-sync-external-store/package.json index f8ed0643afc73..01596796b5750 100644 --- a/packages/use-sync-external-store/package.json +++ b/packages/use-sync-external-store/package.json @@ -7,6 +7,16 @@ "url": "https://github.com/facebook/react.git", "directory": "packages/use-sync-external-store" }, + "exports": { + ".": "./index.js", + "./shim": "./shim/index.js", + "./shim/index.native": "./shim/index.native.js", + "./shim/with-selector": "./shim/with-selector.js", + "./with-selector": "./with-selector.js", + "./with-selector.native": "./with-selector.native.js", + "./package.json": "./package.json", + "./shim/*": "./shim/*" + }, "files": [ "LICENSE", "README.md", diff --git a/packages/use-sync-external-store/shim/with-selector/index.js b/packages/use-sync-external-store/shim/with-selector.js similarity index 100% rename from packages/use-sync-external-store/shim/with-selector/index.js rename to packages/use-sync-external-store/shim/with-selector.js