Skip to content

Commit ebe3780

Browse files
committed
found the bug
1 parent b83089e commit ebe3780

File tree

4 files changed

+8
-22
lines changed

4 files changed

+8
-22
lines changed

dev-packages/e2e-tests/test-applications/node-exports-test-app/scripts/consistentExports.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as SentryAstro from '@sentry/astro';
2+
import * as SentryBun from '@sentry/bun';
23
import * as SentryGoogleCloud from '@sentry/google-cloud';
34
import * as SentryNextJs from '@sentry/nextjs';
45
import * as SentryNode from '@sentry/node';
@@ -9,7 +10,7 @@ import * as SentrySvelteKit from '@sentry/sveltekit';
910
// SentryAWS is CJS only
1011
const SentryAWS = require('@sentry/aws-serverless');
1112
// Using CJS export for Bun SDK
12-
const SentryBun = require('@sentry/bun');
13+
// const SentryBun = require('@sentry/bun');
1314

1415
/* List of exports that are safe to ignore / we don't require in any depending package */
1516
const NODE_EXPERIMENTAL_EXPORTS_IGNORE = [

packages/bun/src/client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as os from 'os';
22
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';
54

65
import type { BunClientOptions } from './types';
76

packages/bun/src/sdk.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import {
1111
httpIntegration,
1212
init as initNode,
1313
modulesIntegration,
14-
nativeNodeFetchintegration,
14+
nativeNodeFetchIntegration,
1515
nodeContextIntegration,
16-
} from '@sentry/node-experimental';
16+
} from '@sentry/node';
1717
import type { Integration, Options } from '@sentry/types';
1818

1919
import { BunClient } from './client';
@@ -33,7 +33,7 @@ export function getDefaultIntegrations(_options: Options): Integration[] {
3333
// Native Wrappers
3434
consoleIntegration(),
3535
httpIntegration(),
36-
nativeNodeFetchintegration(),
36+
nativeNodeFetchIntegration(),
3737
// Global Handlers # TODO (waiting for https://github.com/oven-sh/bun/issues/5091)
3838
// new NodeIntegrations.OnUncaughtException(),
3939
// new NodeIntegrations.OnUnhandledRejection(),

packages/bun/tsconfig.json

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,7 @@
44
"include": ["src/**/*"],
55

66
"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"]
239
}
2410
}

0 commit comments

Comments
 (0)