]> source.dussan.org Git - svg.js.git/commitdiff
fix import map
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Tue, 18 Jun 2024 10:32:13 +0000 (12:32 +0200)
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Tue, 18 Jun 2024 10:32:13 +0000 (12:32 +0200)
package.json

index e227da3878864351678cd0999bdbb0a16f43cef6..b49116b05ff314d66eb95d2008b81ff16deb6054 100644 (file)
   "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",