-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support the {@const} tag #268
Labels
Svelte core
Missing core feature
Comments
will this be supported soon? |
TheOnlyTails
changed the title
Support the upcoming {@const} tag
Support the {@const} tag
Jun 8, 2022
The plugin really needs |
Closed
@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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
{@const}
tag, which allows declaration of constants inside markup, is soon to be merged into the main Svelte repo: sveltejs/svelte#6413Some opportunities this can have:
{@const}
in auto-completion)(you get the point, it should behave like any other variable declared with
const
)https://svelte.dev/docs#template-syntax-const
The language tools PR has already been merged: sveltejs/language-tools#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.The text was updated successfully, but these errors were encountered: