prettier
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user