unplugin/unplugin-vue2-script-setup

How to get output of the SFC compiler?

imoldfella opened this issue · 1 comments

I keep running into issues with the template compiler and I can't debug them because it just says "unexpected token, expected "," (1:2) where 1:2 doesn't seem to correspond to anything. It's almost impossible to convert existing code because you can't really figure out where its breaking. I think if we had a cli way or similar to see the intermediate format, it would be a lot quicker.

example > is no good in attributes, but it can be anywhere in the template and the whole thing is borked.
v-if=" x > 0"

Another issue is using typescript types inside the template like
(x: string) => fubar()