David Heinemeier Hansson

October 11, 2023

You can't get faster than No Build

For the first time since the 2000s, I'm working on a new Rails application without using any form of real build steps on the front-end. We're making it using vanilla ES6 with import maps for Hotwire, and vanilla CSS with nesting and variables for styling. All running on a delightfully new simple asset pipeline called Propshaft. It's all just so... simple.

It's also fast. Really fast. Infinitely fast. Here's a tongue-in-cheek slide I featured as part of my Rails World keynote last week talking about this No Build process:

no-build-speed.jpg


Now I fully understand why someone might want to use esbuild or bun, and I've gone out of my way to work on great tooling for Rails to make that really easy. Rails 7.1 ships with native support for bun in the box, and esbuild is already compiling JavaScript for lots of Rails applications in production (including Basecamp!). These are great tools, and I'm thrilled they work so well with Rails.

But for the first time in probably 15 years, the state of the art is no longer finding more sophisticated ways to build JavaScript or CSS. It's not to build at all. To lean on HTTP/2 and the now universal support for import maps to avoid bundling, and to lean on the fundamental progress in support for modern JavaScript and CSS to avoid compiling what browsers already know how to read.

If you aren't wedded to React, Vue, or whatever, you should have a look at what's possible to build with Hotwire and No Build these days. You just might want to shed the weight of complexity and enjoy the lighter stack.

About David Heinemeier Hansson

Made Basecamp and HEY for the underdogs as co-owner and CTO of 37signals. Created Ruby on Rails. Wrote REWORK, It Doesn't Have to Be Crazy at Work, and REMOTE. Won at Le Mans as a racing driver. Fought the big tech monopolies as an antitrust advocate. Invested in Danish startups.