From c8bb06bbff200cf8f8bd35fa4be94c9ff083042e Mon Sep 17 00:00:00 2001 From: Steve Rackham Date: Fri, 22 Dec 2023 15:44:19 +0000 Subject: [PATCH] Only set config variable if provided (#5) --- vite_ruby/lib/vite_ruby/cli/vite.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite_ruby/lib/vite_ruby/cli/vite.rb b/vite_ruby/lib/vite_ruby/cli/vite.rb index 09c64a9..caf0673 100644 --- a/vite_ruby/lib/vite_ruby/cli/vite.rb +++ b/vite_ruby/lib/vite_ruby/cli/vite.rb @@ -18,7 +18,7 @@ def self.shared_options def call(mode:, args: [], clobber: false, js_config_path: nil, **boolean_opts) ViteRuby.env['VITE_RUBY_MODE'] = mode - ViteRuby.env['VITE_RUBY_JS_CONFIG_PATH'] = js_config_path + ViteRuby.env['VITE_RUBY_JS_CONFIG_PATH'] = js_config_path if js_config_path ViteRuby.commands.clobber if clobber