Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/emorikawa/babel-preset-electron

Babel preset for all plugins needed with the latest electron
https://github.com/emorikawa/babel-preset-electron

Last synced: 3 months ago
JSON representation

Babel preset for all plugins needed with the latest electron

Awesome Lists containing this project

README

        

# babel-preset-electron

> Babel preset with all plugins for Electron.

## Install

#### Electron 37.8
```sh
$ npm install --save-dev [email protected]
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

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

### Via CLI

```sh
$ babel script.js --preset electron
```

### Via Node API

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