Skip to content

Commit 8adbe73

Browse files
committed
fix: avoid touching bun namespace for downstream packages
1 parent 3e658e3 commit 8adbe73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/bun/src/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export function init(userOptions: BunOptions = {}): NodeClient | undefined {
105105
const options = {
106106
...userOptions,
107107
platform: 'javascript',
108-
runtime: { name: 'bun', version: Bun.version },
108+
runtime: { name: 'bun', version: typeof Bun !== 'undefined' ? Bun.version : 'unknown' },
109109
serverName: userOptions.serverName || global.process.env.SENTRY_NAME || os.hostname(),
110110
};
111111

0 commit comments

Comments
 (0)