class ViteRuby::Manifest

def resolve_references(manifest)

Internal: Resolves the paths that reference a manifest entry.
def resolve_references(manifest)
  manifest.each_value do |entry|
    entry['file'] = prefix_vite_asset(entry['file'])
    %w[css assets].each do |key|
      entry[key] = entry[key].map { |path| prefix_vite_asset(path) } if entry[key]
    end
    entry['imports']&.map! { |name| manifest.fetch(name) }
  end
end