Explorar o código

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

HcySunYang %!s(int64=6) %!d(string=hai) anos
pai
achega
4587f4f7c9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/compiler-core/src/codegen.ts

+ 2 - 2
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 `)
   }