Skip to content

Commit 16e8f45

Browse files
committed
workflow(sfc-playground): fix newline
1 parent 950a950 commit 16e8f45

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/sfc-playground/src/store.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,12 @@ watchEffect(async () => {
100100
}
101101

102102
compiled.template = templateResult.code.trim()
103-
finalCode += rewriteVueImports(templateResult.code).replace(
104-
/\nexport (function|const) render/,
105-
'$1 render'
106-
)
103+
finalCode +=
104+
`\n` +
105+
rewriteVueImports(templateResult.code).replace(
106+
/\nexport (function|const) render/,
107+
'$1 render'
108+
)
107109
finalCode += `\n${compIdentifier}.render = render`
108110
} else {
109111
compiled.template = descriptor.scriptSetup

0 commit comments

Comments
 (0)