From 169fe5f85f18f035063c1cc280e65aebc99bcedd Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Thu, 20 Feb 2025 11:08:24 +1100 Subject: [PATCH] feat: add module exports for ES and CommonJS formats in package.json --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 1633cc2..a0bbd5b 100644 --- a/package.json +++ b/package.json @@ -27,5 +27,9 @@ "typescript-eslint": "^8.22.0", "vite": "^6.1.0", "vite-plugin-dts": "^4.5.0" + }, + "exports": { + "import": "./dist/datenel.es.js", + "require": "./dist/index.umd.js" } }