# babel-preset-next

> babel preset used by myself

Latest version **1.4.0** (published 2020-06-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install babel-preset-next
pnpm add babel-preset-next
yarn add babel-preset-next
bun add babel-preset-next
```

## 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 | 1.4.0 |
| Published | 2020-06-19 |
| First published | 2017-12-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | cuining |
| Maintainers | cuining |

## Links

- npm: https://www.npmjs.com/package/babel-preset-next
- Repository: https://github.com/cuining/babel-preset-next
- Homepage: https://github.com/cuining/babel-preset-next#readme
- Issues: https://github.com/cuining/babel-preset-next/issues
- npm.io page: https://npm.io/package/babel-preset-next

## Dependencies (6)

- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.10.2
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) ^7.10.1
- [babel-plugin-react-require](https://npm.io/package/babel-plugin-react-require.md) ^3.1.3
- [@babel/plugin-transform-runtime](https://npm.io/package/@babel/plugin-transform-runtime.md) ^7.10.1
- [@babel/plugin-proposal-decorators](https://npm.io/package/@babel/plugin-proposal-decorators.md) ^7.10.1
- [@babel/plugin-syntax-dynamic-import](https://npm.io/package/@babel/plugin-syntax-dynamic-import.md) ^7.8.3

## Recent versions

- 1.4.0 (latest) — 2020-06-19
- 1.2.0 — 2018-09-11
- 2.0.0 — 2018-08-30
- 1.1.4 — 2018-04-26
- 1.1.3 — 2018-04-03
- 1.1.2 — 2018-04-03
- 1.1.1 — 2018-02-07
- 1.1.0 — 2018-01-17
- 1.0.8 — 2017-12-13
- 1.0.7 — 2017-12-13
- 1.0.6 — 2017-12-13
- 1.0.5 — 2017-12-13
- 1.0.4 — 2017-12-12
- 1.0.3 — 2017-12-12
- 1.0.2 — 2017-12-12
- … 2 more at https://npm.io/package/babel-preset-next/versions

## README

# babel-preset-next

This package includes the Babel preset
7.0([more detail](https://babeljs.io/blog/2017/09/12/planning-for-7.0))

* [async-generator-functions](https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-async-generator-functions)
* [class-properties](https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-class-properties)
* [object-rest-spread](https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-object-rest-spread)
* [decorators](https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-decorators)

> ⚠️
> * babel-loader 8.0 +
> * @babel/core
> * [uglifyjs-webpack-plugin](https://github.com/webpack-contrib/uglifyjs-webpack-plugin)
>   v1.0.0 or [babel-minify](https://github.com/babel/minify) (options)
>   the default target
>   browser is ie 9, if you want to use high level browser like chrome 50, you
>   should upgrade your webpack to v4.0.0 or use the latest
>   uglifyjs-webpack-plugin version to replace webpack.optimize.UglifyJsPlugin

## Usage

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

```
{
  "presets": ["next"]
}
```

## Options

### `targets`

`{ [string]: number | string }`, defaults to `{ ie: 9 }`

### `debug`

`boolean`, defaults to `false`

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