Hacker News new | ask | show | jobs
by MrJohz 1099 days ago
I mean, that sounds like a data point of two now to me - you're also saying that Typescript and Svelte don't play that nice together if the plug-in breaks "all the time" and you need to be careful how you write code just to get correct syntax highlighting and code formatting, no?
1 comments

Syntax highlighting and code formatting sometime break because Svelte file is single file component format, which mean it has script, markup and style in a single file. It's rather complex to parse it right, especially when you use regexes to do the job like in VS Code.

It's just the problem with the VS Code Svelte extension, not the framework itself nor because of Typescript. Also for my case, it happens because I prefer to not use semicolons in my code, not because it is typescript.

Maybe, but Vue also has SFCs, and I've never once had issues with syntax highlighting or code formatting there.
the distinct difference between Vue and Svelte is html in Vue need to be wrapped in `<template>` tag. There is no such restriction in Svelte SFCs.