diff --git a/packages/compiler-sfc/src/rewriteDefault.ts b/packages/compiler-sfc/src/rewriteDefault.ts index 4bcd57c4..6dc52fe4 100644 --- a/packages/compiler-sfc/src/rewriteDefault.ts +++ b/packages/compiler-sfc/src/rewriteDefault.ts @@ -37,6 +37,7 @@ export function rewriteDefault( node.specifiers.forEach(specifier => { if ( specifier.type === 'ExportSpecifier' && + specifier.exported.type === 'Identifier' && specifier.exported.name === 'default' ) { const end = specifier.end!