wip: data option compat

This commit is contained in:
Evan You
2021-04-06 09:31:47 -04:00
parent 53b8127a9c
commit d0da0028f2
5 changed files with 53 additions and 10 deletions

View File

@@ -71,7 +71,7 @@ export function warn(msg: string, ...args: any[]) {
resetTracking()
}
function getComponentTrace(): ComponentTraceStack {
export function getComponentTrace(): ComponentTraceStack {
let currentVNode: VNode | null = stack[stack.length - 1]
if (!currentVNode) {
return []