Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 433 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 433 Bytes

babel-preset-electron

Babel preset with all plugins for Electron.

Install

Electron 37.8

$ npm install --save-dev [email protected]

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["electron"]
}

Via CLI

$ babel script.js --preset electron

Via Node API

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