# @berun/babel-preset-react-app

> Babel preset used by @berun

Latest version **7.3.6** (published 2021-05-09) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 7.3.6 |
| Published | 2021-05-09 |
| First published | 2018-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 29 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | guycreate |

## Links

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

## Dependencies (13)

- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) 7.14.1
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) 7.9.4
- [babel-plugin-macros](https://npm.io/package/babel-plugin-macros.md) 2.8.0
- [@babel/preset-typescript](https://npm.io/package/@babel/preset-typescript.md) 7.9.0
- [@babel/plugin-transform-runtime](https://npm.io/package/@babel/plugin-transform-runtime.md) 7.9.0
- [@babel/plugin-syntax-dynamic-import](https://npm.io/package/@babel/plugin-syntax-dynamic-import.md) 7.8.3
- [@babel/plugin-transform-destructuring](https://npm.io/package/@babel/plugin-transform-destructuring.md) 7.13.17
- [babel-plugin-transform-dynamic-import](https://npm.io/package/babel-plugin-transform-dynamic-import.md) 2.1.0
- [@babel/plugin-proposal-private-methods](https://npm.io/package/@babel/plugin-proposal-private-methods.md) ^7.13.0
- [@babel/plugin-proposal-class-properties](https://npm.io/package/@babel/plugin-proposal-class-properties.md) 7.13.0
- [@babel/plugin-transform-flow-strip-types](https://npm.io/package/@babel/plugin-transform-flow-strip-types.md) 7.9.0
- [@babel/plugin-proposal-object-rest-spread](https://npm.io/package/@babel/plugin-proposal-object-rest-spread.md) 7.13.8
- [babel-plugin-transform-react-remove-prop-types](https://npm.io/package/babel-plugin-transform-react-remove-prop-types.md) 0.4.24

## Recent versions

- 7.3.6 (latest) — 2021-05-09
- 7.3.5 — 2021-05-09
- 7.3.2 — 2021-05-09
- 7.3.1 — 2021-05-09
- 7.0.3 — 2021-01-28
- 7.0.2 — 2021-01-28
- 7.0.1 — 2021-01-28
- 7.0.0 — 2021-01-28
- 6.0.23 — 2021-01-27
- 6.1.2 — 2020-11-30
- 6.1.1 — 2020-11-21
- 6.1.0 — 2020-11-21
- 6.0.26 — 2020-09-03
- 6.0.25 — 2020-09-03
- 6.0.24 — 2020-09-03
- … 42 more at https://npm.io/package/@berun/babel-preset-react-app/versions

## README

# @berun/babel-preset-react-app

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

- [Getting Started](https://github.com/facebook/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
- [User Guide](https://github.com/facebook/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/facebook/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 @berun/babel-preset-react-app.

```sh
npm install @berun/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.

## Usage with TypeScript

To use this package with [`@babel/preset-typescript`](https://www.npmjs.com/package/@babel/preset-typescript), you need to disable `@babel/preset-flow` first.

You can achieve this by doing:

```
{
  "presets": [
    ["react-app", {
        "flow": false
    }],
    "@babel/typescript"
  ]
}
```

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