mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Merge commit '69f298731e523f7f2e97ddd6a559dfb485d4495c' into glitch-soc/merge-upstream
This commit is contained in:
@@ -9,7 +9,7 @@ module ViteRuby::ManifestIntegrityExtension
|
||||
|
||||
def load_manifest
|
||||
# Invalidate the name lookup cache when reloading manifest
|
||||
@name_lookup_cache = load_name_lookup_cache
|
||||
@name_lookup_cache = load_name_lookup_cache unless dev_server_running?
|
||||
|
||||
super
|
||||
end
|
||||
@@ -20,6 +20,8 @@ module ViteRuby::ManifestIntegrityExtension
|
||||
|
||||
# Upstream's `virtual` type is a hack, re-implement it with efficient exact name lookup
|
||||
def resolve_virtual_entry(name)
|
||||
return name if dev_server_running?
|
||||
|
||||
@name_lookup_cache ||= load_name_lookup_cache
|
||||
|
||||
@name_lookup_cache.fetch(name)
|
||||
|
||||
Reference in New Issue
Block a user