Svelte: import.meta.xxx can't be used in markup

Created on 18 Sep 2020  路  1Comment  路  Source: sveltejs/svelte

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.

bug

Most helpful comment

>All comments

Was this page helpful?
0 / 5 - 0 ratings

Related issues

clitetailor picture clitetailor  路  3Comments

juniorsd picture juniorsd  路  3Comments

plumpNation picture plumpNation  路  3Comments

matt3224 picture matt3224  路  3Comments

Rich-Harris picture Rich-Harris  路  3Comments