wip(compiler): tests for new stringification
This commit is contained in:
@@ -434,7 +434,7 @@ function genAssets(
|
||||
}
|
||||
}
|
||||
|
||||
function genHoists(hoists: JSChildNode[], context: CodegenContext) {
|
||||
function genHoists(hoists: (JSChildNode | null)[], context: CodegenContext) {
|
||||
if (!hoists.length) {
|
||||
return
|
||||
}
|
||||
@@ -451,9 +451,11 @@ function genHoists(hoists: JSChildNode[], context: CodegenContext) {
|
||||
}
|
||||
|
||||
hoists.forEach((exp, i) => {
|
||||
push(`const _hoisted_${i + 1} = `)
|
||||
genNode(exp, context)
|
||||
newline()
|
||||
if (exp) {
|
||||
push(`const _hoisted_${i + 1} = `)
|
||||
genNode(exp, context)
|
||||
newline()
|
||||
}
|
||||
})
|
||||
|
||||
if (genScopeId) {
|
||||
|
||||
Reference in New Issue
Block a user