Skip to content

Commit 1d48273

Browse files
committed
Add id to vite-legacy-polyfill tag
1 parent 0ac8dcd commit 1d48273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vite_plugin_legacy/lib/vite_plugin_legacy/tag_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ def vite_legacy_typescript_tag(name)
2525
def vite_legacy_polyfill_tag
2626
return if ViteRuby.instance.dev_server_running?
2727

28-
content_tag(:script, nil, nomodule: true, src: vite_asset_path('legacy-polyfills', type: :virtual))
28+
content_tag(:script, nil, nomodule: true, id: 'vite-legacy-polyfill', src: vite_asset_path('legacy-polyfills', type: :virtual))
2929
end
3030
end

0 commit comments

Comments
 (0)