Hugo V PRO said about 3 years ago on Importmaps in Rails 7 :
David
Thanks for your answer and the info...
i rather not use Gems for frontend because i feel like going back to the old times
many js libs require CSS and as painful as webpack is, we can pull JS and CSS with just one yarn command, it would be interesting to see what the solution would be for rails 7