Skip to content

Commit 2074d66

Browse files
authored
fix(compiler-sfc): always use defineComponent in SSR mode (#13525)
1 parent 48a1370 commit 2074d66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ export function compileScript(
984984
ctx.s.prependLeft(
985985
startOffset,
986986
`\n${genDefaultAs} /*@__PURE__*/${ctx.helper(
987-
vapor ? `defineVaporComponent` : `defineComponent`,
987+
vapor && !ssr ? `defineVaporComponent` : `defineComponent`,
988988
)}({${def}${runtimeOptions}\n ${
989989
hasAwait ? `async ` : ``
990990
}setup(${args}) {\n${exposeCall}`,

0 commit comments

Comments
 (0)