Target electron 3 runtime in babel options

This saves around 40KiB in generated/gui.js

Changelog-entry: Target electron 3 runtime in babel options
Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2019-02-28 13:32:40 +01:00
parent e84204b49a
commit 2614f3261c

View File

@ -36,7 +36,10 @@ const commonConfig = {
use: {
loader: 'babel-loader',
options: {
presets: [ '@babel/preset-react', '@babel/preset-env' ],
presets: [
'@babel/preset-react',
[ '@babel/preset-env', { targets: { electron: '3' } } ]
],
plugins: [ '@babel/plugin-proposal-function-bind' ],
cacheDirectory: true
}