Skip to content

Commit

Permalink
Remove electron external dep
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Nov 21, 2024
1 parent 73b7606 commit 4ca9f6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/stores/electronDownloadStore.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { ref } from 'vue'
import { defineStore } from 'pinia'
import { isElectron, electronAPI } from '@/utils/envUtil'
import { DownloadState, DownloadStatus } from '@comfyorg/comfyui-electron-types'
import type {
DownloadState,
DownloadStatus
} from '@comfyorg/comfyui-electron-types'

export interface ElectronDownload
extends Pick<DownloadState, 'url' | 'filename'> {
Expand Down
5 changes: 1 addition & 4 deletions vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,7 @@ export default defineConfig({
rollupOptions: {
// Disabling tree-shaking
// Prevent vite remove unused exports
treeshake: false,
external: [
'electron'
]
treeshake: false
}
},

Expand Down

0 comments on commit 4ca9f6f

Please sign in to comment.