Why I think Vite (Ruby) is the only viable option (among available today) for Rails apps?
It the only one that is capable* of surviving major framework upgrades, DHH mood swings and uncontrolled frontend tooling evolution.
Vite is kinda meta builder: it relies on esbuild and rollup for dirty work. Whenever a new shiny frontend builder appears and overcomes esbuild (which is a great builder, for sure), Vite would switch under the hood without enforcing you to migrate yourself.
Using Vite Rails instead of sprockets|propshaft importmap|jsbundling|cssbundling|tailwindcss-rails|esbuild|bun (pick your own combination) allows you to stay independent of Rails frontend “evolution”. More major versions covered, less painful upgrades.
I switched to Vite ~3 years ago and forgot about asset pipeline stack upgrades. It works today in a similar fashion it worked back then.
I'm not using it as it's not standard Rails; vite gem requires several steps to configure.
I'm currently using esbuild propshaft for projects that need JSX/TS, which works great. I believe that Vite uses esbuild behind the scenes.
Why is Vite the "only viable" asset pipeline.