# @blbradley/babel-preset-react-app

> Babel preset used by Create React App

Latest version **3.1.1** (published 2018-06-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @blbradley/babel-preset-react-app
pnpm add @blbradley/babel-preset-react-app
yarn add @blbradley/babel-preset-react-app
bun add @blbradley/babel-preset-react-app
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.1 |
| Published | 2018-06-22 |
| First published | 2018-06-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | blbradley |

## Links

- npm: https://www.npmjs.com/package/@blbradley/babel-preset-react-app
- Repository: https://github.com/blbradley/create-react-app
- Homepage: https://github.com/blbradley/create-react-app#readme
- Issues: https://github.com/blbradley/create-react-app/issues
- npm.io page: https://npm.io/package/@blbradley/babel-preset-react-app

## Dependencies (14)

- [babel-preset-env](https://npm.io/package/babel-preset-env.md) 1.6.1
- [babel-plugin-relay](https://npm.io/package/babel-plugin-relay.md) 1.4.1
- [babel-preset-react](https://npm.io/package/babel-preset-react.md) 6.24.1
- [babel-plugin-transform-runtime](https://npm.io/package/babel-plugin-transform-runtime.md) 6.23.0
- [babel-plugin-dynamic-import-node](https://npm.io/package/babel-plugin-dynamic-import-node.md) 1.1.0
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) 6.24.1
- [babel-plugin-syntax-dynamic-import](https://npm.io/package/babel-plugin-syntax-dynamic-import.md) 6.18.0
- [babel-plugin-transform-regenerator](https://npm.io/package/babel-plugin-transform-regenerator.md) 6.26.0
- [babel-plugin-transform-react-jsx-self](https://npm.io/package/babel-plugin-transform-react-jsx-self.md) 6.22.0
- [babel-plugin-transform-class-properties](https://npm.io/package/babel-plugin-transform-class-properties.md) 6.24.1
- [babel-plugin-transform-react-jsx-source](https://npm.io/package/babel-plugin-transform-react-jsx-source.md) 6.22.0
- [babel-plugin-transform-object-rest-spread](https://npm.io/package/babel-plugin-transform-object-rest-spread.md) 6.26.0
- [babel-plugin-transform-es2015-destructuring](https://npm.io/package/babel-plugin-transform-es2015-destructuring.md) 6.23.0
- [babel-plugin-transform-react-constant-elements](https://npm.io/package/babel-plugin-transform-react-constant-elements.md) 6.23.0

## Recent versions

- 3.1.1 (latest) — 2018-06-22
- 3.1.1-next.38c38371 (next) — 2018-06-25

## README

# babel-preset-react-app

This package includes the Babel preset used by [Create React App](https://github.com/facebookincubator/create-react-app).<br>
Please refer to its documentation:

* [Getting Started](https://github.com/facebookincubator/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
* [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.

## Usage in Create React App Projects

The easiest way to use this configuration is with [Create React App](https://github.com/facebookincubator/create-react-app), which includes it by default. **You don’t need to install it separately in Create React App projects.**

## Usage Outside of Create React App

If you want to use this Babel preset in a project not built with Create React App, you can install it with following steps.

First, [install Babel](https://babeljs.io/docs/setup/).

Then install babel-preset-react-app.

```sh
npm install babel-preset-react-app --save-dev
```

Then create a file named `.babelrc` with following contents in the root folder of your project:

  ```js
  {
    "presets": ["react-app"]
  }
  ```

This preset uses the `useBuiltIns` option with [transform-object-rest-spread](http://babeljs.io/docs/plugins/transform-object-rest-spread/) and [transform-react-jsx](http://babeljs.io/docs/plugins/transform-react-jsx/), which assumes that `Object.assign` is available or polyfilled.

---
_Source: https://npm.io/package/@blbradley/babel-preset-react-app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
