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
Rendering and deploy
Releases
Adoption
Sources
- 2026-10-28: links, Written in, License, GitHub stars
api.github.com/repos/rails/jsbundling-rails - 2026-10-28: links, Categories, Built on, Runtime, Install with, Runs as
github.com/rails/jsbundling-rails/blob/main/README.md - 2026-10-28: Maintainer, License model
raw.githubusercontent.com/rails/jsbundling-rails/main/MIT-LICENSE - 2026-10-28: Runtime, First release
rubygems.org/api/v1/versions/jsbundling-rails.json - 2026-10-28: Current major version, Last release
api.github.com/repos/rails/jsbundling-rails/releases - 2026-10-28: Contributors
api.github.com/repos/rails/jsbundling-rails/contributors