From 2cdcfb741046ae6e0e6bde446a53557ff5a1f54e Mon Sep 17 00:00:00 2001 From: Korzhavin Ivan Date: Sat, 3 Oct 2026 22:37:17 +0000 Subject: [PATCH 1/2] fix(core): Mark package as side-effect free --- packages/core/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/package.json b/packages/core/package.json index 6130501aa9..c441082bd4 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -17,6 +17,7 @@ "definition": "dist/js/index.d.ts" }, "main": "dist/js/index.js", + "sideEffects": false, "scripts": { "build": "npx run-s build:sdk downlevel build:tools build:plugin build:replay-stubs", "build:sdk": "tsc -p tsconfig.build.json", From 7f6070f150a93173050daf538067d13f94bd747e Mon Sep 17 00:00:00 2001 From: Korzhavin Ivan Date: Sat, 3 Oct 2026 22:37:36 +0000 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fe0a960f9..3f8373cde2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Don't crash the iOS app when Sentry is initialized with an invalid DSN ([#6825](https://github.com/getsentry/sentry-react-native/pull/6825)) - Populate the Hermes runtime version on JS profiles instead of sending an empty value ([#6817](https://github.com/getsentry/sentry-react-native/pull/6817)) +- Mark `@sentry/react-native` as side-effect free so bundlers can tree-shake unused exports ([#6829](https://github.com/getsentry/sentry-react-native/pull/6829)) ## 8.29.0