An open API service indexing awesome lists of open source software.

https://github.com/postlight/babel-preset-lux

A babel preset containing all of the plugins required by Lux.
https://github.com/postlight/babel-preset-lux

Last synced: 10 months ago
JSON representation

A babel preset containing all of the plugins required by Lux.

Awesome Lists containing this project

README

          

# babel-preset-lux

> A babel preset containing all of the plugins required by [Lux](https://github.com/postlight/lux).

## Install

```bash
npm install --save-dev babel-preset-lux
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
{
"presets": ["lux"]
}
```

### Via CLI

```bash
babel script.js --presets lux
```

### Via Node API

```javascript
require('babel-core').transform('code', {
presets: ['lux']
});
```