Remove asar external from production
This commit is contained in:
parent
83fbab63c0
commit
10ff740f75
|
@ -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;
|
||||
|
|
|
@ -28,7 +28,6 @@ module.exports = {
|
|||
},
|
||||
externals: {
|
||||
electron: 'require("electron")',
|
||||
asar: 'require("asar")',
|
||||
fs: 'require("fs")',
|
||||
path: 'require("path")',
|
||||
util: 'require("util")',
|
||||
|
|
|
@ -13,7 +13,10 @@ const config = {
|
|||
},
|
||||
plugins: [
|
||||
new webpack.NamedModulesPlugin()
|
||||
]
|
||||
],
|
||||
externals: {
|
||||
asar: 'require("asar")'
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = merge(baseconfig, config);
|
||||
|
|
|
@ -15,7 +15,10 @@ const config = {
|
|||
new webpack.DefinePlugin({
|
||||
PRODUCTION: JSON.stringify(true)
|
||||
})
|
||||
]
|
||||
],
|
||||
externals: {
|
||||
sparkplug: 'require("./sparkplug")'
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = merge(baseconfig, config);
|
||||
|
|
Loading…
Reference in New Issue