mirror of https://github.com/vuejs/core.git
Merge branch 'edison/fix/ssrScriptCodegen' into edison/testVapor
This commit is contained in:
commit
88a5b49ede
|
@ -984,7 +984,7 @@ export function compileScript(
|
||||||
ctx.s.prependLeft(
|
ctx.s.prependLeft(
|
||||||
startOffset,
|
startOffset,
|
||||||
`\n${genDefaultAs} /*@__PURE__*/${ctx.helper(
|
`\n${genDefaultAs} /*@__PURE__*/${ctx.helper(
|
||||||
vapor ? `defineVaporComponent` : `defineComponent`,
|
vapor && !ssr ? `defineVaporComponent` : `defineComponent`,
|
||||||
)}({${def}${runtimeOptions}\n ${
|
)}({${def}${runtimeOptions}\n ${
|
||||||
hasAwait ? `async ` : ``
|
hasAwait ? `async ` : ``
|
||||||
}setup(${args}) {\n${exposeCall}`,
|
}setup(${args}) {\n${exposeCall}`,
|
||||||
|
|
Loading…
Reference in New Issue