From 83a59fc1859d2832175c1e410046c4d948b7ed84 Mon Sep 17 00:00:00 2001 From: Max Nowack Date: Tue, 12 Nov 2024 01:07:12 +0100 Subject: [PATCH] fix: use commonjs modules in commonjs build (#773) --- CHANGELOG.md | 1 + tsconfig.build.json | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc1712ce..f27bc45c 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)) ### Dependencies 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",