Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Migrate away from Vue SFC's to native TSX (npmjs.com)
1 point by NikhilVerma 3 days ago | hide | past | favorite | discuss
I've been actively using Vue for my official and personal projects for over 6 years now. While SFC was great it's quickly becoming a pain. It requires custom Volar plugins. It doesn't work with native typescript. The vue-tsc overrides "fs" imports just to be able to detect and run vue files.

I am not sure why Vue doesn't talk more about native TSX support because it eliminates this whole class of issues. In my work project, this has been a major pain because vue-tsc almost always crashes and I can't use the new tsgo (Typescript written in Go) because it doesn't work with SFCs

So I've made a new tool that migrates SFC to TSX. It's not a trivial migration so I've added an "LLM fallback" which takes care of the tricky things.

It made the migration of our internal codebase quite trivial. I hope you folks try it out and let me know.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: