Is your feature request related to a problem? Please describe.
While defining a variable in #Svelte, make sure to use let/var and not const, otherwise those bindings won't work, as it can't be updated by its compiler.

Describe the solution you'd like
Throw a warning or error.
Describe alternatives you've considered
Using let always.
How important is this feature to you?
It brings a delight to users.
This sounds reasonable. I think I'd favor an outright compilation error in this case. We need to be careful though because binding to foo.bar when foo is a const should continue to be valid.
Yes absolutely. Making sure that primitives cannot be mutated once assigned with const. Sounds reasonable?
Some pointers for getting started on the good first issue:
bind: variable is defined or not here in src/compiler/compile/nodes/Binding.tsvars section of the doctest/validator/ folder (you can refer to this test sample)I am working on this. I already have a working implementation, but need to fix some tests.
sure @vlasy . Was planning to pick it up this weekend.
Most helpful comment
This sounds reasonable. I think I'd favor an outright compilation error in this case. We need to be careful though because binding to
foo.barwhenfoois a const should continue to be valid.