unplugin / unplugin-vue2-script-setup

💡 Bring `<script setup>` to Vue 2.
MIT License
599 stars 39 forks source link

Is it possible to use this plugin side by side with class components? #141

Closed jschweighofer closed 2 years ago

jschweighofer commented 2 years ago

Hey!

We need to rewrite our legacy code (Vue 2, Class components) to use the Composition API and your plugin for script setup.

Do you see any issues installing your plugin and using it on some SFCs, while others still work "the old way"? We do not mix class components with script setup.

Does this plugin just skip a SFC when there is no script setup used? We are using Vite.

Best regards

xiaoxiangmoe commented 2 years ago

If you do not use ref sugar, it will skip a sfc when no script setup used.

jschweighofer commented 2 years ago

Ok great, thanks for the fast reply!