/babel-preset-electron

Babel preset for all plugins needed with the latest electron

Primary LanguageJavaScriptMIT LicenseMIT

babel-preset-electron

Babel preset with all plugins for Electron.

Install

Electron 37.8

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

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["electron"]
}

Via CLI

$ babel script.js --preset electron

Via Node API

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