45
45
store .state .errors = [e as Error ]
46
46
return
47
47
}
48
- }
48
+ },
49
49
)
50
50
51
51
// reset sandbox when version changes
59
59
if (html ) {
60
60
html .className = value
61
61
}
62
- }
62
+ },
63
63
)
64
64
65
65
onUnmounted (() => {
@@ -86,7 +86,7 @@ function createSandbox() {
86
86
' allow-same-origin' ,
87
87
' allow-scripts' ,
88
88
' allow-top-navigation-by-user-activation' ,
89
- ].join (' ' )
89
+ ].join (' ' ),
90
90
)
91
91
92
92
const importMap = store .getImportMap ()
@@ -101,11 +101,11 @@ function createSandbox() {
101
101
.replace (/ <!--IMPORT_MAP-->/ , JSON .stringify (importMap ))
102
102
.replace (
103
103
/ <!-- PREVIEW-OPTIONS-HEAD-HTML -->/ ,
104
- previewOptions ?.headHTML || ' '
104
+ previewOptions ?.headHTML || ' ' ,
105
105
)
106
106
.replace (
107
107
/ <!--PREVIEW-OPTIONS-PLACEHOLDER-HTML-->/ ,
108
- previewOptions ?.placeholderHTML || ' '
108
+ previewOptions ?.placeholderHTML || ' ' ,
109
109
)
110
110
sandbox .srcdoc = sandboxSrc
111
111
container .value .appendChild (sandbox )
@@ -186,7 +186,7 @@ async function updatePreview() {
186
186
if (major === 3 && (minor < 2 || (minor === 2 && patch < 27 ))) {
187
187
alert (
188
188
` The selected version of Vue (${store .vueVersion }) does not support in-browser SSR. ` +
189
- ` Rendering in client mode instead. `
189
+ ` Rendering in client mode instead. ` ,
190
190
)
191
191
isSSR = false
192
192
}
@@ -199,7 +199,7 @@ async function updatePreview() {
199
199
if (isSSR && mainFile .endsWith (' .vue' )) {
200
200
const ssrModules = compileModulesForPreview (store , true )
201
201
console .log (
202
- ` [@vue/repl] successfully compiled ${ssrModules .length } modules for SSR. `
202
+ ` [@vue/repl] successfully compiled ${ssrModules .length } modules for SSR. ` ,
203
203
)
204
204
await proxy .eval ([
205
205
` const __modules__ = {}; ` ,
@@ -229,7 +229,7 @@ async function updatePreview() {
229
229
console .log (
230
230
` [@vue/repl] successfully compiled ${modules .length } module${
231
231
modules .length > 1 ? ` s ` : ` `
232
- }. `
232
+ }. ` ,
233
233
)
234
234
235
235
const codeToEval = [
@@ -267,7 +267,7 @@ async function updatePreview() {
267
267
window.__ssr_promise__.then(_mount)
268
268
} else {
269
269
_mount()
270
- } `
270
+ } ` ,
271
271
)
272
272
}
273
273
0 commit comments