Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 700 Bytes

upgrade-webpacker-v3-to-v4.md

File metadata and controls

10 lines (7 loc) · 700 Bytes

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
  2. 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.
  3. Copy the file .browserslistrc to /.
  4. Merge any differences between config/webpacker.yml and your /config/webpacker.yml.

Here is an example commit of these changes.