diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index 74cbb5396ae..3d7d125bea9 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -1065,6 +1065,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