File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/astro/src/client Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,15 @@ export function init(options: BrowserOptions): void {
3030}
3131
3232function getDefaultIntegrations ( options : BrowserOptions ) : Integration [ ] | undefined {
33+ const defaultIntegrations = [ ...getBrowserDefaultIntegrations ( options ) ] ;
34+
3335 // This evaluates to true unless __SENTRY_TRACING__ is text-replaced with "false",
3436 // in which case everything inside will get treeshaken away
3537 if ( typeof __SENTRY_TRACING__ === 'undefined' || __SENTRY_TRACING__ ) {
3638 if ( hasTracingEnabled ( options ) ) {
37- return [ ...getBrowserDefaultIntegrations ( options ) , browserTracingIntegration ( ) ] ;
39+ return [ ...defaultIntegrations , browserTracingIntegration ( ) ] ;
3840 }
3941 }
4042
41- return undefined ;
43+ return defaultIntegrations ;
4244}
You can’t perform that action at this time.
0 commit comments