Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 95be153

Browse filesBrowse files
authored
fix(plugin-vue): support vapor template-only component (#529)
1 parent cdd4922 commit 95be153
Copy full SHA for 95be153

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

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

Copy file name to clipboardExpand all lines: packages/plugin-vue/src/main.ts
+3-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.