@babel/preset-react is a crucial Babel preset designed to streamline React development by including all the necessary plugins for transforming JSX syntax and optimizing React code for various environments. Comparing versions 7.12.10 and 7.12.7 reveals subtle but potentially impactful changes for developers.
Version 7.12.10 updates the dependency @babel/plugin-transform-react-jsx to version 7.12.10, while in 7.12.7 the dependency @babel/plugin-transform-react-jsx was in version 7.12.7. Furthermore, version 7.12.7 had @babel/plugin-transform-react-jsx-self and @babel/plugin-transform-react-jsx-source which are not present in version 7.12.10. Both versions maintain essential plugins like @babel/plugin-transform-react-display-name, @babel/plugin-transform-react-jsx-development, and @babel/plugin-transform-react-pure-annotations, ensuring proper display name handling, optimized development builds, and pure annotation support.
The core functionality—transforming JSX, adding display names for debugging, optimizing development builds, and annotating pure components—remains consistent. The differences in dependencies, particularly regarding JSX transformation and the removal of jsx-self and jsx-source plugins, suggest optimizations or internal refactorings within Babel's JSX handling. Developers upgrading should test their applications to ensure compatibility with the updated JSX transformation logic. The updated version was released on 2020-12-09 and the previous one on 2020-11-20.
The are not vulnerabilities for the version 7.12.10 of the package @babel/preset-react