wip: fix default export codegen

This commit is contained in:
Evan You 2020-11-19 15:30:33 -05:00
parent 737ef424a0
commit 0e86cbfcf2

View File

@ -930,7 +930,7 @@ export function compileScript(
`\n${hasAwait ? `async ` : ``}function setup(${args}) {\n`
)
s.append(
`/*#__PURE__*/ Object.assign(${defaultTempVar}, {${runtimeOptions}\n setup\n})\n` +
`\n/*#__PURE__*/ Object.assign(${defaultTempVar}, {${runtimeOptions}\n setup\n})\n` +
`export default ${defaultTempVar}`
)
} else {