Importmaps is the ideal way to go in the future I think. It simplifies the environment quite a bit. However, esbuild has been a much more straight forward experience (especially if you're used webpacker in the past).
You can add some templates into your application. In my template apps, I have https://github.com/driftingruby/template/tree/main/template/templates/erb/scaffold set up to get back to the table type of index actions. You basically copy the templates folder to your lib and it will override the default behavior.