class ViteRuby::Manifest

def resolve_entry_name(name, type: nil)

Internal: Resolves the manifest entry name for the specified resource.
def resolve_entry_name(name, type: nil)
  return resolve_virtual_entry(name) if type == :virtual
  name = with_file_extension(name.to_s, type)
  raise ArgumentError, "Asset names can not be relative. Found: #{ name }" if name.start_with?('.')
  # Explicit path, relative to the source_code_dir.
  name.sub(%r{^~/(.+)$}) { return Regexp.last_match(1) }
  # Explicit path, relative to the project root.
  name.sub(%r{^/(.+)$}) { return resolve_absolute_entry(Regexp.last_match(1)) }
  # Sugar: Prefix with the entrypoints dir if the path is not nested.
  name.include?('/') ? name : File.join(config.entrypoints_dir, name)
end