This commit is contained in:
Oleksii Bulenok
2026-09-01 19:14:14 +02:00
parent 46e432bde5
commit e8ad1e91ce
2 changed files with 7 additions and 4 deletions
@@ -282,9 +282,9 @@ module.exports = function lexiconLeafImports(babel, options = {}) {
if (!stmt.isImportDeclaration()) continue
if (stmt.node.importKind === 'type') continue
/*
* A specifier-less import exists only for module evaluation; there is
* nothing to rewrite, so leave it untouched.
*/
* A specifier-less import exists only for module evaluation; there is
* nothing to rewrite, so leave it untouched.
*/
if (stmt.node.specifiers.length === 0) continue
const dir = barrelDirFor(stmt.node.source.value, filename)