class ViteRuby::Config

def load_json(path)

Internal: Used to load a JSON file from the specified path.
def load_json(path)
  JSON.parse(File.read(File.expand_path(path))).each do |_env, config|
    config.transform_keys!(&SNAKE_CASE) if config.is_a?(Hash)
  end.tap do |config|
    config.transform_keys!(&SNAKE_CASE)
  end
end