Merge pull request #2673 from balena-io/babel-target-electron-3

Target electron 3 runtime in babel options
This commit is contained in:
Alexis Svinartchouk 2019-03-01 11:44:46 +01:00 committed by GitHub
commit f67832644f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}