Moving away from importmaps to esbuild in Rails 7

preview_player
Показать описание
I’ve hit a snag recently with Safari and support for importmaps in Rails 7. Rather than spend valuable time trying to debug this and fix it, I'd prefer to migrate to using Esbuild, as I believe that’s generally a more stable way to handle JavaScript bundling at this point in time.

This video is part 11 of my Rails twitter clone course using Hotwire and Tailwind CSS, you can pre-order today and get access to the first 11 episodes (the entire course may be released at the time you are reading this).

View the course:

And as a thank you for being a Youtube subscriber, you can use the promo code RRYOUTUBE for a substantial discount off the price of the course! I appreciate all of you who support me by purchasing my course as it really helps me being able to release free content here on youtube!
Рекомендации по теме
Комментарии
Автор

Wow thank you for posting this. I have been pulling my hair out trying to figure out why my import maps are screwed up.

PRICEX
Автор

Hi you know the similar video about moving away from webpacker to esbuild in rails 7? Your video is clear to understand

sacrac
Автор

Thanks for the great videos! appreciate them

shrig
Автор

Could you please create a video on how to handle hotwire turbo frames errors? Pretty Please! 😄

fargo
Автор

What version of Safari you have been using? Safari has support for import maps

krzysztofwawer
Автор

Can you share more information about your issue? I'm pretty sure that the rails team or someone has that figured out. Like a technical post on stackoverflow or an issue on github would go a long way to clarify this issue. Coming out with a video that just states that importmaps doesnt work on safari is a huge deal and I think does a dis-service to the rails community, without specifying details which would allow it to be addressed.

yoni-
Автор

I checked for my app, and js working on Safari with import maps for me.

mateuszbialowas
Автор

I assume your twitter course is based on importmap?

EricChua-gmin
Автор

terrible solution. going for a bundler is not a fix. you should simply rollback if a release broke something. latest is not always the greatest.

vwscojk