Key facts
| Gen 1 | |
|---|---|
| Gen 2 | |
| Kind of tool | Build tools and bundlers |
| Status of Gen 1 | 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. |
| Effort to move | Mechanical: same ideas, different calls |
| What breaks | The 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 checked | 2026-11-28, 5 sources |
Gen 1 and Gen 2 side by side
| npm registry | ||
|---|---|---|
| Package | @rails/webpacker | shakapacker |
| Latest version | 5.4.4 | 10.3.2 |
| Latest release | Feb 13, 2023 | Aug 29, 2026 |
| First release | Aug 30, 2017 | Jan 19, 2022 |
| License | MIT | MIT |
| Downloads, last week | 147,655 | 280,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.jsand a build script. - Delete the Webpacker files, including
config/webpacker.ymlandbin/webpack-dev-server. - Install the loaders you actually use for Babel, CSS and images, since Webpacker no longer supplies them.
- Replace
javascript_pack_tagwithjavascript_include_tagandstylesheet_pack_tagwithstylesheet_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
- rails/webpacker README - GitHub - States that Webpacker has been retired, lists the options for existing apps, and says which parts still receive security fixes.
- 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.
- 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.
- shakacode/shakapacker README - GitHub - Describes Shakapacker as the official, actively maintained successor to rails/webpacker, at v10, supporting webpack 5 or Rspack.
- 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.
- @rails/webpacker - npm - latest version, release dates, license and last week's downloads, read on November 29, 2026
- 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.

