FindSoftware

jsbundling-rails

Rails gem that bundles JavaScript with Bun, esbuild, rollup.js or Webpack and delivers the output through the Rails asset pipeline.

jsbundling-rails is a Rails gem that runs a JavaScript bundler inside a Rails application and places the bundled output where the asset pipeline can serve it. The installer sets up one of Bun, esbuild, rollup.js or Webpack. The bundled files go to app/assets/builds, a directory the installer keeps out of source control by default.

During development the bundler runs in watch mode in a terminal, alongside the Rails server. For production, its build task attaches to asset precompilation, so the bundle is built when assets are precompiled.

Worth knowing

Node.js must be installed for the esbuild, rollup.js and Webpack installers, and the Bun installer needs the Bun runtime. For Webpack features such as code splitting and hot module reloading, the README points to shakapacker, a fork of webpacker.

Identity

Status
Active
Maintainer
David Heinemeier Hansson3
First release
20214

Rendering and deploy

Runs as
Dev only2
Install with
bin/bundle add jsbundling-rails, then bin/rails javascript:install2

Releases

Current major version
15
Last release
2024-07-295

Adoption

GitHub stars
9221
Contributors
686

Why these figures do not compare

Sources

  1. 2026-10-28: links, Written in, License, GitHub stars
    api.github.com/repos/rails/jsbundling-rails
  2. 2026-10-28: links, Categories, Built on, Runtime, Install with, Runs as
    github.com/rails/jsbundling-rails/blob/main/README.md
  3. 2026-10-28: Maintainer, License model
    raw.githubusercontent.com/rails/jsbundling-rails/main/MIT-LICENSE
  4. 2026-10-28: Runtime, First release
    rubygems.org/api/v1/versions/jsbundling-rails.json
  5. 2026-10-28: Current major version, Last release
    api.github.com/repos/rails/jsbundling-rails/releases
  6. 2026-10-28: Contributors
    api.github.com/repos/rails/jsbundling-rails/contributors

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON