This caused a difference between the webpacker's babel.config.js copied when executing webpacker:install and the package name installed by yarn, which caused WebPacker to raise a ManifestError when displaying the view file in rails 6.x.
(You can see this problem by creating a new rails 6 app, installing webpacker, creating a controller and view file, and accessing the page.)
This commit is to keep up with the latest version of babel and resolve the above problem.
With the update to babel v7.22.0 on May 26, 2023, several
-proposal-
plugins were changed to-transform-
.This caused a difference between the webpacker's babel.config.js copied when executing webpacker:install and the package name installed by yarn, which caused WebPacker to raise a ManifestError when displaying the view file in rails 6.x. (You can see this problem by creating a new rails 6 app, installing webpacker, creating a controller and view file, and accessing the page.)
This commit is to keep up with the latest version of babel and resolve the above problem.