node package manager

babel-preset-electron

babel-preset-electron

Babel preset with all plugins for Electron.

Install

Electron 1.4.15

$ npm install --save-dev babel-preset-electron@1.4.15

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["electron"]
}

Via CLI

$ babel script.js --preset electron

Via Node API

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