lib/vite_ruby/config.rb in vite_ruby-3.1.0 vs lib/vite_ruby/config.rb in vite_ruby-3.1.1

- old
+ new

@@ -119,10 +119,10 @@ { 'asset_host' => option_from_env('asset_host') || asset_host, 'config_path' => option_from_env('config_path') || DEFAULT_CONFIG.fetch('config_path'), 'mode' => option_from_env('mode') || mode, 'root' => option_from_env('root') || root, - } + }.select { |_, value| value } end # 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|