Computed values are transformed into functions so random-api becomes random-api(){} which is not allowed.
computed:{
"random-api":(pw_min,pw_max,passwords)=>{
return `apiurlsomethingsomething`
}
}
The compiler should suggest an alternative like random_api, which is admittedly uglier :woman_shrugging:, but completely valid, and not svelte's fault _obvi_
@arxpoetica, @Rich-Harris threw this issue my way on gitter this morning.
I understand the high-level problem and will muddle through the code to figure out how to go about implementing a fix.
Submitted #1099
I'm open to all questions and suggestions.
Fix released in 1.52 — thanks
Most helpful comment
@arxpoetica, @Rich-Harris threw this issue my way on gitter this morning.
I understand the high-level problem and will muddle through the code to figure out how to go about implementing a fix.