From 2cd6989fab8e8f2c0ca5f5dde92b052a9f0ec919 Mon Sep 17 00:00:00 2001 From: kpal Date: Fri, 23 Feb 2024 14:11:36 +0000 Subject: [PATCH] changed main to import in package json exports --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 444024ef..07173263 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,10 @@ "main": "dist/module/src/index.mjs", "exports": { ".": "./dist/module/src/index.mjs", - "./react": "./react/dist/module/src/index.mjs", + "./react": { + "import": "./react/dist/module/src/index.mjs", + "types": "./react/types/index.d.ts" + }, "./styles": "./styles/dist/index.mjs" }, "types": "types/index.d.ts",