Babel preset with all plugins for Electron.
$ npm install --save-dev babel-preset-electron@37.8
.babelrc
{
"presets": ["electron"]
}
$ babel script.js --preset electron
require("babel-core").transform("code", {
presets: ["electron"]
});
Babel preset for all plugins needed with the latest electron
JavaScriptMIT
Babel preset with all plugins for Electron.
$ npm install --save-dev babel-preset-electron@37.8
.babelrc
{
"presets": ["electron"]
}
$ babel script.js --preset electron
require("babel-core").transform("code", {
presets: ["electron"]
});