Closed TheOnlyTails closed 1 year ago
will this be supported soon?
The plugin really needs {@const}
support to be complete.
https://svelte.dev/docs#template-syntax-const
@tomblachut is there any plan for this? It has been 9 months :(
Update: Issue tracking has been moved from GitHub to YouTrack
see https://youtrack.jetbrains.com/issue/WEB-55903/Svelte-const-tag-causes-syntax-errors
The
{@const}
tag, which allows declaration of constants inside markup, is soon to be merged into the main Svelte repo: https://github.com/sveltejs/svelte/pull/6413Some opportunities this can have:
{@const}
in auto-completion)const
)https://svelte.dev/docs#template-syntax-const
The language tools PR has already been merged: https://github.com/sveltejs/language-tools/pull/1319 The RFC describing the syntax: https://github.com/sveltejs/rfcs/blob/master/text/0007-markup-constants.md
Update:
{@const}
has now been officially released in Svelte 3.46.