From: Ulrich-Matthias Schäfer Date: Tue, 18 Jun 2024 10:32:13 +0000 (+0200) Subject: fix import map X-Git-Tag: 3.2.2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=03f4223e81c5ddf00742ed68a6b08db0c7db3d12;p=svg.js.git fix import map --- diff --git a/package.json b/package.json index e227da3..b49116b 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,16 @@ "browser": "dist/svg.esm.js", "module": "src/main.js", "exports": { - "import": "./src/main.js", - "require": "./dist/svg.node.cjs" + ".": { + "import": { + "default": "./src/main.js", + "types": "./svg.js.d.ts" + }, + "require": { + "default": "./dist/svg.node.cjs", + "types": "./svg.js.d.ts" + } + } }, "files": [ "/dist",