When enable reactivityTransform `$ can only be used as the initializer of a variable declaration.` appears
Vue version
3.2.40
Link to minimal reproduction
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
I think it's caused by conflicting with reactivity transform.
I think it's caused by conflicting with reactivity transform.
Yes, if the current scope contains a $
variable, the $
reactivity transform is skipped.