Skip to content

Commit b4fca39

Browse files
webfilteredarjansingh
authored andcommitted
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 12f5e5d commit b4fca39

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
@@ -260,6 +260,7 @@ export default defineConfig({
260260
},
261261

262262
optimizeDeps: {
263-
exclude: ['@comfyorg/comfyui-electron-types']
263+
exclude: ['@comfyorg/comfyui-electron-types'],
264+
entries: ['index.html']
264265
}
265266
}) satisfies UserConfig as UserConfig

0 commit comments

Comments
 (0)