From: HcySunYang Date: Sat, 12 Oct 2019 14:30:39 +0000 (+0800) Subject: chore: consistent call to the newline function (#222) X-Git-Tag: v3.0.0-alpha.0~477 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4587f4f7c9ddcac98abde734ff6829da0ef3eacd;p=thirdparty%2Fvuejs%2Fcore.git chore: consistent call to the newline function (#222) --- 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 `) }