babel-preset-react-app-babel-7 v4.0.2-0 is the Babel preset used by Create React App, forked to support Babel 7. This package is a legacy version of the preset bundled with react-scripts v4.x and later. It is not actively maintained separately; users should upgrade to react-scripts@5+ or migrate to @babel/preset-env, @babel/preset-react, and @babel/preset-typescript individually. The preset includes plugins for React JSX transform, object rest spread, and uses useBuiltIns. It is intended for CRA projects but can be used standalone. Release cadence is tied to CRA releases; no independent releases are planned.
npm install babel-preset-react-app-babel-7Verified import paths — ran on the pinned version, not inferred.
Install the preset and core Babel dependencies, configure .babelrc, and compile using Babel CLI.
Upgrade to react-scripts@5+ or replace with @babel/preset-env, @babel/preset-react, @babel/preset-typescript.
Set { runtime: 'automatic' } when using React 17+ or use @babel/preset-react with { runtime: 'automatic' } instead.Add import 'core-js/stable' at the top of your entry file.
Set options: { flow: false } as shown in the TypeScript usage section.Pin react-scripts to v4.x if you must rely on this preset, or migrate to modern presets.
Ensure @babel/runtime is installed as a production dependency.
Run 'npm install --save-dev babel-preset-react-app-babel-7' and use preset name 'react-app'.
Ensure @babel/core is version 7.x and babel-preset-react-app-babel-7 is v4.x.
Add 'react-app' to presets array in Babel config.
Upgrade to @babel/core 7.x and ensure all Babel plugins are Babel 7 compatible.
Install @babel/runtime as a production dependency: 'npm install @babel/runtime'