vuejs / jsx-vue2

monorepo for Babel / Vue JSX related packages
https://jsx-vue2-playground.netlify.app/
1.47k stars 96 forks source link

Support for conditional directives. v-if, v-else, v-else-if #154

Open vvolfster opened 4 years ago

vvolfster commented 4 years ago

Is there any way we can add support for these directives? It would make writing jsx a lot nicer and look a lot cleaner.

In react, I found this plugin that made writing jsx/tsx nicer for me. Is there something we could do for this library to support that? https://github.com/peakchen90/babel-plugin-react-directives

cereschen commented 4 years ago

Try this: https://github.com/cereschen/vite-jsx