global

def require(path)

def require(path)
  return false if Bootsnap::LoadPathCache.loaded_features_index.key?(path)
  if resolved = Bootsnap::LoadPathCache.load_path_cache.find(path)
    return require_with_bootsnap_lfi(path, resolved)
  end
  raise Bootsnap::LoadPathCache::CoreExt.make_load_error(path)
rescue Bootsnap::LoadPathCache::ReturnFalse
  return false
rescue Bootsnap::LoadPathCache::FallbackScan
  require_with_bootsnap_lfi(path)
end