News for hackers. Stuff that matters.
Re:Migrating from Vue 2 to Svelte by Semaphor on Friday December 02, 2022 @04:37AM (#33828532)
> - Very poor typescript support.

If you use class components and prop decorators, the TS support is actually pretty nice. Kinda boilerplate heavy, but nice.

Re:Migrating from Vue 2 to Svelte by lol768 on Friday December 02, 2022 @04:47AM (#33828598)
I really enjoyed using these tools, it felt idiomatic to have a class per component with props and data as fields on the class - but it seems like there's now no upgrade path for us folks in Vue 3 land.
Re:Migrating from Vue 2 to Svelte by tomonl on Friday December 02, 2022 @04:51AM (#33828621)
I used those too, but it makes the upgrade to Vue 3 quite a bit harder.
Re:Migrating from Vue 2 to Svelte by depressedpanda on Friday December 02, 2022 @05:37AM (#33828835)
I've worked professionally in both Vue 2 and React. Even with class components and prop decorators you still have the annoying Vue template DSL where you don't get any TS support.

In comparison JSX will be checked by typescript, so in that regard JSX (and therefore React) is superior.

Re:Migrating from Vue 2 to Svelte by Hawxy on Friday December 02, 2022 @09:59AM (#33831304)
Composition API has the best Typescript support available in Vue 2. It's supported out of the box in 2.7, and a plugin in previous versions. The decorator syntax is unsupported in Vue 3 and shouldn't be used.