Skip to content

Commit 9664267

Browse files
committed
chore: fix missed type guard from dbc29c3
1 parent dbc29c3 commit 9664267

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/compiler-sfc/src/rewriteDefault.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export function rewriteDefault(
3737
node.specifiers.forEach(specifier => {
3838
if (
3939
specifier.type === 'ExportSpecifier' &&
40+
specifier.exported.type === 'Identifier' &&
4041
specifier.exported.name === 'default'
4142
) {
4243
const end = specifier.end!

0 commit comments

Comments
 (0)