Skip to content

Commit dba84c9

Browse files
committed
Mark Webpacker v3-v4 upgrade guide as outdated
The referenced config files no longer exist in React on Rails. Preserves historical context while directing users to current resources.
1 parent 7a6fb6d commit dba84c9

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
# Upgrading rails/webpacker v3.5 to v4
1+
# Upgrading rails/webpacker v3.5 to v4 (Outdated)
22

3-
The following steps can be followed to update a Webpacker v3.5 app to v4.
3+
_Note: This document is outdated. The configuration files referenced below were removed from React on Rails. For current configuration, see the [install generator templates](https://github.com/shakacode/react_on_rails/tree/master/lib/generators/react_on_rails/templates) or consider upgrading to [Shakapacker](https://github.com/shakacode/shakapacker)._
4+
5+
The following steps could be followed to update a Webpacker v3.5 app to v4:
46

57
1. Update the gem `webpacker` and the package `@rails/webpacker`
6-
1. Merge changes from the new default [babel.config.js](https://github.com/shakacode/react_on_rails/tree/master/lib/generators/react_on_rails/templates/base/base/babel.config.js.tt) to your `/babel.config.js`. If you are using React, you need to add `"@babel/preset-react"`, to the list of `presets`.
7-
1. Copy the file [shakapacker.yml](https://github.com/shakacode/react_on_rails/tree/master/lib/generators/react_on_rails/templates/base/base/config/shakapacker.yml) to `/config/` (Note: newer versions use Shakapacker instead of Webpacker).
8-
1. Check generator templates in [lib/generators/react_on_rails/templates](https://github.com/shakacode/react_on_rails/tree/master/lib/generators/react_on_rails/templates) for current configuration files.
8+
1. Merge changes from the new default `.babelrc` to your `/.babelrc`. If you are using React, you need to add `"@babel/preset-react"`, to the list of `presets`.
9+
1. Copy the file `.browserslistrc` to `/`.
10+
1. Merge any differences between `config/webpacker.yml` and your `/config/webpacker.yml`.
911

1012
Here is an [example commit of these changes](https://github.com/shakacode/react_on_rails-tutorial-v11/pull/1/files).

0 commit comments

Comments
 (0)