Sha256: 378421db49556390471f1f87d45543215e6aaee7c1386bb759bfd9e29b1cb4d5

Contents?: true

Size: 700 Bytes

Versions: 17

Compression:

Stored size: 700 Bytes

Contents

# Upgrading rails/webpacker v3.5 to v4

The following steps can be followed to update a Webpacker v3.5 app to v4.

1. Update the gem `webpacker` and the package `@rails/webpacker`
1. Merge changes from the new default [.babelrc](../lib/install/config/.babelrc) to your `/.babelrc`. If you are using React, you need to add `"@babel/preset-react"`, to the list of `presets`.
1. Copy the file [.browserslistrc](../lib/install/config/.browserslistrc) to `/`.
1. Merge any differences between [config/webpacker.yml](../lib/install/config/webpacker.yml) and your `/config/webpacker.yml`.

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
react_on_rails-12.0.5.beta.0 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-12.0.4 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-11.3.1 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-11.3.1.beta.0 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-12.0.3 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-12.0.3.beta.0 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-12.0.2 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-12.0.1 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-12.0.0 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-12.0.0.pre.beta.4 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-12.0.0.pre.beta.3 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-12.0.0.pre.beta.2 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-12.0.0.pre.beta.1 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-12.0.0.pre.beta.0 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-11.3.0 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-11.2.2 docs/additional-reading/upgrade-webpacker-v3-to-v4.md
react_on_rails-11.2.1 docs/additional-reading/upgrade-webpacker-v3-to-v4.md