From 6dc2dfd1fbd8ddcacd8d024a622a21de59ccaca2 Mon Sep 17 00:00:00 2001 From: Lindsay Gaines Date: Tue, 23 Jan 2024 17:42:48 +1100 Subject: [PATCH] Add exports to package.json This allows consumers to import the ESM or UMD build depending on the project type. Fixes #283 --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 1eef9e9..38eca0d 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,10 @@ "main": "dist/index.umd.js", "module": "dist/esm/index.js", "types": "dist/types/index.d.ts", + "exports": { + "import": "./dist/esm/index.js", + "require": "./dist/index.umd.js" + }, "files": [ "src", "dist",