mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-21 18:02:35 +01:00
upgrade vite deps
and dedupe
This commit is contained in:
parent
2ca4d81002
commit
d76829b35b
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user