Skip to content

Commit 0e86cbf

Browse files
committed
wip: fix default export codegen
1 parent 737ef42 commit 0e86cbf

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
@@ -930,7 +930,7 @@ export function compileScript(
930930
`\n${hasAwait ? `async ` : ``}function setup(${args}) {\n`
931931
)
932932
s.append(
933-
`/*#__PURE__*/ Object.assign(${defaultTempVar}, {${runtimeOptions}\n setup\n})\n` +
933+
`\n/*#__PURE__*/ Object.assign(${defaultTempVar}, {${runtimeOptions}\n setup\n})\n` +
934934
`export default ${defaultTempVar}`
935935
)
936936
} else {

0 commit comments

Comments
 (0)