← All articles
development

Rails ImportMap Pin with Version

Pin specific versions in ImportMap.

Donn Felker

Donn Felker

2025.01.02 · 1 min read · updated August 6, 2025

If you’re using importmap with Rails and you need to pin a particular version, here’s how you can do that:

Terminal window
bin/importmap pin @editorjs/list@1.9.0

This would pin version 1.9.0 of editorjs/list into your application. Without the version identifier, you’d get the latest version.

Donn Felker

Written by Donn Felker

I've spent 25+ years shipping software, writing books, and running my own companies. I write about thinking clearly, working for yourself, and doing real work while AI rewrites the rules. New essays land here every week.

Get the newsletter

Keep reading