Skip to content

Commit a6102e0

Browse files
committed
make notes more clear for upgrade-webpacker-v3-to-v4.md
1 parent c671785 commit a6102e0

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/markdown-link-check-config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
},
2424
{
2525
"pattern": "^https://github\\.com/shakacode/react-webpack-rails-tutorial/blob/master/client/webpack\\.client\\.base\\.config\\.js"
26+
},
27+
{
28+
"pattern": "^https://github\\.com/shakacode/react_on_rails/tree/master/lib/install/config/"
2629
}
2730
],
2831
"replacementPatterns": [
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Upgrading rails/webpacker v3.5 to v4 (Outdated)
22

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)._
3+
_Note: This guide is outdated. The configuration files it references were removed when React on Rails moved to Shakapacker. For migrating from Webpacker to Shakapacker, see the Shakapacker guide to upgrading to [version 6](https://github.com/shakacode/shakapacker/blob/master/docs/v6_upgrade.md) and [version 7](https://github.com/shakacode/shakapacker/blob/master/docs/v7_upgrade.md)._
44

5-
The following steps could be followed to update a Webpacker v3.5 app to v4:
5+
The following steps can be followed to update a Webpacker v3.5 app to v4.
66

77
1. Update the gem `webpacker` and the package `@rails/webpacker`
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`.
8+
1. Merge changes from the new default [.babelrc](https://github.com/shakacode/react_on_rails/tree/master/lib/install/config/.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](https://github.com/shakacode/react_on_rails/tree/master/lib/install/config/.browserslistrc) to `/`.
10+
1. Merge any differences between [config/webpacker.yml](https://github.com/shakacode/react_on_rails/tree/master/lib/install/config/webpacker.yml) and your `/config/webpacker.yml`.
1111

1212
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)