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 Feb 1, 2023
1 parent 30399d4 commit b30c05b
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 @@ -1071,6 +1071,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 b30c05b

Please sign in to comment.