Ask A Question

Notifications

You’re not receiving notifications from this thread.

DHH's most recent hotwire update...

Jason asked in Rails

I just caught a tweet from DHH mentioning a new hotwire related pull request. I'm curious to know how the go rails community feels about this. Seems like most of my projects nowadays rely on some sort of javascript dependency handled by webpacker. Has anyone gone full asset pipeline + hotwire?

Reply

This will be nice for simpler applications that don't need a lot of JS dependencies. You'll be able to ship all your Javascript really quickly and easily. This will be great for Stimulus controllers and other basic code.

Evan You who created Vue and Vite had some comments on it: https://twitter.com/youyuxi/status/1425933472871456777
He's specifically referring to larger frontend applications and I think those are valid points where Webpacker, Vite, or an alternative will still be the best option.

So it sounds like it depends on what you need. Importmaps will be perfect for applications that don't have a ton of frontend dependencies. I think Rails has always pushed for minimal JS, so it makes sense to use importmaps out of the box.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,464+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.