vuejs / jsx-vue2

monorepo for Babel / Vue JSX related packages
https://jsx-vue2-playground.netlify.app/
1.47k stars 96 forks source link

Cannot parse a prop that starts with _ #310

Closed zjxxxxxxxxx closed 9 months ago

zjxxxxxxxxx commented 9 months ago

When I try to use a prop that starts with _, it fails to compile.

WX20230917-161414@2x [Click to view the code snippet](https://jsx-vue2-playground.netlify.app/#const%20Comp%20%3D%20(%7B__debug%7D)%20%3D%3E%20%3Cdiv%3EHello%20World%20%7B__debug%7D%3C%2Fdiv%3E%0Aconst%20App%20%3D%20()%20%3D%3E%20%3CComp%20__debug%3D'xxx'%2F%3E)

The reason is that this position uses as a separator, which prevents us from using a prop that starts with WeChatf251b11c1648325782f1876c2d60858c Source code

I wonder how I should deal with this problem