class ViteRuby::Manifest
def resolve_references(manifest)
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