vitejs / vite-plugin-vue2

Vite plugin for Vue 2.7
MIT License
551 stars 48 forks source link

Lack of JSX syntax support #9

Closed yodagg closed 2 years ago

yodagg commented 2 years ago

I added some examples to the playground and they all work fine.

When I try the JSX syntax via @vitejs/plugin-vue-jsx, it throws the error ERROR: Unterminated regular expression.

@vitejs/plugin-vue-jsx seems to be a vue3 plugin.

ScottAwesome commented 2 years ago

Per the blog post

Note that the new plugin does not handle Vue-specific JSX / TSX transform, which is intentional. Vue 2 JSX / TSX transform should be handled in a separate, dedicated plugin.

You should just use a babel based plugin for now