handleNodePath = (path) => {
    const importSource = path.node.source?.value

    if (importSource && (shouldInspectAll || pkgsToInspect.has(importSource))) {
      esmImports.add(importSource)
    }
  }
@param {import('@babel/traverse').NodePath<
  | import('@babel/types').ImportDeclaration
  | import('@babel/types').ExportNamedDeclaration
>} path