mirror of https://github.com/vuejs/core.git
wip: fix default export codegen
This commit is contained in:
parent
737ef424a0
commit
0e86cbfcf2
|
@ -930,7 +930,7 @@ export function compileScript(
|
||||||
`\n${hasAwait ? `async ` : ``}function setup(${args}) {\n`
|
`\n${hasAwait ? `async ` : ``}function setup(${args}) {\n`
|
||||||
)
|
)
|
||||||
s.append(
|
s.append(
|
||||||
`/*#__PURE__*/ Object.assign(${defaultTempVar}, {${runtimeOptions}\n setup\n})\n` +
|
`\n/*#__PURE__*/ Object.assign(${defaultTempVar}, {${runtimeOptions}\n setup\n})\n` +
|
||||||
`export default ${defaultTempVar}`
|
`export default ${defaultTempVar}`
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue