function getConfigFromFile(configName, filename) {
  try {
    const loaded = getConfigExplorer().search(filename)

    if (loaded) {
      return {
        options: loaded.config[configName],
        path: loaded.filepath,
      }
    }
  } catch (e) {
    return {error: e}
  }
  return {}
}
Other plugins that run before babel-plugin-macros might use path.replace, where a path is
put into its own replacement. Apparently babel does not update the scope after such
an operation. As a remedy, the whole scope is traversed again with an empty "Identifier"
visitor - this makes the problem go away.

See: https://github.com/kentcdodds/import-all.macro/issues/7