Skip to content

Commit ddb2ff5

Browse files
committed
Don't try to bundle electron
Turns out this part of the webpack config was necessary, and I've now figure out what it does, which the comment now hopefully explains.
1 parent 3c55629 commit ddb2ff5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎webpack.config.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ module.exports = {
5252
// loads it into the browser global `Olm`), and reference it as an
5353
// external here.
5454
"olm": "Olm",
55+
// Don't try to bundle electron: leave it as a commonjs dependency
56+
// (the 'commonjs' here means it will output a 'require')
57+
"electron": "commonjs electron",
5558
},
5659
plugins: [
5760
new webpack.DefinePlugin({

0 commit comments

Comments
 (0)