class ViteRuby::Config

def to_env(env_vars = ViteRuby.env)

Public: Sets additional environment variables for vite-plugin-ruby.
def to_env(env_vars = ViteRuby.env)
  CONFIGURABLE_WITH_ENV.each_with_object({}) do |option, env|
    unless (value = @config[option]).nil?
      env["#{ViteRuby::ENV_PREFIX}_#{option.upcase}"] = value.to_s
    end
  end.merge(env_vars)
end