chore: fix missed type guard from dbc29c32
This commit is contained in:
parent
dbc29c32e3
commit
9664267793
@ -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!
|
||||||
|
Loading…
Reference in New Issue
Block a user