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!

exports

Blue Mouse216d00742fcf
diff --git a/package.json b/package.json
index 87d56d67a..257c16a9c 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,13 @@
"module": "dist/swetrix.es5.js",
"esnext": "dist/esnext/index.js",
"typings": "dist/esnext/index.d.ts",
+ "exports": {
+ ".": {
+ "types": "./dist/esnext/index.d.ts",
+ "import": "./dist/swetrix.es5.js",
+ "require": "./dist/swetrix.cjs.js"
+ }
+ },
"scripts": {
"prebuild": "rimraf dist",
"prepublish": "npm run build",