From 966426779323475896ead876d55bb78fd6c97bf4 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 15 Oct 2020 12:10:25 -0400 Subject: [PATCH] chore: fix missed type guard from dbc29c32 --- packages/compiler-sfc/src/rewriteDefault.ts | 1 + 1 file changed, 1 insertion(+) 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!