| 39 | } |
| 40 | |
| 41 | function getDefaultIntegrations(options: BrowserOptions): Integration[] | undefined { |
| 42 | // This evaluates to true unless __SENTRY_TRACING__ is text-replaced with "false", |
| 43 | // in which case everything inside will get tree-shaken away |
| 44 | if (typeof __SENTRY_TRACING__ === 'undefined' || __SENTRY_TRACING__) { |
| 45 | return [...getDefaultSvelteIntegrations(options), svelteKitBrowserTracingIntegration()]; |
| 46 | } |
| 47 | |
| 48 | return getDefaultSvelteIntegrations(options); |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * During server-side page load, we injected a <script> that wraps `window.fetch` so that |