workflow(sfc-playground): fix newline

This commit is contained in:
Evan You 2021-03-28 02:17:55 -04:00
parent 950a950ae9
commit 16e8f45199

View File

@ -100,7 +100,9 @@ watchEffect(async () => {
} }
compiled.template = templateResult.code.trim() compiled.template = templateResult.code.trim()
finalCode += rewriteVueImports(templateResult.code).replace( finalCode +=
`\n` +
rewriteVueImports(templateResult.code).replace(
/\nexport (function|const) render/, /\nexport (function|const) render/,
'$1 render' '$1 render'
) )