You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//vite.config.jsimport{defineConfig}from'vite'importvue2from"@vitejs/plugin-vue2";importvueJsxfrom"@vitejs/plugin-vue2-jsx";importlangJsxfrom"vite-plugin-lang-jsx";exportdefaultdefineConfig({plugins: [langJsx(),//langJsx must precede vuevue2(),vueJsx()]})
This way you don’t have to write lang="jsx" in <script></script>,Refer to my Demo[vite-vue2-jsx].
Feature Request
<script lang="jsx">
@vitejs/plugin-vue-jsx need this way of writing, but vetur cannot format jsx or tsx
The text was updated successfully, but these errors were encountered: