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 4, 2023
1 parent dbe7109 commit 0e963bb
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 0e963bb

Please sign in to comment.