# jsbundling-rails

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


Source: https://findsoftware.frbit.cloud/jsbundling-rails/
Last reviewed: 2026-10-28
Listed since: 2026-10-28

## Record

### Links

- repository: https://github.com/rails/jsbundling-rails
- docs: https://github.com/rails/jsbundling-rails/blob/main/README.md

### Identity

- status: active
- maintainer: David Heinemeier Hansson
- maintainerType: unknown
- parent: unknown
- firstRelease: 2021
- hqCountry: unknown

### Kind

- category: build-tool
- hosting: not applicable
- language: ruby
- runtime: ruby, node
- runtimeMin: not applicable
- basedOn: rails

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: local
- renderingModes: not applicable
- installMethod: bin/bundle add jsbundling-rails, then bin/rails javascript:install

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 1
- latestReleaseDate: 2024-07-29

### Adoption

- githubStargazers: 922
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 68
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://api.github.com/repos/rails/jsbundling-rails (read 2026-10-28)
- urls: https://github.com/rails/jsbundling-rails/blob/main/README.md (read 2026-10-28)
- maintainer: https://raw.githubusercontent.com/rails/jsbundling-rails/main/MIT-LICENSE (read 2026-10-28)
- language: https://api.github.com/repos/rails/jsbundling-rails (read 2026-10-28)
- category: https://github.com/rails/jsbundling-rails/blob/main/README.md (read 2026-10-28)
- basedOn: https://github.com/rails/jsbundling-rails/blob/main/README.md (read 2026-10-28)
- runtime: https://rubygems.org/api/v1/versions/jsbundling-rails.json (read 2026-10-28)
- runtime: https://github.com/rails/jsbundling-rails/blob/main/README.md (read 2026-10-28)
- installMethod: https://github.com/rails/jsbundling-rails/blob/main/README.md (read 2026-10-28)
- installMethod: https://github.com/rails/jsbundling-rails/blob/main/README.md (read 2026-10-28)
- runsAs: https://github.com/rails/jsbundling-rails/blob/main/README.md (read 2026-10-28)
- license: https://api.github.com/repos/rails/jsbundling-rails (read 2026-10-28)
- licenseModel: https://raw.githubusercontent.com/rails/jsbundling-rails/main/MIT-LICENSE (read 2026-10-28)
- firstRelease: https://rubygems.org/api/v1/versions/jsbundling-rails.json (read 2026-10-28)
- currentMajor: https://api.github.com/repos/rails/jsbundling-rails/releases (read 2026-10-28)
- latestReleaseDate: https://api.github.com/repos/rails/jsbundling-rails/releases (read 2026-10-28)
- githubStargazers: https://api.github.com/repos/rails/jsbundling-rails (read 2026-10-28)
- contributors: https://api.github.com/repos/rails/jsbundling-rails/contributors (read 2026-10-28)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
