# Webpacker to jsbundling-rails or Shakapacker | gen2.dev

> Rails retired Webpacker when Rails 7 arrived. What the retirement notice says, and how jsbundling-rails and Shakapacker differ as places to move to.

Source: https://gen2.dev/successors/webpacker/

---

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.](https://gen2.dev/img/successor-webpacker.png)

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 1

![Webpacker logo](https://gen2.dev/icons/tech/webpacker.png)Webpacker, the Rails gem that wrapped webpack

Gen 2

![Shakapacker logo](https://gen2.dev/icons/tech/shakapacker.png)jsbundling-rails, or Shakapacker, the community successor

Kind of tool

[Build tools and bundlers](https://gen2.dev/successors/build-tools/)

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](#sources)

## Gen 1 and Gen 2 side by side

npm registry

![Webpacker logo](https://gen2.dev/icons/tech/webpacker.png)Gen 1

![Shakapacker logo](https://gen2.dev/icons/tech/shakapacker.png)Gen 2

Package

[@rails/webpacker](https://www.npmjs.com/package/@rails/webpacker)

[shakapacker](https://www.npmjs.com/package/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.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](https://gen2.dev/guide/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](https://github.com/rails/webpacker) - 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)](https://rubyonrails.org/2021/12/15/Rails-7-fulfilling-a-vision) - 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](https://github.com/rails/jsbundling-rails/blob/main/docs/switch_from_webpacker.md) - The switching guide: install steps, files to remove, helper tag changes and the features that are lost.
4.  [shakacode/shakapacker README - GitHub](https://github.com/shakacode/shakapacker) - 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](https://github.com/shakacode/shakapacker/blob/main/docs/v6_upgrade.md) - Lists the gem and package rename, the peer dependency change, and the configuration and helper changes.
6.  [@rails/webpacker - npm](https://www.npmjs.com/package/@rails/webpacker) - latest version, release dates, license and last week's downloads, read on November 29, 2026
7.  [shakapacker - npm](https://www.npmjs.com/package/shakapacker) - 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.

## How to do the move

The pattern that fits this kind of replacement:

[The cutover](https://gen2.dev/guide/cutover/)

[All successor entries](https://gen2.dev/successors/)

## More in Build tools and bundlers

-    [![Apache Ant logo](https://gen2.dev/icons/tech/apache-ant.png) Apache Ant to Gradle or Maven Still active A real project Move when convenient](https://gen2.dev/successors/apache-ant/)
-    [![Create React App logo](https://gen2.dev/icons/tech/create-react-app.png) Create React App to Vite Deprecated Mechanical Move when convenient](https://gen2.dev/successors/create-react-app/)
-    [![Grunt logo](https://gen2.dev/icons/tech/grunt.png) Grunt to npm scripts or Vite Still active Mechanical Leave it](https://gen2.dev/successors/grunt/)
-    [![Gulp logo](https://gen2.dev/icons/tech/gulp.png) Gulp to esbuild or Eleventy Still active A real project Leave it](https://gen2.dev/successors/gulp/)
-    [![Lerna logo](https://gen2.dev/icons/tech/lerna.png) Lerna to Nx or pnpm workspaces Still active Mechanical Leave it](https://gen2.dev/successors/lerna/)
-    [![webpack logo](https://gen2.dev/icons/tech/webpack.png) webpack to Vite Still active A real project Leave it](https://gen2.dev/successors/webpack/)

[All build tools and bundlers](https://gen2.dev/successors/build-tools/)
