From 4ca9f6f74f40bf9d71ca6a12811a269f30364136 Mon Sep 17 00:00:00 2001 From: huchenlei Date: Wed, 20 Nov 2024 23:52:32 -0500 Subject: [PATCH] Remove electron external dep --- src/stores/electronDownloadStore.ts | 5 ++++- vite.config.mts | 5 +---- 2 files changed, 5 insertions(+), 5 deletions(-) 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 } },