refactor(runtime-core): tweak component proxy implementation

This commit is contained in:
Evan You
2019-12-10 11:14:29 -05:00
parent d1527fbee4
commit c97d83aff2
14 changed files with 133 additions and 64 deletions

View File

@@ -41,7 +41,7 @@ export function warn(msg: string, ...args: any[]) {
ErrorCodes.APP_WARN_HANDLER,
[
msg + args.join(''),
instance && instance.renderProxy,
instance && instance.proxy,
trace
.map(({ vnode }) => `at <${formatComponentName(vnode)}>`)
.join('\n'),