mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 10:46:31 +00:00
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:
parent
e84204b49a
commit
2614f3261c
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user