chore: consistent call to the newline function (#222)

This commit is contained in:
HcySunYang 2019-10-12 22:30:39 +08:00 committed by Evan You
parent f3760f7d34
commit 4587f4f7c9

View File

@ -218,7 +218,7 @@ export function generate(
}
}
genHoists(ast.hoists, context)
context.newline()
newline()
push(`return `)
} else {
// generate import statements for helpers
@ -226,7 +226,7 @@ export function generate(
push(`import { ${ast.helpers.map(helper).join(', ')} } from "vue"\n`)
}
genHoists(ast.hoists, context)
context.newline()
newline()
push(`export default `)
}