mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-31 01:12:48 -05:00
Fix renderer build issue
This commit is contained in:
@@ -4,13 +4,14 @@ const baseConfig = require('./webpack.base.config');
|
||||
module.exports = {
|
||||
...baseConfig({
|
||||
babel: {
|
||||
presets: [['@babel/preset-env', { targets: { electron: '31.3' }}]],
|
||||
presets: [['@babel/preset-env', { targets: { electron: '31.3' } }]],
|
||||
plugins: [
|
||||
['@babel/plugin-transform-react-jsx', { pragma: 'h', pragmaFrag: 'Fragment' }],
|
||||
'@babel/plugin-proposal-class-properties',
|
||||
'@babel/plugin-proposal-object-rest-spread'
|
||||
]
|
||||
},
|
||||
}),
|
||||
target: 'electron-renderer',
|
||||
entry: {
|
||||
background: './src/renderer/background.js',
|
||||
@@ -21,5 +22,4 @@ module.exports = {
|
||||
path: path.resolve(__dirname, 'dist/renderer'),
|
||||
filename: '[name].js'
|
||||
}
|
||||
}),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user