I've always had problems with webpack and webpacker (the tool that integrats webpack into Rails). It might simply be because I don't understand enough of the eco-system and I never bothered to really look into it. But with some recent changes to Rails and new alternatives I finally decided to get rid of webpacker altogether. It's actually the new default for Rails apps as many developers had issues with it.
I've always had problems with webpack and webpacker (the tool that integrats webpack into Rails). It might simply be because I don't understand enough of the eco-system and I never bothered to really look into it. But with some recent changes to Rails and new alternatives I finally decided to get rid of webpacker altogether. It's actually the new default for Rails apps as many developers had issues with it.
So what do you use if not webpack?
@kimsia I would imagine he moved to import map, which is the rails 7 default - github.com/rails/importmap-ra…
Their rationale is here: world.hey.com/dhh/rails-7-wil…
Thank you Spencer
jsbundlingbut also considering import map as @swalden mentioned