diff --git a/webpack.config.js b/webpack.config.js index 6aaf61b7..720b9e5b 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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 }