File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2222 "dependencies" : {
2323 "@sentry-internal/tracing" : " 7.47.0" ,
2424 "@sentry/core" : " 7.47.0" ,
25+ "@sentry/integrations" : " 7.47.0" ,
2526 "@sentry/node" : " 7.47.0" ,
2627 "@sentry/svelte" : " 7.47.0" ,
2728 "@sentry/types" : " 7.47.0" ,
Original file line number Diff line number Diff line change 11import { configureScope } from '@sentry/core' ;
2+ import { RewriteFrames } from '@sentry/integrations' ;
23import type { NodeOptions } from '@sentry/node' ;
34import { init as initNodeSdk , Integrations } from '@sentry/node' ;
45import { addOrUpdateIntegration } from '@sentry/utils' ;
@@ -23,4 +24,5 @@ export function init(options: NodeOptions): void {
2324
2425function addServerIntegrations ( options : NodeOptions ) : void {
2526 options . integrations = addOrUpdateIntegration ( new Integrations . Undici ( ) , options . integrations || [ ] ) ;
27+ options . integrations = addOrUpdateIntegration ( new RewriteFrames ( ) , options . integrations || [ ] ) ;
2628}
Original file line number Diff line number Diff line change @@ -9,7 +9,11 @@ import type { Plugin } from 'vite';
99
1010const DEFAULT_PLUGIN_OPTIONS : SentryVitePluginOptions = {
1111 // 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+ ] ,
1317} ;
1418
1519// sorcery has no types, so these are some basic type definitions:
You can’t perform that action at this time.
0 commit comments