mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
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)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user