Skip to content

Prepare for Svelte 5 support #10318

Closed
@Lms24

Description

@Lms24

Important

Svelte 5 is not yet stable. We can't bump peer dependencies before it goes stable because we can't guarantee support yet. This issue serves as a collection of things we need to do for Svelte 5 support at this time. We can do some preparations beforehand but we won't guarantee support.

Problem Statement

Our @sentry/svelte SDK is not fully compatible with Svelte 5. This has two reasons

  • Svelte 5 requires type: "module" and exports in package.json
  • Svelte 5 no longer exports the current_component internal API (this was risky to use in the first place but yeah here we are...)

Solution Brainstorm

Tried a quick update today but the blocker here is that we also need to upgrade Jest or switch to vitest.

- [ ] #10311
- [ ] #10312
- [ ] https://github.com/getsentry/sentry-javascript/pull/10350
- [ ] https://github.com/getsentry/sentry-javascript/pull/11807

closes #10275
closes #10276

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions