Skip to content

Commit b9e3384

Browse files
authored
fix: late-registration javascript tag (#3622)
1 parent bd1c44c commit b9e3384

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/components/avo/asset_manager/javascript_component.html.erb

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
<% end %>
99

1010
<%# This is the last script to run so it can register custom StimulusJS controllers from plugins. %>
11-
<%= javascript_include_tag 'late-registration', "data-turbo-track": "reload", defer: true %>
11+
<% if Avo::PACKED %>
12+
<%= javascript_include_tag '/avo-assets/late-registration', "data-turbo-track": "reload", defer: true %>
13+
<% else %>
14+
<%= javascript_include_tag 'late-registration', "data-turbo-track": "reload", defer: true %>
15+
<% end %>

0 commit comments

Comments
 (0)