Skip to content

Commit 6fd220a

Browse files
authored
fix: Early Hint links should be separated by a comma (#576)
1 parent 925cf98 commit 6fd220a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vite_rails/lib/vite_rails/tag_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def vite_preload_tag(*sources, crossorigin:, **options)
107107
:send_early_hints,
108108
"Link" => asset_paths.map { |href|
109109
%(<#{href}>; rel=modulepreload; as=script; crossorigin=#{crossorigin})
110-
}.join("\n"),
110+
}.join(","),
111111
)
112112
asset_paths.map { |href|
113113
tag.link(rel: "modulepreload", href: href, as: "script", crossorigin: crossorigin, **options)

0 commit comments

Comments
 (0)