feat: add v8 cache

This commit is contained in:
Maarten
2023-12-23 11:32:13 +01:00
parent 9d4197b237
commit 4f6014a2b4
3 changed files with 10 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
const {app, BrowserWindow, dialog, ipcMain} = require("electron")
const {platformpath} = require("./utils")
require("v8-compile-cache")
let mainWindow
const createWindow = () => {

8
package-lock.json generated
View File

@@ -9,7 +9,8 @@
"version": "2.3.0",
"license": "GPL-3.0",
"dependencies": {
"follow-redirects": "^1.15.3"
"follow-redirects": "^1.15.3",
"v8-compile-cache": "^2.4.0"
},
"devDependencies": {
"electron": "^28.0.0",
@@ -3673,6 +3674,11 @@
"integrity": "sha512-4+wkEYLBbWxqTahEsWrhxepcoVOJ+1z5PGIjPZxRkytcdSUaNjIjBM7Xn8E+pdSuV7SzvWovBFA54FO0JSoqhA==",
"dev": true
},
"node_modules/v8-compile-cache": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.4.0.tgz",
"integrity": "sha512-ocyWc3bAHBB/guyqJQVI5o4BZkPhznPYUG2ea80Gond/BgNWpap8TOmLSeeQG7bnh2KMISxskdADG59j7zruhw=="
},
"node_modules/verror": {
"version": "1.10.1",
"resolved": "https://registry.npmjs.org/verror/-/verror-1.10.1.tgz",

View File

@@ -35,6 +35,7 @@
"eslint": "^8.56.0"
},
"dependencies": {
"follow-redirects": "^1.15.3"
"follow-redirects": "^1.15.3",
"v8-compile-cache": "^2.4.0"
}
}