From 022cf6dd8e8125592758602a2da45489954d7c4d Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Tue, 7 Oct 2025 06:04:00 +1100 Subject: [PATCH] Restrict Vite entry point to index.html (#5934) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Restricts Vite's dependency optimization scanning entry points to the root `index.html`, preventing excessive error messages from scanning unintended files in other packages. ## Changes - **What**: Adds `entries: ['index.html']` to `optimizeDeps` in vite.config.mts - **Breaking**: None ## Review Focus May require additional entries or inversion - exclude-based approach instead of include-based - if possible. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5934-Restrict-Vite-entry-point-to-index-html-2846d73d3650816fbf45fa29493891ae) by [Unito](https://www.unito.io) --- vite.config.mts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.mts b/vite.config.mts index ab5ebf412..3b9ab11b2 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -198,6 +198,7 @@ export default defineConfig({ }, optimizeDeps: { - exclude: ['@comfyorg/comfyui-electron-types'] + exclude: ['@comfyorg/comfyui-electron-types'], + entries: ['index.html'] } }) satisfies UserConfig as UserConfig