Skip to content

await doesn't work with @const #16462

@Thiagolino8

Description

@Thiagolino8

Describe the bug

await doesn't work when used in conjunction with @const

Reproduction

REPL

Logs

await isn't allowed in non-async function (Note that you need plugins to import files that are not JavaScript)

System Info

Using Svelte compiler version 5.36.12
running Svelte compiler version 5.36.12

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