From cffa3eb4318e1ae12cd5216f94419613dfa24a73 Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 12 Feb 2026 23:51:31 +0900 Subject: [PATCH] feat(config): update Electron Vite configuration and dependency management - Enhanced the Electron Vite configuration by modifying the externalizeDepsPlugin to exclude specific dependencies, improving build performance and compatibility. - Updated the knip.json file to include additional dependencies in the ignore list, ensuring cleaner dependency management. This commit improves the configuration setup for the Electron application, optimizing the handling of external dependencies. --- electron.vite.config.ts | 11 ++++++++++- knip.json | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/electron.vite.config.ts b/electron.vite.config.ts index 2cb0a516..014946c0 100644 --- a/electron.vite.config.ts +++ b/electron.vite.config.ts @@ -4,7 +4,16 @@ import { resolve } from 'path' export default defineConfig({ main: { - plugins: [externalizeDepsPlugin()], + plugins: [ + externalizeDepsPlugin({ + exclude: [ + 'unified', + 'remark-parse', + 'remark-gfm', + 'mdast-util-to-hast' + ] + }) + ], resolve: { alias: { '@main': resolve(__dirname, 'src/main'), diff --git a/knip.json b/knip.json index b00d6aef..3e890898 100644 --- a/knip.json +++ b/knip.json @@ -16,5 +16,5 @@ "@preload/*": ["./src/preload/*"], "@shared/*": ["./src/shared/*"] }, - "ignoreDependencies": ["remotion"] + "ignoreDependencies": ["@remotion/light-leaks", "remotion"] }