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 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",