Skip to content

import "with" attribute crashs #12551

Open
sveltejs/esrap
#61
@Inqnuam

Description

@Inqnuam

Describe the bug

using with or assert in import attributes (import statement or dynamic import) crashs

Reproduction

<script lang="ts">
 import Miaou from "./cat.svelte" with { type: "animal" };
</script>

Logs

Unexpected token
import Miaou from "./cat.svelte" with { type: "json" };
                                    ^

System Info

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerChanges relating to the compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions