Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix: add package exports

Kael886889ba301b
diff --git a/package.json b/package.json
index 0eac0e542..ef47c94b3 100644
--- a/package.json
+++ b/package.json
@@ -15,6 +15,14 @@
"start": "rollup -c -w",
"tsc": "tsc -p tsconfig.esnext.json"
},
+ "exports": {
+ ".": {
+ "import": "./dist/esnext/index.js",
+ "require": "./dist/swetrix.cjs.js",
+ "types": "./dist/esnext/index.d.ts",
+ "default": "./dist/swetrix.js"
+ }
+ },
"keywords": [
"swetrix",
"analytics",