vitejs / vite-plugin-vue2

Vite plugin for Vue 2.7
MIT License
550 stars 46 forks source link

How to use it in a sub project of a vue3 project? #44

Closed Thy3634 closed 2 years ago

Thy3634 commented 2 years ago

I use this plugin with no config.

this is my project structure:

I use pnpm when I build the sub project, I found that this plugin raise an error, because of using the @vue/compiler-sfc@3.2.38. I actually add @vue/compiler-sfc: ^2.7.0 for the sub project, but doesn't work.

So how can I build the sub project.