Disable NODE_OPTIONS in entry file

This commit is contained in:
TC
2022-01-07 22:09:26 +01:00
parent 7f3a554bc3
commit 81dadeddb9
2 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,9 @@ unhandled({
showDialog: false,
});
// Disable Node options if the env var is set
process.env.NODE_OPTIONS = "";
const app = electron.app;
app.commandLine.appendSwitch(
"js-flags",

View File

@ -50,7 +50,7 @@
},
"scripts": {
"test": "jest",
"start": "NODE_OPTIONS= electron .",
"start": "electron .",
"start:debug": "ELECTRON_ENABLE_LOGGING=1 electron .",
"icon": "rimraf assets/generated && electron-icon-maker --input=assets/youtube-music.png --output=assets/generated",
"generate:package": "node utils/generate-package-json.js",