Skip to content

Commit 47c9fed

Browse files
committed
ref(astro): Import the route provider API from @sentry/browser
1 parent 313e880 commit 47c9fed

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎packages/astro/src/client/routeProvider.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { RouteProvider } from '@sentry/core/browser';
1+
import type { RouteProvider } from '@sentry/browser';
22
import { WINDOW } from '@sentry/browser';
33

44
/**

‎packages/astro/src/client/sdk.ts‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import type { BrowserOptions } from '@sentry/browser';
2-
import { getDefaultIntegrations as getBrowserDefaultIntegrations, init as initBrowserSdk } from '@sentry/browser';
2+
import {
3+
getDefaultIntegrations as getBrowserDefaultIntegrations,
4+
init as initBrowserSdk,
5+
setRouteProvider,
6+
} from '@sentry/browser';
37
import type { Client, Integration } from '@sentry/core';
48
import { applySdkMetadata } from '@sentry/core';
5-
import { setRouteProvider } from '@sentry/core/browser';
69
import { browserTracingIntegration } from './browserTracingIntegration';
710
import { createAstroRouteProvider } from './routeProvider';
811

0 commit comments

Comments
 (0)