From ddb2ff5994d8cdbd1b6eb520a332f868830edd19 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 20 Oct 2016 14:44:18 +0100 Subject: [PATCH] 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. --- webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 95afcfba98..d8fc2fb503 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -52,6 +52,9 @@ module.exports = { // loads it into the browser global `Olm`), and reference it as an // external here. "olm": "Olm", + // Don't try to bundle electron: leave it as a commonjs dependency + // (the 'commonjs' here means it will output a 'require') + "electron": "commonjs electron", }, plugins: [ new webpack.DefinePlugin({