Reasons for switching (or not switching) from importmaps to ESBuild

I am learning Rails 7 and all the commonly used gems (like Devise, turbo, stimulus, etc) that people use to build applications.

I was struggling with getting jquery to work with importmaps, and was considering switching to ES-build. What are some of the pros and cons of switching to esbuild?

I’m using React in my Rails app and that’s why I’m using esbuild.