From ab00ba9bbd240bc2e3f03879773e78a6cd37ff92 Mon Sep 17 00:00:00 2001 From: Trygve Lie Date: Mon, 12 Aug 2024 22:32:38 +0200 Subject: [PATCH] fix: Export ESM module --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index d399cedc..ad7984bd 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,11 @@ }, "license": "Apache-2.0", "author": "Justin Poehnelt", + "type": "module", + "exports": { + "import": "./dist/index.esm.js", + "require": "./dist/index.umd.js" + }, "main": "dist/index.umd.js", "unpkg": "dist/index.min.js", "module": "dist/index.esm.js",