mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-21 10:16:32 +00:00
Merge pull request #2673 from balena-io/babel-target-electron-3
Target electron 3 runtime in babel options
This commit is contained in:
commit
f67832644f
@ -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