From 0239ad2dd67ac6a74e801627c8b169183069638c Mon Sep 17 00:00:00 2001 From: Thibaut SABOT <9283289+thibautsabot@users.noreply.github.com> Date: Tue, 2 Jul 2024 09:35:13 +0200 Subject: [PATCH] fix: export node and default modules --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 36f29973..d94468a1 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,11 @@ "module": "dist/strophe.esm.js", "unpkg": "dist/strophe.umd.min.js", "exports": { - ".": "./src/index.js" + "node": { + "import": "./dist/strophe.esm.js", + "require": "./dist/strophe.common.js" + }, + "default": "./src/index.js" }, "scripts": { "types": "tsc",