webfansplz / vite-plugin-vue-devtools

Vite + Vue DevTools = DX 🔥
MIT License
1.63k stars 71 forks source link

fix(core): fix analyzer duplicate injection code #268

Closed alexzhang1030 closed 9 months ago

alexzhang1030 commented 9 months ago

closes #264

This issue will occur when using sfc + tsx.

If the lang of an sfc is tsx/jsx, it will transform this file twice, (once vite-plugin-vue, once vite-plugin-vue-jsx)

We need to prevent duplicate injections.