underfin / vite-plugin-vue2

Vue2 plugin for Vite
620 stars 83 forks source link

support .js as .jsx and vue jsx without `lang="jsx"` in script tag #151

Open chenxxzhe opened 2 years ago

chenxxzhe commented 2 years ago
  1. Some .js files are used as .jsx files, how to support this case ? I know I can change the file name, but there maybe a better way.

    1. most important In some third-party packages (element-ui), vue component is jsx format but without lang="jsx" in script tag, how to support this case.
JackMa007yes commented 2 years ago

The same problem is bothering me

Abdelrahman-Mahmoud-Dev commented 2 years ago

same problem with jsx in element-ui any updates 😢?

hx24 commented 2 years ago

same

Mr-xzq commented 2 years ago

https://github.com/vitejs/vite/issues/2727#issuecomment-808679467