Skip to content

fix(sveltekit): Export consoleLoggingIntegration from worker entry - #25061

Merged
JPeer264 merged 1 commit into
developfrom
jp/sveltekit-worker-missing-exports
Oct 5, 2026
Merged

JPeer264 merged 1 commit into
developfrom
jp/sveltekit-worker-missing-exports

Conversation

@JPeer264

@JPeer264 JPeer264 commented Oct 5, 2026

Copy link
Copy Markdown
Member

The public types of @sentry/sveltekit include consoleLoggingIntegration from the Node entry. But the worker entry, which Cloudflare selects through the worker and workerd conditions, did not re-export it from @sentry/cloudflare. So Sentry.consoleLoggingIntegration() was undefined on Workers.

This adds only that one export. Other Node-typed exports are also missing from the worker entry. We will handle them with a dedicated Cloudflare entry point, which can also fix the types (#24841).

Fixes #24965

🤖 Generated with Claude Code

The public types include consoleLoggingIntegration from the Node entry,
but the worker entry did not re-export it from @sentry/cloudflare, so
calling it on Cloudflare Workers threw at runtime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JPeer264
JPeer264 marked this pull request as ready for review October 5, 2026 14:35
@JPeer264
JPeer264 requested a review from a team as a code owner October 5, 2026 14:35
@JPeer264 JPeer264 self-assigned this Oct 5, 2026
@JPeer264
JPeer264 requested review from chargome and s1gr1d and removed request for a team October 5, 2026 14:35
@JPeer264
JPeer264 merged commit e741ce8 into develop Oct 5, 2026
53 checks passed
@JPeer264
JPeer264 deleted the jp/sveltekit-worker-missing-exports branch October 5, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@sentry/sveltekit typescript types include unexported functions for Cloudflare Workers

2 participants