From c025fc087341193c36ef8c5fbaee04e86d1d3420 Mon Sep 17 00:00:00 2001 From: Hyeseong Kim Date: Mon, 19 Dec 2022 19:06:08 +0900 Subject: [PATCH] add conditional exports --- package.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package.json b/package.json index 8f2f743..6af112c 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,15 @@ "unpkg": "dist/clsx.min.js", "main": "dist/clsx.js", "types": "clsx.d.ts", + "exports": { + ".": { + "types": "./clsx.d.ts", + "require": "./dist/clsx.js", + "import": "./dist/clsx.m.js", + "browser": "./dist/clsx.min.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "author": { "name": "Luke Edwards",