Skip to content

Successor Map · Build tools and bundlers

Webpacker to jsbundling-rails and Shakapacker: retired, with two exits

The Rails team retired Webpacker once Rails 7 offered other ways to handle JavaScript. Existing apps move to jsbundling-rails for a simpler build or to Shakapacker to keep what Webpacker did.

Slide: Webpacker on the left, an arrow, and jsbundling-rails and Shakapacker on the right.
Status of the old tool
Deprecated
Effort to move
Mechanical
gen2.dev's view
Move when convenient
Sources checked
2026-11-28

Key facts

Gen 1Webpacker, the Rails gem that wrapped webpack
Gen 2jsbundling-rails, or Shakapacker, the community successor
Kind of toolBuild tools and bundlers
Status of Gen 1Deprecated The Webpacker README, read on November 28, 2026, says the gem has been retired and will no longer be evolved in an official Rails capacity; the Rails 7.0 announcement that moved away from it is dated December 15, 2021.
Effort to moveMechanical: same ideas, different calls
What breaksThe jsbundling-rails switching guide says hot module replacement and code splitting are no longer available after the switch.
Should you move?Move when convenient The Ruby side still gets security fixes, but the README says the JavaScript libraries the gem includes will not be updated. This is gen2.dev's view, not the maintainers'.
Sources checked2026-11-28, 5 sources

Gen 1 and Gen 2 side by side

npm registry Gen 1 Gen 2
Package@rails/webpackershakapacker
Latest version5.4.410.3.2
Latest releaseFeb 13, 2023Aug 29, 2026
First releaseAug 30, 2017Jan 19, 2022
LicenseMITMIT
Downloads, last week147,655280,483

Read from each package registry on November 29, 2026. Downloads include automated installs such as build servers, so compare them as a trend, not a head count.

What Gen 1 was

Webpacker was the gem that put webpack inside a Rails app. It supplied the configuration, the javascript_pack_tag helpers and a dev server, so a Rails team could use webpack without writing a webpack configuration first.

What replaced it

Rails 7.0, announced on December 15, 2021, changed the default. In the announcement's words, "Gone is the tightly-coupled embrace of Webpack with Webpacker."

The Webpacker README now opens with "Webpacker has been retired" and gives existing apps three options: switch to jsbundling-rails, move to import maps, or keep using Webpacker as it is. It also points to Shakapacker, where the unreleased version 6 work continued outside the Rails team.

The two realistic exits differ in ambition. jsbundling-rails is a thin layer: webpack, or another bundler, writes files into app/assets/builds and the normal Rails asset helpers serve them. Shakapacker keeps the Webpacker model, and its README calls it "the official, actively maintained successor to rails/webpacker."

What moving involves

For jsbundling-rails, the guide is a checklist:

  • Add the gem and run its webpack installer, which creates a webpack.config.js and a build script.
  • Delete the Webpacker files, including config/webpacker.yml and bin/webpack-dev-server.
  • Install the loaders you actually use for Babel, CSS and images, since Webpacker no longer supplies them.
  • Replace javascript_pack_tag with javascript_include_tag and stylesheet_pack_tag with stylesheet_link_tag.

For Shakapacker, the version 6 upgrade guide starts with a rename of the gem and the npm package, then moves to a single webpack configuration file. webpack and Babel become peer dependencies that the app installs and upgrades itself.

Either way the switch lands in one deploy, so plan it as a cutover and build each entry point on its own before testing them together.

What breaks

The jsbundling-rails guide is plain about the cost: after switching, hot module replacement and code splitting are no longer available. It suggests Shakapacker for apps that rely on either, or that have a complicated webpack setup.

On the Shakapacker path, nested entry point directories are not supported, and each layout should call each pack tag helper at most once. The guide starts at version 6 and Shakapacker is now at version 10, so there are further upgrades after the first.

Should you move?

Move when it is convenient. The README says the Rails team will "continue to address security issues on the Ruby side of the gem," so the gem itself is not unpatched. It also says the gem will not be updated to include newer versions of the JavaScript libraries, and that half ages every month.

The exception is an app that is leaving webpack altogether. If import maps or another bundler is the real destination, go there directly and skip the intermediate step.

Common questions

Is Webpacker dead?

It is deprecated. The Webpacker README, read on November 28, 2026, says the gem has been retired and will no longer be evolved in an official Rails capacity; the Rails 7.0 announcement that moved away from it is dated December 15, 2021.

What replaced Webpacker?

jsbundling-rails, or Shakapacker, the community successor. Effort to move: Mechanical: same ideas, different calls

Should I move off Webpacker?

gen2.dev's view: Move when convenient. The Ruby side still gets security fixes, but the README says the JavaScript libraries the gem includes will not be updated.

Sources

  1. rails/webpacker README - GitHub - States that Webpacker has been retired, lists the options for existing apps, and says which parts still receive security fixes.
  2. Rails 7.0: Fulfilling a vision - Ruby on Rails (December 15, 2021) - Announces Rails 7.0 with import maps and jsbundling-rails in place of the Webpacker default.
  3. Switch from Webpacker 5 to jsbundling-rails with webpack - rails/jsbundling-rails - GitHub - The switching guide: install steps, files to remove, helper tag changes and the features that are lost.
  4. shakacode/shakapacker README - GitHub - Describes Shakapacker as the official, actively maintained successor to rails/webpacker, at v10, supporting webpack 5 or Rspack.
  5. Upgrading from Webpacker v5 to Shakapacker v6 - shakacode/shakapacker - GitHub - Lists the gem and package rename, the peer dependency change, and the configuration and helper changes.
  6. @rails/webpacker - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026
  7. shakapacker - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026

Sources checked on 2026-11-28. Tools change status quickly; if this date is old, read the sources before acting on it.