Skip to content

Commit 95be153

Browse files
authoredFeb 28, 2025··
fix(plugin-vue): support vapor template-only component (#529)
1 parent cdd4922 commit 95be153

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎packages/plugin-vue/src/main.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ async function genScriptCode(
345345
code: string
346346
map: RawSourceMap | undefined
347347
}> {
348-
let scriptCode = `const ${scriptIdentifier} = {}`
348+
// @ts-expect-error TODO remove when 3.6 is out
349+
const vaporFlag = descriptor.vapor ? '__vapor: true' : ''
350+
let scriptCode = `const ${scriptIdentifier} = { ${vaporFlag} }`
349351
let map: RawSourceMap | undefined
350352

351353
const script = resolveScript(descriptor, options, ssr, customElement)

0 commit comments

Comments
 (0)
Please sign in to comment.