Allow exposing variables with a private prefix (_) #7710
Labels
has workaround
A workaround has been found to avoid the problem
✨ feature request
New feature or request
What problem does this feature solve?
In a component library I want to expose some refs for use by other internal components, but mark it as private for consumers of the library. The JS convention is to prefix properties like this with
_
:This works, but vue logs
Related: #4532, #5038
What does the proposed API look like?
Rename vue's internal properties to
__
instead, which is already used in a few places (__hmrId
,__asyncLoader
,__v_isVNode
,__isBuiltIn
,__isScriptSetup
)The text was updated successfully, but these errors were encountered: