vueuse / vue-demi

🎩 Creates Universal Library for Vue 2 & 3
MIT License
3.01k stars 158 forks source link

Vue instance provided to install() function is being ignored #184

Closed sebagnz closed 2 years ago

sebagnz commented 2 years ago

https://github.com/vueuse/vue-demi/blob/2f80cd77a9d1c5f5c825cec2922bcdddabd02fc3/lib/v2/index.mjs#L7 Should't it be?

_vue.use(VueCompositionAPI)

Otherwise vue-demi is always installing the composition api in the same vue instance.

antfu commented 2 years ago

Yeah nice catch, pr welcome

sebagnz commented 2 years ago

Sure, here it goes 👍 https://github.com/vueuse/vue-demi/pull/185