chore: fix missed type guard from dbc29c32

This commit is contained in:
Evan You 2020-10-15 12:10:25 -04:00
parent dbc29c32e3
commit 9664267793

View File

@ -37,6 +37,7 @@ export function rewriteDefault(
node.specifiers.forEach(specifier => { node.specifiers.forEach(specifier => {
if ( if (
specifier.type === 'ExportSpecifier' && specifier.type === 'ExportSpecifier' &&
specifier.exported.type === 'Identifier' &&
specifier.exported.name === 'default' specifier.exported.name === 'default'
) { ) {
const end = specifier.end! const end = specifier.end!