Skip to content

Commit e8fc0cf

Browse files
committed
use CJS import for bun SDK
1 parent 789c785 commit e8fc0cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as SentryAstro from '@sentry/astro';
2-
import * as SentryBun from '@sentry/bun';
32
import * as SentryGoogleCloud from '@sentry/google-cloud';
43
import * as SentryNextJs from '@sentry/nextjs';
54
import * as SentryNode from '@sentry/node';
@@ -8,6 +7,9 @@ import * as SentryRemix from '@sentry/remix';
87
import * as SentryServerless from '@sentry/serverless';
98
import * as SentrySvelteKit from '@sentry/sveltekit';
109

10+
// Using CJS export for Bun SDK
11+
const SentryBun = require('@sentry/bun');
12+
1113
/* List of exports that are safe to ignore / we don't require in any depending package */
1214
const NODE_EXPERIMENTAL_EXPORTS_IGNORE = [
1315
'default',

0 commit comments

Comments
 (0)