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.
This commit is contained in:
parent
524a62438e
commit
cffa3eb431
2 changed files with 11 additions and 2 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -16,5 +16,5 @@
|
|||
"@preload/*": ["./src/preload/*"],
|
||||
"@shared/*": ["./src/shared/*"]
|
||||
},
|
||||
"ignoreDependencies": ["remotion"]
|
||||
"ignoreDependencies": ["@remotion/light-leaks", "remotion"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue