Skip to content

Commit

Permalink
fix(compiler-sfc): export call expression as default
Browse files Browse the repository at this point in the history
closes #7534
  • Loading branch information
sxzz committed Mar 28, 2023
1 parent 3a7572c commit 38212e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/compiler-sfc/src/compileScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,7 @@ export function compileScript(
optionProperties = defaultExport.declaration.properties
} else if (
defaultExport.declaration.type === 'CallExpression' &&
defaultExport.declaration.arguments[0] &&
defaultExport.declaration.arguments[0].type === 'ObjectExpression'
) {
optionProperties = defaultExport.declaration.arguments[0].properties
Expand Down

0 comments on commit 38212e7

Please sign in to comment.