]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix missed type guard from dbc29c32
authorEvan You <yyx990803@gmail.com>
Thu, 15 Oct 2020 16:10:25 +0000 (12:10 -0400)
committerEvan You <yyx990803@gmail.com>
Thu, 15 Oct 2020 16:10:25 +0000 (12:10 -0400)
packages/compiler-sfc/src/rewriteDefault.ts

index 4bcd57c40c6a03c2043d37e12ecbe961c02fc2e1..6dc52fe4bf41107fd93d7cbf63dfcc27b5ea7190 100644 (file)
@@ -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!