Skip to content

Commit f082a75

Browse files
committed
fix: remove __reExport helper
1 parent b0cd873 commit f082a75

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/fake-js.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,9 +500,12 @@ function isHelperImport(node: t.Node) {
500500
return (
501501
node.type === 'ImportDeclaration' &&
502502
node.specifiers.length === 1 &&
503-
node.specifiers[0].type === 'ImportSpecifier' &&
504-
node.specifiers[0].imported.type === 'Identifier' &&
505-
node.specifiers[0].imported.name === '__export'
503+
node.specifiers.every(
504+
(spec) =>
505+
spec.type === 'ImportSpecifier' &&
506+
spec.imported.type === 'Identifier' &&
507+
['__export', '__reExport'].includes(spec.imported.name),
508+
)
506509
)
507510
}
508511

0 commit comments

Comments
 (0)