Subscribe on changes!

When enable reactivityTransform `$ can only be used as the initializer of a variable declaration.` appears

avatar
Oct 9th 2022

Vue version

3.2.40

Link to minimal reproduction

https://sfc.vuejs.org/#eNp9kN1qwzAMhV9FmEISaOz70Bb2Hr7pMrVLiX+QlG4Q/O6T2zLGCr2zpONPOmc1bznb64JmMDseacoCjLLkg49TyIkEVthAgROlAI11gixWuPHRxzFFTjPaOZ3bTdt1Pu7cnaG/tRAMeT4KagWwKqftoJSq+p2Yrbmv6cMx2wunqIesVe8fA/ZmgFun9vTSWnvzKZJ5cI5PYz3/wjbR2enL0hJlCmiRQ/9O6YuRFOzN9g/DafOK1BPGDySkV8x/0iduxaqpolYe4agF/L5lVxMSzW8Pan1/gKYqGlN+AErmf6g=

Steps to reproduce

Reproduction code is bundle by the vite. You can see that toDisplayString has been renamed to $, which I think is the reason for the broken.

What is expected?

No errors

What is actually happening?

Error: $ can only be used as the initializer of a variable declaration.

System Info

No response

Any additional comments?

No response