perf: hoist dynamic props lists

This commit is contained in:
Evan You
2021-07-07 14:47:59 -04:00
parent 979a841946
commit 02339b67d8
5 changed files with 18 additions and 7 deletions

View File

@@ -102,6 +102,9 @@ function walk(
codegenNode.props = context.hoist(props)
}
}
if (codegenNode.dynamicProps) {
codegenNode.dynamicProps = context.hoist(codegenNode.dynamicProps)
}
}
}
} else if (child.type === NodeTypes.TEXT_CALL) {