Skip to content

export const breaks in svelte 5 #15357

@KTibow

Description

@KTibow

Describe the bug

export const no longer allows you to export a fixed value once you migrate to svelte 5

Reproduction

svelte 4 (observe that it uses svelte 4 syntax, and a 2 shows up, exported from Thing): https://svelte.dev/playground/1c7f6e4cd62c4788866295f2ee325706?version=5.20.2
svelte 5 (observe that it uses svelte 5 syntax, and since v is undefined, nothing shows up): https://svelte.dev/playground/000e19b8335847938feffe83a200675a?version=5.20.2

Logs

System Info

n/a (only repl used)

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions