Ver código fonte

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

HcySunYang 6 anos atrás
pai
commit
4587f4f7c9
1 arquivos alterados com 2 adições e 2 exclusões
  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 `)
   }