Open Inqnuam opened 4 months ago
We're using Acorn, which needs to implement the new syntax (which will likely only happen once it is Stage 4): https://github.com/acornjs/acorn/issues/1289
Until then you could
@dummdidumm Acorn 8.14.0 is now released with support for with
import attribute
Could you please update Svelte 4 and 5 acorn dependencies ?
Acorn now supports this, and Svelte no longer refuses to compile components with these imports, but the with
clause is now silently dropped. I'm not sure where it's going to need to happen to preserve that. https://github.com/Rich-Harris/esrap ?
Describe the bug
using
with
orassert
in import attributes (import statement or dynamic import) crashsReproduction
Logs
System Info
Severity
annoyance