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

This commit is contained in:
Matt Jankowski authored and GitHub committed 2026-03-17 13:27:57 +00:00
1 parent 4d33490ec8
commit b9d25bde3e
9 files changed
+18 -18

No files matched your search

+1 -1
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