Skip to content

Commit 73eb8e3

Browse files
committed
fix(compiler-sfc): export call expression as default
closes #7534
1 parent 0fbc19f commit 73eb8e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,7 @@ export function compileScript(
10651065
optionProperties = defaultExport.declaration.properties
10661066
} else if (
10671067
defaultExport.declaration.type === 'CallExpression' &&
1068+
defaultExport.declaration.arguments[0] &&
10681069
defaultExport.declaration.arguments[0].type === 'ObjectExpression'
10691070
) {
10701071
optionProperties = defaultExport.declaration.arguments[0].properties

0 commit comments

Comments
 (0)