You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: tag_helpers.rb
    path of file: ./repos/vite_ruby/vite_rails_legacy/lib/vite_rails_legacy
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Public: Allows to render HTML tags for scripts and s
    
  def vite_preload_tag(*sources, crossorigin:, **options)
    sources.map { |source|
      href = path_to_asset(source)
      try(:request).try(:send_early_hints, 'Link' => %(<#{ href }>; rel=modulepreload; as=script; crossorigin=#{ crossorigin }))
      tag('link', rel: 'modulepreload', href: href, as: 'script', crossorigin: crossorigin, **options)
    }.join("\n").html_safe
  end