Awesome
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"]
});