Babel-loader facilitates the use of Babel with webpack, allowing developers to transpile JavaScript code and leverage modern language features. Comparing versions 9.0.0 and 8.4.1 reveals key updates relevant to webpack users.
Version 9.0.0 updates the peer dependency for @babel/core to ^7.12.0, ensuring compatibility with more recent Babel versions. It also updates the dependency schema-utils to ^4.0.0. A previous version uses schema-utils to ^2.6.5.
A major difference is the peer dependency for webpack. Version 9 requires webpack":">=5", while version 8 supports older versions with webpack":">=2". This signifies a shift towards tighter integration with webpack 5 and newer, potentially unlocking performance enhancements and access to recent webpack features in version 9. This is the most important difference for most of developers that want to update Babel-loader in the project. If your project is still running on Webpack 4 or less, you will need to stay on version 8 of this package.
Developers upgrading should be mindful of these dependency updates to avoid compatibility issues, especially regarding webpack. Reviewing webpack's breaking changes between versions may be necessary for a smooth transition. While both versions maintain the MIT license and contributions from Luis Couto, assess the dependency changes and ensure alignment with your project's webpack version before upgrading.
The are not vulnerabilities for the version 9.0.0 of the package babel-loader