From 4587f4f7c9ddcac98abde734ff6829da0ef3eacd Mon Sep 17 00:00:00 2001 From: HcySunYang Date: Sat, 12 Oct 2019 22:30:39 +0800 Subject: [PATCH] chore: consistent call to the newline function (#222) --- packages/compiler-core/src/codegen.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/compiler-core/src/codegen.ts b/packages/compiler-core/src/codegen.ts index 62ec7a9af0..ad896ddc8e 100644 --- a/packages/compiler-core/src/codegen.ts +++ b/packages/compiler-core/src/codegen.ts @@ -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 `) } -- 2.47.3