File tree Expand file tree Collapse file tree 4 files changed +8
-22
lines changed
dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts Expand file tree Collapse file tree 4 files changed +8
-22
lines changed Original file line number Diff line number Diff line change 1
1
import * as SentryAstro from '@sentry/astro' ;
2
+ import * as SentryBun from '@sentry/bun' ;
2
3
import * as SentryGoogleCloud from '@sentry/google-cloud' ;
3
4
import * as SentryNextJs from '@sentry/nextjs' ;
4
5
import * as SentryNode from '@sentry/node' ;
@@ -9,7 +10,7 @@ import * as SentrySvelteKit from '@sentry/sveltekit';
9
10
// SentryAWS is CJS only
10
11
const SentryAWS = require ( '@sentry/aws-serverless' ) ;
11
12
// Using CJS export for Bun SDK
12
- const SentryBun = require ( '@sentry/bun' ) ;
13
+ // const SentryBun = require('@sentry/bun');
13
14
14
15
/* List of exports that are safe to ignore / we don't require in any depending package */
15
16
const NODE_EXPERIMENTAL_EXPORTS_IGNORE = [
Original file line number Diff line number Diff line change 1
1
import * as os from 'os' ;
2
2
import type { ServerRuntimeClientOptions } from '@sentry/core' ;
3
- import { applySdkMetadata } from '@sentry/core' ;
4
- import { ServerRuntimeClient } from '@sentry/core' ;
3
+ import { ServerRuntimeClient , applySdkMetadata } from '@sentry/core' ;
5
4
6
5
import type { BunClientOptions } from './types' ;
7
6
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ import {
11
11
httpIntegration ,
12
12
init as initNode ,
13
13
modulesIntegration ,
14
- nativeNodeFetchintegration ,
14
+ nativeNodeFetchIntegration ,
15
15
nodeContextIntegration ,
16
- } from '@sentry/node-experimental ' ;
16
+ } from '@sentry/node' ;
17
17
import type { Integration , Options } from '@sentry/types' ;
18
18
19
19
import { BunClient } from './client' ;
@@ -33,7 +33,7 @@ export function getDefaultIntegrations(_options: Options): Integration[] {
33
33
// Native Wrappers
34
34
consoleIntegration ( ) ,
35
35
httpIntegration ( ) ,
36
- nativeNodeFetchintegration ( ) ,
36
+ nativeNodeFetchIntegration ( ) ,
37
37
// Global Handlers # TODO (waiting for https://github.com/oven-sh/bun/issues/5091)
38
38
// new NodeIntegrations.OnUncaughtException(),
39
39
// new NodeIntegrations.OnUnhandledRejection(),
Original file line number Diff line number Diff line change 4
4
"include" : [" src/**/*" ],
5
5
6
6
"compilerOptions" : {
7
- "types" : [" bun-types" ],
8
- "lib" : [" esnext" ],
9
- "module" : " esnext" ,
10
- "target" : " esnext" ,
11
-
12
- // if TS 4.x or earlier
13
- "moduleResolution" : " nodenext" ,
14
-
15
- "jsx" : " react-jsx" , // support JSX
16
- "allowJs" : true , // allow importing `.js` from `.ts`
17
- "esModuleInterop" : true , // allow default imports for CommonJS modules
18
-
19
- // best practices
20
- "strict" : true ,
21
- "forceConsistentCasingInFileNames" : true ,
22
- "skipLibCheck" : true
7
+ // package-specific options
8
+ "types" : [" bun-types" ]
23
9
}
24
10
}
You can’t perform that action at this time.
0 commit comments