From 10ff740f75e99d1de687ef5f6316b6374d46febc Mon Sep 17 00:00:00 2001 From: Jiiks Date: Thu, 7 Mar 2019 19:34:32 +0200 Subject: [PATCH] Remove asar external from production --- client/src/index.js | 1 - client/webpack.base.config.js | 1 - client/webpack.config.js | 5 ++++- client/webpack.production.config.js | 5 ++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/client/src/index.js b/client/src/index.js index 01eef013..eea4c0da 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -15,7 +15,6 @@ import { ClientLogger as Logger, ClientIPC, Utils, Axi } from 'common'; import { BuiltinManager, EmoteModule, ReactDevtoolsModule, VueDevtoolsModule, TrackingProtection, E2EE } from 'builtin'; import electron from 'electron'; import path from 'path'; -import { setTimeout } from 'timers'; const tests = typeof PRODUCTION === 'undefined'; const ignoreExternal = tests && true; diff --git a/client/webpack.base.config.js b/client/webpack.base.config.js index 1e266fc9..acd514f9 100644 --- a/client/webpack.base.config.js +++ b/client/webpack.base.config.js @@ -28,7 +28,6 @@ module.exports = { }, externals: { electron: 'require("electron")', - asar: 'require("asar")', fs: 'require("fs")', path: 'require("path")', util: 'require("util")', diff --git a/client/webpack.config.js b/client/webpack.config.js index 06f40f34..878cb51f 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -13,7 +13,10 @@ const config = { }, plugins: [ new webpack.NamedModulesPlugin() - ] + ], + externals: { + asar: 'require("asar")' + } }; module.exports = merge(baseconfig, config); diff --git a/client/webpack.production.config.js b/client/webpack.production.config.js index 57bc0555..620a1b53 100644 --- a/client/webpack.production.config.js +++ b/client/webpack.production.config.js @@ -15,7 +15,10 @@ const config = { new webpack.DefinePlugin({ PRODUCTION: JSON.stringify(true) }) - ] + ], + externals: { + sparkplug: 'require("./sparkplug")' + } }; module.exports = merge(baseconfig, config);