diff --git a/src/stores/electronDownloadStore.ts b/src/stores/electronDownloadStore.ts index 93d3aa6f4..c5757a88b 100644 --- a/src/stores/electronDownloadStore.ts +++ b/src/stores/electronDownloadStore.ts @@ -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 { diff --git a/vite.config.mts b/vite.config.mts index a64062c7d..7d454479b 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -150,10 +150,7 @@ export default defineConfig({ rollupOptions: { // Disabling tree-shaking // Prevent vite remove unused exports - treeshake: false, - external: [ - 'electron' - ] + treeshake: false } },