class ViteRuby::Config
def watched_paths
def watched_paths [ *(watch_additional_paths + additional_entrypoints).reject { |dir| dir.start_with?("~/") || dir.start_with?(source_code_dir) }, "#{source_code_dir}/**/*", config_path.sub(/.json$/, ".{rb,json}"), *DEFAULT_WATCHED_PATHS, ].freeze end