I was trying to extend the importmaps JSON generated because you can only have 1 importmap on a page. The best I came up with was the following: https://github.com/KonnorRogers/importmaps-sandbox-rails/blob/main/config/application.rb#L27-L118 Is there a better way to hook into the generated JSON?