We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69c2ed1 commit a44a715Copy full SHA for a44a715
src/transform.ts
@@ -383,7 +383,8 @@ async function doCompileTemplate(
383
expressionPlugins,
384
},
385
})
386
- let { code, errors, map } = res
+ // @ts-expect-error multiRoot in 3.6
387
+ let { code, errors, map, multiRoot } = res
388
if (errors.length) {
389
return { code, map, errors }
390
}
@@ -396,6 +397,10 @@ async function doCompileTemplate(
396
397
`$1 ${fnName}`,
398
)}` + `\n${COMP_IDENTIFIER}.${fnName} = ${fnName}`
399
400
+ if(descriptor.vapor && !ssr) {
401
+ code += `\n${COMP_IDENTIFIER}.__multiRoot = ${multiRoot}`
402
+ }
403
+
404
if (isTS) {
405
code = await transformTS(code, isJSX)
406
0 commit comments