Skip to content

Commit 022cf6d

Browse files
authored
Restrict Vite entry point to index.html (#5934)
## 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)
1 parent 2cb078c commit 022cf6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vite.config.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ export default defineConfig({
198198
},
199199

200200
optimizeDeps: {
201-
exclude: ['@comfyorg/comfyui-electron-types']
201+
exclude: ['@comfyorg/comfyui-electron-types'],
202+
entries: ['index.html']
202203
}
203204
}) satisfies UserConfig as UserConfig

0 commit comments

Comments
 (0)