20 lines
339 B
JavaScript
20 lines
339 B
JavaScript
if (typeof exports === "object") {
|
|
// running in nodejs (not in browser)
|
|
exports.configFactory = (options) => {
|
|
return Object.assign(
|
|
{
|
|
electronOptions: {
|
|
webPreferences: {
|
|
nodeIntegration: true,
|
|
enableRemoteModule: true,
|
|
contextIsolation: false
|
|
}
|
|
},
|
|
|
|
modules: []
|
|
},
|
|
options
|
|
);
|
|
};
|
|
}
|