From 922bb46d6228ac0d6aa6357356b2b4981ba85294 Mon Sep 17 00:00:00 2001 From: Philipp Schneider Date: Tue, 19 Apr 2022 22:13:55 +0200 Subject: [PATCH] fix: conditional exports in `package.json` The exports need to reference valid file paths _after_ the build, not before it. That they were invalid broke usage, at least with Vite. This commit resolves #504. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f746fe6..d64c6a0 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,8 @@ "Philipp Tailor (http://schneiders.space)" ], "exports": { - "import": "./index.js", - "default": "./index.js" + "import": "./dist/index.mjs", + "default": "./dist/index.js" }, "main": "dist/index.js", "module": "dist/index.mjs",