vite-plugin-vue2 icon indicating copy to clipboard operation
vite-plugin-vue2 copied to clipboard

Hope to support Reactivity transform

Open XioDone opened this issue 2 years ago • 1 comments

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,谢谢。

XioDone avatar Jun 20 '22 14:06 XioDone

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

sxzz avatar Jul 04 '22 14:07 sxzz

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

darren-outdev avatar Dec 02 '22 17:12 darren-outdev

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

sxzz avatar Dec 02 '22 18:12 sxzz

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

TonyYanOnFire avatar Dec 28 '22 06:12 TonyYanOnFire

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

sxzz avatar Dec 28 '22 14:12 sxzz

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

TonyYanOnFire avatar Dec 29 '22 12:12 TonyYanOnFire

You can refer to the examples

sxzz avatar Dec 30 '22 09:12 sxzz

You can refer to the examples

It appears that the [email protected] 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

TonyYanOnFire avatar Jan 03 '23 10:01 TonyYanOnFire

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

sxzz avatar Jan 25 '23 20:01 sxzz