Skip to content

export_undef when exporting from a <script module>  #14618

@huntabyte

Description

@huntabyte

Describe the bug

Starting in Svelte v5.5.0, when exporting from a <script module> the compiler gives an export_undef error that didn't exist in earlier versions.

We aren't able to build our apps on 5.5+ because of this.

Assuming this was introduced alongside #14315 ?

Reproduction

REPL (latest 5.9.0)
REPL (break introduced 5.5.0)
REPL (last working 5.4.0)

Check the Another.svelte file for the error.

Logs

No response

System Info

REPL

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