class Importmap::Map

def resolve_asset_paths(paths, resolver:)

def resolve_asset_paths(paths, resolver:)
  paths.transform_values do |mapping|
    begin
      resolver.path_to_asset(mapping.path)
    rescue => e
      if rescuable_asset_error?(e)
        Rails.logger.warn "Importmap skipped missing path: #{mapping.path}"
        nil
      else
        raise e
      end
    end
  end.compact
end