mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56:31 +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: {
|
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