module Bootsnap::CompileCache::JSON::Patch

def load_file(path, *args)

def load_file(path, *args)
  return super if args.size > 1
  if (kwargs = args.first)
    return super unless kwargs.is_a?(Hash)
    return super unless (kwargs.keys - ::Bootsnap::CompileCache::JSON.supported_options).empty?
  end
  ::Bootsnap::CompileCache::Native.fetch(
    Bootsnap::CompileCache::JSON.cache_dir,
    File.realpath(path),
    ::Bootsnap::CompileCache::JSON,
    kwargs,
  )
end