The @babel/preset-react npm package version 7.0.0 marked a significant update in Babel's React support. This version is designed to streamline the Babel configuration process for React projects, bundling essential transformations into a single, easily manageable preset.
Compared to an undefined previous stable version of the package, version 7.0.0 introduces a consolidated approach by incorporating key plugins directly within the preset. Developers benefit from simplified configuration as the preset automatically includes @babel/plugin-transform-react-jsx for JSX transformation, @babel/plugin-transform-react-jsx-self for adding __self prop to JSX elements in development, @babel/plugin-transform-react-jsx-source for adding __source prop to JSX elements pointing to the filename and line number, and @babel/plugin-transform-react-display-name for automatically setting the displayName property on React components.
This bundle provides a more straightforward setup reducing the need to manually install and configure each plugin individually. The version's dependencies highlight the use of Babel's helper modules, ensuring compatibility and a standardized plugin infrastructure. Developers should note the peer dependency on @babel/core version ^7.0.0-0, indicating a requirement for a compatible Babel core version. This information will guide choosing the correct Babel ecosystem packages for your project. This version was released in August 2018, so developers should also keep backwards compatibility in mind, since it is quite old.
The are not vulnerabilities for the version 7.0.0 of the package @babel/preset-react