LinusBorg / vue-mixable

Turn Vue Mixins into Composables with a simple wrapper function
MIT License
286 stars 10 forks source link

[Feature request] Vue 2 compact with vue-demi #4

Open imrim12 opened 2 years ago

imrim12 commented 2 years ago

This is a very cool package but I think Vue 2 compact support is one of the big reasons to use it for some legacy projects which are slowly being migrated to Vue 2.7 or Vue 3 I see this part in the package.json and no Vue 2.x support, would we ever consider doing this?

All the import use: import ... from 'vue', i think vue-demi would be great for this instead, what do you think?

...
    "vue": "^3.2.41",
    "vue-tsc": "^1.0.8"
  },
  "peerDependencies": {
    "vue": "^3.2"
  },
...
LinusBorg commented 2 years ago

I'll consider this, but worry it might be quite a hassle to implement on the Typescript side.

Concerning a migration though, my Thought process was that a migration from mixins to composables was something I would do step by step after I moved to Vue 3. But sure, there might be scenarios where one might want to do this before the actual migration