Vanilla Rails + Hotwire install has
/assets/config/manifest.js
/assets/javascripts/controllers for Stimulus
/assets/javascripts/libraries for other ESM modules
There isn’t an application.js by default and I’m not sure going forward in this new setup if that’s the best way to do it?
- Create
/assets/javascripts/application.js
- Add
//= require activestorage
to it - Add
<%= javascript_include_tag "application", type: "module-shim" %>
to application.html.erb?