perf(compiler-core): treat v-for with constant exp as a stable fragment (#1394)
This commit is contained in:
@@ -698,13 +698,13 @@ function genVNodeCall(node: VNodeCall, context: CodegenContext) {
|
||||
dynamicProps,
|
||||
directives,
|
||||
isBlock,
|
||||
isForBlock
|
||||
disableTracking
|
||||
} = node
|
||||
if (directives) {
|
||||
push(helper(WITH_DIRECTIVES) + `(`)
|
||||
}
|
||||
if (isBlock) {
|
||||
push(`(${helper(OPEN_BLOCK)}(${isForBlock ? `true` : ``}), `)
|
||||
push(`(${helper(OPEN_BLOCK)}(${disableTracking ? `true` : ``}), `)
|
||||
}
|
||||
if (pure) {
|
||||
push(PURE_ANNOTATION)
|
||||
|
||||
Reference in New Issue
Block a user