mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 17:52:16 +00:00
## Summary Disabled ImportMap generation for Vue/PrimeVue dependencies to optimize cloud deployment performance by reducing 600+ HTTP requests to 8 bundled files. ## Changes - **What**: Commented out [ImportMap entries](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap) for Vue, PrimeVue, and related packages in [Vite configuration](https://vitejs.dev/config/) - **Performance**: Reduced from 600+ individual files to ~8 bundled chunks with proper compression - **Deployment**: Improved cloud load times by eliminating excessive HTTP requests to `static/assets/lib/` directory ## Review Focus Temporary optimization approach and extension ecosystem compatibility. Verify that core extensions remain functional without ImportMap-based Vue/PrimeVue imports. Long-term solution should implement CDN cache headers and etag for frontend version rather than disabling ImportMap entirely. ## Context The ImportMap plugin with `recursiveDependence: true` generates individual files for every PrimeVue component, creating performance bottlenecks in cloud deployment. This selective approach maintains the ImportMap system for future extension API imports while bundling framework dependencies normally. ## Restoration Path To restore full ImportMap functionality, uncomment the entries in `vite.config.mts` and verify extension compatibility before production deployment. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5642-Disable-import-map-on-cloud-2726d73d36508116acdff66756c98473) by [Unito](https://www.unito.io)
7.8 KiB
7.8 KiB