File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
14
14
winterCGRequestToRequestData ,
15
15
withIsolationScope ,
16
16
} from '@sentry/core' ;
17
- import { type Handle , type ResolveOptions , VERSION } from '@sveltejs/kit' ;
17
+ import { type Handle , type ResolveOptions } from '@sveltejs/kit' ;
18
18
19
19
import { DEBUG_BUILD } from '../common/debug-build' ;
20
20
import { flushIfServerless , getTracePropagationData , sendErrorToSentry } from './utils' ;
@@ -95,7 +95,7 @@ export function addSentryCodeToPage(options: { injectFetchProxyScript: boolean }
95
95
export function sentryHandle ( handlerOptions ?: SentryHandleOptions ) : Handle {
96
96
const options : Required < SentryHandleOptions > = {
97
97
handleUnknownRoutes : false ,
98
- injectFetchProxyScript : isFetchProxyRequired ( VERSION ) ,
98
+ injectFetchProxyScript : isFetchProxyRequired ( '2.16.0' ) ,
99
99
...handlerOptions ,
100
100
} ;
101
101
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ export async function sentrySvelteKit(options: SentrySvelteKitPluginOptions = {}
26
26
adapter : options . adapter || ( await detectAdapter ( options . debug ) ) ,
27
27
} ;
28
28
29
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
30
+ // @ts -ignore - just testing for now
31
+ const kit = await import ( '@sveltejs/kit' ) ;
32
+ console . log ( 'XX kit version' , kit . VERSION ) ;
33
+
29
34
const sentryPlugins : Plugin [ ] = [ ] ;
30
35
31
36
if ( mergedOptions . autoInstrument ) {
You can’t perform that action at this time.
0 commit comments