rails / webpacker

Use Webpack to manage app-like JavaScript modules in Rails
MIT License
5.31k stars 1.47k forks source link

fix babel.config.js for babel v7.22.0 #3315

Closed ukwhatn closed 1 year ago

ukwhatn commented 1 year ago

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.

rafaelfranca commented 1 year ago

Thank you for the pull request but Rails 6 isn't supported anymore.

Webpacker is also discontinued, so we are only fixing security issues.