unplugin / unplugin-vue2-script-setup

💡 Bring `<script setup>` to Vue 2.
MIT License
599 stars 39 forks source link

test: add failed pug tests #124

Open antfu opened 2 years ago

antfu commented 2 years ago

Downstream issue: nuxt/bridge#11

Shinigami92 commented 2 years ago

Isn't this theoretically invalid? I think there is a missing v-else. Currently if the condition would result in false there is no root-element in the component. Not sure if it is statically analysed that it is always true in given example case.

antfu commented 2 years ago

The problem is that the parser does not understand pug, thus failing to parse <. You are talking about another thing that isn't the scope we should handle.