We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__reExport
1 parent b0cd873 commit f082a75Copy full SHA for f082a75
src/fake-js.ts
@@ -500,9 +500,12 @@ function isHelperImport(node: t.Node) {
500
return (
501
node.type === 'ImportDeclaration' &&
502
node.specifiers.length === 1 &&
503
- node.specifiers[0].type === 'ImportSpecifier' &&
504
- node.specifiers[0].imported.type === 'Identifier' &&
505
- node.specifiers[0].imported.name === '__export'
+ node.specifiers.every(
+ (spec) =>
+ spec.type === 'ImportSpecifier' &&
506
+ spec.imported.type === 'Identifier' &&
507
+ ['__export', '__reExport'].includes(spec.imported.name),
508
+ )
509
)
510
}
511
0 commit comments