-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/react
SDK Version
7.102.0
Framework Version
18.2.0
Link to Sentry event
No response
SDK Setup
Sentry.init({
dsn: SENTRY_DSN,
environment,
release,
integrations: [Sentry.reactRouterV6BrowserTracingIntegration({
useEffect,
useLocation,
useNavigationType,
createRoutesFromChildren,
matchRoutes,
})]
});
Steps to Reproduce
- Install @sentry/react
- Do not enable replay
@sentry/replay adds ~300kb of JS in initial load itself, since we want sentry to start as soon as possible. But we aren't using replay as of now or it can be started lazily.
Sentry docs provide a way to lazy initiate replay, but then it is already part of the bundle.
https://docs.sentry.io/platforms/javascript/guides/svelte/session-replay/#lazy-loading-replay
Expected Result
Replay shouldn't be in the bundle.
Actual Result
Replay should only be part of the bundle if it is being used, or give a way to opt out from replay.
Metadata
Metadata
Assignees
Labels
Projects
Status