File tree Expand file tree Collapse file tree 3 files changed +50
-14
lines changed Expand file tree Collapse file tree 3 files changed +50
-14
lines changed Original file line number Diff line number Diff line change 1
1
export * from './client' ;
2
-
3
- /**
4
- * This const serves no purpose besides being an identifier for this file that the SDK multiplexer loader can use to
5
- * determine that this is in fact a file that wants to be multiplexed.
6
- */
7
- export const _SENTRY_SDK_MULTIPLEXER = true ;
Original file line number Diff line number Diff line change 1
1
export * from './server' ;
2
2
export * from './config' ;
3
-
4
- // This file is the main entrypoint on the server and/or when the package is `require`d
5
-
6
- /**
7
- * This const serves no purpose besides being an identifier for this file that the SDK multiplexer loader can use to
8
- * determine that this is in fact a file that wants to be multiplexed.
9
- */
10
- export const _SENTRY_SDK_MULTIPLEXER = true ;
Original file line number Diff line number Diff line change
1
+ // Node SDK exports
2
+ // Unfortunately, we cannot `exprt * from '@sentry/node'` because in prod builds,
3
+ // Vite puts these exports into a `default` property (Sentry.default) rather than
4
+ // on the top - level namespace.
5
+ // Hence, we export everything from the Node SDK explicitly:
6
+ export {
7
+ addGlobalEventProcessor ,
8
+ addBreadcrumb ,
9
+ captureException ,
10
+ captureEvent ,
11
+ captureMessage ,
12
+ configureScope ,
13
+ createTransport ,
14
+ extractTraceparentData ,
15
+ getActiveTransaction ,
16
+ getHubFromCarrier ,
17
+ getCurrentHub ,
18
+ Hub ,
19
+ makeMain ,
20
+ Scope ,
21
+ startTransaction ,
22
+ SDK_VERSION ,
23
+ setContext ,
24
+ setExtra ,
25
+ setExtras ,
26
+ setTag ,
27
+ setTags ,
28
+ setUser ,
29
+ spanStatusfromHttpCode ,
30
+ trace ,
31
+ withScope ,
32
+ autoDiscoverNodePerformanceMonitoringIntegrations ,
33
+ makeNodeTransport ,
34
+ defaultIntegrations ,
35
+ defaultStackParser ,
36
+ lastEventId ,
37
+ flush ,
38
+ close ,
39
+ getSentryRelease ,
40
+ addRequestDataToEvent ,
41
+ DEFAULT_USER_INCLUDES ,
42
+ extractRequestData ,
43
+ deepReadDirSync ,
44
+ Integrations ,
45
+ Handlers ,
46
+ } from '@sentry/node' ;
47
+
48
+ // We can still leave this for the carrier init and type exports
1
49
export * from '@sentry/node' ;
2
50
51
+ // -------------------------
52
+ // SvelteKit SDK exports:
3
53
export { init } from './sdk' ;
4
54
export { handleErrorWithSentry } from './handleError' ;
5
55
export { wrapLoadWithSentry } from './load' ;
You can’t perform that action at this time.
0 commit comments