Convert mix of JSON.parse and JSON.load_file (#38242)

This commit is contained in:
Matt Jankowski
2026-03-17 09:27:57 -04:00
committed by GitHub
parent 4d33490ec8
commit b9d25bde3e
9 changed files with 18 additions and 18 deletions

View File

@@ -15,7 +15,7 @@ module ViteRuby::ManifestIntegrityExtension
end
def load_name_lookup_cache
Oj.load(config.build_output_dir.join('.vite/manifest-lookup.json').read)
JSON.load_file(config.build_output_dir.join('.vite/manifest-lookup.json'))
end
# Upstream's `virtual` type is a hack, re-implement it with efficient exact name lookup