Skip to content

Commit b0bf19f

Browse files
committed
refactor: improve
1 parent fddf79f commit b0bf19f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,10 +1715,8 @@ export function compileScript(
17151715
s.prependLeft(
17161716
startOffset,
17171717
`\nexport default /*#__PURE__*/Object.assign(${
1718-
defaultExport ? DEFAULT_VAR : ''
1719-
}${defaultExport && definedOptions ? ', ' : ''}${
1720-
definedOptions ? definedOptions : ''
1721-
}, {${runtimeOptions}\n ` +
1718+
defaultExport ? `${DEFAULT_VAR}, ` : ''
1719+
}${definedOptions ? `${definedOptions}, ` : ''}{${runtimeOptions}\n ` +
17221720
`${hasAwait ? `async ` : ``}setup(${args}) {\n${exposeCall}`
17231721
)
17241722
s.appendRight(endOffset, `})`)

0 commit comments

Comments
 (0)