diff --git a/packages/runtime-core/src/renderer.ts b/packages/runtime-core/src/renderer.ts index 930464eb..ba8c8636 100644 --- a/packages/runtime-core/src/renderer.ts +++ b/packages/runtime-core/src/renderer.ts @@ -755,6 +755,10 @@ function baseCreateRenderer( hostSetScopeId(el, treeOwnerId + '-s') } } + if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) { + el.__vnode = vnode + el.__vueParentComponent = parentComponent + } if (dirs) { invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount') }