File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 22
22
"dependencies" : {
23
23
"@sentry-internal/tracing" : " 7.47.0" ,
24
24
"@sentry/core" : " 7.47.0" ,
25
+ "@sentry/integrations" : " 7.47.0" ,
25
26
"@sentry/node" : " 7.47.0" ,
26
27
"@sentry/svelte" : " 7.47.0" ,
27
28
"@sentry/types" : " 7.47.0" ,
Original file line number Diff line number Diff line change 1
1
import { configureScope } from '@sentry/core' ;
2
+ import { RewriteFrames } from '@sentry/integrations' ;
2
3
import type { NodeOptions } from '@sentry/node' ;
3
4
import { init as initNodeSdk , Integrations } from '@sentry/node' ;
4
5
import { addOrUpdateIntegration } from '@sentry/utils' ;
@@ -23,4 +24,5 @@ export function init(options: NodeOptions): void {
23
24
24
25
function addServerIntegrations ( options : NodeOptions ) : void {
25
26
options . integrations = addOrUpdateIntegration ( new Integrations . Undici ( ) , options . integrations || [ ] ) ;
27
+ options . integrations = addOrUpdateIntegration ( new RewriteFrames ( ) , options . integrations || [ ] ) ;
26
28
}
Original file line number Diff line number Diff line change @@ -9,7 +9,11 @@ import type { Plugin } from 'vite';
9
9
10
10
const DEFAULT_PLUGIN_OPTIONS : SentryVitePluginOptions = {
11
11
// TODO: Read these values from the node adapter somehow as the out dir can be changed in the adapter options
12
- include : [ 'build/server' , 'build/client' ] ,
12
+ include : [
13
+ { paths : [ 'build/client' ] } ,
14
+ { paths : [ 'build/server/chunks' ] } ,
15
+ { paths : [ 'build/server' ] , ignore : [ 'chunks/**' ] } ,
16
+ ] ,
13
17
} ;
14
18
15
19
// sorcery has no types, so these are some basic type definitions:
You can’t perform that action at this time.
0 commit comments