`@sveltejs/enhanced-img` causes extremely slow new/first time build for projects w/ large number of images
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 20.8k
- Forks
- 2.3k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 156
Description
Describe the bug
See #15025 last comment.
I can unfortunately not give solid information on reproducing this and reluctantly submit this issue as a result. My initial reason is to warn anyone off of upgrading to vite@8 and @sveltejs/enhanced-img if you have a working build now as somewhere there is a blockage that will cause your build to grind for 5+ minutes. What is worse for me rolling back whatever I previously updated does not fix the issue. I am sure I am overlooking something obvious but the only way to get back a working build is to manually copy back node_modules from a previous release.
Reproduction
I have not found a reliable repro yet as revertign back solves it but even then upgrading svelte brings back the problem so something odd is afoot.
Logs
System Info
Node 24
Severity
blocking an upgrade
Additional Information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the last comment on issue #15025 and compare the build behavior before and after upgrading Vite, Svelte, and @sveltejs/enhanced-img. A useful result would be a reliable reproduction using a project with many images, followed by identifying the regression and confirming that a new build completes without the reported multi-minute delay.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js, vite
- Domain
- build-system, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100