lib/vite_ruby/cli/ssr.rb in vite_ruby-3.2.0.beta0 vs lib/vite_ruby/cli/ssr.rb in vite_ruby-3.2.0
- old
+ new
@@ -12,12 +12,10 @@
ssr_entrypoint = JS_EXTENSIONS
.map { |ext| ViteRuby.config.ssr_output_dir.join("ssr.#{ ext }") }
.find(&:exist?)
- unless ssr_entrypoint
- raise ArgumentError, "No ssr entrypoint found `#{ ViteRuby.config.ssr_output_dir.relative_path_from(ViteRuby.config.root) }/ssr.{#{ JS_EXTENSIONS.join(',') }}`. Have you run bin/vite build --ssr?"
- end
+ raise ArgumentError, "No ssr entrypoint found `#{ ViteRuby.config.ssr_output_dir.relative_path_from(ViteRuby.config.root) }/ssr.{#{ JS_EXTENSIONS.join(',') }}`. Have you run bin/vite build --ssr?" unless ssr_entrypoint
cmd = [
'node',
('--inspect-brk' if inspect),
('--trace-deprecation' if trace_deprecation),