The webpack integration coming in Rails 5.2 starts to do exactly what you suggest. We’ve had the beta in general use for weeks and I’d say the framework is going in the direction you want.
This article seems a bit of overengineering by comparison and isn’t representative of what’s new out-of-the-box.