vitejs / vite-plugin-vue2

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

Hope to support Reactivity transform #13

Closed XioDone closed 1 year ago

XioDone commented 2 years ago

My project builds on @vue/composition-api and unplugin-vue2-script-setup, unplugin-vue2-script-setup has reactivityTransform option

ScriptSetup({
      reactivityTransform: true
 })

It has used a lot of $ref, upgrade to vue 2.7 hope to support reactivity transform. Thanks.

——————————————————————————————————————————————————————————————

我的项目使用@vue/composition-apiunplugin-vue2-script-setup构建, unplugin-vue2-script-setup具有 reactivityTransform 选项

ScriptSetup({
      reactivityTransform: true
 })

已经大量使用了$ref,升级到 vue 2.7 希望可以支持 reactivity transform,谢谢。

sxzz commented 2 years ago

https://github.com/vuejs/vue/pull/12609

darren-outdev commented 1 year ago

Desperately need this 🙏 Will help the transition from 2.7 to 3 so much

sxzz commented 1 year ago

We have to wait until Reactivity Transform is a stable feature and is released in v3.3.

TonyYanOnFire commented 1 year ago

Currently using webpack + Vue2.7, everything is great but the ".value" thing. Hope Vue2 can support Reactivity Transform ASAP

sxzz commented 1 year ago

Released in unplugin-vue-macros@latest https://vue-macros.sxzz.moe/

TonyYanOnFire commented 1 year ago

Great job ! Could you provide a more detailed doc? thx

sxzz commented 1 year ago

You can refer to the examples

TonyYanOnFire commented 1 year ago

You can refer to the examples

It appears that the unplugin-vue-macros@1.2.0 is not compatible with webpack, but the latest v1.2.2 seems to work well. It took me a while to figure that out. 😅 thank you all the way and I wish you a happy new year

sxzz commented 1 year ago

Reactivity Transform has been dropped officially. @XioDone We can close this issue, and switch to Vue Macros