# grunt-babel

> Use next generation JavaScript, today

Latest version **8.0.0** (published 2018-09-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install grunt-babel
pnpm add grunt-babel
yarn add grunt-babel
bun add grunt-babel
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 8.0.0 |
| Published | 2018-09-07 |
| First published | 2015-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.9 |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 434 |
| Author | Sindre Sorhus |
| Maintainers | danez, hzoo, loganfsmyth, sebmck, sindresorhus |
| Keywords | gruntplugin, babel, transpiler, es2015, rewriting, transformation, syntax, codegen, desugaring, javascript, compiler |

## Links

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

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 8.0.0 (latest) — 2018-09-07
- 8.0.0-beta.1 (next) — 2018-09-05
- 8.0.0-beta.0 — 2018-03-19
- 7.0.0 — 2017-08-08
- 6.0.0 — 2015-10-30
- 5.0.3 — 2015-09-20
- 5.0.2 — 2015-09-17
- 5.0.1 — 2015-06-05
- 5.0.0 — 2015-04-02
- 4.0.0 — 2015-02-15

## README

> This readme is for grunt-babel v8 + Babel v7
> Check the [7.x branch](https://github.com/babel/grunt-babel/tree/7.x) for docs with Babel v6

# grunt-babel [![Build Status](https://travis-ci.org/babel/grunt-babel.svg?branch=master)](https://travis-ci.org/babel/grunt-babel)

> Use next generation JavaScript, today, with [Babel](https://babeljs.io)

*Issues with the output should be reported on the Babel [issue tracker](https://github.com/babel/babel/issues).*

## Install

For Babel 7.x and grunt-babel v8
```sh
$ yarn add --dev grunt-babel @babel/core @babel/preset-env
```

For Babel 6.x and grunt-babel v7
```sh
$ yarn add --dev grunt-babel@7 @babel-core babel-preset-env
```
Note: See the [7.x branch](https://github.com/babel/grunt-babel/tree/7.x) for more examples of
usage of Babel 6.x. This README is primarily applicable for Babel 7.x

## Usage

```js
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
  babel: {
    options: {
      sourceMap: true,
      presets: ['@babel/preset-env']
    },
    dist: {
      files: {
        'dist/app.js': 'src/app.js'
      }
    }
  }
});

grunt.registerTask('default', ['babel']);
```

## Options

See the Babel [options](https://babeljs.io/docs/en/options), except for `filename` which is handled for you.

## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

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