Skip to content

import.meta.xxx can't be used in markup #5422

@Rich-Harris

Description

@Rich-Harris

Describe the bug
In modern JavaScript, import.meta.xxx is valid syntax. It parses inside a <script>, but not inside markup.

To Reproduce
https://svelte.dev/repl/9630de41957a4c80a4fce264360a6bc7?version=3.25.1

Severity
Not urgent right now, but likely to become a blocker in the near future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions