Babel-loader facilitates the use of Babel with webpack, streamlining the process of transpiling JavaScript code. Version 7.0.0 brings changes focused on modernizing dependencies and aligning with newer webpack versions. One key difference is that Babel-loader 7 now declares support only for webpack version 2 in its peer dependencies, offering a more explicit and focused support scope compared to version 6.4.1 which supported webpack v1 and v2. This change suggests a preference for developers adopting newer webpack features. The core Babel dependency remains compatible with version 6 and 7.
A significant shift is the update of the loader-utils dependency to version 1.0.2 in 7.0.0 from 0.2.16 in 6.4.1, reflecting advancements in webpack loader utilities. Furthermore, numerous development dependencies have been updated in version 7.0.0. Prettier has been added as a new dev dependency in version 7.0.0, potentially indicating a focus on code formatting and standards. The switch from babel-preset-es2015 and babel-preset-latest to babel-preset-env marks a transition to a more dynamic and configurable preset for Babel, giving developers greater control over the target environments for their code. These changes collectively suggest a focus on cleaner code, more streamlined development workflows, and better alignment with modern JavaScript and webpack ecosystems. Developers upgrading should review their webpack configuration and Babel presets to ensure compatibility and leverage the benefits of the updated dependencies.
The are not vulnerabilities for the version 7.0.0 of the package babel-loader