sveltejs / svelte-upgrade

Upgrade your Svelte templates for version 2
Other
36 stars 6 forks source link

Doesn't convert this.get("key") #7

Open tivac opened 6 years ago

tivac commented 6 years ago

I've got code like this:

const key = this.get("key");

currently that doesn't get transformed. It should become

const { key } = this.get();

(or at least warn me about a this.get("<arg>") usage so I can go clean it up manually)

rob-balfre commented 6 years ago

Not sure this going to be supported, I just updated observe and get calls manually... https://svelte.technology/blog/version-2