Skip to content

Commit 95be153

Browse files
authored
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

Lines changed: 3 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy