diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2024-06-18 12:32:13 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2024-06-18 12:32:13 +0200 |
commit | 03f4223e81c5ddf00742ed68a6b08db0c7db3d12 (patch) | |
tree | 9bca571fcc644af3aa29f7525e646ddc692994d0 | |
parent | abbaea0219a8667bf3205e21200ec8fa64d2fb5d (diff) | |
download | svg.js-03f4223e81c5ddf00742ed68a6b08db0c7db3d12.tar.gz svg.js-03f4223e81c5ddf00742ed68a6b08db0c7db3d12.zip |
fix import map
-rw-r--r-- | package.json | 12 |
1 files changed, 10 insertions, 2 deletions
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", |