upgrade vite deps

and dedupe
pull/2085/head
Mikael Finstad 2024-07-20 16:05:33 +02:00
rodzic 2ca4d81002
commit d76829b35b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 25AB36E3E81CBC26
4 zmienionych plików z 724 dodań i 1609 usunięć

Wyświetl plik

@ -22,7 +22,8 @@ jobs:
node-version: 18
cache: 'yarn'
- run: yarn
- run: yarn install --immutable
- run: yarn dedupe --check
- run: yarn test
- run: yarn tsc
- run: yarn lint

Wyświetl plik

@ -8,16 +8,25 @@ export default defineConfig({
// For the main process and preload, the best practice is to externalize dependencies and only bundle our own code.
// However, until we use ESM for electron main, we need to include ESM-only deps in the bundle: (exclude from externalize)
plugins: [externalizeDepsPlugin({ exclude: ['p-map', 'execa', 'nanoid'] })],
build: {
target: 'node18.17',
sourcemap: true,
},
},
preload: {
// https://electron-vite.org/guide/dev#dependencies-vs-devdependencies
plugins: [externalizeDepsPlugin({ exclude: [] })],
build: {
target: 'node18.17',
sourcemap: true,
},
},
renderer: {
plugins: [react()],
build: {
chunkSizeWarningLimit: 3e6,
target: 'chrome118',
sourcemap: true,
chunkSizeWarningLimit: 3e6,
},
server: {
port: 3001,

Wyświetl plik

@ -61,7 +61,7 @@
"@typescript-eslint/eslint-plugin": "^6.12.0",
"@typescript-eslint/parser": "^6.12.0",
"@uidotdev/usehooks": "^2.4.1",
"@vitejs/plugin-react": "^3.1.0",
"@vitejs/plugin-react": "^4.3.1",
"color": "^3.1.0",
"concurrently": "^6.0.0",
"csv-parse": "^4.15.3",
@ -70,7 +70,7 @@
"electron": "^27.0.0",
"electron-builder": "^24.6.4",
"electron-devtools-installer": "^3.2.0",
"electron-vite": "^2.1.0",
"electron-vite": "^2.3.0",
"eslint": "^8.2.0",
"eslint-config-mifi": "^0.0.3",
"eslint-plugin-import": "^2.25.3",
@ -115,8 +115,8 @@
"typescript": "~5.2.0",
"use-debounce": "^5.1.0",
"use-trace-update": "^1.3.0",
"vite": "^4.5.3",
"vitest": "^1.2.2"
"vite": "^5.3.4",
"vitest": "^2.0.3"
},
"dependencies": {
"@electron/remote": "^2.0.10",

2311
yarn.lock

Plik diff jest za duży Load Diff