From 8e4780cde2bd5a7a053a628cee411add15d8f1e2 Mon Sep 17 00:00:00 2001 From: Max Nowack Date: Thu, 7 Nov 2024 16:48:40 +0100 Subject: [PATCH] fix: use commonjs modules in commonjs build --- CHANGELOG.md | 1 + tsconfig.build.json | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f69abe8..e67ac8da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ ### Fixes - options normalizeDepth and normalizeMaxBreadth are now being respected when adding a breadcrumb. ([#766](https://github.com/getsentry/sentry-capacitor/pull/766)) +- CommonJS build does not contain ESM code anymore ([#773](https://github.com/getsentry/sentry-capacitor/pull/773)) ## 1.0.1 diff --git a/tsconfig.build.json b/tsconfig.build.json index ebf0b72a..fbec7ef2 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -2,6 +2,7 @@ "extends": "./node_modules/@sentry-internal/typescript/tsconfig.json", "compilerOptions": { "baseUrl": ".", + "module": "commonjs", "outDir": "dist/build", "lib": ["DOM", "ES2018"], "target": "es2018",