mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 03:06:38 +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: {
|
use: {
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
options: {
|
options: {
|
||||||
presets: [ '@babel/preset-react', '@babel/preset-env' ],
|
presets: [
|
||||||
|
'@babel/preset-react',
|
||||||
|
[ '@babel/preset-env', { targets: { electron: '3' } } ]
|
||||||
|
],
|
||||||
plugins: [ '@babel/plugin-proposal-function-bind' ],
|
plugins: [ '@babel/plugin-proposal-function-bind' ],
|
||||||
cacheDirectory: true
|
cacheDirectory: true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user