]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: consistent call to the newline function (#222)
authorHcySunYang <HcySunYang@outlook.com>
Sat, 12 Oct 2019 14:30:39 +0000 (22:30 +0800)
committerEvan You <yyx990803@gmail.com>
Sat, 12 Oct 2019 14:30:39 +0000 (10:30 -0400)
packages/compiler-core/src/codegen.ts

index 62ec7a9af0ebddd04a528657441f20aa183c3c68..ad896ddc8ecbd41668157000d575f979e687355b 100644 (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 `)
   }