Convert mix of JSON.parse and JSON.load_file (#38242)
This commit is contained in:
1 parent
4d33490ec8
commit
b9d25bde3e
9 files changed
+18
-18
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user